Digital to analog Converter
Microcontroller are used in wide variety of applications like for
measuring and control of physical quantity like temperature,
pressure, speed, distance, etc.
• In these systems microcontroller generates output which is in
digital form but the controlling system requires analog signal as
they don't accept digital data thus making it necessary to use
DAC which converts digital data into equivalent analog voltage
• Digital to Analog Converter is a device used to convert digital
pulses to analog signals.
• In the figure shown, we use 8-bit DAC 0808. This IC converts
digital data into equivalent analog Current. Hence we require an
I to V converter to convert this current into equivalent voltage.
• DAC0808 provides 256 discrete voltage (or current) levels of
output.
DAC0808
• In the MC1408 (DAC0808), the digital inputs are
converted to current (Iout), and by connecting a
resistor to the Iout pin, we convert the result to
voltage.
• The total current provided by the Iout pin is a
function of the binary numbers at the D0 – D7
inputs of the DAC0808 and the reference current
(Iref), and is as follows:
• where D0 is the LSB, D7 is the MSB for the inputs,
and Iref is the input current that must be applied to
pin 14. The Iref current is generally set to 2.0 mA.
8051 Interfacing ADC
• Digital computers use binary values but in physical
world everything is Analog (continuous) eg.
Temperature, Pressure
• A physical quantity is converted into electrical
(voltage, current) signals using a device called as
Transducer (also referred as Sensors).
• We need Analog-to-Digital converter (ADC) to
translate Analog signals to Digital number so that
Microcontroller can read and process them.
• ADC0808 allows us to monitor upto 8 different
analog input channels using single chip
•
Signals for A/D Conversion
• Address Latch Enable (ALE): A LOW-TO-HIGH signal at this pin
will latch the above-selected address and selected the
respective channel for ADC conversion.
• START Conversion (SC): The A/D converter‟s successive
approximation register (SAR) is reset on the positive edge of the
start conversion (SC) pulse. Thus we need to generate a LOW-
HIGH pulse for starting the ADC conversion.
• End of Conversion (EOC): Once the conversion is over, this pin is
pulled HIGH by ADC0808. This pin needs to be monitored for
the conversion to complete and then read the data.
• Output Enable(OE): ADC0808 does the A/D conversion and holds
the data in the internal registers. A HIGH signal on this pin will
bring the data on the output lines.