On-Chip Debugger (Dbg); Resource Requirements And Debugging Tools - Epson S1C17704 Technical Manual

Cmos 16-bit single chip microcomputer
Table of Contents

Advertisement

24 On-chip Debugger (DBG)

24.1 Resource Requirements and Debugging Tools

Work area for debugging
A 64-byte work area is required for debugging. In the S1C17704, the address range from 0x000fc0 to 0x000fff
in the RAM is reserved as the work area for debugging. When using the debug functions, do not access this
area from the application program.
The debug RAM start address can be read out from the DBRAM register (0xffff90).
Debugging tools
Debugging is performed by connecting the ICD (In-Circuit Debugger) such as S5U1C17001H (ICD Mini) to
the debug pins of the S1C17704 and entering debug commands from the debugger being run on a personal
computer. The tools listed below are required for debugging.
• S1C17 Family In-Circuit Debugger (e.g. S5U1C17001H)
• S1C17 Family C Compiler Package (e.g. S5U1C17001C)
Debug pins
The ICD (e.g. S5U1C17001H) is connected to the debug pins listed below.
Pin name
DCLK (P31)
DSIO (P33)
DST2 (P32)
The on-chip debugger input/output pins (DCLK, DST2, DSIO) are shared with the I/O ports (P31, P32, P33)
and they are initialized as debug pins by default. When the debug function is not used, these pins can be
configured for general-purpose I/O ports using the P3_PMUX register. Set the control bits shown below to 1 to
configure the pins for the I/O ports.
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 details on switching pin function, see Section 10.2, "Selecting I/O Pin Functions (Port MUX)."
S1C17704 TECHNICAL MANUAL
Table 24.1.1 List of Debug Pins
I/O
Size
O
1
On-chip debugger clock output pin
This pin outputs a clock to the ICD Mini (S5U1C17001H).
I/O
1
On-chip debugger data input/output pin
This pin inputs/outputs data for debugging and inputs a break signal.
O
1
On-chip debugger status signal output pin
This pin outputs the processor status during debugging.
Function
EPSON
24 ON-CHIP DEBUGGER (DBG)
24-1

Advertisement

Table of Contents
loading

Table of Contents