Professional Documents
Culture Documents
We have two methods in which can be used An A/D Converter converts a voltage linearly
for A/D Conversion. between VREFLO and a VREFHI voltage in 2n
1. Using an external A/D Converter. Interface the steps.
input signal into this device. Connect the For example, a 3 bit converter will convert a
converter binary output to the input of a
voltage between VREFLO = 0V and VREFHI =
microcontroller.
1V.
2. Use the on board A/D Converter. (The
ATMega2560 already consists of a A/D
Converter).
3 4
1
19/05/2019
M = 3 (Resolution in Bits
N = 8 (Number of voltage intervals)
EFSR = VREFHI – VREFLO = 0 – 1 = 1V (Full scale voltage range)
Q=EFSR / N = 1/8 = 0.125V
Therefore, each bit is a resolution of 0.125V
5 6
This type uses a D/A converter as part of its feedback loop. It’s Integrating A/D Converter
design is simple and is easily constructed.
The start command causes the counter to be reset, which in
turn causes the D/A output to fall to zero. The clock is gated
into the counter which counts up towards full scale. The D/A -
output rises with each clock pulse until it is equal to or greater +
than the analog input. It is then that the comparator output
switches and stops the counter. The digital number in the
counter is the digital value of the input voltage.
This type of system is inherently slow in operation, as it must
increment the D/A output from zero up to the unknown level.
7 8
2
19/05/2019
3
19/05/2019
Show the internal workings of the Successive Approximation Parallel A/D Converter
Register by going through each step from 128 up and indicating
the value of the comparator and digital output.
Vin = 2.8V
A/D = 8 Bit Converter
Span = 10V
Consider That:
If Vin > VDAoutput then Comp Out = 1
If Vin < VDAoutput then Comp Out = 0
4
19/05/2019
17 18
19 20
5
19/05/2019
21 22
23 24
6
19/05/2019
27 28
7
19/05/2019
29 30
31 32