PadhaikoAll subjects

Past exam question: 2082 Chaitra (Regular), Q8

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 two 1K EPROM and one 2K RAM consecutively using 3 to 8 decoder starting memory location 1000H.

Solution

Memory Capacity & Address Line Requirements:

Address Allocation & Memory Map:

  1. EPROM 1 (1 KB): Range = 1000H to 13FFH
    • 1000H = 0001 0000 0000 0000b
    • 13FFH = 0001 0011 1111 1111b
  2. EPROM 2 (1 KB): Range = 1400H to 17FFH
    • 1400H = 0001 0100 0000 0000b
    • 17FFH = 0001 0111 1111 1111b
  3. RAM (2 KB): Range = 1800H to 1FFFH
    • 1800H = 0001 1000 0000 0000b
    • 1FFFH = 0001 1111 1111 1111b

Decoding Table & 74LS138 Connection Logic:

ChipRangeA15–A13A12 (C)A11 (B)A10 (A)A9–A074LS138 Output
EPROM 1 (1K)1000H–13FFH000100Address to chipY4\_bar
EPROM 2 (1K)1400H–17FFH000101Address to chipY5\_bar
RAM (1st 1K)1800H–1BFFH000110Address to chipY6\_bar
RAM (2nd 1K)1C00H–1FFFH000111Address to chipY7\_bar

Control and Bus Interconnections:

Answer:

The address decoding circuit maps EPROM 1 to 1000H–13FFH (Y4_bar), EPROM 2 to 1400H–17FFH (Y5_bar), and RAM to 1800H–1FFFH (Y6_bar AND Y7_bar) using a 74LS138 decoder enabled by A15=A14=A13=0 and IO/M_bar=0, with select inputs C=A12, B=A11, A=A10.

All past exam questions for Microprocessors