SEROUT - SERIN Question
Archiver
Posts: 46,084
Hi,
I'm trying to communicate between two BS2 stamps. I have a WORD
variable in one side and am trying to send it to the other other
stamp.
Stamp1:
Test1 VAR Word
Test1 = 65000
SEROUT 1\0 16468 [noparse][[/noparse]Test1]
Stamp2:
Test2 VAR Word
SERIN 1\0 16468 [noparse][[/noparse]Test2]
DEBUG DEC Test2
I don't get 65000 popping up in Stamp2's debug window. I tried
formatting the output and input using BIN16, DEC5, etc but it didn't
work. I used the Demo program in the book to send "HELLO" and it
worked fine. Do I have to manually break the word I want to send into
bytes?
Eric
I'm trying to communicate between two BS2 stamps. I have a WORD
variable in one side and am trying to send it to the other other
stamp.
Stamp1:
Test1 VAR Word
Test1 = 65000
SEROUT 1\0 16468 [noparse][[/noparse]Test1]
Stamp2:
Test2 VAR Word
SERIN 1\0 16468 [noparse][[/noparse]Test2]
DEBUG DEC Test2
I don't get 65000 popping up in Stamp2's debug window. I tried
formatting the output and input using BIN16, DEC5, etc but it didn't
work. I used the Demo program in the book to send "HELLO" and it
worked fine. Do I have to manually break the word I want to send into
bytes?
Eric
Comments
SEROUT pin, baud, [noparse][[/noparse]myWord.BYTE0, myWord.BYTE1]
Of course, you must receive a Byte at a time as well. This might be
helpful:
http://www.parallax.com/dl/docs/cols/nv/vol3/col/81.pdf
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: Eric Berg [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=FHpZO1Q3nf7eQzjlw0FpZyL0PnMSW2qExhQbx8O9FxyWoHlq3SAyNb52C7ya9gbxDdlZcEPqoyQl2w]khufumen@y...[/url
Sent: Thursday, January 22, 2004 8:18 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] SEROUT - SERIN Question
Hi,
I'm trying to communicate between two BS2 stamps. I have a WORD
variable in one side and am trying to send it to the other other
stamp.
Stamp1:
Test1 VAR Word
Test1 = 65000
SEROUT 1\0 16468 [noparse][[/noparse]Test1]
Stamp2:
Test2 VAR Word
SERIN 1\0 16468 [noparse][[/noparse]Test2]
DEBUG DEC Test2
I don't get 65000 popping up in Stamp2's debug window. I tried
formatting the output and input using BIN16, DEC5, etc but it didn't
work. I used the Demo program in the book to send "HELLO" and it
worked fine. Do I have to manually break the word I want to send into
bytes?
Eric
--- Jon Williams <jwilliams@p...> wrote:
> You have to send the Word one Byte at a time:
>
> SEROUT pin, baud, [noparse][[/noparse]myWord.BYTE0, myWord.BYTE1]
>
> Of course, you must receive a Byte at a time as
> well. This might be
> helpful:
>
>
>
http://www.parallax.com/dl/docs/cols/nv/vol3/col/81.pdf
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: Eric Berg [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=uETqBuCaNV3piUrvv8hA3swqr1DtKBkUZpkGoNei8ezJls-8N8Bp_5_LBT7aAK-er7-OAETspotiK2w]khufumen@y...[/url
> Sent: Thursday, January 22, 2004 8:18 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] SEROUT - SERIN Question
>
>
> Hi,
> I'm trying to communicate between two BS2 stamps. I
> have a WORD
> variable in one side and am trying to send it to the
> other other
> stamp.
>
> Stamp1:
> Test1 VAR Word
> Test1 = 65000
> SEROUT 1\0 16468 [noparse][[/noparse]Test1]
>
> Stamp2:
> Test2 VAR Word
> SERIN 1\0 16468 [noparse][[/noparse]Test2]
> DEBUG DEC Test2
>
>
> I don't get 65000 popping up in Stamp2's debug
> window. I tried
> formatting the output and input using BIN16, DEC5,
> etc but it didn't
> work. I used the Demo program in the book to send
> "HELLO" and it
> worked fine. Do I have to manually break the word I
> want to send into
> bytes?
>
> Eric
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed.
> Text in the Subject and Body of the message will be
> ignored.
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/basicstamps/
>
> To unsubscribe from this group, send an email to:
> basicstamps-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
> http://docs.yahoo.com/info/terms/
>
>