Adc Ref. V.


Closed Thread
Results 1 to 7 of 7

Thread: Adc Ref. V.

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Posts
    96


    Did you find this post helpful? Yes | No

    Default Multiple ADCIn

    Melanie,

    I guess this is a little off topic, but you mentioned 50us between reading in different a/d values on porta. Are you basically saying we should not attempt to do....

    ADCIN 1, var1
    ADCIN 2, var2
    ADCIN 3, var3

    Are you saying we need at least 50us between differnt ADCIN commands or wierd issues may result?

    Thanks for clarifying

  2. #2
    Warrier's Avatar
    Warrier Guest


    Did you find this post helpful? Yes | No

    Default

    Internally, the sampling switch and the channel multiplexers are CMOS switches and they present an ON resistance that is a linear function of supply voltage. (it can vary from about 5kohm to 10kohm for Vdd ranging from 5V to about 3V). When a signal is applied to any pin, the internal holding capacitor has to charge to the input voltage through this resistor. With a 10bit ADC, you need the holding capacitor to be about 0.1% of the applied voltage to get accurate results.

    You also need to make sure that any external amplifier also settles down to this accuracy before you let the ADC perform the digitization. Hopefully you are not increasing this value outside the PIC using any resistors. The acquision time thus is close to about 20usec at 5V with a 10k signal(source) resistance (impedance). To allow for other switches to settle, Ms. Newman is suggesting 50usec.

    No, you don't need to add a Pauseus 50 if you have already defined DEFINE ADC_SAMPLEUS 50 at the header. This keeps the program waiting for 50usec between setting the selected channel and starting the AD conversion.

    When you set your external reference to 500mV keep in mind that your LSB is only 500microvolt. The ENOB of the PIC ADC is only 9.5bits even with severly bandlimited signal. Glitches when operating internal switches and amplifier settling time may all be comaprable to this value. Keeping signal path clean also becomes critical. Sloppy Vref can eat into this resolution. Bypass is a must.

    -warrier
    Last edited by Warrier; - 2nd May 2005 at 05:13.

  3. #3
    GEEZER's Avatar
    GEEZER Guest


    Did you find this post helpful? Yes | No

    Default Adc V.ref

    Thanks everybody, lot's of information. Just what I need.

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  2. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  3. PIC18F2423, ADC problem
    By mistergh in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th March 2009, 01:31
  4. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 15:54
  5. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 01:55

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