FR Family MB2198-01 Emulating and Debugging Installation Guide, Doc. No. 002-05223 Rev. *A
24
7. Time Measurement
How to Use Time Measurement Function
7.1
Setup Time Measurement
Use the example from above and enter debugging mode. Open “Main.c” and use normal display (not
mixed
display
). Set three breakpoints as shown below:
Choose
Debug
Ti
me Measurement…
and click on
Clear
if there are any time entries not equal to zero. Click on
Close
then.
Run the program. The CPU will stop at the beginning of the
main
function (1
st
breakpoint). This first stop
initializes the time measurement counter.
Next, go on with execution. The CPU stops at the call to the
wait
function.
Now choose
Debug
Ti
me Measurement…
. You will find the following information
:
From Initialize: 0h00m00s002ms115us375ns[Time]
Time from Reset to
main (
1
st
breakpoint
)
From Last Executed: 0h00m000ms001us100ns[Time]
Time to
wait
(1
st
breakpoint to 2
nd
breakpoint)
From Initialize: 4350[Cycle]
see above
From Last Executed 35[Cycle]
see above
The number of measurement cycles includes an error of about 20 cycles. In the Real-time mode of Full Trace
mode it has additionally an error of about at most +10000 cycles. For measurement use the Internal Trace mode
or External Trace mode, which has less error.
23: void main(void)
=>
(
x
)
24: {
=>
(
)
25: InitIrqLevels();
=>
(
)
26: __set_il(7); /* allow all levels */
=>
(
)
27: __EI(); /* globaly enable interrupts */
28:
=>
(
)
29: a = 2;
=>
(
)
30: DDR0 = 0xFF;
31:
=>
(
)
32: while (1)
33: {
=>
(
)
34: for (b = 0; b < 10; b++)
35: {
=>
(
)
36: c = b * a;
=>
(
)
37:
PDR0 = c;
=>
(
x
)
38:
wait (5000);
=>
(
x
)
39: }
=>
(
)
40: }
=>
(
)
41: }
Summary of Contents for MB2147-01
Page 10: ......
Page 11: ...FUJITSU LIMITED DSU FR EMULATOR MB2198 01 HARDWARE MANUAL ...
Page 12: ......
Page 20: ...viii ...
Page 22: ...x ...
Page 56: ...34 CHAPTER 2 CONNECTION METHOD ...
Page 64: ...42 CHAPTER 3 OPERATION METHOD ...
Page 66: ......
Page 76: ...54 APPENDIX B User System Specifications ...
Page 78: ......
Page 92: ......