"Honey, my PIC ADC pin sagged my peak detector voltage!"


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default Re: "Honey, my PIC ADC pin sagged my peak detector voltage!"

    Quote Originally Posted by Darrel Taylor View Post
    Hank,

    Weak Pull-ups are disabled at power-up / Reset.
    They are turned on by clearing WPUEN (OPTION_REG.7).
    All of the WPUx registers are enabled at power-up, so when you clear the WPUEN bit, they all come on unless you specifically disable individual pins WPUC.x.

    Does your code change OPTION_REG?
    Hey Darrel,

    this is the point in the proceeedings where I should lie profusely, but nope....

    "It's a fair cop guv"

    Yes, I do use WUPs on PORT B, so yes I have...

    Code:
    OPTION_REG.7 = 0
    ....which of course, then means all ports are enabled & I need to disable by port.

    My excuse is that my code is a heavy cut/paste from a former program, so I didn't enter every single line manually......but, that's lame so I offically declare myself a pleb.

    Great spot....... & thanks for chiming in to correct.
    Last edited by HankMcSpank; - 16th February 2011 at 19:44.

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