Shop OBEX P1 Docs P2 Docs Learn Events
Negative Voltage — Parallax Forums

Negative Voltage

blacksheep45blacksheep45 Posts: 41
edited 2009-03-24 15:16 in BASIC Stamp
Can a negative input·voltage be put onto pins 0-15?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-03-24 15:16
    No. If there's any significant amount of current available, it will destroy your Stamp.

    Any voltage outside the range 0-5V applied to the I/O pins will be conducted via protective diodes on the Stamp processor to either Vdd (>5V) or Vss (<0V). These diodes are only designed to handle small currents (<1mA). Depending on the circumstances, these "fault" currents can cause localized voltage spikes which can destroy other parts of the Stamp processor chip.

    If you might accidentally have negative or high (>5V) positive voltages applied to Stamp I/O pins, a resistor in series with the I/O pin would limit the "fault" current to a safe level for the protective diodes. The value would depend on the voltages involved. There are examples in the chapter on the SERIN statement for connecting an RS232 signal to a Stamp I/O pin using a 22K resistor. RS232 voltages can range from -15V to +15V. The 22K resistor would limit the current to well under 1mA.
Sign In or Register to comment.