pullup and pulldown resistor help


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2009
    Posts
    14

    Default pullup and pulldown resistor help

    Hi -

    How do you know when to use a pullup or a pulldown resistor?
    Know when to use what resistor and then what value is not straight forward to me and trying to figure out a simple way to remember to know which to use.

    Thanks -

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by studysession View Post
    Hi -

    How do you know when to use a pullup or a pulldown resistor?
    Know when to use what resistor and then what value is not straight forward to me and trying to figure out a simple way to remember to know which to use.

    Thanks -
    If there is a "memory save" button in the system, then I use pull down resistors instead of pull ups. => Button press pulls up.
    Reason: If power is removed, then there is a possibility that pin goes down before PIC goes off. The program then acts as if the button was pressed.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by studysession View Post
    Hi -

    How do you know when to use a pullup or a pulldown resistor?
    Know when to use what resistor and then what value is not straight forward to me and trying to figure out a simple way to remember to know which to use.

    Thanks -
    The logic of true determines which to use, if true = 1 then use pulldown, as the pulldown makes it default to false. If true = 0 then use a pullup, pullup makes 1 default to false.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Jan 2009
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    The logic of true determines which to use, if true = 1 then use pulldown, as the pulldown makes it default to false. If true = 0 then use a pullup, pullup makes 1 default to false.

    I think I am following you but want to make sure. Could you expand with an example? THanks

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by studysession View Post
    I think I am following you but want to make sure. Could you expand with an example? THanks
    ok
    Code:
    If PortA.1 = 1 THEN ' if logic high = true use pulldown to 
                        'make untrue
    Do something here !
    else ' false this is where the pulldown does it's work.
    Code:
    If PortA.1 = 0 THEN ' If logic low is true use a pullup to
                        ' make false
     Do something here !Light an LED . . .
    else ' False, again this is where pullup does it's job
    Your code here . . . Say, turn off the LED
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6
    Join Date
    Jan 2009
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    Thanks - That's what I was thinking you were saying before but wanted to be sure. Greatly appreciate it.

    Keith

Similar Threads

  1. RB0 + Internal Pullup + Interrupt
    By Freman in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 10th August 2009, 11:11
  2. neebee wants to know pullup or pulldown?
    By lecoind in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 24th May 2009, 03:36

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts