Anybody got any ideas how to get the total execution time of all iterations of the loop using MPLAB SIM and Stopwatch?
Excluding the final NOP and the instructions that initialize the values of X & Y
Info: 10MHz using PIC18F4520.
The answer is:
Just wondering how you would get this value.. I've tried a lot of ways in MPLAB but I'm getting different times from the Stopwatch
Excluding the final NOP and the instructions that initialize the values of X & Y
Info: 10MHz using PIC18F4520.
The answer is:
716.4μs
Just wondering how you would get this value.. I've tried a lot of ways in MPLAB but I'm getting different times from the Stopwatch
Rich (BB code):
radix decimal
x equ 10
y equ 11
CLRF x
CLRF y
loop
INCF x
INCF x
MOVF x,w
ADDWF x
INCF y
BNC loop
NOP
end
Last edited: