Is it a must to add pull-up resistors for inputs?


Closed Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185

    Default Is it a must to add pull-up resistors for inputs?

    Usually, I add 10K pull up resistor for an input.

    Is it a must to keep an input positive (high) to detect negative (low) when a button is pressed? (or the other way around)

    Is there another way to eliminate the resistor by adding some kind of “define” or couple of lines into the code? I just don't want to use the resistor.

    Thanks in advance

  2. #2
    Join Date
    Oct 2005
    Location
    Pinckney, Michigan
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    Pull-ups are required for outputs that are open-collector or open-drain outout types. The pull-up resistor is what provides the high state of the signal, because open-collector output ports, typically, can only drive a signal to ground. They can't drive a signal to +5volts. The resistor does this.

    Further, the value of the pull-up resistor can be important because it dictates the rate at which a signal goes high. If you're trying to generate a signal that needs to toggle fast, a weak pull-up (too high resistance) will pull the signal high too slow, and your'e signal will flounder.

    Note that some PIC pins have internal pull-ups you can enable, but they are the weak variety.

Similar Threads

  1. 12F683 internal pull up
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th July 2008, 02:35
  2. Math 'N Resistors
    By T.Jackson in forum Schematics
    Replies: 0
    Last Post: - 28th September 2007, 15:24
  3. If - then statements
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 18th May 2006, 22:57
  4. My Code get crazy after i add interrupt
    By jetpr in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th May 2005, 04:43
  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 : 0

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