chick

04-06-2007, 12:48 AM

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,[f,f,f]

PAUSE 10

RETURN

reciev.

PTNUMBER:

SERIN 9,16780,100,MAIN1,[z,j,z]

RETURN

Thanks, Lou

Odd numbers =1 and even =0

Here are the codes:

transm.

PTNUMBER:

HIGH 1

SEROUT 1,16780,[f,f,f]

PAUSE 10

RETURN

reciev.

PTNUMBER:

SERIN 9,16780,100,MAIN1,[z,j,z]

RETURN

Thanks, Lou