R8C/13 Group
18. On-chip Debugger
18. On-chip debugger
The microcomputer has functions to execute the on-chip debugger. Refer to "Appendix 2 Connecting
examples for serial writer and on-chip debugging emulator". Refer to the respective on-chip debugger
manual for the details of the on-chip debugger. Next, here are some explanations for the respective
functions. Debugging the user system which uses these functions is not available. When using the on-
chip debugger, design the system without using these functions in advance. Additionally, the on-chip
debugger uses the address 0C00016 to 0C7FF16 of the flash memory, thus avoid using for the user
system.
18.1 Address match interrupt
The interrupt request is generated right before the arbitrary address instruction is executed. The
debugger break function uses the address match interrupt. Refer to "10.4 Address match interrupt" for
the details of the address match interrupt. Also, avoid setting the address match interrupt (the registers of
AIER, RMAD0, RMAD1 and the fixed vector tables) with using the user system when using the on-chip
debugger.
18.2 Single step interrupt
The interrupt request is generated every time one instruction is executed. The debugger single step
function uses the single step interrupt. The other interrupt is not generated when using the single step
interrupt. The single step interrupt is only for the developed support tool.
18.3 UART1
The UART1 is used for the communication with the debugger (or the personal computer). Refer to "13.
Serial Interface" for the details of UART1. Also, avoid using the UART1 and the functions (P00/AN7 and
P37) which share the UART1 pins.
18.4 BRK instruction
The BRK interrupt request is generated. Refer to "10.1 Interrupt overview" and "R8C/Tiny series soft-
ware manual". Also, avoid using the BRK instruction with using the user system when using the on-chip
debugger.
Rev.1.20 Jan 27, 2006 page 186 of 205
REJ09B0111-0120