Networking Stamps; Syntax & Ref Manual pp 428-429
Bill Chennault
Posts: 1,198
All--
I am reading about the SERIN and SEROUT commands. On pages 428 and 429 of the "BASIC STAMP Syntax and Reference MANUAL", there are two code listings. The first (on page 428 - 429) is written for the "Sender" and the second (pages 429 - 430) is written for the "Receiver." Both refer to "the circuit shown in the SERIN command description (page 410 and repeated on page 425).
The code fragment below comes from the "Sender" program on pages 428 - 429 . . .
SO··· PIN 1··· ' serial output
FC··· PIN 0··· ' flow control pin
The code fragment below comes from the "Receiver" program on pages 429 - 430 . . .
SI·· ·PIN 0··· ' serial input
FC·· ·PIN 1···' flow control pin
The circuit to which these code fragments refer (the one found on page 410 or 425) shows PIN 1 of the Receiver connected to PIN 1 of the Sender and PIN 0 of the Receiver connected to PIN 0 of the Sender.
To ME the circuit appears correct and the code fragments shown above are reversed as they indicate (to ME) that Sender SO (serial out) is connected to Receiver FC (flow control) and Sender FC (flow control) is connected to Receiver SI (serial in).
Have I provided enough information for you to explain where I am wrong or where there may be a mistake in "BASIC STAMP Syntax and Reference MANUAL?"
Thanks!
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
I am reading about the SERIN and SEROUT commands. On pages 428 and 429 of the "BASIC STAMP Syntax and Reference MANUAL", there are two code listings. The first (on page 428 - 429) is written for the "Sender" and the second (pages 429 - 430) is written for the "Receiver." Both refer to "the circuit shown in the SERIN command description (page 410 and repeated on page 425).
The code fragment below comes from the "Sender" program on pages 428 - 429 . . .
SO··· PIN 1··· ' serial output
FC··· PIN 0··· ' flow control pin
The code fragment below comes from the "Receiver" program on pages 429 - 430 . . .
SI·· ·PIN 0··· ' serial input
FC·· ·PIN 1···' flow control pin
The circuit to which these code fragments refer (the one found on page 410 or 425) shows PIN 1 of the Receiver connected to PIN 1 of the Sender and PIN 0 of the Receiver connected to PIN 0 of the Sender.
To ME the circuit appears correct and the code fragments shown above are reversed as they indicate (to ME) that Sender SO (serial out) is connected to Receiver FC (flow control) and Sender FC (flow control) is connected to Receiver SI (serial in).
Have I provided enough information for you to explain where I am wrong or where there may be a mistake in "BASIC STAMP Syntax and Reference MANUAL?"
Thanks!
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
Comments
· Don't forget those resistors, they're very important.
· [noparse][[/noparse]The diagrams and examples are at the bottom of the page for both those entries.]
·
·· You are correct; there is an error in the manual which should be corrected in the next revision.· In the meantime you can simple reverse the affected pins in the code.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Got'cha. Both of you.
Thanks!
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.