RAM Interfacing for Microprocessor Assignment Answers
Your question: Question 5: Answer all the questions. (8 Marks) a. Suppose a 16-bit microprocessor with a 20 bit address bus and 8 bit data bus interfaced with 256 K RAM. Each RAM chip has a 16 bit address bus and 8 bit data bus. Now answer the following questions: 1. What is the capacity of each RAM? 2. How many RAMs are needed? 3. Draw the interfaced diagram using the full decoding method. Show the [1] corresponding starting address and end address for the whole system. 4. Modify the previous diagram to interface at address range 00000H−3FFFF H [2]
Assignment Help Answers with Step-by-Step Explanation:
Let's break down the questions one by one:
1. Capacity of each RAM:
- The total RAM required is given as 256 K (Kilobytes).
- 256 K is equivalent to \(256 \times 1024\) bytes (1 Kilobyte = 1024 bytes).
- Since the microprocessor has a 20-bit address bus, and each RAM chip has a 16-bit address bus, the upper 4 bits of the microprocessor's address are used for chip selection.
- The starting and ending addresses for each RAM chip in the system can be calculated based on the binary values corresponding to the upper 4 bits of the microprocessor's address.
| 20-bit Address Bus |
| 8-bit Data Bus |
| RAM Chip 1 |
| |
| |
| Address Range |
|
+-----------------------------+
+-----------------------------+
| |
+-----------------------------+
|
The modified interfaced diagram could look like the previous one, but with the updated address range for each RAM chip corresponding to the specified range (00000H−3FFFFH).