Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Many real-time systems are control systems. Example 1: A simple one-sensor, one-actuator control system
A/D A/D
y(t) sensor
rk yk
Transducer: physical variable electrical variable (analog current/voltage) (thermistor, photocell, pressure transducer, tachometers etc). Actuator: device/circuit that serves as an actuator to control the physical variable (valve, motor, etc).
DAC
Analog output = K x digital input Vout = (1V) x digital input K = a constant proportional factor K = Full-scale output / (2n 1)
DAC
Analog output = K x digital input Resolution = K /Full-Scale output % Resolution = K * 100%/ Full-Scale n is the number of bits
DAC
DAC
R/2R Ladder
R/2R Ladder
Example: Assume that Vref = 5V for the DAC R/2R Ladder. What are the resolution and full-scale output of this converter? Solution: The resolution is equal to the weight of the LSB, which can Determine by setting B = 00012 = 110 . Resolution = -5V x 1 /8 = -0.625 The full-scale output occurs for B = 11112 = 1510 Full-scale = -5V x 15/ 8 = -9.375V
R/2R Ladder
Example: A certain 8-bit DAC has a full-scale output of 2 mA and a full-scale error of 0.5% full-scale. What is the range of possible outputs for an input of 100000002?
Solution: The step size is 2 mA/255 = 7.84 A. Since 10000002 = 12810, the ideal output should be 128 x 7.84 A = 1004 A
The error ca be as mush as 0.5% x 2 mA = 10 A Thus, the actual output can be anywhere from 994 to 1014 A
R/2R Ladder
Example: A 10-bit DAC has a step size of 10 mV. Determine the full-scale Output voltage and the percentage resolution. Solution: With 10 bits, there will be 210 1 = 1023 steps of 10 mV each. The full-scale output will be therefore be: 10 mV x 1023 = 10.23 V .
Solution: The DAC has 1 10-bit input and a 10.23 V FS output. Thus, the number of total possible steps is 210 1 = 1023, So the step size = 10.23 V/1023 = 10 mV. This means that VAX in steps of 10 mV as the counter counts up from 0.
Successive-Approximation ADC
Successive-Approximation ADC
Nyguist frequency
Data-Acquisition Subsystems
Typical board
Contains ADC, DAC, and digital I/O Antialiasing filters Programmable gain amplifiers Sample/hold (one multiplexed or one per channel) Single-ended or differential input DMA control FIFO queues and buffers Timer/counters
Software
Lab Notebook Virtual Instrumentation
set timer to interrupt periodically with period T; at each timer interrupt do do analog-to-digital conversion to get y; compute control output u; output u and do digital-to-analog conversion; end do
T is called the sampling period. T is a key design choice. Typical range for T: seconds to milliseconds.
Signal-Processing Systems
Signal-processing systems transform data from one form to another.
Examples: Digital filtering. Video and voice compression/decompression. Radar signal processing.
Response times range from a few milliseconds to a few seconds.
memory
track records
track records
control status
data processor