3 CPU AND DEBUGGER
S1C17F13 TeChniCal Manual
Seiko epson Corporation
3-3
(Rev. 1.0)
Debugging tools
To perform debugging, connect ICDmini (S5U1C17001H) to the input/output pin for the debugger embedded
in this IC and control it from the personal computer. This requires the tools shown below.
• S1C17 Family In-Circuit Debugger ICDmini (S5U1C17001H)
• S1C17 Family C Compiler Package (e.g., S5U1C17001C)
List of debugger input/output pins
3.3.3
Table 3.3.3.1 lists the debug pins.
3.3.1 List of Debug Pins
Table 3.
Pin name
I/O
Initial state
Function
DCLK
O
O
On-chip debugger clock output pin
Outputs a clock to the ICDmini (S5U1C17001H).
DSIO
I/O
I
On-chip debugger data input/output pin
Used to input/output debugging data and input the break signal.
DST2
O
O
On-chip debugger status output pin
Outputs the processor status during debugging.
The debugger input/output pins are shared with general-purpose I/O ports and are initially set as the debug pins. If
the debugging function is not used, these pins can be switched to general-purpose I/O port pins. For details, refer to
the “I/O Ports” chapter.
External Connection
3.3.4
Figure 3.3.4.1 shows a connection example between this IC and ICDmini when performing debugging.
DCLK
DSIO
DST2
DCLK
DSIO
DST2
V
DD
ICDmini
(S5U1C17001H)
S1C17
R
DBG
3.4.1 External Connection
Figure 3.
For the recommended pull-up resistor value, refer to “Recommended Operating Conditions, DSIO pull-up resis-
tor R
DBG
” in the “Electrical Characteristics” chapter. R
DBG
is not required when using the DSIO pin as a general-
purpose I/O port pin.
Control Register
3.4
MiSC PSR Register
Register name
Bit
Bit name
Initial
Reset
R/W
Remarks
MSCPSR
15–8 –
0x00
–
R
–
7–5 PSRIL[2:0]
0x0
H0
R
4
PSRIE
0
H0
R
3
PSRC
0
H0
R
2
PSRV
0
H0
R
1
PSRZ
0
H0
R
0
PSRN
0
H0
R
Bits 15–8 Reserved
Bits 7–5
PSRil[2:0]
The value (0 to 7) of the PSR IL[2:0] (interrupt level) bits can be read out with these bits.
Bit 4
PSRie
The value (0 or 1) of the PSR IE (interrupt enable) bit can be read out with this bit.