BS2 serin,serout.
I have two bs2s attached together for comunication. The program is very simple as yet, but a strange problem exist. When transmitting a var. that is from 1-5, the reciever debug shows 1 as 1, 2 as 0,3 as 1, 4 as 0, 5 as 1.
Odd numbers =1 and even =0
Here are the codes:
transm.
PTNUMBER:
HIGH 1
SEROUT 1,16780,[noparse][[/noparse]f,f,f]
PAUSE 10
RETURN
reciev.
PTNUMBER:
SERIN 9,16780,100,MAIN1,[noparse][[/noparse]z,j,z]
RETURN
Thanks, Lou
Odd numbers =1 and even =0
Here are the codes:
transm.
PTNUMBER:
HIGH 1
SEROUT 1,16780,[noparse][[/noparse]f,f,f]
PAUSE 10
RETURN
reciev.
PTNUMBER:
SERIN 9,16780,100,MAIN1,[noparse][[/noparse]z,j,z]
RETURN
Thanks, Lou
Comments
The SEROUT command does it's own start bit.
thanks,
Lou