Time Measurement
F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B
69
On Debug pull down menu click on
Time Measurement…
, Click on Clear if there are any time entries not equal
to zero, Click on Close then.
Run the program. The MCU will stop at the beginning of the main function (1st breakpoint). This first stop
initializes the time measurement counter. Next, run the program till the second breakpoint.
Now on Debug pull down menu click on
Time Measurement…
, one can find the following information
If we connect oscilloscope probe at PORT00, we can observe the waveform as shown below
As can be seen, readings are closely matching with each other (difference in time is because of the time taken
by MCU for executing instruction for calling and returning from function
wait())