Assuming you receive valid serial data, RV1 will contain the raw value received, not the decimal equivalent, not the hex equivalent, just the straight binary equivalent of whatever was received by the SERIN statement. If you were using a hardware serial port, RV1 would contain whatever was in the RXREG.
In your case, I would guess that RV1 should contain just what you said, 0x01 (binary 00000001) and so on...
You can use the modifiers listed in the PBP manual to get them differently if need be...
Also, see post #16 here...
http://www.picbasic.co.uk/forum/showthread.php?t=9137





Bookmarks