24 ON-CHIP DEBUGGER (DBG)
S1C17704 TECHNICAL MANUAL
EPSON
24-1
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.
Table 24.1.1 List of Debug Pins
Pin name
I/O
Size
Function
DCLK (P31)
O
1
On-chip debugger clock output pin
This pin outputs a clock to the ICD Mini (S5U1C17001H).
DSIO (P33)
I/O
1
On-chip debugger data input/output pin
This pin inputs/outputs data for debugging and inputs a break signal.
DST2 (P32)
O
1
On-chip debugger status signal output pin
This pin outputs the processor status during debugging.
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
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...