I have two 18F458s communicating with each other using flow control and for some reason my variables are losing their values. My code is as follows:
Baud384NoIvn CON 6
J var Byte
J = 0
MainLoop:
J = J + 1
Pause 1000
debug "Sending ", dec J, 13, 10
SEROUT2 PORTA.1\PORTA.3, Baud384NoIvn, 2000, Nada, [J]
Nada:
goto MainLoop
The output of this code is
Sending 1
Sending
Sending 3
Sending
Sending 5
As you can see, it's skipping a number. I been fooling with this for several hours. If I take out the flow control, it works fine. Any insight would be greatly appreciated.
Thanks
Eric
Bookmarks