Pull-up resistor

Simple pullup circuit
When the switch is open the voltage of the gate input is pulled up to the level of Vin. When the switch is closed, the input voltage at the gate goes to ground.

In electronic logic circuits, a pull-up resistor (PU) or pull-down resistor (PD) is a resistor used to ensure a known state for a signal.[1] It is typically used in combination with components such as switches and transistors, which physically interrupt the connection of subsequent components to ground or to VCC. Without such resistor, closing the switch creates a direct connection to ground or VCC; when the switch is open, a problem arises as the rest of the circuit would be left floating (i.e. it would have an indeterminate voltage).

For a switch that is used to connect a circuit to ground, a pull-up resistor (connected between the circuit and VCC) ensures a well-defined voltage (i.e. VCC, or logical high) when the switch is open. For a switch that is used to connect a circuit to VCC (e.g. if the switch or button is used to transmit a "high" signal), a pull-down resistor connected between the circuit and ground ensures a well-defined ground voltage (i.e. logical low) across the remainder of the circuit when the switch is open.

  1. ^ Platt, Charles (2012). Encyclopedia of electronic components. Volume 1, [Power sources & conversion : resistors, capacitors, inductors, switches, encoders, relays, transistors]. Sebastopol CA: O'Reilly/Make. ISBN 978-1-4493-3387-4. OCLC 824752425.