BS2 to BS2 SERIN / OUT - Third time is no charm
John Kauffman
Posts: 653
I have tried on two occasions to try BS2 to BS2 communication by SERIN and SEROUT, as per
C:\Program Files\Parallax Inc\Stamp Editor v2.5\Help\Content\LanguageTopics\ExampleTopics\SeroutEx.htm
It has never worked, even though I cut and pasted the example code and re-built circuit several times. The last times were for my personal edification. Now I need it to work for a project: HomeWork board to HomeWork board. I tried again and nothing happens.
I added some beeps to diagnose (codes attached).
From the sender I get the start beep but no beeps from inside loop.
From the receiver I get the start beep and text of "start" on the debug screen.
After that nothing - no beeps from either BS2 from in the loop, nothing on debug screen.
It seems the loop is not running on either BS2
Has anyone encountered similar problems?
Any suggestions?
I'm glad to post a close-up image of circuit if that helps.
Thanks.
C:\Program Files\Parallax Inc\Stamp Editor v2.5\Help\Content\LanguageTopics\ExampleTopics\SeroutEx.htm
It has never worked, even though I cut and pasted the example code and re-built circuit several times. The last times were for my personal edification. Now I need it to work for a project: HomeWork board to HomeWork board. I tried again and nothing happens.
I added some beeps to diagnose (codes attached).
From the sender I get the start beep but no beeps from inside loop.
From the receiver I get the start beep and text of "start" on the debug screen.
After that nothing - no beeps from either BS2 from in the loop, nothing on debug screen.
It seems the loop is not running on either BS2
Has anyone encountered similar problems?
Any suggestions?
I'm glad to post a close-up image of circuit if that helps.
Thanks.
Comments
SERIN SI/FC, Baud, [letter] ' recieve one byte
That should be:
SERIN SI\FC, Baud, [letter]
PE -- El Backslash-O !
The help file diagram shows P1..Stamp1 to P1..Stamp2 as the data line and P0..Stamp1 to P0..Stamp2 as flow control. The error is in the code , both So and Si should equal 1 and Fc in both programs should equal 0.
Jeff T.
Jeff: That (plus PJ's) fixed it. I wanted this to work for several years now. I wish I could put back all of the hair I've pulled out.
Post Edit --
No, it's still the same in 2.5.2. [Aaackkk!]
I remember a guy posting about this a couple of years, come to think of it.
Amazing.
Well, it could work with whichever pins you want, but not if you stick to the diagram provided. And that backslash typo still compiles (??).
So, here I have the SO on P0 and the SI on P0, the Fpins on both the xmtr and rcvr are P1, and the diagram is true to the description - everything is consistent. (See Attached!)
.
It seem that even our friends in Parallax do not fully understand the function of F parameter between two BS's. Both PAUSEs in SEROUT and SERIN - without comments(!) - are not necessary.
Or maybe they wanted to emphasize the handshaking effect by slowing things down?
I do not want to sound like old nag – but that pull down resistor on the flow control pins in this case is mandatory!
Vaclav
So, I corrected the code and the diagram (as a post edit to #6.)
Jeff T.
PJ: HOpefully others will find this thread by search and also pick up on your corrected materials posted.
To whom at P'lax do we give the list of changes for the next help file?
I also found an example elsewhere that won't compile because a pin is not declared.
Pathik Gohil