s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 519

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
c17 clockmd
c17 clock
■ Example 1 (simulator mode)
S5U1C17001C MANUAL
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
Operation
Format
Usage example
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".
c17 clockmd Mode
c17 clock
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
(gdb) continue
Continuing.
Breakpoint 1, sub (k=1) at main.c:20
(gdb) c17 clock
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.
Counter mode
1 Reset mode
2 Cumulating mode (default)
218 cycle
330 cycle
(set execution counter mode)
(display execution counter)
(sets execution counter mode.)
(displays execution counter.)
EPSON
[ICD Mini / SIM]
10 DEBUGGER
10-127

Related parts for s5u1c17001c