Part a A microcontrollers memory map allocates the FLASH cod

Part a) A microcontroller’s memory map allocates the FLASH code space to the address range [0x0300 to 0x0AFF]. What is the code size, in bytes, that is supported by this microcontroller?

Part b) The vector table contains memory addresses (a vector is a memory address). In a certain MSP430 device, the vector table is in the range [0xFFC0 to 0xFFFF]. The memory address is 16-bit. How many vectors does this vector table support?

Solution

Ans) a) Adress range of Memory map is [0x0300 to 0x0AFF] its decimal equivalent is [768 to 2815]

So no of memory location it can point is 2815-768+1=2048 memory locations

Assuming in each memory location it can stor 2 bytes of data

Code size =2048*2 bytes=4096 bytes=4 Kbytes

b) Vector Table Range [0xFFC0 to 0xFFFF] its decimal equivalent is [65472 to 65535]

so number vectors this vector table has is 65535-65472+1=64 Vectors

Number vectors this vector table support is 64

Part a) A microcontroller’s memory map allocates the FLASH code space to the address range [0x0300 to 0x0AFF]. What is the code size, in bytes, that is supporte

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site