Electronics > Electronics

pull up resistors?

(1/2) > >>

JesseWelling:
Just a question but have you ever done a tutorial on pullup or pulldown resistors and their function.
I'm a bit fuzzy on when they are needed and when they arn't  :-\

Admin:
to be honest im not really sure either when to use them. ive never needed them. the microcontroller manual always tells me not to when I check for my application . . .

anyone know?

dunk:
so a lot digital electronics don't actually give you a nice output logic level of "1" or "0".
when such a device is outputting a "0" it forces the pin to 0Volts.
when it is outputting a logical "1" it allows the pin to sit at whatever voltage it feels like. if you want to make sure this is +5Volts (or whatever a logical "1" is on the device in question) then you need to connect that pin to +5V via a pull-up resistor.
the value of this resistor should be quite high as the device has to still be able to pull the pin back down to 0Volts. too low a value of resistor and you will draw too much power from the devices output pin.

it's exactly the same when you connect a simple push switch to a devices input. the switch will connect the pin to 0V when the switch is pressed but you need the pin to go to +5V when you let go. the simplest way to do this is use a pull up resistor between the input pin and +5V.

many microcontrollers have pull up resisters built in to their inputs.
i know on most microchip PICs one of the input registers has weak pull up resisters you can enable in software so when you connect such an output device to it you don't need additional physical resistors.

i've never found a device where i have had to use pull down resistors but i'm guessing the theory is the same.
do you have an example?

dunk.

sdk32285:
Pulldown is sometimes used on IC's for example on a possitve triggered Enable pin when you want to insure that it has logic 0 so that it remains enabled.
this is critical on RAM chips since if not held corerectly it can erase the saved content
Also depending on the RAM you might need to tie ports high so that data dosent get erased when writing to it.

Militoy:
Pull-up resistors (or pull-down resistors for active high gates) are almost always used in high speed logic circuits. Their purpose is to force a definite logic state of 1 (high) or 0 (low), after the active logic signal is removed, rather than allowing parasitic leakage currents and PCB capacitances to affect the logic state in a random manner. In bipolar (TTL) logic, where 5VDC is a nominal 1 state, a typical value for a pull-up resistor would be between 1K and 10KΩ. In CMOS logic, much higher resistor values are typically used, because of the higher impedance of the logic gates, and the lower currents involved. Some micros do have weak pull-up resistors on several gates, but most prudent designers will augment these with additional parallel resistance (though not so much as to slow down the gates by demanding too much pull-down current).

Navigation

[0] Message Index

[#] Next page

Go to full version