PadhaikoAll subjects

Past exam question: 2082 Kartik (Back), Q7

Microprocessors · 6 marks

Open in the Padhaiko app

Topic: Memory Hierarchy & I/O/Memory Interfacing with 8085

Question

Design an address decoding circuit to interface one 4Kx8 EPROM chip and two 2Kx8 RAM chip with 8085 microprocessor.

Solution

Memory Specifications & Sizing:

Memory Map & Address Allocation:

  1. EPROM (4 KB): Range = 0000H to 0FFFH
    • 0000H = 0000 0000 0000 0000b
    • 0FFFH = 0000 1111 1111 1111b
    • Lines A11–A0 connect directly to EPROM address pins.
  2. RAM 1 (2 KB): Range = 1000H to 17FFH
    • 1000H = 0001 0000 0000 0000b
    • 17FFH = 0001 0111 1111 1111b
    • Lines A10–A0 connect directly to RAM 1 address pins.
  3. RAM 2 (2 KB): Range = 1800H to 1FFFH
    • 1800H = 0001 1000 0000 0000b
    • 1FFFH = 0001 1111 1111 1111b
    • Lines A10–A0 connect directly to RAM 2 address pins.

Address Decoding Table & 74LS138 Implementation:

ChipRangeA15–A14A13 (C)A12 (B)A11 (A)A10–A074LS138 Output
EPROM (1st 2K)0000H–07FFH00000Internal to chipY0\_bar
EPROM (2nd 2K)0800H–0FFFH00001Internal to chipY1\_bar
RAM 1 (2K)1000H–17FFH00010Internal to chipY2\_bar
RAM 2 (2K)1800H–1FFFH00011Internal to chipY3\_bar

Control & Data Interfacing:

Answer:

The interface allocates EPROM at 0000H–0FFFH (decoded by Y0_bar AND Y1_bar), RAM 1 at 1000H–17FFH (Y2_bar), and RAM 2 at 1800H–1FFFH (Y3_bar) using a 74LS138 decoder with inputs C=A13, B=A12, A=A11 enabled by A15=A14=0 and IO/M_bar=0.

All past exam questions for Microprocessors