Confusion regarding pulldown resistors.

Click For Summary
SUMMARY

This discussion clarifies the function and application of pull-down and pull-up resistors in digital circuits, specifically in relation to high-impedance inputs and logic states. A 100k pull-down resistor is mentioned, emphasizing its role in ensuring a LOW input when a device is not actively driven. The conversation highlights the importance of using appropriate resistor values to prevent undefined states in CMOS circuits and discusses the concept of "sinking" current through microcontroller outputs when pull-up resistors are employed.

PREREQUISITES
  • Understanding of digital logic levels and high-impedance states
  • Familiarity with CMOS technology and its characteristics
  • Knowledge of resistor values and their impact on current flow
  • Basic principles of microcontroller operation and output configurations
NEXT STEPS
  • Research the role of pull-up and pull-down resistors in digital circuit design
  • Learn about CMOS input characteristics and how to prevent floating inputs
  • Explore microcontroller output sinking and sourcing capabilities
  • Investigate common resistor values and their applications in circuit design
USEFUL FOR

Electronics engineers, hobbyists working with microcontrollers, and anyone involved in digital circuit design who needs to understand the importance of pull-up and pull-down resistors for stable logic levels.

nascentmind
Messages
52
Reaction score
0
Hi,
I am having some confusion regarding pull down resistors. In the schematic I have a 100k pulldown resistor. P1 is the output port and the nOE(OE bar) is the input to a buffer.

What is confusing me is if the P1 input is high impedance then the nOE should go high, but when the P1 pin goes low isn't the nOE stuck again at high as the Vcc is never cutoff?

MEhOC.png
 
Engineering news on Phys.org
Yes, that circuit is wrong. The supply is considered able to supply enough current to hold the input high no matter what the size of resistor you used for a pulldown.

You might use a pulldown where driven IC had an open circuit gate as an input. You would put in a pulldown to establish a LOW input even if the device was not being driven at that gate.

Then if the device was driven, the drive would determine the actual input since the pulldown would be a large resistance and its small current would not matter.

Otherwise, you could get random logic where the input could get static charges and change state.
 
But what if I need to put the logic to high and drive it low for enabling. Its a active low. So I need to drive it low to enable it.
 
nascentmind said:
But what if I need to put the logic to high and drive it low for enabling. Its a active low. So I need to drive it low to enable it.

Then you would use a pull-up resistor.

You only use pull down or pull up resistors when there is a need for them. If the gate is being driven by another gate's output, there is no need for either type of resistor. The gate output will be high or low and there will be no problem with the gate input.

Often, though, a gate may be driven by a switch or some sort of sensor that requires a resistor in the circuit to work.
A switch is a case where a pull down resistor might be needed. If you switch +5 volts to the input of a gate, and the gate input is very high impedance like CMOS, then the gate may acquire a positive charge and stay positive even if the switch is turned off. The pull-down resistor discharges any remaining charge on the gate and let's the gate go low.
 
Last edited:
It is worth pointing out that any input that is 'uncommitted' should be either held up or down by an appropriate resistor. CMOS circuits can get very upset if a gate voltage drifts to an undetermined 'half way' value.
 
If there is a pullup resistor and when I set the micrcontroller output to 0 then the output pin of the microcontroller (P1) will be set to ground and all the current should flow through the microcontroller output pin ground right?
 
nascentmind said:
If there is a pullup resistor and when I set the micrcontroller output to 0 then the output pin of the microcontroller (P1) will be set to ground and all the current should flow through the microcontroller output pin ground right?

Yes, that is right. That is called "sinking". Like water running down a sink.

So, you must make sure the resistor is large enough that the current into the micro is not too much for the micro outputs.

So, if the supply was 5 volts and the micro could sink 20 mA, then the pullup resistor would have to be more than 250 ohms. (5 volts / 0.02 amps = 250 ohms).

A common pullup resistor size would be 4.7 K.
 
Doubts cleared. Thanks for the clear explanations. :)
 

Similar threads

Replies
80
Views
5K
  • · Replies 33 ·
2
Replies
33
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K