All courses › Embedded Systems and Instrumentation › Pull-Up Resistor

Pull-Up Resistor

A digital input that is not connected to anything definite can float and read random values. A pull-up resistor pulls the input to a defined high level when nothing else is driving it, for example when a button is open. When the button is pressed, the input is pulled low instead.

I=VccRpuI = \dfrac{V_{cc}}{R_{pu}}current through the pull-up resistor when the input is pulled low (switch closed)

Symbols

VccV_{cc}supply voltageV
RpuR_{pu}pull-up resistorΩ\Omega
IIcurrent through the resistorA

Example

Vcc=3.3V_{cc}=3.3 V, Rpu=10R_{pu}=10 kΩ, switch closed:

I=3.3/10000=0.33I=3.3/10000=0.33 mA.

Without a pull-up an open input floats and can read random values – always define the level.
Practise microcontrollers for free →

← Logic Gates · PWM →

Part of Embedded Systems and Instrumentation: Microcontrollers.