C17 Clockmd(Set Execution Counter Mode); C17 Clock(Display Execution Counter)[Icd Mini / Sim] - Epson S5U1C17001C Manual

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

Advertisement

c17 clockmd
(set execution counter mode)
c17 clock
(display execution counter)
Operation
c17 clockmd: Sets mode of the execution counter.
The counter can be set to cumulating mode (where measured values are cumulated until the counter is reset) or
reset mode (where the counter is reset each time the program is run).
c17 clock: Displays the results counted during program execution.
In ICD Mini mode, the ICD execution counter value is displayed as hours, minutes, seconds, milliseconds and
microseconds. The execution counter can measure up to about 6515 hours with a ±1 microsecond of error. Note
that it may not measure a short execution time (e.g. when instructions are executed for three microseconds or
less).
In simulator mode, the counter value is displayed as the number of cycles.
For details about the execution counter, see "Measuring the execution cycles/execution time" in Section 10.6.5,
"Executing the Program".
Format
c17 clockmd Mode
c17 clock
Counter mode
Mode:
1 Reset mode
2 Cumulating mode (default)
Usage example
n Example 1 (simulator mode)
(gdb) c17 clockmd 2
(gdb) c17 rst
CPU resetting ...................... done
(gdb) continue
Continuing.
Breakpoint 1, sub (k=0) at main.c:20
(gdb) c17 clock
218 cycle
(gdb) continue
Continuing.
Breakpoint 1, sub (k=1) at main.c:20
(gdb) c17 clock
330 cycle
After setting in cumulating mode, the execution counter is reset by the reset command, thereby starting the
program. In cumulating mode, the execution counter is not reset even when program execution is resumed after
a break.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
(sets execution counter mode.)
(displays execution counter.)
EPSOn
10 DEBUggEr
[ICD Mini / SIM]
10
Debugger
10-137

Advertisement

Table of Contents
loading

Table of Contents