User inputs into a Propeller via simple normally-open pushbutton.· Software can handle either case, pulled high or pulled low.
If it doesn't matter which way it's pulled, for battery-powered applications is there a suitable resistor size?· In other words, I usually use 10K resistors, is that too little?
10K is a pretty good choice. Low enough to reliably pull a cmos gate high or low without drawing enough current to have much effect on battery life when the buttons or switches are closed.
For the most minimal effect on battery life, connect the other end(s) of the pullup(s) to a pin which is driven high only when the switch(es) is/are being read. That way, for any switch being activated, current will be drawn only during the few microseconds required to poll it.
PhiPi said...
For the most minimal effect on battery life, connect the other end(s) of the pullup(s) to a pin which is driven high only when the switch(es) is/are being read. That way, for any switch being activated, current will be drawn only during the few microseconds required to poll it.
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
If it doesn't matter which way it's pulled, for battery-powered applications is there a suitable resistor size?· In other words, I usually use 10K resistors, is that too little?
-Phil