<>
Learning objectives :
Memory capacity , Calculation method of start address or end address
<>
Learning content :
Memory is addressed in bytes , So the unit is bytes (byte,bytes),1 Bytes are equal to 8 position (bit) of .
Because the scope of calculation is generally small , So just remember two .
Remember a few common 2 of 10 The power is 1024 Namely 1KB
12bit-->2^12=4096byte,
G representative 2^10 x 2^10 x2^10 = 2^30.
formula :
Memory capacity = End address - First address +1
<>
How to calculate with a calculator :
(1) Turn on the calculator on your computer
(2) Show with pictures
Click the in the upper left corner “ three ” Find programmer (programer)
<>
Learning output :
Take examples as evidence :
(1)
Capacity 4K
4K*8bit = 4KB Namely 2 Square times 2 of 10 Power ,2 of 12 Power ,12/4=3( Turn into 16 Base system ) Namely 1000H
01000H= End address -6800H+1H
End address =01000H+6800H-1H
End address =077FFH
(2)SRAM Start from 20000000H, Capacity 20kBytes, Calculation end address
20*1024=20480————=5000H
5000H=?-20000000+1
?=20004FFF
Technology