3 CPU AND DEBUGGER
S1C17M20/M21/M22/M23/M24/M25
Seiko Epson Corporation
3-3
TECHNICAL MANUAL (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)
3.3.3 List of Debugger Input/Output Pins
Table 3.3.3.1 lists the debug pins.
Table 3.3.3.1 List of Debug Pins
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.
Note: Do not drive the DCLK pin with a high level from outside (e.g. pulling up with a resistor). Also, do
not connect (short-circuit) between the DCLK pin and another GPIO port. In the both cases, the
IC may not start up normally due to unstable pin input/output status at power on.
3.3.4 External Connection
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
Figure 3.3.4.1 External Connection
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.
3.3.5 Flash Security Function
This IC provides a security function to protect the internal Flash memory from unauthorized reading and tampering
by using the debugger through ICDmini. Figure 3.3.5.1 shows a Flash security function setting flow.
Development environment
GNU17 IDE
Factory shipment inspection
process
User
EPSON
file.PA
Mask data file
Specify the unprotecting password.
(6–12 alphanumeric characters (A–Z, a–z, 0–9))
ROM data and password are recorded.
Programming with
ROM data and password
IC with protected Flash
Shipment
Submission
Figure 3.3.5.1 Shipment of IC with ROM Data Programmed and Flash Security Function Setting Flow