Datasheet
78K0/Ix2 CHAPTER 26 ON-CHIP DEBUG FUNCTION
R01UH0010EJ0500 Rev.5.00 673
Feb 28, 2012
Figure 26-1. Connection Example of QB-MINI2 and 78K0/Ix2 Microcontrollers (3/3)
(3) When using the TOOLC1 and TOOLD1 pins (both debugging and programming are performed)
1
2
3
4
5
6
7
8
9
GND
RESET_OUT
R.F.U.
R.F.U.
R.F.U.
TOOLD1
Note 3
11
13
15
R.F.U.
DATA
R.F.U.
8
TOOLC1
Note 3
10 k
Note 5
RxD
TxD
8
10
R.F.U.
RESET
Note 1
12
14
16
FLMD1
FLMD0
RESET
V
DD
V
DD
V
DD
1 k
Note 5
10 k
Note 4
GND
V
DD
V
DD
3 k to 10 k
Target connector
Target device
Reset connector
Note 5
RESET_IN
Note 5
CLK
Note 2
Notes 1. If there are capacitance elements such as capacitors, on-chip debugging might not operate normally.
2. The clock signal generated by the clock circuit on the target system or by the internal high-speed oscillator of
the device can be used for the clock signal of the target device during on-chip debugging.
Only the internal high-speed oscillator of the device can be used during flash programming.
3. During on-chip debugging, the settings specified by the user program are ignored, because these pins are used
as pins dedicated to on-chip debugging. However, if the pins are specified as input pins, the pins must be
processed (because they are left open when QB-MINI2 is not connected.)
4. This is the processing for the pin that is unused (the input is left open) when the target device operates (when
QB-MINI2 is not connected). (This processing is not required if the pin is set to output.)
5. This connection is designed assuming that the reset signal is output from the N-ch open-drain buffer (output
resistance: 100 or less).
26.2 On-Chip Debug Security ID
The 78K0/Ix2 microcontrollers have an on-chip debug operation control bit in the flash memory at 0084H (refer to
CHAPTER 24 OPTION BYTE) and an on-chip debug security ID setting area at 0085H to 008EH, to prevent third parties
from reading memory content.
When the boot swap function is used, also set a value that is the same as that of 1084H and 1085H to 108EH in
advance, because 0084H, 0085H to 008EH and 1083H, and 1085H to 108EH are switched.
For details on the on-chip debug security ID, refer to the QB-MINI2 On-Chip Debug Emulator with Programming
Function User’s Manual (U18371E).