Shop OBEX P1 Docs P2 Docs Learn Events
(Untitled) — Parallax Forums

(Untitled)

servomakerservomaker Posts: 5
edited 2010-03-24 17:33 in BASIC Stamp
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?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-03-23 20:20
    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.
  • servomakerservomaker Posts: 5
    edited 2010-03-24 14:59
    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.
  • FranklinFranklin Posts: 4,747
    edited 2010-03-24 17:33
    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
Sign In or Register to comment.