Question
What is the processor width (in bits) of the MSP432 CPU? 2. What is the size of an integer on this C? What is the
What is the processor width (in bits) of the MSP432 CPU?
2. What is the size of an integer on this C? What is the size of a long int? (Hint: Compile a quick program with an int and a long int declared, then debug the program and check the variables window or hover the mouse over the variables.)
3. How much SRAM does the C have? This is the memory where your program stores its variables. (Hint: Refer to the block diagram Figure 1. Notice there are two sizes listed. Find the correct size for your exact microcontroller part number.)
4. The FLASH memory stores your program. Like flash drive, it is non-volatile. The C runs the program stored in its FLASH memory when you apply power or reset. How much FLASH memory does your version of the MSP432 have? (Hint: Consult the device memory map or try an Internet search.)
Create a blank main() project in Code Composer Studio. Refer to Lab #6 if you need clarification on how to do this.
B. Copy your code from the first part of LAB6. This is the code that simply blinks a LED. Compile the code and make sure there are no errors.
C. In the Project Explorer window (left side), expand the project and expand the Debug (or Binaries) folder. a) Right-click the executable (.out) file (might be called blink.out) and select Properties. b) Look at the file Size in the Resource window. Note the file size on the answer sheet. This is how much storage (flash memory) your program will require when you export it to the C.
D. Add a simple printf() statement in the code to print the value of an integer variable. You may need to add the library that defines the printf() function at the top of your code: #include NOTE: For this experiment, youre not actually running the code. Youre only checking the file size of the machine code. There is no console connected to the USB programmer, and therefore you wont see any output from calls to printf() running on the micro-controller.
E. Save and recompile the project and repeat the previous step. Note the file size.
F. Declare and initialize another integer variable. Leave the existing printf() statement as is. Add a second printf() statement on the next line to print the value of your new variable. Save and recompile the project and note the file size. Page 2 ESET 269 Laboratory #8 Fall 2018
5. How much did the first printf() add to the program size? How much did the second printf() add?
6. Did the second printf() call in part E increase the executable by the same amount as the first printf() call in part D? If not, why?
7.How many 8-bit I/O ports does this C have? How many 16-bit ports? (Hint: Study the block diagram in Figure 1. Check if the 8-bit ports are part of the 16-bit ports or if they are completely independent devices.)
8.How many address locations are within the peripherals range? (Hint: Each number is one location. 0x4000_0000 is one location, 0x4000_0001 is the next location, etc.)
9. How many addresses are available from 0x2000_0000 to 0x3FFF_FFFF? What is located within this range?
10. The largest address in the memory map (Figure 6-1) is 0xFFFF_FFFF hexadecimal. Each hexadecimal digit (i.e. one nibble) represents four bits of information. One physical address line corresponds to one bit of the address. Therefore, to represent 8 nibbles (4 bytes) of addresses, you need 32 address lines. The address space refers to the total theoretical number of addresses this CPU can select. Each address location represents one byte of storage. What is the total space (in bytes) addressable by this C?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started