If a microcontroller has a memory array with 200 separately addressable memory l
ID: 3784961 • Letter: I
Question
If a microcontroller has a memory array with 200 separately addressable memory locations, where each can store 12 bits, how many bytes of data docs the memory contain? How many bits arc required to address this memory (show your work/reasoning)? List all the devices you can find in your home that contains some microprocessor or microcontroller digital system. Show how the following instructions are computed in the PIC CPU (show the work numerically in binary): movl w 0 times FF addlw 0 times 33 Where is the final answer stored? What is this value in decimal?Explanation / Answer
Solution 1: 12 bits is equivalent to 1.5 bytes as 8 bits make 1 byte.
So the answer is 200 X 1.5 = 300
The memory contains 300 bytes of data
1 bit can address 2 memory locations with 2 addresses 0 and 1
2 bits can address 4 memory locations with addresses 00, 01, 10, 11
3 bits can address 8 memory locations with addresses 000, 001, 010, 011, 100, 101, 110, 111
4 bits can address 16 memory locations in the similar way
So the table is as below
Bits Memory locations that it can address
1 2**1 = 2
2 2**2 = 4
3 2**3 = 8
4 2**4 = 16
5 2**5 = 32
6 2**6 = 64
7 2**7 = 128
8 2**8 = 256
So For 200 address 8bits are needed.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.