LabReport
LabReport
Experiment:
Build a 5-bit SAR ADC
Objective:
We have to build a 5-bit SAR ADC.
Equipment Used:
• IC7474 × 12 (D-flip flop)
• Op-amp (LM358)
• 2KΩ × 6, 1KΩ × 4
• Breadboard × 3
Circuit Diagram:
The circuit used for the above circuit is given below.
SAR ADC
Sample and hold circuit
The above circuit diagram shows the Sample and hold component,SAR component
and DAC component, the circuits used for them are
Q0 Q1 Q2 Q3 Q4
DAC
Theory:
Let’s start with the simplest circuit, the DAC, when Q0 is high at voltage V0
+V0
2kΩ
1kΩ 1kΩ 1kΩ 1kΩ
Vout (VDAC )
We get Vout as
V0
Vout =
16
Similariy when Q0 ,Q1 ,Q2 ,Q3 and Q4 are at high voltages of V0 , we get Vout as
1 1 1 1
Vout = V0 + + + +1
16 8 4 2
Depending on the output of the SAR Control logic different outputs are fed into the
comparator which then compares it the quantized and sampled signal and produces the
output to the SAR Control logic which generates a new digital output and the loop goes
on.
The sample and hold circuit works on the basis of the control signal given to it which
switches on and of based on the output of the op-amp.
• Then connect the DAC part of the circuit along the outputs and the bulbs.
• Now connect the input side of the circuit starting with the Sample and Hold com-
ponent. Give the output of this comparator and feed the output back to the SAR
control logic.
• Now test the circuit by giving different DC inputs to capture the Digital output.
The working of the SAR ADC can be explained by the following flowchart
Working Example:
Suppose a five-bit SAR ADC. An analog voltage signal of 19 volts is applied at the input.
Vin = 19V
Initial Condition:
The operation starts by clearing all the bits in SAR. Let’s suppose Q is the output, since
it is a 5-bit ADC, the output will have five bits from Q0 to Q4. Initially, the contents in
successive approximation register (SAR) are given below:
Q = [00000]
VDAC = 0V
Vin > VDAC
Vcomp = high
Intial Condition
The outputs of the circuits during this clock cycle are given below.
Q = [10000]
VDAC = 16V
Vin > VDAC
Vcomp = high
Q = [11000]
VDAC = 24V
Vin < VDAC
Vcomp = low
In this clock cycle, the output of the comparator goes low. The n-1 bit is set to a low
value.
Q = [10100]
VDAC = 20V
Vin < VDAC
Vcomp = low
In this clock cycle, the output of the comparator goes low. The n-2 bit is set to a low
value.
Q = [10010]
VDAC = 18V
Vin > VDAC
Vcomp = high
In this clock cycle, the output of the comparator goes high. The n-3 bit is set to a high
value.
Fourth Clock Cycle
Q = [10011]
VDAC = 19V
At the end of the conversion, the input of the DAC is equal to the output of the DAC.
We can understand how the SAR ADC works from the above example.
Conclusion:
In this report, we successfully designed and analysed the working of a Successive approx-
imation register(SAR) ADC. The above ADC can be used in communication systems
where an input analog signal needs to be converted into a digital signal. SAR ADC also
has a high accuracy compared to other ADCs. The circuit is simple compared to other
ADCs.