F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
68
9. Time Measurement
How to Use Time Measurement Function
The Time Measurement is the simplest method of measurement. A 64-bit counter is used for this measurement
resulting maximum cycle count of 18446744073709551615.
In this method two breakpoints have to be set. After the program has run from breakpoint 1 to 2 the Time
Measurement will show the difference between the breakpoints.
Now, take a look at example as shown below, in a
main()
function, two breakpoints are set. In
a wait()
function
PORT00
is set to high when entered in function and then set to low when left the function.
Time from Resetto
1
st
Breakpoint
Time from
1
st
Breakpoint to
2
nd
Breakpoint
Number of cycles
from Resetto 1
st
Breakpoint
Number of cycles
from 1
st
Breakpoint
to 2
nd
Breakpoint