+ Reply to Thread
Results 1 to 8 of 8

Thread: Pull down on IO pin

  1. #1
    romeshkumar Newbie
    Join Date
    Jun 2009
    Posts
    3

    Default Pull down on IO pin

    I am very interested in electronics and I have build few basic circuits. I have attached a circuit that I am trying to understand and I need some help. The inputs to the NOR gate PEL1.PWM and PEL1.DIR comes from the micrcontroller AT90CAN128 and they have a pull down resistor to GND. Just curious to know what will happen if I output a 1 or 0 on the GPIO pins of the micro and why do we need the pull down resistor at that place.
    Thanks a lot
    Attached Images


  2. #2
    BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent
    Join Date
    Dec 2005
    Location
    Vancouver Canada
    Posts
    1,193

    Default

    Quote Originally Posted by romeshkumar View Post
    I am very interested in electronics and I have build few basic circuits. I have attached a circuit that I am trying to understand and I need some help. The inputs to the NOR gate PEL1.PWM and PEL1.DIR comes from the micrcontroller AT90CAN128 and they have a pull down resistor to GND. Just curious to know what will happen if I output a 1 or 0 on the GPIO pins of the micro and why do we need the pull down resistor at that place.
    Thanks a lot
    Hi romeshkumar,
    Welcome to the best electronic forums on the net!
    The pull down insures the pin, an input, stays at a defined level of logic 0. If you leave the pin floating, it is possible the voltage at the input will drift, causing undefined results. The pulldown resistor is of a large enough value that the microcontroller will have no problem overcoming it and setting the input to a logic 1.

    Hope this answers your question.

  3. #3
    romeshkumar Newbie
    Join Date
    Jun 2009
    Posts
    3

    Default

    Thanks for your reply. Lets say if I output a 1 to both those pin from micro won't that resistor still pull that pin to GND.

  4. #4
    BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent
    Join Date
    Dec 2005
    Location
    Vancouver Canada
    Posts
    1,193

    Default

    Quote Originally Posted by romeshkumar View Post
    Thanks for your reply. Lets say if I output a 1 to both those pin from micro won't that resistor still pull that pin to GND.
    No, the output from the micro should have an impedance which is much smaller than 100k ohms, and forms a voltage divider with your 100k resistor, so you should get close to Vdd. on those input pins.
    Last edited by BeeBop; 25th June 2009 at 06:45 PM.

  5. #5
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,796

    Default

    Quote Originally Posted by romeshkumar View Post
    Thanks for your reply. Lets say if I output a 1 to both those pin from micro won't that resistor still pull that pin to GND.
    All the resistors are doing is setting the input impedance of the gates - in this case to 100K - without the resistors they would be VERY, VERY high impedance.

    The 100K resistors are far too high to have any effect on the output from the processor, but low enough to stop the inputs drifting high on their own.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  6. #6
    romeshkumar Newbie
    Join Date
    Jun 2009
    Posts
    3

    Default

    Just curious what will happen if the micro has a open collector output. Will this still work.

  7. #7
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,796

    Default

    Quote Originally Posted by romeshkumar View Post
    Just curious what will happen if the micro has a open collector output. Will this still work.
    No, it wouldn't work at all, that requires a pull-UP resistor.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

  8. #8
    BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent
    Join Date
    Dec 2005
    Location
    Vancouver Canada
    Posts
    1,193

    Default

    Quote Originally Posted by romeshkumar View Post
    Just curious what will happen if the micro has a open collector output. Will this still work.
    If your output pin is open collector, then it isn't capable of outputting a logic high, and you must provide a pullup in order to do that. Use a 'normal' IO pin for these and save yourself the headache.

    Just a minute faster than me, Nigel!
    Last edited by BeeBop; 25th June 2009 at 07:01 PM.

+ Reply to Thread

Similar Threads

  1. Pull-up and pull-down configuration of pins.
    By electricity86 in forum Micro Controllers
    Replies: 10
    Latest: 7th July 2009, 06:49 PM
  2. MCLR, Pull-up,Pull-down with ICD2 clone
    By GRC in forum Micro Controllers
    Replies: 2
    Latest: 1st January 2007, 11:52 PM
  3. Must I use Pull-up / Pull-down Resistors?
    By Andre1 in forum General Electronics Chat
    Replies: 3
    Latest: 28th December 2006, 09:52 AM
  4. pull-up and pull-down resistors with IC's
    By mstechca in forum General Electronics Chat
    Replies: 14
    Latest: 7th January 2006, 03:08 AM
  5. to pull or not to pull up
    By nero_xxx in forum Electronic Projects Design/Ideas/Reviews
    Replies: 9
    Latest: 3rd May 2004, 05:49 AM

Tags for this Thread