RS-232 returns 0xFF

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
BITIT
Posts: 3
Joined: Fri May 25, 2007 8:08 am
Location: Dennark

RS-232 returns 0xFF

Post by BITIT »

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

User avatar
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

Post by Benj »

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.

BITIT
Posts: 3
Joined: Fri May 25, 2007 8:08 am
Location: Dennark

Re: RS-232 returns 0xFF

Post by BITIT »

Hi Ben

Thanks for a quick reply !

\BITIT

Post Reply