PDA

View Full Version :



servomaker
03-24-2010, 02:55 AM
I need to interface a BS2p and BS2pe to an RS232 output at 19,200 baud, no parity, 1 stop bit, no flow control.
What is the serout codes for these stamps?

Mike Green
03-24-2010, 03:20 AM
Look on page 418 of the BASIC Stamp Syntax and Reference manual. It gives instructions for computing the proper Baud mode value. For the BS2p, you compute INT( 1000000 / Baud ) - 20. For the BS2pe, you use INT( 2500000 / Baud ) - 20.

servomaker
03-24-2010, 09:59 PM
Thanks, Mike. The baud rate setting that actually works for the BS2p24 is 110.
I have the display working, but it doesn't send back an RS232 signal when I press the keys on the keypad that I attached through the 8-conductor cable supplied. I know that the keypad works, as I have to press the * key on power-up for manual override. I can't get any signals out on my scope from the display Tx port- so the serin doesn't read the data. I've sent the display the command to turn on autopress, so I would expect that it would send out unbuffered RS232 signals for keystrokes.
Any tricks?
P.S. The display unit came with TTL solder bridges in place that had to be removed to make the unit work. Also, I've downloaded the reference manual you suggested- I was working with the StampWorks version 1.2 manual.

Thanks again.

Franklin
03-25-2010, 12:33 AM
Add a subject line to your post and a link to the keypad your referencing. It's hard to help if all we get is "my keypad does not work how do I fix it?"

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen