16F886 and Voltage reference


Closed Thread
Results 1 to 4 of 4
  1. #1

    Default 16F886 and Voltage reference

    I have a project using all 11 ADC Channels on the 16F886.

    I note the external voltage reference channels/pins are shared with the ADC channels AN2 & AN3 :?

    Anyway round this? I can't disconnect the device the adc is measuring from the adc pins AN2,AN3.

    I'm fairly happy with the VDD/VSS reference method but was just thinking about using something with more precision than the power supply.

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: 16F886 and Voltage reference

    Hi,
    No way around it that I can think of.
    How much current does the system draw? Perhaps you can power the PIC from a (possibly buffered) voltage reference chip thus making Vdd more stable/accurate.
    Or use an external analog swich to connect either a voltage reference or your normal analog signal to one of the inputs, sample the voltage reference and use its value to apply correction in software.

    /Henrik.

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


    Did you find this post helpful? Yes | No

    Default Re: 16F886 and Voltage reference

    Hi, Peter

    may we understand your board design is already done and can't be altered ?

    If so ... see Hendrik's answer.

    another solution could be, if your board current draw is quite constant, to add a little calibration routine in your program : @ first power up, you use a known reference voltage on one ADC pin ... then the routine calculates a correction coeff to use in your ADC measurements ...

    say, IF the EEPROM cal value is $FF or $ FFFF ( generally is with newly programmed components ) , THEN you enter the cal. routine @ power-up ...

    Alain
    Last edited by Acetronics2; - 25th August 2013 at 14:28.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: 16F886 and Voltage reference

    The system has quite a high precision 5v regulator so I think I will stick with the VSS/VDD references for now but thanks for the ideas.

    Peter

Similar Threads

  1. Fixed Voltage Reference
    By kduck63 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 20th April 2012, 11:27
  2. ADC with reference voltage
    By GoldStar in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th May 2010, 21:01
  3. ADC - 2 channels but not same voltage reference - how to?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th November 2007, 19:03
  4. COMPARATOR - Voltage Reference settings
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th October 2007, 07:06
  5. AD Negative Voltage reference
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th June 2007, 15:01

Members who have read this thread : 1

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