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
RS-232 returns 0xFF
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: RS-232 returns 0xFF
Hello
A return value of 255 means there is no data available. This means that you cannot send a value of 255 over the RS232 connection.
A typical usage of this would be to read in a byte and if the byte is not 255 then you know you have received a new byte of data.
A return value of 255 means there is no data available. This means that you cannot send a value of 255 over the RS232 connection.
A typical usage of this would be to read in a byte and if the byte is not 255 then you know you have received a new byte of data.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel