Date post: | 18-Jan-2016 |
Category: |
Documents |
Upload: | adelia-copeland |
View: | 215 times |
Download: | 0 times |
PREPARED BY PREPARED BY V.SANDHIYAV.SANDHIYA
LECT/ ECELECT/ ECE
UNIT- 3
APPLICATIONS OF OP-AMP
1
2
Analog to Digital ConversionAnalog to Digital Conversion
ADC EssentialsADC Essentials
A/D Conversion TechniquesA/D Conversion Techniques
Interfacing the ADC to the IBM PCInterfacing the ADC to the IBM PC
DAS (Data Acquisition Systems)DAS (Data Acquisition Systems)
How to select and use an ADCHow to select and use an ADC
A low cost DAS for the IBM PCA low cost DAS for the IBM PC
3
Why ADC ?Why ADC ?
Digital Signal Processing is more popular Easy to implement, modify, … Low cost
Data from real world are typically Analog Needs conversion system
from raw measurements to digital data Consists of
Amplifier, Filters Sample and Hold Circuit, Multiplexer ADC
4
ADC EssentialsADC Essentials
Basic I/O Relationship ADC is Rationing
System x = Analog input /
Reference• Fraction: 0 ~ 1
n bits ADC Number of discrete output
level : 2n
Quantum LSB size Q = LSB = FS / 2n
Quantization Error 1/2 LSB Reduced by increasing n
5
Analog Input SignalAnalog Input Signal
Typically, Differential or Single-ended input signal of a single polarity
Typical Input Range 0 ~ 10V and 0 ~ 5V
If Actual input signal does not span Full Input range
Some of the converter output code never used
Waste of converter dynamic range
Greater relative effects of the converter errors on output
Matching input signal and input range Prescaling input signal
using OP Amp In a final stage of
preconditioning circuit By proportionally
scaling down the reference signal
If reference signal is adjustable
6
Converting bipolar to unipolarConverting bipolar to unipolar
Using unipolar converter when input signal is bipolar Scaling down the input Adding an offset
Bipolar Converter If polarity information in
output is desired Bipolar input range
Typically, 0 ~ 5V
Bipolar Output 2’s Complement Offset Binary Sign Magnitude …
Input signal is scaled and an offset is added
scaled
Addoffset
7
Outputs and Analog Reference SignalOutputs and Analog Reference Signal I/O of typical ADC
ADC output Number of bits
8 and 12 bits are typical 10, 14, 16 bits also available
Typically natural binary BCD (3½ BCD)
• For digital panel meter, and digital multimeter
Errors in reference signal From
Initial Adjustment Drift with time and
temperature
Cause Gain error in Transfer
characteristics To realize full accuracy of
ADC Precise and stable
reference is crucial Typically, precision IC
voltage reference is used• 5ppm/C ~ 100ppm/C
8
Control SignalsControl Signals
Start From CPU Initiate the conversion
process BUSY / EOC
To CPU Conversion is in
progress 0=Busy: In progress 1=EOC: End of
Conversion
HBE / LBE From CPU To read Output word
after EOC HBE
• High Byte Enable LBE
• Low Byte Enable
9
A/D Conversion TechniquesA/D Conversion Techniques
Counter or Tracking ADC Successive Approximation ADC
Most Commonly Used Dual Slop Integrating ADC Voltage to Frequency ADC Parallel or Flash ADC
Fast Conversion Software Implementation Shaft Encoder
10
Counter Type ADCCounter Type ADC Block diagram
Waveform
Operation Reset and Start Counter DAC convert Digital output
of Counter to Analog signal Compare Analog input and
Output of DAC Vi < VDAC
• Continue counting Vi = VDAC
• Stop counting Digital Output = Output of
Counter Disadvantage
Conversion time is varied 2n Clock Period for Full
Scale input
11
Tracking Type ADCTracking Type ADC
Tracking or Servo Type Using Up/Down
Counter to track input signal continuously
For slow varying input
Can be used as S/H circuit By stopping desired
instant Digital Output Long Hold Time
Disabling UP (Down) control, Converter generate Minimum (Maximum)
value reached by input signal over a given period
12
Successive Approximation ADCSuccessive Approximation ADC
Most Commonly used in medium to high speed Converters
Based on approximating the input signal with binary code and then successively revising this approximation until best approximation is achieved
SAR(Successive Approximation Register) holds the current binary value
Block Diagram
13
Successive Approximation ADCSuccessive Approximation ADC
Circuit waveform
Logic Flow
Conversion Time n clock for n-bit ADC Fixed conversion time
Serial Output is easily generated Bit decision are made
in serial order
14
Dual Slope Integrating ADCDual Slope Integrating ADC Operation
Integrate Reset and integrate Thus
Applications DPM(Digital Panel Meter),
DMM(Digital Multimeter), …
Excellent Noise Rejection High frequency noise
cancelled out by integration Proper T1 eliminates line
noise Easy to obtain good
resolution Low Speed
If T1 = 60Hz, converter throughput rate < 30 samples/s
1
0
T
iv dt2
0
t
rV dt1 ( ) 2i AVG rT v t V
2( )
1i AVG r
tv V
T
15
Voltage to Frequency ADCVoltage to Frequency ADC
VFC (Voltage to Frequency Converter) Convert analog input
voltage to train of pulses Counter
Generates Digital output by counting pulses over a fixed interval of time
Low Speed Good Noise Immunity High resolution
For slow varying signal With long conversion
time Applicable to remote data
sensing in noisy environments Digital transmission
over a long distance
16
Parallel or Flash ADCParallel or Flash ADC
Very High speed conversion Up to 100MHz for 8 bit
resolution Video, Radar, Digital
Oscilloscope Single Step Conversion
2n –1 comparator Precision Resistive
Network Encoder
Resolution is limited Large number of
comparator in IC
Homework #5-1 어떻게 동시에 비교가
되는지를 설명하라 .
17
Interface SoftwareInterface Software
Memory Mapped Transfers ADC is assigned in
Memory Space MRD, MWR signal MOV instruction
More complex decoding logic
I/O Mapped Transfers ADC is in I/O Space
IOR, IOW signal IN, OUT instruction
More Simple decoding logic
DMA (Direct Memory Access) CPU release system bus
by the request of DMA DMA controller carried out
data transfer by generating the required addresses and control signals
The system bus control reverts back to CPU when data transfer is finished
DMA is useful High Speed High volume data transfer
Disk Drive interface
18
DAS (Data Acquisition System)DAS (Data Acquisition System)
DAS performs the complete function of converting the raw outputs from one or more sensors into equivalent digital signals usable for further processing, control, or displaying applications
Applications Simple monitoring of a
single analog variable Control and Monitoring
of hundreds of parameters in a nuclear plant
19
Single Channel SystemSingle Channel System
Transducer Generate signal of low
amplitude, mixed with undesirable noise
Amplifier, Filters Amplify Remove noise Linearize
S/H (Sample and Hold) Reduce uncertainty error
in the converted output when input changes are fast compared to the conversion time
In Multi-channel system To hold a sample from
one channel while multiplexer proceed to sample next one
Simultaneous sampling of two signal
20
Sample and Hold CircuitsSample and Hold Circuits
Care in selecting hold capacitor Ch Low Value
Reduces acquisition time Increase Droop
High Value Minimize Droop Increase acquisition time
Choose capacitor to get a best acquisition time while keeping the droop per conversion below 1 LSB
21
Multi-channel SystemMulti-channel System
Analog multiplexer and a ADC Low cost
Local ADCs and digital multiplexer Higher sampling rate
22
How to select and use an ADCHow to select and use an ADC
Range of commercially available ADCs
Guidelines for using ADCs Use the full input range
of the ADC Use a good source of
reference signal Look out for fast input
signal changes Keep analog and digital
grounds separate Minimize interference
and loading problem
23
Commercially available monolithic Commercially available monolithic ADCsADCs
24
Commercially available hybrid ADCsCommercially available hybrid ADCs
25
Accuracy CalculationAccuracy Calculation
Better than 1% accuracy is ensured Actual accuracy with smooth input signal at room
temperature will be better than 0.5%