1) Digital-to-Analog Conversion (D/A conversion)
2) Analog-to-Digital Conversion (A/D conversion)
�
1
Analog Signals vs. Digital Signals
2
Analog Signals vs. Digital Signals
TTL = Transistor-to-Transistor Logic
CMOS = Complementary Metal Oxide Semiconductor Logic
ECL = Emitter-Coupled Logic
3
Digital-to-Analog Conversion (D/A)
4
Digital-to-Analog Conversion (D/A)
0 = 00000000 -> 0V
63 = 00111111 -> +1.25V
127 = 01111111 -> +2.5V
255 = 11111111 -> +5V
Lecture #18
ECE 3430 – Intro to Microcomputer Systems
Fall 2014
5
Voltage is proportional
to number magnitude.
�Dividing number by two
will divide the output voltage
in half.
Digital-to-Analog Conversion (D/A)
frolloff = 1/(2*π*R*C)
where: R = resistor value (Ohms)
C = capacitor value (Farads)
Lecture #18
ECE 3430 – Intro to Microcomputer Systems
Fall 2014
6
Digital-to-Analog Conversion (D/A)
7
Digital-to-Analog Conversion (D/A)
So, does the frequency matter at all?
8
Digital-to-Analog Conversion (D/A)
0% duty cycle -> 0V
25% duty cycle -> +1.25V
50% duty cycle -> +2.5V
100% duty cycle -> +5V
How would you recommend we generate a waveform with fixed
frequency and variable duty cycle in the MSP430?
9
Digital-to-Analog Conversion (D/A)
A parallel D/A converter:
10
Parallel Digital Input
(n-bit input)
Analog Output
D/A
Vref
Digital-to-Analog Conversion (D/A)
R-2R ladder:
11
Digital-to-Analog Conversion (D/A)
00000001 -> ~0.02V
00000010 -> ~0.04V
11111111 -> +5V
Granularity in the output voltages. What if we needed 0.03V?
11111111).
periodic waveform.
For the serial, PWM D/A, why not use a large capacitor to establish a low
rolloff frequency so we don’t have to generate such a high-
frequency square wave?
12
Analog-to-Digital Conversion (A/D)
13
Analog-to-Digital Conversion (A/D)
0V -> 0 = 00000000
+1.25V -> 63 = 00111111
+2.5V -> 127 = 01111111
+5V -> 255 = 11111111
14
Number magnitude is
proportional to input voltage.
�Dividing voltage in half will
yield a binary output half as big.
Analog-to-Digital Conversion (A/D)
Dout = Vin/Vref * (2n - 1)
Dout = (V+in - V-in)/Vref * (2n - 1)
What can be done to reduce quantization error?
15
Analog-to-Digital Conversion (A/D)
So how does an analog-to-digital converter work?
16
Analog-to-Digital Conversion (A/D)
Lecture #18
ECE 3430 – Intro to Microcomputer Systems
Fall 2014
17
Analog-to-Digital Conversion (A/D)
switched-capacitor DAC scheme instead of an older R-2R DAC
approach.
(sometimes called Delta-Sigma) A/D converter scheme.
18
Analog-to-Digital Conversion (A/D)
Another alternative…
Flash ADC:
or any time rapid conversions are
required.
19
A/D and D/A General Issues
A/D and D/A General Issues:
20
A/D and D/A Uses
21
A/D and D/A Uses
22
A/D and D/A Uses
not meet the electrical requirements for the transducer.
to these analog signals.
nearby analog voltages.
23
The MSP430 (D/A and A/D)
24