Question: 2. Use CCSv7 to implement the code in Listings 6.7 using MSP430 Assembly language. Use the CCSv7 debugger functions that you know about in order

2. Use CCSv7 to implement the code in Listings 6.7 using MSP430 Assembly language. Use the CCSv7 debugger functions that you know about in order to examine what the code does when it executes. Comment each line of code (instructions, labels, and directives) describing its purpose in the program.

2. Use CCSv7 to implement the code in Listings 6.7 using MSP430

1#include 2 //target msp430 4main.c 6int a[s1,2,3,4,5); 7 int *a_pointer,; 8 void main(void) //define global integer array with entries 1,2,3,4,5 //pointer for array a //call for main function at program start 9 10 WDTCTL = WDTPWINDTHOLD; //watch dog time r a pointer-a; //assign values of array a to a_pointer pointer address 9200h 12 13 14 a_pointer 3; //increments pointer by 6 (3x2bits) *a_pointer-0; while(1); 16 17 18 19 /linfinte loop 1#include 2 //target msp430 4main.c 6int a[s1,2,3,4,5); 7 int *a_pointer,; 8 void main(void) //define global integer array with entries 1,2,3,4,5 //pointer for array a //call for main function at program start 9 10 WDTCTL = WDTPWINDTHOLD; //watch dog time r a pointer-a; //assign values of array a to a_pointer pointer address 9200h 12 13 14 a_pointer 3; //increments pointer by 6 (3x2bits) *a_pointer-0; while(1); 16 17 18 19 /linfinte loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!