Assume : Working frequency = 5 MHz
∴ Crystal frequency = 5 x 3 = 15 MHz
Step 1 - case (i) - 32 KB RAM -
Size of chip = 8 KB
= 8 x 1 KB
= 23 x 1024 x 8
= 23 x 210 x 8
= 213 x 8
we need B addressing line Ao to A12 for internal decoding.
Total memory = 32 KB
No. of chips = 32 KB8 KB = 4 = 2(MB1) + 2(MB2)
∴ we need two memory bank.
size of memory bank = 8 KB (even) + 8 KB (odd)
= 16 KB
= 214 x8 ---------------------{0000 0011 1111 1111 1111}= 03FFF
Memory Bank 1
starting address = 00000H
Ending address = 00000
00000 + 03FFF = 03FFF H
Memory Bank 2
Starting address = 04000H
Ending address = 04000H
04000H +03FFFH = 07 FFFH
Case (ii) 32 KB g EPROM Using 8 KB devices :
Size of chip = 8 KB
= 8 x 1 KB
= 23 x 1024 x 8
= 213 x 8
We need B addressing lines AO - A12 for internal decoding.
Total memory = 32 KB
No. of chips = 32KB8KB = 4 = 2 (MB1) + 2(MB2)
∴ we need two memory bank.
size of memory bank = 8 KB (even) + 8 KB (odd)
= 16 KB
= 214 x 8
Memory Bank 1
Ending address = FFFFF H
Starting address = - 03FFF H
FFFFF H- 03FFF H = FC 000 H
Memory Bank 2
Starting address = EAOOO H
Ending address = +03FFF H
EAOOO H +03FFF H = EAFFF H
Step 2: Memory addressing -


