Past exam question: Assignment 3, Q4(d)
Open in the Padhaiko appQuestion
8255 PPI is mapped at base address of 7F00H using memory mapped I/O is used to control operation of lathe. The microcomputer reads instruction code from tape reader on handshake basis and sends appropriate control words to lathe. d) Draw interfacing circuit of 8255 with 8085 at base address.
Solution
Address Decoding Logic for 7F00H (Memory-Mapped I/O):
- Upper address lines must match
0111 1111 0000 00:- (inverted before the NAND gate)
- Memory-mapped control signal must be LOW (, inverted to at the NAND input), or equivalently and are connected to and of the 8255 while is included in .
- Lower address lines connect directly to of the 8255 (latched via 74LS373 from using ).
Interfacing Circuit Diagram:
8085 CPU 8255A PPI
+----------+ ALE +-----------+
| AD0-AD7 |---[74LS373 Latch]---+---> A0, A1 ------>| A0, A1 |
| | +---> A2..A7 | |
| |=====================> D0 - D7 --------->| D0 - D7 |
| A8-A15 |---+ | |
| | | A14..A8 (all 1) | |
| | +--+ | |
| | |---> [ Multi-input NAND ]-------->| CS' |
| | A15, A7..A2 (all inverted) | |
| IO/M' |---(inv)---+ | |
| RD' |---------------------------------------->| RD' |
| WR' |---------------------------------------->| WR' |
| RESET |---------------------------------------->| RESET |
+----------+ | |
Tape Reader ->| PA0 - PA7 |
| PC4 (STB')|
| PC5 (IBF) |
| PC3 (INTR)|
Lathe <-| PB0 - PB7 |
| PC1 (OBF')|
| PC2 (ACK')|
| PC0 (INTR)|
+-----------+Note: () and () can be connected to 8085 hardware interrupt inputs such as RST 7.5 and RST 6.5 (or polled via Port C).
Answer:
In the memory-mapped interfacing circuit, the 74LS373 demultiplexes with to provide ; drive 8255 pins , while (HIGH), inverted (LOW), and inverted (LOW) feed the NAND decoder to generate for addresses 7F00H–7F03H.