Past exam question: Assignment 3, Q5(c)
Open in the Padhaiko appQuestion
A/D converter requires signal to start the conversion and indicates the completion of operation with the end of conversion signal.8255A PPI is interfaced with 8085 microprocessor at 80H. Microprocessor reads 8-bit output data of the ADC at port A and displays the same data to eight LEDs connected at port B of 8255A.state any assumptions made. c) Draw the schematic interfacing circuit.
Solution
Hardware Interfacing Details:
- Address Decoding (
80H–83H): (active HIGH) and (active LOW via inverters) plus feed a NAND gate to drive of the 8255A. select the internal registers. - ADC Connection: The 8-bit digital output of the ADC connects to
PA7–PA0.SOCconnects toPC0, andEOCconnects toPC7. Output Enable () of the ADC is tied HIGH (+5 V) so converted data is always available onPA7–PA0. - LED Display Connection: Port B pins
PB7–PB0drive eight LEDs in active-high configuration (each through a current-limiting resistor to ground, so logic1lights the LED).
Schematic Interfacing Circuit Diagram:
8085 CPU 8255A PPI 8-bit ADC
+-----------+ +-----------+ +-----------+
| D0 - D7 |<=============>| D0 - D7 | | |
| A1, A0 |-------------->| A1, A0 | 8-bit Output | |
| A7 |--+ | PA0 |<------------------| D0 |
| A6..A2 |--|--(inv)--+->| CS' ... |<------------------| ... |
| IO/M' |--+-[NAND]--+ | PA7 |<------------------| D7 |
| RD' |-------------->| RD' | | |
| WR' |-------------->| WR' PC0 |------------------>| SOC |
| RESET OUT |-------------->| RESET PC7 |<------------------| EOC |
+-----------+ | | | Vin |<-- Analog In
| PB0 - PB7 | | CLK |<-- Clock
+-----------+ +-----------+
|
[330 ohm resistors x 8]
|
(LED0 .. LED7) -> GNDAnswer:
The schematic connects the 8085 bus (D0–D7, A1–A0, , ) and a NAND address decoder () to the 8255A (80H–83H), interfaces the ADC outputs D0–D7 to Port A, SOC to PC0, EOC to PC7, and drives eight common-ground LEDs through resistors from Port B.