82
CHAPTER2 Dependence Functions
2.2.5 Measuring Execution Cycle CountThis function measures the program execution cycle count.
■The measuring item
Measures program execution cycle counts.
The maximum measurable count is "2 to the power of 48 - 1", in other words, up to 281,474,976,710,655
cycles.
The measurement is performed whenever a program is executed, and the measurement result displays the
following two values:
• Number of cycles spent on the previous program execution
• Total number of cycles executed since the previous clearing
■Displaying Measurement Results
Either of the following methods can be used to display the measurement results.
1. Display by dialog
The results appear in the time measurement dialog, which can be displayed by selecting [Debug] –
[Time Measurement] menu.
2. Display by command
Enter the SHOW TIMER command in the command window.
■Clearing Measurement Results
Either of the following methods can be used to clear the measurement results.
1. Operation by dialog
Click the [Clear] button in the time measurement dialog, which can be displayed by selecting [Debug] –
[Time Measurement] menu.
2. Clearing by command
Enter the CLEAR TIMER command in the command window.
■error
The number of measurement cycles includes an error of about 20 cycles. In the Real-time mode or Full
Trace mode, it has additionally an error of about at most (*1) cycles. For time measurement, use the
Internal Trace mode or External Trace mode, which has less error.
Note:
Execution cycle counts are measured in several tens of cycles at one execution. When measuring
execution cycles, set for consecutive executions of many instructions to decrease the efficacy of
errors.
*1: Autowait 1 : +1250
Autowait 3 : +2500
Autowait 7 : +5000
Autowait 15 : +10000