Internal pullup resistor for pushbutton input?
Is it acceptable to have a pushbutton connected·between·an input and ground/Vss without·any external resistors? I would·enable the internal pullup resistor for that input to keep the input high when the pushbutton is not pressed.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I will add that the protecting resistor also protects agains over-voltage, over-current, not just the short-circuit that might happen if the pin is made an output. Remember that the SX has both pin source/sink and whole-chip source/sink limits. You don't want to overdraw through the pin(s).
On a Stamp I always use them, on SX projects it depends on the project, my comfort level, space trade-offs, etc. (big difference between frying a (2.79 SX and a 79.00 Stamp).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php