EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies /  Regarding pull up/pull down

 Regarding pull up/pull down

|

Microcontroller › 8051 › pull up resistor ›  Regarding pull up/pull down

May 14, 2012 at 5:50 am #7793
AJISH ALFRED
Participant

 

Regarding pull up/pull down basics,

 

A controller pin can be used for two purposes, to give an output and to take an input. So pull up/pull down resitors are used for both input and output configuration of a pin.

 

Suppose the pin is set as input;

 

If our input device give a 5V, the controller detect a logic 1 at the input

If our input device give a 0V, the controller detect a logic 0 at the input ( I’m talking about ideal conditions )

Assume if the connection to the input device somehow got interrupted, and the device is no longer attached to the input pin. In such a case we have neither logic high nor logic low at the input pin, and the controller can’t decide which logic should be read in.

To avoid such conditions we set a default value at the input pin using pull up/pull down resistor. If we pull up the pin the default value at the input pin will be logic 1, and if we pull down there will be a default input value of logic 0, no matter wheather there is an input device present or not.

 

Now suppose the pin is set as output;

 

You know, we just can’t directly drive a relay, buzzer etc. using microcontroller, because the controller dosen’t have that much current sourcing power. So we use a low value pull up resitor at the output pin to directly drive the device using VCC, and if we want to turn off the device, we just give a 0V as output and all the current through the resistor will be sinked into the controller.

We decide wheather to use pull up or pull down at the output pin depending upon the internal circuit design of the pin, mainly its current sinking and sourcing power.

 

 

RSS Recent Posts

  • Help with finding unique wire lug(s) June 21, 2025
  • Simple LED Analog Clock Idea June 21, 2025
  • Kawai KDP 80 Electronic Piano Dead June 21, 2025
  • Saga 1400sv vinyl cutter motherboard issue June 21, 2025
  • using a RTC in SF basic June 20, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise