On-Chip Debugger (Dbg); Resource Requirements And Debugging Tool - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

22 On-chip Debugger (DBG)

22.1 Resource Requirements and Debugging Tool

Debugging work area
Debugging requires a 64-byte debugging work area. In the S1C17001, 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
S1C17701 debug pin and inputting the debug command 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).
Pin name
I/O
DCLK (P31)
DSIO (P33)
I/O
DST2 (P32)
Shared with general purpose input/output port pins (P31, P32, P33), 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 P3_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 → P31
∗ P31MUX: P31 Port Function Select Bit in the P3 Port Function Select (P3_PMUX) Register (D1/0x52a3)
DST2 →P32
∗ P32MUX: P32 Port Function Select Bit in the P3 Port Function Select (P3_PMUX) Register (D2/0x52a3)
DSIO → P33
∗ P33MUX: P33 Port Function Select Bit in the P3 Port Function Select (P3_PMUX) Register (D3/0x52a3)
For more information on pin function and switching, refer to "10.2 Input/Output Pin Function Selection (Port
MUX)."
S1C17001 TECHNICAL MANUAL
Table 22.1.1: Debug pin list
Qty
O
1
On-chip debugger clock output pin
Outputs a clock to the ICD.
1
On-chip debugger data input/output pin
Used for inputting/outputting debugging data and inputting break signals.
O
1
On-chip debugger status signal output pin
Outputs the processor status during debugging.
Function
EPSON
22 ON-CHIP DEBUGGER (DBG)
289

Advertisement

Table of Contents
loading

Table of Contents