Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[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
[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 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 ommands 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 black board. #01, #02, #03, &0200h &0202h &0204h ;set a number on location $0200 ;set a number on location $0202 ;set a number on location $0204 LAB1 mov . w mov.w mov.w clr R7 clr R8 clr R9 clr R10 clear the entire R7 register clear the entire R8 register clear the entire R9 register clear the entire R10 register LINEA LINEB mov.w &0200h, R7 mov.w &0202h, R8 mov.w &0204h, R9 copy a word from &0200h to R7 copy a word from &0202h to R8 copy a word from &0204h to R9 LINEC mov.b R7, R10 add.b R8, R10 add.b R9, R10 mov.b R10, &0206h start accumulator in R10 with value form R7 add to it the content R8 add to it the content R9 now store the sum back in memory Mainloop jmpMainloop Infinite Loop Assembly Step Into Disconnect Reset Step Into Pause Restart Assembly Play Stop [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 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 ommands 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 black board. #01, #02, #03, &0200h &0202h &0204h ;set a number on location $0200 ;set a number on location $0202 ;set a number on location $0204 LAB1 mov . w mov.w mov.w clr R7 clr R8 clr R9 clr R10 clear the entire R7 register clear the entire R8 register clear the entire R9 register clear the entire R10 register LINEA LINEB mov.w &0200h, R7 mov.w &0202h, R8 mov.w &0204h, R9 copy a word from &0200h to R7 copy a word from &0202h to R8 copy a word from &0204h to R9 LINEC mov.b R7, R10 add.b R8, R10 add.b R9, R10 mov.b R10, &0206h start accumulator in R10 with value form R7 add to it the content R8 add to it the content R9 now store the sum back in memory Mainloop jmpMainloop Infinite Loop Assembly Step Into Disconnect Reset Step Into Pause Restart Assembly Play Stop
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