Question 1 The subroutine listed below implements a fixed delay. Complete table
ID: 2078923 • Letter: Q
Question
Question 1 The subroutine listed below implements a fixed delay. Complete table T1.1 and hence determine the total that would occur in using this subroutine. ndude the CALL instruction that will e this subroutine in you xecute time calculation and assume the PIC master dock is 1 MHz. TEMP EQU 0x1D Delay MOVLW 0x80 MOVWF TEMP NOP Delay 1 NOP DECFSZTEMP.F GOTO RETURN (8 marks) Instrueian Instruction Odes Number of Table Hence total number of instruction cycles a Hence total time consumed by the subroutine isExplanation / Answer
Instruction Inst. Cycles No. of Executions Total Ins. Cycles
MOVLW 1 1 1
MOVWF 1 1 1
NOP 1 1 1
NOP 1 1 1
DECFSZ TEMP, F 1+1 8+1 9
GOTO 2 2 2
RETURN 2 2 2
Total No. of Instruction Cycles = 17
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.