Pullup resistor on input pin

Thread Starter

Dritech

Joined Sep 21, 2011
907
I am using external interrupt 0 of the 8051 MCU which is connected to to switch. Do I have to use a pull-up resistor? Also, do I have to set the pin as input?
 
Last edited:

MrChips

Joined Oct 2, 2009
34,813
Another quick question. I am using external interrupt 0 which is connected to to switch. Do I have to use a pull-up resistor? Also, do I have to set the pin as input?
Yes, the pin must be configured as input.

A pullup resistor is required. Some microcontrollers have the pullup resistor as an optional feature. Check the datasheet of your MCU.
 
Top