Pull-up resistor
From Wikipedia, the free encyclopedia
Pull-up resistors are used in the design of electronic logic circuits to ensure that inputs to logic systems settle at expected logic levels if external devices are disconnected. Pull-up resistors may also be used at the interface between two different types of logic devices, possibly operating at different power supply voltages.
In bipolar logic families operating at 5 VDC, a typical pull-up resistor value will be 1000–5000 Ω, based on the requirement to provide the required logic level current over the full operating range of temperature and supply voltage. For CMOS and MOS logic, much higher values of resistor can be used, several thousand to a million ohms, since the required leakage current at a logic input is small.
Pull-up resistors may be used at logic outputs where the logic device cannot source current, such as open-collector TTL logic devices. Such outputs are used for driving external devices, for a wire-OR function in combinatorial logic, or for a simple way of driving a logic bus with multiple devices connected to it. For example, the circuit shown on the right uses 5 V logic level inputs to actuate a relay. If the input is left unconnected, pulldown resistor R1 ensures that the input is pulled down to a logic low. The 7407 TTL device, an open collector buffer, simply outputs whatever it receives as input, but as an open collector device, the output is left effectively unconnected when outputting a "1". Pullup resistor R2 thus pulls the output all the way up to 12 V when the buffer outputs a "1", providing enough voltage to turn the power MOSFET all the way on and actuate the relay.
Pull-up resistors may be discrete devices mounted on the same circuit board as the logic devices. Many microcontrollers intended for embedded control applications have internal, programmable pull-up resistors for logic inputs so that minimal external components are needed.
Some disadvantages of pull-up resistors are the extra power consumed when inputs change state, and the reduced speed of a pull-up compared to an active current source. Certain logic families are susceptible to power supply transients introduced into logic inputs through pull-up resistors, which may force the use of a separate filtered power source for the pull-ups.
Contents |
[edit] I²C
I²C requires pull-up resistors on its clock (SCL) and data line (SDA) because the pins on the chips are of open-collector design. This means that a chip can only pull the lines low, otherwise they float up to VDD. In I²C, pulling the line to ground indicates a logical zero while letting it float to VDD is a logical one. As a channel access method, this allows one node to determine if another is transmitting by sensing that when asserting a logical 1 (letting it float) and sensing if the line is still at a logical 1 (no other node is pulling the line to ground) then it's possible no other node is simultaneously transmitting. However, if a second node pulls the line to zero then the first node loses arbitration and ceases transmission.
[edit] See also
[edit] References
- Paul Horowitz and Winfield Hill, "The Art of Electronics 2nd Edition", Cambridge University Press, Cambridge, Massachusetts USA, 1989 ISBN 0-521-37095-7