
24 On-chip Debugger (DBG)
S1C17003 TECHNICAL MANUAL
EPSON
24-1
DBG
24 On-chip Debugger (DBG)
24.1 Resource Requirements and Debugging Tool
Debugging work area
Debugging requires a 64-byte debugging work area. In the S1C17003, RAM addresses 0x0007c0 to 0x0007ff
are assigned as the debugging work area. When using the debugging function, avoid using this area for any
other user applications.
The start address for this debugging work area can be read from the DBRAM register (0xffff90).
Debugging tool
Debugging involves connecting an ICD (In-Circuit Debugger) such as S5U1C17001H (ICD Mini) to the
S1C17003 debug pin and inputting the debug instruction from the PC debugger.
The following tools are required:
S1C17 Family In-Circuit Debugger (e.g., S5U1C17001H)
S1C17 Family C compiler package (S5U1C17001C)
Debug pins
The following debug pins are used to connect an ICD (e.g., S5U1C17001H).
Table 24.1.1: Debug pin list
Pin name
I/O
Qty
Function
DCLK (P43)
O
1
On-chip debugger clock output pin
Outputs a clock to the ICD.
DSIO (P41)
I/O
1
On-chip debugger data input/output pin
Used for inputting/outputting debugging data and inputting break signals.
DST2 (P42)
O
1
On-chip debugger status signal output pin
Outputs the processor status during debugging.
Shared with general purpose input/output port pins (P43, P42, P41), the on-chip debugger input/output pins
(DCLK, DST2, DSIO) are initially set for use as debugger pins. If the debugging function is not used, these
pins can be switched via the P4_PMUX register to enable use as general purpose input/output port pins. Set the
control bits shown below to 1 to switch the pins to general purpose input/output port use.
DCLK
→ P43
P43MUX: P43 Port Function Select Bit in the P4 Port Function Select (P4_PMUX) Register (D6/0x52a8)
DST2
→ P42
P42MUX: P42 Port Function Select Bit in the P4 Port Function Select (P4_PMUX) Register (D4/0x52a8)
DSIO
→ P41
P41MUX: P41 Port Function Select Bit in the P4 Port Function Select (P4_PMUX) Register (D2/0x52a8)
For more information on pin function and switching, refer to “10.2 Input/Output Pin Function Selection (Port
MUX).”