Docsity

Interfacing of Intel 8086 CPU using PARALLEL PERIPHERAL INTERFACE (PPI)-8255A, Slides of Microprocessor and Interfacing

Partial preview of the text

Download Interfacing of Intel 8086 CPU using PARALLEL PERIPHERAL INTERFACE (PPI)-8255A and more Slides Microprocessor and Interfacing in PDF only on Docsity!

Interfacing an Analog to Digital

Converter to the 8086

Here our interest will be to interface an ADC to the 8086 using the 8255 as an interface. This is an important application for the parallel port IC 8255. When an analog voltage is given as an input to an ADC, it gets converted to a digital number which is transferred to the 8086. The digital value can be stored in the RAM of the system and may be displayed or used in further computations.

  • CHAPTER
  • Specifications of ADC 0808/

Figure 9.20 | Functional pin diagram of the ADC

Example 9.

Write a program to interface the ADC 0809/0808 to the 8086 using 8255 as an interfacing chip.

Example 9.

-steps

Interfacing to a Digital to Analog Converter to the 8086using the 8255 Here, we will use a DAC chip, and connect it to the 8086 using an 8255 as the interface.

  • (^) A digital number sent from the processor is converted to an analog current / voltage by this arrangement. DACs of different resolutions are available – those with 8, 10, 12 or 16-bit inputs – the more the number of bits, the better the resolution

Figure 9.23 | Pin diagram of the DAC

Example 9.

For the following binary numbers applied to a DAC, calculate the output analog voltage obtained given that Iref = 2 mA and R = 5.6 K i) 11000011 ii) 00010111

Example 9.10 -solution

Example 9.

-solution

Example 9.

Generate a staircase waveform with 5 steps. Steps: Divide the total range of 0 to 255 into 5 parts. Each increment can correspond to 51. The digital number range is 0, 51, 102, 153, 204 and 255.