Professional Documents
Culture Documents
(ADC/DAC)
Data Handling Systems
• Both data about the physical world and control
signals sent to interact with the physical world are
typically "analog" or continuously varying quantities.
• In order to use the power of digital electronics, one
must convert from analog to digital form on the
experimental measurement end and convert from
digital to analog form on the control or output end of
a laboratory system.
Data Collection and Control
Data Acquisition System
Analog Signal
Signal Conditioner
ADC
Digital
Communication
Processing
Analog vs. Digital Signal
• Analog signals:
– Continuous, expressed in decimal system
– No limitation on the maximum/minimum value
– Can not be processed by computer
• Analog data (All values on the time and amplitude are allowed).
ADC
A series of “snapshots”
Analog to Digital Overview
Sampling Rate
How often analog signal is measured
[samples per second, Hz]
Example: 44,100 Hz
Sampling Resolution
[a.k.a. “sample word length,” “bit depth”]
Precision of numbers used for measurement: the
more bits, the higher the resolution.
Example: 16 bit
Sampling Rate
Determines the highest frequency that you can represent with a digital
signal.
Nyquist Theorem:
Sampling rate must be at least twice as high as the highest frequency you want
to represent.
Capturing just the crest and trough of a sine wave will represent the wave
exactly.
Aliasing
What happens if sampling rate not high enough?
looks like …
7
6
5
Amplitude
4
3
2
1
0
Time — measure amp. at each tick of sample clock
A rough approximation
4-bit Quantization
A 4-bit binary number has 24 = 16 values.
14
12
10
Amplitude
8
6
4
2
0
Time — measure amp. at each tick of sample clock
A better approximation
Quantization Noise
Round-off error: difference between actual signal and
quantization to integer values…
Chap 0 21
Converting bipolar to unipolar
• Input signal is scaled and an offset
is added
• Using unipolar converter when
input signal is bipolar Add
– Scaling down the input offset
– Adding an offset scaled
• Bipolar Converter
– If polarity information
in output is desired
– Bipolar input range
• Typically, 0 ~ 5V
– Bipolar Output
• 2’s Complement
• Offset Binary
• Sign Magnitude
• …
Chap 0 22
Introduction DAC
0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011
Digital Input Signal
Introduction to Mechatronics
Student Lecture – 10/23/06
Typical Output
DACs capture and hold a number, convert it to a
physical signal, and hold that value for a given
sample interval. This is known as a zero-order
hold and results in a piecewise constant output.
DAC
Vref
Resolution n
2
Introduction to Mechatronics
Student Lecture – 10/23/06
• Ex: Find Δvout of a DAC with a 10v reference?
• Digital-Ramp ADC
• Successive Approximation ADC
• Flash ADC
Digital-Ramp ADC
• Bipolar
• N = INT [((Vin/VR )+ ½ )2n ]
FIGURE 3.13 A generic ADC diagram, showing typical input and output signals and noting the conversion time.
DESIGN GUIDELINE