Problem #1 (25 points) Address Space, Memory Consider a hypothetical 14-bit proc
ID: 3742419 • Letter: P
Question
Problem #1 (25 points) Address Space, Memory Consider a hypothetical 14-bit processor called HYP14 wit all registers, including PC and SP, being 14 bits long. The smallest addressable unit in memory is an 8-bit byte. A. (4 points) What is the size of HYP14's address space in bytes and KB? How many address lines does HYP14 require? AddresPace B. (6 points) Assume that first quarter of the address space is dedicated for HYP14's RAM memory and the upper half of the address space is reserved for HYP14's Flash memory. Give address ranges for the RAM and Flash memories. Fill in the table below. What is the size of the RAM memory and the Flash memory? Address space: Address bus lines:y Bytes Address space KB (KiloBytes). Start byte address End byte address RAM memory Flash memory RAM memory size [Bytes/KB] Flash memory size [bytes/KB]: The MSP430F20x is a microcontroller with 64 KB of address space divided between code memory (flash), RAM memory. and input/output peripherals. It has 256 Bytes of RAM memory starting at the address 0x0200, and 256 Bytes of address space reserved for special purpose registers and 8-bit input/output peripherals (starting at the address 0x0000) followed by 256 Bytes reserved for 16-bit input/output peripherals. The flash memory of 4 KB resides at the top of address space (highest addresses in the address space). C. (8 points) Determine the address map by filling in the following table. Address Address hexadecimal] address space Last Flash address First Flash address Last RAM address First RAM address Last I/O address (16-bit per.) First I/O address (16-bit per.) Last IO address (8-bit per.) First I/O address (8-bit per.) Flash Memory RAM Memory VO address space VO address space D. (7 points) What is the program stack (what is it, where is it located, and how we deal with it)? What is stack size in the MSP430Fx described above? What should be the initial value of SP?Explanation / Answer
B.
Start byte address
End byte address
RAM memory
0x0000
0x0FFF
Flash memory
0X2000
0X3FFF
RAM memory size[Bytes/KB]: 4KB
Flash memory size[bytes/KB]: 8KB
c.
Address
Address
[hexadecimal]
Sections in address space
Last Flash address
0xFFFF
First Flash address
0xEFFF
Last RAM address
0x02FF
First RAM address
0x0200
Last I/O address(16 bit per)
0x01FF
First I/O address(16 bit per)
0x0100
Last I/O address(8 bit per)
0x00FF
First I/O address(8 bit per)
0x0000
D.
Program Stack:
Program Stack is used for storing data temporarily. It stores data from high memory.
It is located in the higher parts of memory
We can deal with it LIFO buffers, from their last in first out operation.
Maximum stack size in the MSP430Fx is 256bytes.
Initial value of SP is 0x0000
Start byte address
End byte address
RAM memory
0x0000
0x0FFF
Flash memory
0X2000
0X3FFF
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.