Author Topic: Reading ADC when the VDD is not fixed  (Read 4578 times)

0 Members and 1 Guest are viewing this topic.

Offline Dabbot

  • Regular Contributor
  • *
  • Posts: 192
  • Country: au
Re: Reading ADC when the VDD is not fixed
« Reply #25 on: October 31, 2020, 01:35:16 am »
Table 14-8 Parameter AD08 has a requirement that the source resistance, as seen by the ADC, be, at most, 10k Ohms.

http://ww1.microchip.com/downloads/en/devicedoc/41203d.pdf

The Comparators have an internal Vref that is ratiometric with Vcc.  I haven't thought through what this means but you might be able to get just a "Good"/"Low" indication.

It's just an internal resistor ladder between VDD and ground. See page 64 of the PDF you linked. It's not an independent reference.
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9914
  • Country: us
Re: Reading ADC when the VDD is not fixed
« Reply #26 on: October 31, 2020, 02:13:25 am »
Table 14-8 Parameter AD08 has a requirement that the source resistance, as seen by the ADC, be, at most, 10k Ohms.

http://ww1.microchip.com/downloads/en/devicedoc/41203d.pdf

The Comparators have an internal Vref that is ratiometric with Vcc.  I haven't thought through what this means but you might be able to get just a "Good"/"Low" indication.

It's just an internal resistor ladder between VDD and ground. See page 64 of the PDF you linked. It's not an independent reference.

And that's why they call it 'ratiometric'.
 

Online wraper

  • Supporter
  • ****
  • Posts: 17314
  • Country: lv
Re: Reading ADC when the VDD is not fixed
« Reply #27 on: October 31, 2020, 02:28:33 am »
Table 14-8 Parameter AD08 has a requirement that the source resistance, as seen by the ADC, be, at most, 10k Ohms.

http://ww1.microchip.com/downloads/en/devicedoc/41203d.pdf

The Comparators have an internal Vref that is ratiometric with Vcc.  I haven't thought through what this means but you might be able to get just a "Good"/"Low" indication.

It's just an internal resistor ladder between VDD and ground. See page 64 of the PDF you linked. It's not an independent reference.

And that's why they call it 'ratiometric'.
And that's why it will result in the same reading regardless of voltage if you try to measure Vdd. What's the point of making ratiometric measurement of voltage which is used as ratiometric reference of ADC? Their ratio will always remain the same regardless of Vdd.
« Last Edit: October 31, 2020, 02:31:39 am by wraper »
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13840
  • Country: gb
    • Mike's Electric Stuff
Re: Reading ADC when the VDD is not fixed
« Reply #28 on: October 31, 2020, 11:26:06 am »
The PIC16F153xx for example has an internal reference, programmable to 1.024,2.048 or 4.096V.
Sleep current typ 60nA with everything off, 0.9uA with a wake-up timer running
 
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline arslan43711Topic starter

  • Contributor
  • Posts: 19
  • Country: pk
Re: Reading ADC when the VDD is not fixed
« Reply #29 on: October 31, 2020, 05:55:47 pm »
The reason for using this micro is availability in the local market.
 

Offline IDEngineer

  • Super Contributor
  • ***
  • Posts: 1927
  • Country: us
Re: Reading ADC when the VDD is not fixed
« Reply #30 on: November 01, 2020, 04:59:12 pm »
Be careful relying on the "voltage references" in MCU's. They generally have decent repeatability in the same device, but can have poor absolute accuracy from device to device.

I researched this rather deeply a while back and the final official word from the manufacturer (in this case Microchip, for their PIC series) was +/-7% voltage accuracy. (You get better than that from vanilla voltage regulators, and binned regulators can get under 1%.) There are some more recent units in which they are laser trimming the voltage reference so one might expect better per-device accuracy. Interestingly, they also write the correction they applied into a nonvolatile, readable area on-chip... not sure how I'd use that information unless I was trying to bin "near-process" parts for some reason.
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: Reading ADC when the VDD is not fixed
« Reply #31 on: November 01, 2020, 05:00:59 pm »
Digital calibration is easy, so why bothering to implement a reference with good absolute accuraccy?
 

Online wraper

  • Supporter
  • ****
  • Posts: 17314
  • Country: lv
Re: Reading ADC when the VDD is not fixed
« Reply #32 on: November 01, 2020, 05:43:58 pm »
Digital calibration is easy, so why bothering to implement a reference with good absolute accuraccy?
To avoid another manufacturing step. There are $0.30 MCUs with +/- 1.8% reference in entire operating temperature and voltage range. https://eu.mouser.com/ProductDetail/Silicon-Labs/EFM8BB10F2I-A-QFN20?qs=G1ssh2j%252Bqz4q0w05PnPgQQ%3D%3D

« Last Edit: November 01, 2020, 08:17:05 pm by wraper »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf