English
Language : 

TMP89FW24ADFG Datasheet, PDF (525/548 Pages) Toshiba Semiconductor – 8 Bit Microcontroller TLCS-870/C1 Series
TMP89FW24A
27. On-chip Debug Function (OCD)
The TMP89FW24A has an on-chip debug function. Using a combination of this function and the TOSHIBA on-
chip debug emulator RTE870/C1, the user is able to perform software debugging in the on-board environment.
This emulator can be operated from a debugger installed on a PC so that the emulation and debugging functions
of an application program can be used to modify a program or for other purposes.
This chapter describes the control pins needed to use the on-chip debug function and how a target system is con-
nected to the on-chip debug function. For more detailed information on how to use the on-chip debug emulator
RTE870/C1, refer to the emulator operating manual.
27.1 Features
The on-chip debug function of the TMP89FW24A has the following features:
・ Debugging can be performed in much the same way as when a microcontroller packaged with the MCU
is used.
・ The debugging function can be realized using two communication control pins.
・ Useful on-chip debug functions include the following:
- 8 breaks function are provided (one of which can also be used as an event function).
- A trace function that allows the newest two branch instructions to be stored in real time is provided.
- Functions to display active memory and to overwrite active memory are provided.
・ Built-in flash memory can be erased and written.
27.2 Control Pins
The on-chip debug function uses two pins for communication and four pins for power supply, reset and mode con-
trol. The pins used for the on-chip debug function are shown in Table 27-1.
Ports P20 and P21 are used as communication control pins of the on-chip debug function. If the RTE870/C1 On-
Chip Debug Emulator is used, therefore, Ports P20 and P21 cannot be debugged as port pins or LCD segment out-
put, UART0 and SIO0 pins. However, because the UART0 and SIO0 functions can be assigned to other ports by us-
ing SERSEL<SRSEL2>, these communication functions can also be used during on-chip debug operation. For de-
tails, refer to the section of I/O ports.
Table 27-1 Pins Used for the On-chip Debug Function
Pin name
(during on-chip debugging)
OCDCK
OCDIO
RESET
MODE
VDD
VSS
Input and output ports other
than P20 and P21
XIN
XOUT
Input/out-
put
Function
Input Communication control pin (clock control)
I/O
Input
Input
Power
supply
Power
supply
Communication control pin (data control)
Reset control pin
Mode control pin
2.7 V to 5.5 V (Note 1)
0V
(Note 1)
Pin name
(in MCU mode)
P20 / TXD0 / SO0 /
SEG37
P21 / RXD0 / SI0 /
SEG36
RESET
MODE
I/O
Can be used for an application in a target system
Input
Output
To be connected to an oscillator to put these pins in a state of self-oscillation
RA000
Page 509
2012/5/18