Should I use a resistor? If so what value?
PFloyd36069
Posts: 135
i am connecting a parallel port to my prop and i thought i might need a resistor. Do I? If i do should i use a 10k or something else?
Bryan
Bryan
Comments
http://forums.parallax.com/showthread.php?p=585920
Ale is correct, your Parallel port will typically be 5V so you need a level shifter of some kind. I would typically stay away from a single resistor solution unless the resistor value is fairly large only because with this solution, the ESD diodes that are built into the IO's are now part of your active circuit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
If you're asking about electrically matching a standard parallel port to a Propeller's I/O pins, the issue is that a parallel port is based on +5V logic levels and a Propeller is based on +3.3V logic levels. If you connect a +5V logic high signal to a Propeller's I/O pin, the Propeller will be damaged. The +5V signal will go through a protective diode in the I/O pin circuitry to the +3.3V power bus on the Propeller and raise the voltage on the bus. That may burn out the protective diode and, if it doesn't burn out fast enough, the excess voltage will damage the Propeller chip further.
The protective diode is rated for around 500uA. With +5V applied, you need to drop around 1V in an external resistor to prevent damage. That's around 2K. People have used resistor values from 1K to 10K in this sort of situation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"They may have computers, and other weapons of mass destruction." - Janet Reno
(15-3,3)/0,0005 = 23400