In a microprocessor lab at a polytechnic, an 8085 trainer kit sits on the bench. On its board are two memory chips: a 2764 EPROM that holds the monitor program (the small built-in program that starts the kit), and a 6264 RAM that holds your own program. The processor has one set of 16 address wires, and both chips are connected to the same wires. Type a program at address 2000H and run it. The processor puts 2000H on the wires. Both chips can see it. Yet only the RAM answers, and the EPROM stays silent. Nobody told the EPROM to be quiet in software. How does the board know?
It works like a postal address. A pin code tells the post office which district the letter belongs to, and the rest of the address tells the postman which house. In a memory system, the top few address wires pick the chip, and the low wires pick the byte inside it. This chapter shows you how to do that sum on paper, and the exam asks it in many forms: how many address lines does this chip need, what are the first and last addresses of this chip in hexadecimal, how many small chips make one big memory, and which decoder output selects which chip (a decoder is a selector circuit, which you met in Digital Logic and use again in Part 4).
By the end of the chapter you will be able to turn a memory size into a number of address lines and back, write any chip's address range in hex, and say at once which chip owns a given address. You will work out how many chips a bigger memory needs, in width and in depth, and draw how they are joined.
You will use a 2-to-4 or a 3-to-8 decoder to drive chip selects, build a complete memory map, and explain what goes wrong when the decoder does not use every address line.