Following is some analysis for the analog input of the UNO R4. The analysis is very general, you can plug numbers for whatever board you like.
First, as always, start with the datasheet. Here are two snapshots from the RA4M1 datasheet pages 87 and 88. The first shows the clock and input impedance, the second shows the sampling time.
To help us understand what this means for our voltage measurements, here is an equivalent circuit for the part of the analog input that samples the input voltage.
Notice we have a 2.5K ohm resistor in series with the 8pF switched sampling capacitor. The time constant is of course 20 nsecs.
So how does that compare to the sampling time? The datasheet lists the conversion time as 800nsecs, and in footnote 1 it says this includes the sampling and comparison time. The clock is 64MHZ. So that probably means conversion takes14bits/64Mhz = 218 nsecs and the budget for the capacitor to charge to the input voltage is 600 nsecs.
To get an accurate reading using this input, we need that within this sampling time, the capacitor is able to charge up to within 1/2^14 of the input voltage. One part in 2^14 is 1/16,384. That is pretty small. How long will it take?
The voltage on the capacitor after some time t, is
![]()
For 14 bit resolution we want
![]()
or equivalently,
![]()
In other words we need about 10 times the RC time constant, or 200 nsecs. The chip seems to give us 600nsecs. So far, so good.
Now what happens when we add a large series resistance in front of the analog input? The data sheet recommends something like 300 ohms as a max. But let's see what really is if those numbers are right.
We know that we need 10 x RC for 14 bits. So, how much R can we have? Well that's easy, it's
![]()
So the max resistance we can put in series between the input and wherever the current comes from, is 60nsecs/8pF ~ 7.5K. The internal 2.5K resistor leaves 5K of resistance to just squeak by for 14 bits.
One last thing, pro-forma. We should ask whether the 8pF capacitor is big enough for 14 bits of precision.
A switched capacitor network has a voltage noise as least as big as
![]()
Notice that noise gets bigger when the capacitor is smaller.
For our 8pF sampling capacitor at a temperature 20C, the voltage noise works out to 21.5uV.
(Use k=8.6x10^-5 eV/T(K), T = 20C+273.15K = 293.15K and C=8pF (columbs/V) x 6.8 x 10^18 e/c)
So, how does that compare to 1 LSB with a 14 bit input, lets say with a 5V range?
Well 5V/ 2^14 is about 300uV. So we're pretty safe with that capacitor. The resistor noise for 10K is also much smaller, less than 10uV in the 100kHZ range.
Notice the manufacturer lists the quantization error as 0.5LSB, and typical overall accuracy as 1.25LSB. It seems like we should be able to get that with just a little bit of care.















