


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions for eecs 145m spring 2008 midterm #1, covering topics such as the operation of a successive-approximation a/d converter, connecting components for analog-to-digital conversion, and measuring transition voltages. It includes detailed steps and diagrams.
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



1 Successive-approximation A/D converter operation
(1) set all bits zero, and bit counter i = N
(2) set bit i to one
(3) send all bits to D/A converter, output = V 0
(4) Use comparator to compare input V 1
and D/A output V 0
(5) if V 1
0
set bit i to zero
(6) decrease bit counter: i = i –
(7) loop back to step (2) until all bits have been determined
See Figures 3.16 and 3.17 on page 169 of the textbook
[3 points off for not describing how the binary search is done]
[3 points off for not including the D/A converter or comparator- you cannot directly
compare an analog input with a digital value]
Parallel
Output
Port 1
Parallel
Input
Port
Converter
Micro-
Computer
Analog
Parallel
Output
Port 2
SC 1
SC 8
tri-state 1
tri-state 8
OE 1
OE 8
Parallel
Input
Port
OA 8
OA 1
SC = Start Conversion
DA=Data Available
OE=Output Enable
The following are essential [3 points off for each omitted]:
Note: S/H amplifiers are not needed since the D/A can provide the hold
12 bits in parallel)
combined with next signal)
was essential)
completed conversion
2.2 The steps needed to measure the first transition voltage V(0,1) for the first A/D
converter.
1 set SC1 low, disable all tri-state drivers, set N = 0 (16 bits)
2 Put N on D/A
3 wait 10 μs until D/A has settled [using wait(10)]
4 Put low-high edge on SC1 output line to start conversion
5 Wait until output data available
6 enable tri-state 1 (disable all others)
7 read input port to get value M
8 Put high-low edge on SC1 output port to end conversion cycle
9 if M=0, increase N by one and loop back to step 2
10 If M=1, save (D/A voltage step)(N-1/2) as the transition voltage
[3 points off for writing to D/A and reading a value from A/D but not determining V(0,1)]
2.3 Send successive 16-bit numbers 0 to 2
–1 to the D/A converter and convert the analog
output with the A/D. Whenever the A/D output value changes, store the corresponding D/A
value in a transition voltage table
Determine the D/A values corresponding to first and last A/D transition voltages, and the
equation of the line that passes through them. Linearity is a measure of how closely the
other measured transition values pass through the line.
[2 points off for determining maximum differential linearity or maximum absolute accuracy]
2.4 The method can determine the A/D accuracies to 1/16 LSB (±1/32 LSB was OK).
Note that 1 A/D LSB = 16 D/A LSBs.
[5 points off for an answer of 1/2 or 1 A/D LSB]
The highest frequency is given by the frequency limit of counter 2, which is 100 MHz
Since the edges on C and the 100 MHz pulses are not synchronized, counter 1 could vary by one
count from measurement to measurement even if the input frequency did not change. So the
uncertainty in counter 1 is 1 part in 100 million. There is no uncertainty in counter 2 – all pulses
are counted exactly.
At 1 Hz the uncertainty is 10
Hz
At 100 MHz, the uncertainty is 1 Hz
EECS145M Midterm #1 class statistics:
Problem max average rms
total 100 77.2 13.
Grade distribution:
Range number approximate
letter grade