Weak pull-ups, WPU, and 12F683


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    I would actually check...

    1. That you have DISABLED the ANALOG ADC on those pins...

    ANSEL=%00000000

    2. That you have DISABLED the COMPARATORS on those pins...

    CMCON0=%00000111

    3. That you have set TRISIO to INPUT on those pins...

    TRISIO=%00001110

    4. And that you have enabled the Weak Pull-UP's properly...

    WPU=%00000110
    OPTION_REG.7=0 ' <<< Bet you forgot this one!!!!

    And now you can do your Buttons from this point onwards... but just in case, I'd give it a few mS timeout first...

  2. #2
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Melanie!

    ANSEL, yes.
    CMCON0, yes.
    TRSIO, yes.
    WPU, yes.

    OPTION_REG.7=0 . . . Oh, s**t! (And you win that bet!)

    DUH!

    Everything is now both hunky and dory.

    Thanks!
    Last edited by RussMartin; - 2nd February 2009 at 23:17.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

Similar Threads

  1. 12F683 internal pull up
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th July 2008, 03:35

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