Professional Documents
Culture Documents
MSB D2
Digital Input D1
LSB D0
Figure shows a block diagram of a 3 bit D/A converter; it has three digital input lines (D2, D1, D0) and one output line for the analog signal. The three input lines can Analog Output assume eight input D/A Conveter combinations from 000 to 111. If the input ranges from 0 to 3 Bit D/A converter 1 V, it can be divided into eight equal parts; each successive input is 1/8V higher than the previous combination
Digital-to-Analog Conversion
2 Basic Approaches
Weighted Summing Amplifier R-2R Network Approach
Q1. Write a program to generate a triangular wave? Q2. Write a program to generate a square wave of particular frequency? Q3. Write a program to generate a saw tooth wave? Q4. Write a program to generate a ramp wave?
Digital-Ramp ADC
Conversion from analog to digital form inherently involves comparator action where the value of the analog voltage at some point in time is compared with some standard. A common way to do that is to apply the analog voltage to one terminal of a comparator and trigger a binary counter which drives a DAC.
Digital-Ramp ADC
Digital-Ramp ADC
The output of the DAC is applied to the other terminal of the comparator. Since the output of the DAC is increasing with the counter, it will trigger the comparator at some point when its voltage exceeds the analog input. The transition of the comparator stops the binary counter, which at that point holds the digital value corresponding to the analog voltage.
Flash ADC
It is the fastest type of ADC available, but requires a comparator for each value of output. (63 for 6-bit, 255 for 8-bit, etc.) Such ADCs are available in IC form up to 8-bit and 10-bit flash ADCs (1023 comparators) are planned. The encoder logic executes a truth table to convert the ladder of inputs to the binary number output.
Illustrated is a 3-bit flash ADC with resolution 1 volt
ADC080x Features
Compatible with 8080 P derivativesno interfacing logic needed - access time 135 ns. Easy interface to all microprocessors, or operates stand alone Differential analog voltage inputs Logic inputs and outputs meet both MOS and TTL voltage level specifications Works with 2.5V (LM336) voltage reference On-chip clock generator 0V to 5V analog input voltage range with single 5V supply No zero adjust required
ADC080x, interfacing
Interfacing Application
To control the temperature of heater
PROJECT DISCRIPTION
It sense the temperature and on/off the heater accordingly. The sensing circuitry may consist of resistance thermometer, thermocouples, thermisters, pyrometers place in the arm of wheatstone bridge. A change in temperature causes a change in resistance giving a voltage that is proportional to the change in temperature
Thermocouples are widely used transducers to measure the temperature. The o/p of thermocouple is proportional to the temperature of heater in microvolts. This voltage is amplified by multistage amplifier and then A/D converter. 8085 sends a SOC signal to A/D converter via 8255.
After the conversion an EOC signal is given to the microprocessor. Then the microprocessor reads the o/p as digital quantity proportional to the temperature to be measured.
HARDWARE
thermocouple t DB0-DB7 PORTA
3stage amplifier
ADC EOC
8255
MPU
PC7
SOC
PC3
FLOWCHART
PROGRAM
MVI A, 91H OUT CWR ;INITIALIZE 8255 L2:CALL CONVERSION CPI 80H ; COMPARE WITH SET POINT JC L1 MVI A,0EH ; RESET PC7,HEATER OFF WITH BSR MODE OUT CWR JMP L2 L1: MVI A,0FH ; SET PC7, HEATER ON WITH BSR MODE OUT CWR JMP L2
MVI A,00H OUT PB ; SEND ADDRESS TO SELECT I/P 0 MVI A,08H ;LATCH ADDRESS BY ALE=1 OUT PB MVI C,0AH L3: DCR C JNZ L3;DELAY MVI A,18H OUT PB ; MAKE SOC HIGH MVI A,08H ; MAKE SOC LOW OUT PB
CONVERSION: