Question: R7 II 0.a) Exercise 1: Default program execution Insert break point at the Mainloop line o Build and execute program Record value of core registers

 R7 II 0.a) Exercise 1: Default program execution Insert break point
at the Mainloop line o Build and execute program Record value of

R7 II 0.a) Exercise 1: Default program execution Insert break point at the Mainloop line o Build and execute program Record value of core registers when program stops at the breakpoint R8 .R9 R10 SR _.NZUC_ [2] 0.b) Exercise 2: Memory manipulation o Soft Reset the micro o Insert break point ar LINEB label o Insert break point at LINEC label o keep the break point at Mainloop line Run the program so it stops at LINEB Record Values of the following registers: R7 RS R9 R10 SR _, NZVC o Using the memory browser, modify the content of following memory locations by manuall typing the new values over the initial values (in decimal notation) - 0x0200 = 02, 0x0202 = 03. Ox0204 = 10 o Run the code, and now it will stop at LINEC o Record the updated values of the registers: R7 - RS RIO SR .NZVC Run the code, and now it will stop at Mainloop o Record the values again: R7 R8 R9 R10 SR L.NZVC_ R9 [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: R7 _, R10 SR NZVC_ 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: R8 R9 R7 R8 R9 - R10 SRNZVC__ [5] 0) This lab is designed to help students get acquainted with the MSP430 Launchpad microcontroller training kit. Type the following sample assembly language program which starts at address Ox0200 (&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. LABI mov.W w01, 802eeh mov.W #02, 80202h mov.W #83, 80204h LINEA clr clr clr clr R7 R8 R9 R10 set a number on location $200 ; Set a number on location $0202 jset a number on location $0204 ;clear the entire R7 register ;clear the entire R8 register clear the entire R9 register clear the entire R10 register copy a word from &e2een to R7 copy a word from 80202h to R8 scopy a word from 80204h to R9 LINEB mov.w 8020@h, R7 mov.W 80202h, R8 mov.W 80204h, R9 LINEC mov.b R7, R10 add.b R8, R10 add.b R9, R10 mov.b R10, 80206h start accumulator in Rie with value form R7 add to it the content R8 add to it the content R9 jnow store the sum back in memory Mainloop jmp Mainloop Infinite Loop R7 II 0.a) Exercise 1: Default program execution Insert break point at the Mainloop line o Build and execute program Record value of core registers when program stops at the breakpoint R8 .R9 R10 SR _.NZUC_ [2] 0.b) Exercise 2: Memory manipulation o Soft Reset the micro o Insert break point ar LINEB label o Insert break point at LINEC label o keep the break point at Mainloop line Run the program so it stops at LINEB Record Values of the following registers: R7 RS R9 R10 SR _, NZVC o Using the memory browser, modify the content of following memory locations by manuall typing the new values over the initial values (in decimal notation) - 0x0200 = 02, 0x0202 = 03. Ox0204 = 10 o Run the code, and now it will stop at LINEC o Record the updated values of the registers: R7 - RS RIO SR .NZVC Run the code, and now it will stop at Mainloop o Record the values again: R7 R8 R9 R10 SR L.NZVC_ R9 [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: R7 _, R10 SR NZVC_ 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: R8 R9 R7 R8 R9 - R10 SRNZVC__ [5] 0) This lab is designed to help students get acquainted with the MSP430 Launchpad microcontroller training kit. Type the following sample assembly language program which starts at address Ox0200 (&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. LABI mov.W w01, 802eeh mov.W #02, 80202h mov.W #83, 80204h LINEA clr clr clr clr R7 R8 R9 R10 set a number on location $200 ; Set a number on location $0202 jset a number on location $0204 ;clear the entire R7 register ;clear the entire R8 register clear the entire R9 register clear the entire R10 register copy a word from &e2een to R7 copy a word from 80202h to R8 scopy a word from 80204h to R9 LINEB mov.w 8020@h, R7 mov.W 80202h, R8 mov.W 80204h, R9 LINEC mov.b R7, R10 add.b R8, R10 add.b R9, R10 mov.b R10, 80206h start accumulator in Rie with value form R7 add to it the content R8 add to it the content R9 jnow store the sum back in memory Mainloop jmp Mainloop Infinite 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!