PadhaikoAll subjects

Past exam question: Assignment 3, Q4(c)

Instrumentation · 4 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. c) Describe with required timing diagrams has instruction code from tape reader is read by microprocessor and sends to lathe?

Solution

Reading Instruction Code from Tape Reader (Mode 1 Strobed Input on Port A):

  1. The tape reader places the 8-bit instruction byte on PA7–PA0 and pulses () LOW to latch the data into Port A's input register.
  2. The 8255 drives () HIGH to acknowledge receipt and prevent the tape reader from sending new data prematurely.
  3. Once returns HIGH (with and ), the 8255 asserts () HIGH to interrupt the 8085.
  4. The 8085 executes the ISR and reads Port A (LDA 7F00H), asserting LOW. The falling edge of clears , and the rising edge resets LOW so the tape reader can send the next byte.
Mode 1 Input Timing Diagram (Port A: Tape Reader -> 8085)Text
DATA (PA0-7) -------<======== Valid Instruction Byte ========>-------
              ______                                          _______
STB_A' (PC4)        \________________________________________/
                       ______________________________________________
IBF_A  (PC5) _________/                                              \___
                                                                ___
INTR_A (PC3) __________________________________________________/   \_____
                                                               ____
RD' (8085)   ------------------------------------------------/    \-----

Sending Control Word to Lathe (Mode 1 Strobed Output on Port B):

  1. The 8085 writes the lathe control byte to Port B (STA 7F01H), pulsing LOW.
  2. On the rising edge of , the 8255 drives () LOW, signaling the lathe that valid control data is present on PB7–PB0 (and clearing ).
  3. The lathe reads PB7–PB0 and responds with an active-low () pulse, which resets HIGH.
  4. On the rising edge of (with and ), () goes HIGH to notify the 8085 that the lathe is ready for the next control word.
Mode 1 Output Timing Diagram (Port B: 8085 -> Lathe)Text
              ______     ____
WR' (8085)          \___/    \-------------------------------------------
DATA (PB0-7) -------<========== Valid Control Word ==========>-----------
                          _______________________________
OBF_B' (PC1) ------------/ (LOW active)                  \_______________
                                              ____
ACK_B' (PC2) --------------------------------/    \----------------------
              ____                                 ______________________
INTR_B (PC0)      \_______________________________/
Answer:

In Mode 1 Input (Port A), the tape reader asserts to latch instruction data, raising and then ; the 8085 reads 7F00H ( low), clearing and . In Mode 1 Output (Port B), the 8085 writes the lathe control word to 7F01H ( low), driving low until the lathe returns , which raises for the next transfer.

All past exam questions for Instrumentation