Much simple... your SERIN line is wrong
SERIN PorPin, Mode, Variable
Using the square bracket says you want to wait a specific character..
Code:
INCLUDE "modedefs.bas"
M VAR BYTE
pause 500
START
SERIN PORTB.5,N2400,#M
lcdout $FE,1,#M
GOTO START
if you send 1234... it will never fit in a BYTE variable.. max=255...
Leave your transmitter code as is, but change 1234, to 123 for now to see what happen.
PS: DEC modifier should not work for SEROUT, but for SEROUT2 .
Last edited by mister_e; - 18th November 2008 at 20:53.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks