Beruflich Dokumente
Kultur Dokumente
Elements
Signal Conversion/Processing Element
• Both data about the physical world and control signals sent
to interact with the physical world are typically “Analog"
or continuously varying quantities.
• Audio
– Speech recognition
– special effects (reverb, noise cancellation, etc)
• Video
– Filtering
– Special effects
– Compression
• Data logging
7
Vocabulary
• ADC (Analog-to-Digital Converter) – converts an analog
signal (voltage/current) to a digital value
• DAC (Digital-to-Analog Converter) – converts a digital
value to an analog value (voltage/current)
• Sample period – for ADC, time between each conversion
– Typically, samples are taken at a fixed rate
• Vref (Reference Voltage) – analog signal varies between 0
and Vref, or between +/- Vref
• Resolution – number of bits used for conversion (8 bits, 10
bits, 12 bits, 16 bits, etc).
• Conversion Time – the time it takes for a analog-to-digital
conversion
8
Digital-to-Analog Conversion [DAC]
V 0.2 9
Sampling
10
Sample and Hold
11
Quantisation
12
Quantisation and Max.% of Error
13
Digital-to-Analog Conversion
• When data is in binary form, the 0's and 1's may be of
several forms such as the TTL form where the logic zero
may be a value up to 0.8 volts and the 1 may be a voltage
from 2 to 5 volts.
Operational
Amplifier can be
used to sum
voltages.
From http://www.allaboutcircuits.com
V 0.2 21
DAC Architecture (cont)
Note ratios of
resistors
22
DAC Architecture (cont)
1. Digital-Ramp ADC
2. Successive Approximation ADC
3. Flash ADC
1.Digital-Ramp ADC
• Conversion from analog to digital form inherently involves
comparator action.
• Multiple-input/multiple-output device.
33
Encoders vs. Decoders
Decoder Encoder
I0 I1 I2 I3 I4 I5 I6 I7 Y2 Y1 Y0
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
35
8-to-3 Encoder Implementation
I0
• Simplified implementation: Y2
- From the truth table I1
Y0 = I1 + I3 + I5 + I7 I2
Y1 = I2 + I3 + I6 + I7
Y2 = I4 + I5 + I6 + I7 I3 Y1
• Limitations : I4
- I0 has no effect on the output
- Only one input can be activated I5
• Application: I6 Y0
Handling multiple devices requests
But, no simultaneous requests. I7
36
Computer and Microcontroller
Systems
V 0.2 39
THE END
40