CHAPTER 5: ADC, DAC Interfacing With 8086 and Its Application

Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

CHAPTER 5: ADC, DAC interfacing with 8086 and its application

 Analog to Digital Converter (ADC) 0809


 Digital to Analog Converter (DAC) 0808
 Interfacing ADC 0809, DAC 0808 with 8086 and their applications.
 8086 based data Acquisition system

University Questions

1. Write a program to blink bit 4 of port C using BSR mode of 8255 [5M_May-2015]
2. Draw and explain interfacing of DAC 0808 with 8086 using 8255. Write program to
generate square wave. [10M_May-2015, May-2017, May-2018]
3. What is data acquisition system? Explain 8086 based data acquisition system. [10M_Dec-
2015].
4. Explain function of ADC 0809 and describe its interfacing method with 8086. [10M_Dec-
2015, May-2017]
5. Explain pin diagram of ADC 0808/0809 and describe its interfacing to 8086 with suitable
example. [10M_May-2016, Dec-2016]

Compiled by Mr. Vishal Gaikwad, SIESGST


Analog to Digital Converter (ADC) 0809:

An Analog-Digital Converter (ADC) is a widely used electronic component that converts an


analog electric signal (usually a voltage) into a digital representation. The ADCs are at the
front-end of any digital circuit that needs to process signals coming from the exterior world.
The ADC0808, ADC0809 data acquisition component is a monolithic CMOS device with an
8-bit analog-to-digital converter, 8-channel multiplexer and microprocessor compatible control
logic. The 8-bit A/D converter uses successive approximation as the conversion technique. The
converter features a high impedance chopper stabilized comparator, a 256R voltage divider
with analog switch tree and a successive approximation register. The 8-channel multiplexer
can directly access any of 8-single-ended analog signals. The device eliminates the need for
external zero and full-scale adjustments. Easy interfacing to microprocessors is provided by
the latched and decoded multiplexer address inputs and latched TTL TRI-STATE outputs.

Features
- Easy interface to all microprocessors
- Operates ratio metrically or with 5 VDC or analog span adjusted voltage reference
- No zero or full-scale adjust required
- 8-channel multiplexer with address logic
- 0V to 5V input range with single 5V power supply
- Outputs meet TTL voltage level specifications
- ADC0808 equivalent to MM74C949
- ADC0809 equivalent to MM74C949-1

Compiled by Mr. Vishal Gaikwad, SIESGST


Pin Diagram Description

Compiled by Mr. Vishal Gaikwad, SIESGST


ADDRESS LINE A, B, C

The device contains 8-channels. A particular channel is selected by using the address decoder
line. The TABLE 1 shows the input states for address lines to select any channel.

Compiled by Mr. Vishal Gaikwad, SIESGST


Interfacing of ADC with 8086 via 8255:

Explain interfacing in detail…..

Compiled by Mr. Vishal Gaikwad, SIESGST


Digital to Analog Converter (DAC) 0808:

A Digital to Analog Converter (DAC) converts a digital input signal into an analog output
signal. The digital signal is represented with a binary code, which is a combination of bits 0
and 1.

Interfacing with 8086 via 8255:

Explain interfacing in detail…

Compiled by Mr. Vishal Gaikwad, SIESGST


Data Acquisition System

Data acquisition is the process of sampling signals that measure real world physical conditions
and converting the resulting samples into digital numeric values that can be manipulated by a
computer. Data acquisition systems, abbreviated by the acronyms DAS or DAQ, typically
convert analog waveforms into digital values for processing. The components of data
acquisition systems include:
1. Transducer is require in it
2. Signal conditioner is require in it
3. Multiplexer (MUX) is require in it
4. A-D Converter is require in it
5. Recorders devices and Display devices are require in it

Compiled by Mr. Vishal Gaikwad, SIESGST


 Analog information from real word is captured by sensors, which converts physical quantity
into electrical quantity. This is fed into an ADC to convert it into Digital information, that’s
data.
 An ADC 0809 will convert every Analog sample into 8-bit data. Such data is passed on to
a peripheral interface device like 8255.
 8255 is interfaced with microprocessor 8086 which collects the information from ADC
through 8255. The ADC could also be connected directly to 8086 but using an 8255 just
makes it easier as the port lines of 8255 can control various functions of the ADC.
 This data is stored by the microprocessor into the system memory. Further on, it can be
processed in various ways. If it is Audio, it can be stored as an mp3 file. If it is temperature
or speed it can be displayed on a seven segment display.
 Applications: Temperature sensing in Fire Detection systems, Speed sensing in Speed
Limiting systems, Audio recording and playback based applications.

[Figure : 8086 based DAS]

Compiled by Mr. Vishal Gaikwad, SIESGST


1. Program to generate square wave using DAC which is interfaced via 8255 (Assume
addresses as – PA-80H,PB-82H,PC-84H,CWR-86)
Assume DAC is connected to PA

START : MOV AL,80H ; 80H for CWR to select basic IO mode of 8255 and
OUT 86H,AL ; to define all ports as an output port
REP : MOV AL,00H
OUT 80H, AL
CALL DELAY
MOV AL,FFH
OUT 80H,AL
CALL DELAY
JMP REP
INT 3

DELAY: MOV BX, 00FFH


BACK : MOV CX, 00FFH
HERE : LOOP HERE
DEC BL
JNZ BACK
RET

Compiled by Mr. Vishal Gaikwad, SIESGST


2. Write a program to blink bit 4 of port C using BSR mode of 8255

START : MOV AL,80H ; 80H for CWR to select basic IO mode of 8255
OUT 86H,AL ; and to define all ports as an output port
REP : MOV AL,08H ; 08H value for CWR to select BSR mode of 8255
OUT 86H, AL ; and to reset PC.4 pin
CALL DELAY
MOV AL,09H ; 08H value for CWR to select BSR mode of 8255
OUT 86H,AL ; and to set PC.4 pin
CALL DELAY
JMP REP
INT 3

DELAY: MOV BX, 00FFH


BACK : MOV CX, 00FFH
HERE : LOOP HERE
DEC BL
JNZ BACK
RET

Compiled by Mr. Vishal Gaikwad, SIESGST

You might also like