PadhaikoAll subjects

Past exam question: 2081 Chaitra (Regular), 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 2K * 8 ROM chip, one 2K * 8 RAM chip and one 4K * 8 EPROM chip with 8085 microprocessor consecutively starting from the memory location A000H.

Solution

Memory Sizing & Address Line Requirements:

Consecutive Address Allocation & Memory Map:

  1. ROM (2 KB): Range = A000H to A7FFH
    • A000H = 1010 0000 0000 0000b
    • A7FFH = 1010 0111 1111 1111b
    • A10–A0 connect directly to ROM address pins.
  2. RAM (2 KB): Range = A800H to AFFFH
    • A800H = 1010 1000 0000 0000b
    • AFFFH = 1010 1111 1111 1111b
    • A10–A0 connect directly to RAM address pins.
  3. EPROM (4 KB): Range = B000H to BFFFH
    • B000H = 1011 0000 0000 0000b
    • BFFFH = 1011 1111 1111 1111b
    • A11–A0 connect directly to EPROM address pins.

Address Decoding Table & 74LS138 Implementation:

ChipMemory RangeA15A14A13 (C)A12 (B)A11 (A)A10–A0Decoder Output
ROM (2K)A000H–A7FFH10100InternalY4\_bar
RAM (2K)A800H–AFFFH10101InternalY5\_bar
EPROM (1st 2K)B000H–B7FFH10110InternalY6\_bar
EPROM (2nd 2K)B800H–BFFFH10111InternalY7\_bar

Control Signal & Bus Interconnections:

Answer:

The address decoding circuit maps 2K ROM to A000H–A7FFH (Y4_bar), 2K RAM to A800H–AFFFH (Y5_bar), and 4K EPROM to B000H–BFFFH (Y6_bar AND Y7_bar) using a 74LS138 decoder with select inputs C=A13, B=A12, A=A11 enabled by A15=1, A14=0, and IO/M_bar=0.

All past exam questions for Microprocessors