Digital inputs


Closed Thread
Results 1 to 6 of 6

Thread: Digital inputs

  1. #1
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425

    Default Digital inputs

    Speaking specifically for a 16F870 but also for all PIC's, I need some info about the input threshold for a logic 1. Are all of the pins supposed to be the same? I thought if you configure a pin as a digial input, it should trigger at 1.2V; is this true? Can you adjust this?

    Thanks,

    Chris

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink RTFDS ... once more

    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default

    OK, I'm guilty! Thanks

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default

    Unless I don't understand the datasheet correctly, for a 16F876, if a pin is configured as an input it should trigger at either 2.0 for TTL and .8 for Schmitt. Am I reading this correctly? If so, some of my inputs don't trigger at 2.45 VDC.....what gives? I know if I increase the voltage to around 2.8, they all trigger. In the datasheet, it says something like TTL buffer is 2.0V. Then, right below that, it says .25 VDD for entire VDD range and right below that, it says .8 but nothing next to it. Does this mean you have to add it to the 2.0? Can someone clarify this for me?

    Thanks,

    Chris

  5. #5
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    The .25 Vdd and the +0.8 thing I read as...

    "For the full operating voltage range (not just 4.5 to 5.5 volts), the Vin HIGH minimum spec is (Vin*0.25) + 0.8 volts"


    The Schmitt trigger input specs are 0.8 Vdd, or Vdd * 0.8, not .8 volts - this value seems kind of high to me...

    Note that those values are the minimums, not the typical (unspecified) or maximums.

    Arch

  6. #6
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default

    I need to revisit this question for a moment. Speaking specifically about the 16F688, I am using pin RC3 as an input and I have ansel=0. The code is really simple in that once the input goes to 1 (If sensor=1 then......), then it lights a light. Everything works fine but I wanted to get the threshold voltage a little lower. Right now, it triggers around 1.2VDC. I looked at the datasheet again and it is inconclusive to me if I am using the correct pin. I know it mentions voltages that are .8VDC and some that are 1.2VDC. I can use any pin on the 16F688 but can someone tell me which one, if any, will trigger at .8VDC. I probably overlooked something in the datasheet (I referred to section 14) which is why I am writing this question.

    Thanks,

    Chris

Similar Threads

  1. PIC 18f4680 DIGITAL INPUTS
    By MegaADY in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th July 2008, 07:34
  2. Digital inputs are some pin NOT working (PIC18F458)
    By san6302 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th July 2008, 06:50
  3. Setting up digital inputs
    By quester in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd March 2008, 22:14
  4. Replies: 4
    Last Post: - 24th January 2007, 22:20
  5. Digital IC Tester
    By precision in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th September 2006, 03:38

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