Minimum Vref Voltage?


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

    Default Minimum Vref Voltage?

    I am using 16F877A for a ADC conversion from a temprature sensor LM35.
    If I use VDD as reference, I get 5/1024 = 4.8mv appx resolution. I am thinking of using Vref as a reference and I would like to know how much minimum voltage can I put on Vref pin? I am thinking if I am able to put 1.1 volt then I get appx 1mV resolution. Am I thinking around the right lines or something is wrong with my planning?

    I would also like to know where to get to this info from the datasheet if possible. Thanks
    ___________________
    WHY things get boring when they work just fine?

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


    Did you find this post helpful? Yes | No

    Default Re: Minimum Vref Voltage?

    a nice drawing ?

    ( courtesy Mikroelektronika )
    ADC_limits.pdf

    Alain
    ************************************************** ***********************
    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
    Sweden
    Posts
    3,520


    Did you find this post helpful? Yes | No

    Default Re: Minimum Vref Voltage?

    Hi,
    1.1V won't work. Look at table 17-14 in the datasheet.
    It says that the minimum voltage difference between VRef- and VRef+ is 2.0V. If VRef- is connected to GND then the minimum voltage at VRef+ would be 2.0V.

    However, it ALSO says that VRef+ must be at least AVdd-2.5 so if you're powering the analog section of the PIC with 5V then the minimum voltage at VRef+ is 2.5V.

    Running the PIC at 3.3V and using a 2.048V reference gives you a resolution of 2mV.

    Other options is to add a front end to your signal, getting its amplitude up, or use an external ADC chip.

    /Henrik.

  4. #4
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: Minimum Vref Voltage?

    To express what Henrik said a bit differently, the device datasheet says the device output will change 2.05 V over the full temperature range. If you are able to match that perfectly with Vref, then you will have the maximum resolution possible, since the full scale of the encoder would exactly match the full swing of the source voltage. So if you are going to use a 10 bit ADC, it's simply not possible to get more than 2 mV accuracy, and with quantizing errors, and offset errors, 5 or 10 is more likely. Alternatives? There are some PICs with 12 bit ADC, or restrict the temperature range, or do something creative with op-amps and multiple pins.

Similar Threads

  1. Replies: 7
    Last Post: - 22nd January 2012, 04:50
  2. Convert a 'signed' Word to a Long with minimum manipulation ?
    By mr.sneezy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th May 2010, 06:26
  3. Minimum power modes for PIC18LF4620
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th February 2008, 01:30
  4. Minimum power operation - 16F877A
    By btaylor in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd March 2006, 02:44
  5. switching external vref+ and vdd vref
    By alejandro_halon in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th February 2005, 20:13

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