# Microcontroller ADC reading?

Discussion in 'Microcontrollers, Programming and IoT' started by eem2am, May 14, 2013.

1. ### eem2am

422
0
Aug 3, 2009
Hello,

We are reading a voltage rail with the on-chip ADC of the SAM3N00B microcontroller via a potential divider.
We are trying to assess what is the maximum allowable Ohmic value of the upper divider resistor.
The ADC reading will draw some current through this upper divider resistor, so we must not make this resistor too big, otherwise it will affect the potential divider voltage reading.

Do you know what is the current drawn by the ADC when an ADC reading is taken?

SAM3N00B MICROCONTROLLER DATASHEET:
http://www.atmel.com/Images/doc11011.pdf

2. ### BobK

7,682
1,688
Jan 5, 2010
It should be in the spec sheet somewhere. But anyway, use a capacitor across the lower leg of the divider (about 100n) this will make the impedance very low.

Bob

3. ### (*steve*)¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥdModerator

25,497
2,839
Jan 21, 2010
Only for transient events. Doesn't help much for constant current draw.

A simple rule of thumb is to have 10 times the current flowing through the voltage divider than the current you wish to draw. That gives you an output voltage within about 10% of what you calculate. Is 10% ok?

If the current is constant (or nearly constant), you can factor it in to your calculations.

4. ### KrisBlueNZSadly passed away in 2015

8,393
1,271
Nov 28, 2011
I agree with BobK. If the ADC uses a switched capacitor architecture, the actual DC current flowing into the input will be fairly low. (But as Bob said, check the specs.) What's important is that the input has a low impedance at AC, so that the spikes of current caused by the capacitor switching will not make it jump around. As long as the voltage isn't changing quickly, I would use a 100nF capacitor across it. But don't use a MLCC! They're not too bad for decoupling supply rails, but when performance is important, they're crap.

5. ### BobK

7,682
1,688
Jan 5, 2010
Yes, the capacitor is there to provide the burst of current needed when the ADC is sampling. This is standard practice with microcontroller ADCs. There is effecitively no current draw at other times.

Bob

6. ### gorgon

603
24
Jun 6, 2011
It's still on page 719 in the datasheet, and you need to make some calculations to define the max resistance you may use.

Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Continue to site