s5u1c33000c Epson Electronics America, Inc., s5u1c33000c Datasheet - Page 321

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
Exiting from functions or subroutines
Measuring execution cycles/execution time
S5U1C33000C MANUAL
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
(1) Execution counter and measurement mode
(2) Displaying measurement results
(3) Integrating mode and reset mode
(4) Resetting execution counter
The "step-out" feature allows users to run programs successively from the current PC address and to stop
execution upon exiting a function or subroutine. Note that the program stops at the next step after executing
the first return instruction encountered. Therefore, the program does not always stop immediately after
exiting the current function or subroutine.
This command works the same way as the g command until the program executes a return instruction.
Therefore, this command also works the same way as the g command for window display and how it stops
before executing the return instruction.
The S5U1C33104H contains three 31-bit execution counters allowing you to measure the program
execution time (2 systems) and the number of bus clock executed (1 system).
The S5U1C33000H contains a 29-bit execution counter that can be set for measuring execution time (sec or
µsec) or number of CPU clock using the md command.
The execution counter for simulator mode counts only the number of instructions executed.
Note that the execution counter is not available in debug monitor mode.
The following lists the maximum values that can be measured by the execution counter:
Execution time 1: 2147483647 sec = approx. 36 min.
Execution time 2: 2147483647
Clock:
The measurement result is displayed in the [Register] window. This display is cleared during program
execution and is updated after completion of execution. If the [Register] window is closed, the
measurement result can be displayed in the [Command] window using the rd command. The execution
results of single-stepping are also displayed here.
If the count exceeds the counter size, the system indicates "over flow".
In the initial debugger settings, the execution counter is set to an integrating mode. In this mode, the
measured values are combined until the counter is reset.
The reset mode can be set by the md command. In this mode, the counter is reset each time the program is
executed. In successive execution, the counter is reset when the program is made to start executing by
entering the g command and measurement is taken until the execution is terminated (break occurs).
In single-stepping, the counter is reset when the program is made to start executing by entering the s or n
command and measurement is taken until execution of a specified number of steps is completed. The
counter is reset every step if execution of only one step is specified or execution is initiated by a tool bar
button or menu command.
The execution counter is reset in the following cases:
When the execution counter mode is switched over by the md command (from integrating mode to reset
mode)
When program execution is started in reset mode
Execution time 1
Execution time 2
Bus cycle
Instruction
Execution counter
1) From go to brake overhead cost two move prefetch cycles.
Table 16.9.5.4 Measurement units and accuracy of the execution counter
Exit function or subroutine
ICE mode
2147483647 bus clock
Table 16.9.5.3 Command/menu command to step out
Function
50 nsec = approx. 107 sec.
0 100 nsec
ICE mode
0 2 sec
0 2 cycle
EPSON
Command
+0
+0 8 cycle
-1
o
ICD mode
100 nsec
1 sec
ICD mode
536870911 sec = approx. 9 min.
536870911
536870911
[Run]-[Step out]
1
1
1
Menu
Simulator mode
1 0 instruction
50 nsec = approx. 27 sec.
4 = 2147483644 CPU clock
CHAPTER 16: DEBUGGER
305

Related parts for s5u1c33000c