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

no-image

s5u1c33000c

Manufacturer Part Number
s5u1c33000c
Description
Cmos 32-bit Single Chip Microcomputer S5u1c33000c Manual
Manufacturer
Epson Electronics America, Inc.
Datasheet
CHAPTER 16: DEBUGGER
ICD trace operation and precautions
322
The trace function in ICD mode is implemented using the method below.
The following four signals should be input to the S5U1C33104H from the target CPU.
The S5U1C33000H reads this 4-bit information for up to 128K clocks in synchronization with the CPU
clock.
The db33 gets the PC value by performing the following flow analysis using the above information and the
disassemble information in the db33.
• DST0–2 = sequential instruction execution: +1 instruction
• DST0–2 = relative branch:
• DST0–2 = absolute branch:
However, this analysis cannot be done if the trace-start point and the corresponding PC value are not
determined.
The db33 determines the PC value using the method below. The symbols in the Method column in the trace
information represent the method used .
Method: SPC
Method: DPC
Method: MAP
Method: TRG
Method: RET
Method: RTI
As a result, there are some restrictions as listed below.
(1) Restriction in overwrite mode
(2) Restriction in area trace mode
(3) Restriction in all trace mode without overwriting
DST0, DST1, DST2....... Signals that indicate the CPU execution status, such as sequential instruction
DPCO ............................. Serial data signal that indicates the branch destination PC address. This signal
When tracing a looped routine that repeats a relative branch, it will not be able to analyze until the PC
value is determined.
As a solution for tracing such routines, there is a way to output DPCO information by generating an
interrupt in several ms cycles using the 8-bit timer (see sample in "cc33\sample\icdtrc").
the trigger addresses, so they cannot be used for the hardware PC break function until area trace mode
is cancelled.
The ICD firmware executes the following process when the program execution is started from a
software PC break point.
1. Clears the software PC break point set at the execution start address.
2. Executes only the first instruction step.
3. Sets the start address as a software PC break again.
4. Executes the following instructions successively.
Therefore, the db33 cannot use the PC value at the start of program execution for analyzing.
When resuming execution of a program that has been suspended at a software PC break point, perform
step execution to skip from the software PC break point before executing the program successively.
Usually the hardware PC break function enables two break addresses. The area trace mode uses them as
Determined from the PC value at the start of program execution if it is fixed.
Determined from the complete DPCO information of an absolute branch operation.
Determined from the incomplete DPCO information of an absolute branch operation and
the complement map information. DPCO information is output when the following
absolute branch instruction is executed or by an interrupt vector jump operation.
call %rb, call.d %rb, jp %rb, jp.d %rb, ret, ret.d, reti, int
Determined by using the trigger address in area trace mode.
Determined from the correspondence between a call statement and a ret statement.
Determined from the correspondence between an interrupt and a reti statement.
(All trace mode without overwriting)
execution, relative branch operation, absolute branch operation and idle status.
is output when an absolute branch operation is performed.
The number of instructions to the branch destination is
calculated from the disassemble information.
The branch destination is determined from the DPCO
information.
EPSON
(C COMPILER PACKAGE FOR S1C33 FAMILY) (Ver. 4)
S5U1C33000C MANUAL

Related parts for s5u1c33000c