RS-232 returns 0xFF
Posted: Mon Feb 25, 2008 4:02 pm
Hi
I have a problem I would like to know if there where an easy way to avoid.
When I in simulation mode in Flowcode put in let's say 0x55, it receives it
okay and puts in down in a variable I have made. But the second time the
loop runs, and I have not putted a new byte in the "characters in queue", it
returns 0xFF.
Actually it returns 0xFF all the time You don't put anything in the β€characters
in queueβ€.
It would be nice if it was possible to say that it should only return bytes
to my variable, if there is new data in RCREG from the external connection to the
RS-232.
\BITIT
I have a problem I would like to know if there where an easy way to avoid.
When I in simulation mode in Flowcode put in let's say 0x55, it receives it
okay and puts in down in a variable I have made. But the second time the
loop runs, and I have not putted a new byte in the "characters in queue", it
returns 0xFF.
Actually it returns 0xFF all the time You don't put anything in the β€characters
in queueβ€.
It would be nice if it was possible to say that it should only return bytes
to my variable, if there is new data in RCREG from the external connection to the
RS-232.
\BITIT