ece-l304 lecture 3
TRANSCRIPT
![Page 1: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/1.jpg)
ECE-L304 LECTURE 3
Review of Step 2
Introduction to Step 3
Tech Notes
![Page 2: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/2.jpg)
Step 2 Review
ADC and display are assembled
Table of dc tests
Observation of performance on logic analyzer
Comparison of predicted and measured timing
Report writing completed
Please put all authors last names in filename for submission
ECE-L304 Lecture 3 2
![Page 3: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/3.jpg)
Step 2 Review
Step 3 can not begin until the Step 2
circuit is complete and operational
Donβt continue if your TA has not checked
your ADC circuit hardware
ECE-L304 Lecture 3 3
![Page 4: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/4.jpg)
Step 2 Deliverables
A functioning circuit
Graded on output, neatness
Your circuit must be checked out by your TA
Report
See details in lab instructions
ECE-L304 Lecture 3 4
![Page 5: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/5.jpg)
Step by Step
Step 1 Review of ADC and DAC
Step 2 Building the ADC Circuit
Step 3 Build the DAC Circuit
Step 4 Introduce Static RAM
Step 5 Build the On-Board Clock
Step 6 Introduce Control Logic
Step 7 Final Changes
ECE-L304 Lecture 3 5
![Page 6: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/6.jpg)
This Week
Step 3 Prelab
Read the DAC0808 datasheet
Review Figure 1 on datasheet
Step 3 Lab
Add a DAC to the data bus
Observe DC input and DC output
ECE-L304 Lecture 3 6
![Page 7: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/7.jpg)
Figure 1 DAC 0808
ECE-L304 Lecture 3 7
![Page 8: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/8.jpg)
Step 3 Lab - Add the DAC
ECE-L304 Lecture 3 8
ADC RAM DAC
Control
8 8
Data Bus
![Page 9: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/9.jpg)
Step 3 LabE
CE
-L304 L
ecture 3
9
8-pin header
Data Bus Test Port
Resistor
Array
LED
Array
Timing & Filter
Components
Self-ClockedADC
DAC
External Components
![Page 10: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/10.jpg)
A Digital to Analog Convertor DAC0808
An external reference voltage is used in
conjunction with resistor R14 to establish a
reference current.
Full scale current is adjusted by setting all
digital inputs high and adjusting VREF and/or R14
until IOUT = IFS.
The DAC output voltage is generated across RL
at pin 4, where the total current (Io) flows into
pin 4. Hence, the DAC output is Vo = - RL Io
The resistor tied to pin 15 is to temperature
compensate the bias current and may not be
necessary for all applications.
πΌ0 =ππ πΈπΉπ 14
π΄12+π΄24+π΄38+π΄416
+π΄532
+π΄664
+π΄7128
+π΄8256
![Page 11: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/11.jpg)
DAC Circuit - As Given
ECE-L304 Lecture 311
π0 = πππππ΄12+π΄24+π΄38+ β β +
π΄8256
![Page 12: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/12.jpg)
DAC Circuit - As Modified
ECE-L304 Lecture 3 12
Our Modification
R14, R15 and
RLOAD = 5 k
VREF = Vcc = 5.12 V
![Page 13: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/13.jpg)
DAC CircuitE
CE
-L304 L
ecture 3
13
![Page 14: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/14.jpg)
DAC Circuit
Two external resistors, load resistor
Mounted to board
One external capacitor
Mounted to board
Negative 15 V power supply
Reference voltage
Connect Vref to Vcc
ECE-L304 Lecture 3 14
![Page 15: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/15.jpg)
-15 V Vee Supply
ECE-L304 Lecture 3 15
+5.12V +15V
Vcc Vee
![Page 16: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/16.jpg)
-15V Vee Supply
ECE-L304 Lecture 3 16
CH 1 CH 2CH Set to
1 +5 V
2 +15V
-15V
GND
+5V
![Page 17: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/17.jpg)
DAC Circuit
ECE-L304 Lecture 3 17
πΌ0 = πΎπ΄12+π΄24+π΄38+π΄416
+π΄532
+π΄664
+π΄7128
+π΄8256
Where K=ππ πΈπΉ
π 14
πππ’π‘ = βπΌ0π πΏπππ
πππ’π‘ = βπ πΏππππ 14
ππ πΈπΉπ΄12+π΄24+βββ+
π΄7128
+π΄8256
![Page 18: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/18.jpg)
Step 3 TestingPurpose
Test functionality of DAC design
How?
As was done in the simulation in Step 1, we will compare
the DAC output to the analog input
Input a low frequency 0 - 5 V ramp to the ADC, view the ADC
input and DAC output on the scope
Use scope to measure and record the quantization step
duration of the DAC output. Compare to the INTR_
interrupt period measured in Step 2
Use the scope to test the frequency limits of the circuit
ECE-L304 Lecture 318
![Page 19: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/19.jpg)
Time and Voltage Quantization
ECE-L304 Lecture 3 19
time
Vin
(V
)Vout
(V)
Ideal Case
![Page 20: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/20.jpg)
Time and Voltage Quantization
ECE-L304 Lecture 3 20
time
Vin
(V
)Vout
(V)
Real Case
Voltage
resolution
Time resolution
![Page 21: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/21.jpg)
Frequency Limit
Theory says that we must capture at least two samples per cycle of
a periodic input waveform
ππ β₯ 2π΅ β ππ β€
ππ
2where ππ =
1
π΅
where fs is the sampling frequency and B is bandwidth of the sampled
signal
In self-clocked mode, the ADC capture frequency is set by itβs
internal clock
As the input frequency increases, you will reach a point where
ADC no longer captures 2 samples per cycle. Find this frequency.
ECE-L304 Lecture 3 21
![Page 22: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/22.jpg)
Under-sampling and AliasingThe higher the frequency content of the signal, the higher the sampling rate
should be to preserve the full information in the signal. It is necessary to
sample at least at twice the maximum frequency of the signal.
The Sampling Theorem states that a signal can be exactly reproduced if it is
sampled at a frequency Fs, where Fs is greater than twice the maximum
frequency in the signal, which is known as the Nyquist rate..
If the signal is sampled at a frequency that is lower that the Nyquist rate,
when converted back into a continuous time signal, it will exhibit a
phenomenon called aliasing.
Aliasing is the presence of unwanted components in the reconstructed
signal which were not present when the original signal was sampled.
The process of aliasing describes the phenomenon in which components of
the signal at high frequencies are mistaken for components at lower
frequencies.
![Page 23: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/23.jpg)
ECE-L304 Lecture 3 23
π
F(w)
ππππ₯βππππ₯f(t)
t
Ts
Ts
Xsampled(f)), ππ > 2ππππ₯
πβππ 2ππ ππ β2ππ 0 ππππ₯βππππ₯_
πβππ 2ππ ππ β2ππ 0 ππππ₯ππππ₯
Xsampled(f)), ππ < 2ππππ₯
Original signal and Sampled signal Spectrum of original signal
![Page 24: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/24.jpg)
Aliasing Example: Single Tone Signal
ECE-L304 Lecture 3 24
π
Xsampled(f)), ππ > 2ππππ₯
βππ 2ππ ππ β2ππ 0 ππππ₯βππππ₯
π
Xsampled(f)), ππ < 2ππππ₯
βππ
2ππ
ππ
β2ππ 0 ππππ₯βππππ₯
![Page 25: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/25.jpg)
Aliasing ExampleSampling frequency is less than
the Nyquist criteria, less than 2
samples per cycles
Sampling frequency is higher
than the Nyquist criteria, more
than 2 samples per cycles
Two different sine waves that fit the same set of samples
![Page 26: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/26.jpg)
ECE-L304 Lecture 3 26
2ππ
πm
ππ =sampling interval
ππ =message period
To avoid aliasing ππ β₯ 2ππ β 2ππ β€ π
![Page 27: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/27.jpg)
Step 3 Deliverables
Have functionality and construction
quality checked by your TA
Answer questions in the Step 3 lab
instructions
Comment on your observations
ECE-L304 Lecture 3 27
![Page 28: ECE-L304 Lecture 3](https://reader031.vdocuments.site/reader031/viewer/2022022504/6216ffd38114e57cd51a3397/html5/thumbnails/28.jpg)
Tech Notes
Remember that we replaced the opamp
in figure 1 of the DAC0808 datasheet
with a 5 k resistor. You do not need to
use an opamp in this lab.
You must connect VREF and VEE to be able
to use the DAC.
ECE-L304 Lecture 3 28