Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2: (10 points) Circle the best answer for each 1. Calculating the delay in a loop a. Depends in which timer was set b.
Question 2: (10 points) Circle the best answer for each 1. Calculating the delay in a loop a. Depends in which timer was set b. Requires a few NOP instructions c. Is more accurate if one accounts for the cases when the conditional branch or skip is false. d. Relies on the instruction size only 2- Interrupts are used in order not to waste clock cycles waiting for an event to happen b. to execute a service routine c. to stop the microcontroller and save power d. None of the above 3. Upon executing a RETFIE instruction the stack is popped and bottom-of-stack is loaded into the program counter b. the program counter will be incremented by 2 the FSR pointer will contain the value popped from the stack d. none of the above 4- At the start of an interrupt service routine, interrupt flags are checked in order to turn-off other interrupts b. find out what caused the current interrupt cause a delay d. None of the above 5- The sequence executed with the instruction "RETLW 12" is a. PC=contents of (TOS), TOS=TOS-1, WREG="0001 0010" b. TOS=TOS-1, PC=contents of (TOS), WREG="0001 0010" c. PC=contents of (TOS), TOS=TOS+1, WREG="0000 1100" d. TOS=TOS-1, PC=contents of (TOS), WREG="0000 1100" C. C
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