It's well known to not have floating pins as inputs to a microcontroller, and pull-up or pull-down resistors should be used.
My question is whether a diode attached to ground would accomplish the same thing. I know that a diode with current flowing through it has a ~2V drop across it.
Will it be a robust pull-down in the attached circuit when the switch is open?
Thanks.
My question is whether a diode attached to ground would accomplish the same thing. I know that a diode with current flowing through it has a ~2V drop across it.
Will it be a robust pull-down in the attached circuit when the switch is open?
Thanks.