PDA

View Full Version : Pins



leshea2
08-17-2005, 03:54 AM
If you use serout to send some information on pin 0, would you connect the + voltage to pin 0 or pin 1 ?

Thanks !

nick bernard
08-17-2005, 04:07 AM
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

allanlane5
08-17-2005, 04:11 AM
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.

leshea2
08-17-2005, 06:37 AM
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 !

allanlane5
08-17-2005, 08:54 AM
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.