Past exam question: Assignment 3, Q4(a)
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. a) What are the address captured by 8255?
Solution
Register Selection with Base Address 7F00H: In memory-mapped I/O, the 8085 uses 16-bit memory addresses () with . The base address 7F00H corresponds to:
The lowest two address lines and connect directly to pins and of the 8255 PPI to select its four internal locations:
| Internal Register | Hex Address | ||
|---|---|---|---|
| Port A | 7F00H | ||
| Port B | 7F01H | ||
| Port C | 7F02H | ||
| Control Word Register (CWR) | 7F03H |
Answer:
With full 16-bit memory-mapped decoding at base address 7F00H, the four addresses captured by the 8255 PPI are:
- Port A:
7F00H - Port B:
7F01H - Port C:
7F02H - Control Word Register:
7F03H