Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please give more details about the answer. thank you 1. How many times does the following loop execute? 001 oooo ocoo cool lion mov #001FW,
please give more details about the answer. thank you
1. How many times does the following loop execute? 001 oooo ocoo cool lion mov #001FW, R6 LoopTop: nop dec R6 inz LoopTop Done: 2. Which branch is taken below? 31 times mov #OFFFFh, R7 inc R7 jnz Case jmp CaseB Cases 3. Below are portions of a LIST file: 92 00C028 D2E32100 xor.b #LED1RED&P1OUT Toggle P1.0 (LED1 - RED) 93 00C02C ; need a delay so we can actually see the LED blink 94 COCO2C B0125000 call #Delay_Long 95 DOC030 ; long delay finished 96 00C030 073C jmp Done A. What is the value contained in PC at the time line 94 is fetched from memory? CO2Ch B. How many bytes are required for the instruction at line 927 4 bytes 4. Fill in below the line(s) of MSP430 Assembly Code to create a loop which will count down from 4 and write the current count value to the RAM memory variable Currentindex each time through the loop. clears memory location to zero Start: mov.w #O, &Currentindex mov.w 4, R15 Top: mov.w R15, & CurrentIndex dec R15 inz Top Finish: jmp Finish ; halt here 5. The following line of code is used to set up PORT 1. mov.b #%11000001, &P1DIR Which bits of PORT 1 are set to output mode? Circle all that are set to output mode: P1.7 P1.6 P1.5 P14 P1.3 P1.2 P11 P1.0Step 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