My 12lf1822 ADC won't read zero (lowest reading is 008)


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: My 12lf1822 ADC won't read zero (lowest reading is 008)

    Nothing whacky there.

    The WPUA register defaults to %00111111 on power-up.

    If you do WPUA.3 = 1
    nothing changes, because that bit is already a 1.
    You have to disable pull-ups on the pins you don't want pulled-up.

    The numbers over each bit show the POR/BOR defaults.
    Name:  1822_WPUA.JPG
Views: 648
Size:  66.8 KB
    DT

  2. #2
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: My 12lf1822 ADC won't read zero (lowest reading is 008)

    For once you' re wrong (& I've got you on a minor technicality!) - there was something whacky - ME!

    I guess (me aside) the other whacky thing was even with weak pullups enabled ...my ADC pin still functioned.....albeit only down to a reading of 008 (whenever I've set an ADC pin wrong prior...I've had very "something oviously wrong with my config" type results ...this one was more obscure!)

    Anyway, apologies for the schoolboy error....
    Last edited by HankMcSpank; - 19th May 2011 at 21:31.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default Re: My 12lf1822 ADC won't read zero (lowest reading is 008)

    must do mistake from time to time... this is the best way to learn
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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