When a pin is used as an input can it take 5V?
Kye
Posts: 2,200
Sorry to ask this question again, but I'm having trouble understanding the difference between a pin used as an input to look at a 5V line and a pin with a resistor in front of it to look at a 5V line.
Why is a resitor needed if the pin is an input? Since there's no current flow, no voltage is dropped across the resistor and thus it doesn't really do anything.
Thus,·is a resistor needed or not? I hear that putting 5V on the propeller chip's pins will break it but when the pin is in input mode it shouldn't matter.
Thanks, for helping to clear this up.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Why is a resitor needed if the pin is an input? Since there's no current flow, no voltage is dropped across the resistor and thus it doesn't really do anything.
Thus,·is a resistor needed or not? I hear that putting 5V on the propeller chip's pins will break it but when the pin is in input mode it shouldn't matter.
Thanks, for helping to clear this up.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
Comments
Some chips have a different circuit, with "5 volt tolerant inputs", but that is not the case with the Prop.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
So, I should use a resistor value of 120 ohms or greater to keep the current below 40mA? I plan can use 240 ohms however instead.
Also, should I worry about this for 3.3V inputs, or will this not be a problem?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
The relevant info is published; it's in the datasheet. As stated there, the maximum current allowed through the protection diodes is +/-500uA. That implies a series resistor of 2.2K or more to protect against a 5V input.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
(Trying to cut down parts on a design, that is why I am asking these questions).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Steve
Propalyzer: Propeller PC Logic Analyzer
http://forums.parallax.com/showthread.php?p=788230
Many times I have given the same solution:
www.sparkfun.com/commerce/product_info.php?products_id=8745
This absolutely takes the guesswork out of the picture. Use it and move on to other problems.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH