PadhaikoAll subjects

Past exam question: Assignment 3, Q4(d)

Instrumentation · 3 marks

Open in the Padhaiko app

Topic: Microprocessor and microcontroller and their selection criteria, and…

Question

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):

Interfacing Circuit Diagram:

8085 to 8255 Memory-Mapped Interfacing Circuit at 7F00H-7F03HText
   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.

All past exam questions for Instrumentation