Shop OBEX P1 Docs P2 Docs Learn Events
Pins — Parallax Forums

Pins

leshea2leshea2 Posts: 83
edited 2005-08-17 00:54 in BASIC Stamp
If you use serout to send some information on pin 0, would you connect the + voltage to pin 0 or pin 1 ?

Thanks !

Comments

  • nick bernardnick bernard Posts: 329
    edited 2005-08-16 20:07
    are you asking about pin 1 on the stamp itself. the Sout pin. aka pin 16 in the compiler.
    if yes, you can use Sout to transmit serial data. its already inverted though becuase it can generate rs232-esqe leveling (to talk to debug and hyperterminal and whatnot).

    if no then

    are you asking about open collector baud modes?
    if yes, pullup pin 0
    if no, neither, the signal will power itself, just make sure the receiver shares a ground with the stamp.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    sometimes never is better than sometimes.

    Post Edited (nick bernard) : 8/16/2005 8:08:02 PM GMT
  • allanlane5allanlane5 Posts: 3,815
    edited 2005-08-16 20:11
    If you use S_out to transmit serial data, you must also connect S_in. The BS2 uses the S_in voltage to 'modulate' S_out -- that's how it gets its MAX232-like voltages.
  • leshea2leshea2 Posts: 83
    edited 2005-08-16 22:37
    I'm using a breadboard, so I'm using a 9 volt battery to power my stamp, called a stamp stack, I was just wondering if I'm suppose to connect the + voltage to the outputting pin or the - voltage ?

    Thanks !
  • allanlane5allanlane5 Posts: 3,815
    edited 2005-08-17 00:54
    You connect the + terminal of the battery to the "Vin" pin, and the - terminal of the battery to the "Vss" pin.

    I don't know what pin you are calling "the outputting pin". Typically you don't connect ANY voltage to an output, you connect an input to an output.
Sign In or Register to comment.