Question: students get acquainted with the MSP430 Launchpad microcontroller training kit. Type the following sample assembly language program which starts at address 0x0200 (&0200h), or simply

 students get acquainted with the MSP430 Launchpad microcontroller training kit. Type
the following sample assembly language program which starts at address 0x0200 (&0200h),

students get acquainted with the MSP430 Launchpad microcontroller training kit. Type the following sample assembly language program which starts at address 0x0200 (&0200h), or simply $200. The program adds the contents of three consecutive memory locations starting at address $200. The sum is stored at location $206. In the following subsections, various commands are listed for you to explore. In the Code Composer, create a new Assembly Project and insert the following code into section label "Main loop here". You can also copy the entire skeleton program from the text file provided on your Canvas course. LAB1 mov.W 01, 80200 mov.W 402, 80202h mov.W#03, 80204h set a number on location $200 set a number on location $0202 set a number on location S0204 LINEA clr clr clr clr R7 RB R9 R10 clear the entire R7 register elear the entire Ro register clear the entire R9 register clear the entire Rio register copy a word from 80200 to R2 copy a word from 802e2h to R8 copy a word from 80204h to R9 LINED mov. 88200h, RZ mov.w 80202h, R8 mov.w 80204h, R9 LINEC mov.b R7, R10 add.b RB, R10 add.b R9, R10 mov.b R10, 80206h start accumulator in R10 with value fora Ry add to it the content R8 add to it the content RO now store the sum back in memory Infinite Loop Mainloop Mainloop [1] 0.a) Exercise 1: Default program execution o Insert break point at the Mainloop line o Build and execute program o Record value of core registers when program stops at the breakpoint R7 R8 R9 RIO SR. NZVC [2] Ob) Exercise 2: Memory manipulation Soft Reset the micro o Insert break point at LINEB label o Insert break point at LINEC label o Keep the break point at Mainloop line o Run the program so it stops at LINEB o Record Values of the following registers: R7 R8 R9 R10 _SR__NZVC_ Using the memory browser, modify the content of following memory locations by manually typing the new values over the initial values (in decimal notation): . 0x0200 = 02, 0x0202 = 03, 0x0204 = 10 o Run the code, and now it will stop at LINEC o Record the updated values of the registers: R7 R8 R9 R10 NZVC__ o Run the code, and now it will stop at Mainloop o Record the values again: R7 __R8 R9 R10 SRNZVC_ SR O [2] 0.c) Exercise 3: Register manipulation o Soft Reset the micro o Remove the break points at LINEB and keep the ones at LINEC and Mainloop o Execute program to stop at LINEC o Record the new values: R8 R9 R10 SR NZVC o Manually modify the contents of Registers as follows: R7 = 05, R8 = 01, R9 = 0 (decimal notation) o Run the code till it stops at the last breakpoint, Mainloop o Record the new values: R7 R7 R8 R9 R10 SRNZVC students get acquainted with the MSP430 Launchpad microcontroller training kit. Type the following sample assembly language program which starts at address 0x0200 (&0200h), or simply $200. The program adds the contents of three consecutive memory locations starting at address $200. The sum is stored at location $206. In the following subsections, various commands are listed for you to explore. In the Code Composer, create a new Assembly Project and insert the following code into section label "Main loop here". You can also copy the entire skeleton program from the text file provided on your Canvas course. LAB1 mov.W 01, 80200 mov.W 402, 80202h mov.W#03, 80204h set a number on location $200 set a number on location $0202 set a number on location S0204 LINEA clr clr clr clr R7 RB R9 R10 clear the entire R7 register elear the entire Ro register clear the entire R9 register clear the entire Rio register copy a word from 80200 to R2 copy a word from 802e2h to R8 copy a word from 80204h to R9 LINED mov. 88200h, RZ mov.w 80202h, R8 mov.w 80204h, R9 LINEC mov.b R7, R10 add.b RB, R10 add.b R9, R10 mov.b R10, 80206h start accumulator in R10 with value fora Ry add to it the content R8 add to it the content RO now store the sum back in memory Infinite Loop Mainloop Mainloop [1] 0.a) Exercise 1: Default program execution o Insert break point at the Mainloop line o Build and execute program o Record value of core registers when program stops at the breakpoint R7 R8 R9 RIO SR. NZVC [2] Ob) Exercise 2: Memory manipulation Soft Reset the micro o Insert break point at LINEB label o Insert break point at LINEC label o Keep the break point at Mainloop line o Run the program so it stops at LINEB o Record Values of the following registers: R7 R8 R9 R10 _SR__NZVC_ Using the memory browser, modify the content of following memory locations by manually typing the new values over the initial values (in decimal notation): . 0x0200 = 02, 0x0202 = 03, 0x0204 = 10 o Run the code, and now it will stop at LINEC o Record the updated values of the registers: R7 R8 R9 R10 NZVC__ o Run the code, and now it will stop at Mainloop o Record the values again: R7 __R8 R9 R10 SRNZVC_ SR O [2] 0.c) Exercise 3: Register manipulation o Soft Reset the micro o Remove the break points at LINEB and keep the ones at LINEC and Mainloop o Execute program to stop at LINEC o Record the new values: R8 R9 R10 SR NZVC o Manually modify the contents of Registers as follows: R7 = 05, R8 = 01, R9 = 0 (decimal notation) o Run the code till it stops at the last breakpoint, Mainloop o Record the new values: R7 R7 R8 R9 R10 SRNZVC

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!