Problem 9: (10 Points) Find out the total time delay of the following code's execution: (The instruction cycle is 4 of the oscillator cycle, and assume the CPU is running on 40MHz crystal and...
Problem 9: (10 Points) Find out the total time delay of the following code's execution: (The instruction cycle is 4 of the oscillator cycle, and assume the CPU is running on 40MHz crystal and TMP1 and TMP2 are user defined DM address) MOVLW MOVWF MOVLW MOVWF NOP NOP DECFSZ GOTO NOP NOP DECF BTFSS GOTO OXEE TMP2 OXAA TMP1 LOOP2 LOOP1 TMP1,F LOOP TMP2,F STATUS,Z LOOP2
Problem 9: (10 Points) Find out the total time delay of the following code's execution: (The instruction cycle is 4 of the oscillator cycle, and assume the CPU is running on 40MHz crystal and TMP1 and TMP2 are user defined DM address) MOVLW MOVWF MOVLW MOVWF NOP NOP DECFSZ GOTO NOP NOP DECF BTFSS GOTO OXEE TMP2 OXAA TMP1 LOOP2 LOOP1 TMP1,F LOOP TMP2,F STATUS,Z LOOP2