Epson S5U1C17001C Manual page 501

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

Measuring the execution cycles/execution time
In ICD Mini or simulator mode, you can measure the program execution cycles or time.
Execution counter
In ICD Mini, the counter measures only execution time. In simulator mode, it counts only the number of cycles
executed.
The measurement results can be displayed in the [Console] window by using the c17 clock command.
If the counter exceeds the maximum measurable value, a message ("clock timer overflow") is displayed.
integrating mode and reset mode
With the debugger's default settings, the execution cycle counter is set to integrating mode. In this mode, the
values measured by the counter each time are integrated until the counter is reset.
Reset mode can be set using the c17 clockmd command. In cases where the counter is set to reset mode, the
counter is reset when the program is started by entering an execution command and continues counting until the
program terminates (or made to break).
resetting the execution counter
The execution counter is reset in the following cases:
• When the mode of the execution counter is changed (from integrating mode to reset mode, or vice versa) by
the c17 clockmd command
• When the program is started while the counter is set to reset mode
• When the CPU is reset
• When the c17 timebrk, step, stepi, next, nexti or finish command is executed in ICD Mini
mode
resetting the CPU
The CPU is reset by the c17 rst command. This command can also be executed using the menu or toolbar
button in the [Source] window.
To execute the c17 rst command: • Choose [Reset] from the [Reset] menu.
(\gnu17\reset.gdb)
note: This menu command/button executes the predetermined command file. The command file at
shipment contains the above reset command only (it may be edited by the user).
When the CPU is reset, its internal registers and other components are initialized as shown below.
(1) Internal registers of the CPU
r0–r7: 0x000000
pc:
Boot address (reset vector in the trap table)
sp:
0xfffffc
psr:
0x00 (IL = 000, IE = 0, CVZN = 0000)
(2) The execution counter is cleared to 0.
(3) The [Source] and [Registers] windows reappear.
Because the PC is set to the boot address, the [Source] window redisplays the program beginning with that
address. The [Registers] window reappears with the initialized values.
Memory contents are not changed.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
• Click the [Reset] button.
[Reset] button
EPSOn
10 DEBUggEr
10
Debugger
10-51

Advertisement

Table of Contents
loading

Table of Contents