neebee wants to know pullup or pulldown?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2008
    Posts
    15

    Default neebee wants to know pullup or pulldown?

    I want to put a row of dip switches on inputs to the pic16f877a and can either switch them to low or high to get the same result. Is it better to switch to ground with a pullup or make it go to 5v with a pulldown. What are the pros and cons to this.

  2. #2
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Use portb and you can use the internal pullups.
    It really only matters if you are using the pins for multiple functions.

  3. #3
    Join Date
    Jan 2009
    Posts
    78


    Did you find this post helpful? Yes | No

  4. #4
    Join Date
    Sep 2008
    Posts
    15


    Did you find this post helpful? Yes | No

    Default 1 or a 0 for triggering

    ok Tenaja, I understand the internal pullups but what I realy want to know is if you were designing a circuit with switches controlling inputs, would you use
    a 1 to trigger the input or a 0 to trigger the input. I can design it eather way. I have had some people say keep all inputs (pulldown) normaly to ground until you trigger with a +5v and then some say always have a +5v pullup and ground the pin to trigger. Which is the prefered method?

  5. #5
    Join Date
    Sep 2008
    Posts
    15


    Did you find this post helpful? Yes | No

    Default Bodgan, great link

    Bodgan, that was a great link. That relay let me know about pullups and pulldowns. Thanks

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by lecoind View Post
    Which is the prefered method?
    It all depends on the external hardware. That is what will determine the method.

    Is the switch normally high or low? Is the switch normally closed or open? That is the beauty of it, flexible.

    Unused pins can be pulled low with a 10K or higher.
    Dave
    Always wear safety glasses while programming.

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. PortD on 18f4550 cofig pullup for switches
    By Bonxy in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 16th April 2009, 12:00
  3. pullup and pulldown resistor help
    By studysession in forum General
    Replies: 5
    Last Post: - 29th January 2009, 02:46
  4. switch on 1 weak pullup on portb?
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th December 2008, 18:32
  5. Config word / pullup resistors
    By Tomexx in forum General
    Replies: 5
    Last Post: - 25th November 2004, 16:50

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