• NQPACK, YQPACK and YQ-GUIDE are products of Tokyo Eletech Corporation.
• Renesas Technology Corporation and Renesas Solutions Corporation put the maximum effort into making semiconductor products better
and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal
injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate
measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any
malfunction or mishap.
• These materials are intended as a reference to assist our customers in the selection of the Renesas Technology product best suited to
the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas
Technology Corporation, Renesas Solutions Corporation or a third party.
• Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, or infringement of any
third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples
contained in these materials.
• All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information
on products at the time of publication of these materials, and are subject to change by Renesas Technology Corporation and Renesas
Solutions Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact
Renesas Technology Corporation, Renesas Solutions Corporation or an authorized Renesas Technology product distributor for the latest
product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or
typographical errors. Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage,
liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology
Corporation and Renesas Solutions Corporation by various means, including the Renesas home page (http://www.renesas.com).
• When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms,
please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and
products. Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, liability or
other loss resulting from the information contained herein.
• Renesas Technology semiconductors are not designed or manufactured for use in a device or system that is used under circumstances
in which human life is potentially at stake. Please contact Renesas Technology Corporation, Renesas Solutions Corporation or an
authorized Renesas Technology product distributor when considering the use of a product contained herein for any specific purposes,
such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
• The prior written approval of Renesas Technology Corporation and Renesas Solutions Corporation is necessary to reprint or reproduce
in whole or in part these materials.
• If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the
Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to
the export control laws and regulations of Japan and/or the country of destination is prohibited.
• Please contact Renesas Technology Corporation or Renesas Solutions Corporation for further details on these materials or the products
contained therein.
Keep safety first in your circuit designs!
Notes regarding these materials
• This product is a development supporting unit for use in your program development and evaluation stages. In mass-producing your
program you have finished developing, be sure to make a judgment on your own risk that it can be put to practical use by performing
integration test, evaluation, or some experiment else.
• In no event shall Renesas Solutions Corporation be liable for any consequence arising from the use of this product.
• Renesas Solutions Corporation strives to renovate or provide a workaround for product malfunction at some charge or without charge.
However, this does not necessarily mean that Renesas Solutions Corporation guarantees the renovation or the provision under any
circumstances.
• This product has been developed by assuming its use for program development and evaluation in laboratories. Therefore, it does not fall
under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in
Japan.
• This product is not qualified under UL or other safety standards and IEC or other industry standards. This fact must be taken into account
when taking this product from Japan to some other country.
For inquiries about the contents of this document or product, fill in the text file the installer of the emulator debugger generates in the
following directory and email to your local distributor.
The M30220TF-PRB is a pod probe for flash memory rewrite mode debug of the M30220 and
M30221 Group of Renesas 16-bit MCUs. The M30220TF-PRB is used by connecting to a PC4701
emulator main unit and the M30200T-RPD-E emulation pod main unit. This product can debug the
CPU rewrite mode.
CPU rewrite mode debug is a function for debugging rewrites of internal flash memory using your
application software. For details on specifications and writing conditions of CPU rewrite mode, refer
to the user's manual of M30220 Group MCUs.
This manual mainly explains specifications, how to set up the M30220TF-PRB and the debugging
procedure for CPU rewrite mode. For detail information about the emulator main unit, emulation pod
main unit, and emulator debugger, refer to each user's manual.
Emulator main unit:PC4701 User's Manual
Emulation pod main unit:M30200T-RPD-E User's Manual
Emulator debugger:M3T-PD30 User's Manual
To check the components of this product, refer to "2.1 Package Components" (page 14) in this
manual. If there is any question or doubt about this product, contact your local distributor.
To use the product properly
Precautions for Safety:
•Both in this User's Manual and on the product itself, several icons are used to insure
proper handling of this product and also to prevent injuries to you or other persons,
or damage to your properties.
• The icons' graphic images and meanings are given in "Chapter 1. Precautions for
Safety". Be sure to read this chapter before using the product.
7.4 How to Request for Repair..................................................................................51
( 5 / 54 )
Terminology
Some specific words used in this user's manual are defined as follows:
Emulator system
This means an emulator system built around the PC4701 emulator. The PC4701 emulator system is
configured with an emulator main unit, emulation pod, pod probe, host machine and emulator
debugger.
Emulator main unit (Hereafter PC4701)
This means the generic name for emulators for 8 and 16-bit MCUs. For details on specific models
of PC4701, visit Renesas Tools Homepage at http://www.renesas.com/en/tools
Emulation pod main unit
This means the emulation pod M30200T-RPD-E for the M16C/20 Series MCUs.
Pod probe
This means pod probe M30220TF-PRB (this product) for the M30220 and M30221 Groups.
Host machine
This means a personal computer used to control the emulator and emulation pod.
Emulator debugger
This means a software tool M3T-PD30 to control the emulator from the host machine through an
interface.
Firmware
Program that analyzes contents of communication with the emulator debugger and controls the
emulator hardware. This program is installed in the EEPROM in the emulator main unit. This
program is downloadable from the emulator debugger to upgrade the firmware or to support other
MCUs.
Software break
A software break is a function to break the program before the system executes an instruction at the
specified address. The instruction at the preset address will not be executed.
Hardware break
A hardware break is a function to break the program when the system detects a write/read of data to/
from memory or a rise/fall edge of the signal entered from the external trace cable. The former break
function is called address break; and the latter break function is called trigger break. While the
instruction at the address where the software break is set is not executed, a hardware break is
performed after the specified instruction is executed.
Evaluation MCU
This means the MCU mounted on the pod probe which is operated in the specific mode for tools.
Target MCU
This means the MCU you are going to debug.
Target system
This means a user's application system using the MCU to be debugged.
*
In this user's manual, this symbol is used to show active LOW. (e.g. RESET*: Reset signal)
( 6 / 54 )
Chapter 1. Precautions for Safety
This chapter describes precautions for using this product safely and properly. For precautions for the emulator main unit,
the emulation pod main unit and the emulator debugger, refer to each user's manual included with your product.
1.1 Safety Symbols and Meanings ..................................................................................................... 8
IMPORTANT
Note on Final Evaluation .............................................................................................9
Note on Differences between Actual MCU and Emulator .......................................... 9
Note on Clock Supply to the MCU............................................................................10
Notes on Interrupts..................................................................................................... 10
Notes on DMA Transfer ............................................................................................ 10
Notes on NMI* Input ................................................................................................. 10
Notes on Referencing and Setting the Work Area.....................................................11
Notes on MAP References and Settings ....................................................................11
Note on Reading SFR Area........................................................................................11
Note on Instructions that Access the Single-step Interrupt Vector Area ................... 11
Note on CPU Rewrite Mode ...................................................................................... 11
( 7 / 54 )
Chapter 1. Precautions for Safety
In both the user's manual and on the product itself, several icons are used to insure proper handling
of this product and also to prevent injuries to you or other persons, or damage to your properties.
This chapter describes the precautions which should be taken in order to use this product safely and
properly. Be sure to read this chapter before using this product.
1.1 Safety Symbols and Meanings
If the requirements shown in the "WARNING"
WARNING
CAUTION
IMPORTANT
In addition to the three above, the following are also used as appropriate.
sentences are ignored, the equipment may
cause serious personal injury or death.
If the requirements shown in the "CAUTION"
sentences are ignored, the equipment may
malfunction.
It means important information on using this
product.
means WARNING or CAUTION.
Example: CAUTION AGAINST AN ELECTRIC SHOCK
means PROHIBITION.
Example: DISASSEMBLY PROHIBITED
means A FORCIBLE ACTION.
Example:
The following pages describe the symbol "IMPORTANT".
UNPLUG THE POWER CABLE FROM THE RECEPTACLE.
( 8 / 54 )
IMPORTANT
Note on Final Evaluation:
• Be sure to evaluate your system and make final confirmation with an CS (Commercial Sample)
version MCU.
Note on Differences between Actual MCU and Emulator:
• Operations of the emulator system differ from those of actual MCUs as listed below.
(1) Initial values of internal resource data at power-on
(2) Internal memories (ROM and RAM) capacities, etc.
With this emulator system, "INT" (emulation memory ON) is the default for mapping areas
other than the SFR area (addresses 000h - 3FFh). For this reason, the emulation memories can
be read and written into in an area other than the SFR, internal RAM or internal ROM area.
(3) Oscillator circuit
• Make note of the fact that in the oscillator circuit where an oscillator is connected between
the XINand XOUT pins, oscillation does not occur because a flexible cable, buffer IC and other
devices are used between the evaluation MCU and the target system. It is same for sub-clock
oscillator circuits (XCIN and XCOUT ).
• For note on when using the oscillator circuit on the target system, refer to "4.2 (2) Using
target system's oscillator" (page 21) of the M30200T-RPD-E User's Manual.
(4) XOUT pin
The XOUT pin is not assigned to the evaluation MCU used by this product. For this reason, the
XOUT pin of this product is open.
(5) DBC, single-step and BRK instruction interrupt vector table addresses
It is possible to download to DBC, single-step and BRK instruction interrupt vector table
addresses. However, because the emulator system uses these areas, data different from the
expected value is read out.
Table 1.1 Vector table addresses for the emulator
Factor to interruptVector table addressesData for reading
1
DBC*
Single-step*
BRK instruction*
1
1
FFFF4h - FFFF7hIndefinite
FFFECh - FFFEFhIndefinite
FFFE4h - FFFE7hIndefinite
*1 Interrupts used for the debugger only
(6) A-D conversion
The characteristics of A-D converter differ from those of actual MCU because there are a
flexible cable, pitch converter and other devices between the evaluation MCU and the target
system. Make the final evaluation of the A-D converter with the actual MCU.
(7) D-A conversion
The characteristics of D-A converter differ from those of actual MCU because there are a
flexible cable, pitch converter and other devices between the evaluation MCU and the target
system. Make the final evaluation of the D-A converter with the actual MCU.
( 9 / 54 )
IMPORTANT
Note on Clock Supply to the MCU:
• Clock can be supplied to the evaluation MCU in one of the following two ways. This is determined
by emulator debugger clock selection.
(1) When "Internal" is selected:
The clock generated by the oscillation circuit in the emulation pod is supplied to the evaluation
MCU. The clock is continually supplied to the evaluation MCU regardless of "the state of
target system clock" and "the state of target program execution".
(2) When "External" is selected:
Clock supply to the evaluation MCU depends on the state of oscillation (oscillate/off) of the
target system.
Notes on Interrupts:
• Even while the target program is not being executed (i.e., even when the target program is paused
or while debug programs are running), the evaluation MCU is operating for controlling debug
programs. Therefore, take note that timers and other functions do not come to a halt when the target
program is not executed.
•If a maskable interrupt is requested while a target program is not being executed (when the target
program is paused or while debug programs are running), the interrupt is not accepted, because the
emulator disables maskable interrupts. If a maskable interrupt is requested while a target program
is not being executed and the program allow the interrupt, the interrupt is accepted immediately
after the target program execution is started.
Notes on DMA Transfer:
• If a DMA request occurs by a timer or other source when the target program is not being executed
(i.e., even when the target program is paused or while debug programs are running), DMA transfer
is executed.
• Make note of the fact that DMA transfer while the target program is stopped may not be performed
correctly.
• Note that the below registers are changed if DMA transfer is generated even when not executing
the target program.
DMA0 transfer counter register:TCR0
DMA1 transfer counter register:TCR1
DMA0 control register:DM0CON
DMA1 control register:DM1CON
Notes on NMI* Input:
• NMI* input from the target system is accepted only while a target program is being executed (i.e.,
only while the RUN status LED on the PC4701's front panel is lit).
• The NMI* interrupt is generated in the following situations.
(1) Immediately after the NMI* pin changes from "H" to "L" level during target program
execution
(2) Immediately after the reset from the target system is released with the NMI* pin "L" level
during target program execution
(3) Immediately after program execution starts with the NMI* pin "L" level, following the reset
is input from the debugger software or emulator
(4) Immediately after program execution starts with the NMI* pin "L" level, when the NMI* pin
is "H" level immediately before the target program stops
( 10 / 54 )
IMPORTANT
Notes on Referencing and Setting the Work Area:
• When using this product, set a start address of the work area to "2C00h" at the time of starting up
the emulator debugger (set by "F/W and Work Area" tab*1 of Init dialog). In this case, the emulator
system uses the area below as a work area.
02C00h - 02C0Fh: Work area
*1 Supported by M3T-PD30 Ver.4.00 or later
•When using the custom command "fmcr1set" (see "4.2 (2) Custom Command fmcr1set" on page
30), the emulator system uses the area below as a work area for "fmcr1set".
02C10h - 02C1Ah: Work area for "fmcr1set"
Notes on MAP References and Settings:
•When starting up the M30200T-RPD-E, initial MAP settings are as follows. Use generally the
M30200T-RPD-E in this setting.
• When debugging the control program for CPU rewrite mode, set the map setting for addresses
E0000h to FFFDFh to "EXT" or "INT", as required. (See Chapter 4.) Be sure to set the map setting
for addresses FFFE0h to FFFFFh to "INT".
Note on Reading SFR Area:
• The following registers cannot be read normally. However, they can be written to normally.
Pull-up control register 2
Key input mode register
Note on Instructions that Access the Single-step Interrupt Vector Area:
• Do not perform the below debugging operations with the single step interrupt vector area (addresses
FFFECh - FFFEFh).
(1) Step execution of instructions that access the single step interrupt vector area
(2) Program execution from the instruction accessing the single step interrupt vector area when
a software breakpoint is set at the instruction
Note on CPU Rewrite Mode:
• For the notes for debugging the control program for CPU rewrite mode, refer to "4.5 Precautions
for CPU Rewrite Mode" (page 37).
( 11 / 54 )
MEMO
( 12 / 54 )
Chapter 2. Preparation
This chapter describes the package components, the system configuration and the preparation for using this product for the
first time.
2.2 Other Tool Products Required for Development........................................................................14
2.3 System Configuration.................................................................................................................15
( 13 / 54 )
Chapter 2. Preparation
2.1 Package Components
This product consists of the following items. When unpacking, check to see if your product package
contains all of these items.
Table 2.1 Package components
Item
M30220TF-PRB pod probe for flash memory rewrite mode debug of M30220 and M30221
Group MCUs
Screws for fixing pod probe
Floppy disk (custom program file)
M30220TF-PRB User's Manual (this manual)
M30220TF-PRB User's Manual (Japanese)
M30220TF-PRB Repair Request Sheet (English/Japanese)
Please keep the M30220TF-PRB's packing box and cushion material in your place for reuse at a later
time when sending your product for repair or other purposes. Always use these packing box and
cushion material when transporting the M30220TF-PRB.
If any of these items are missing or found faulty, please contact your local distributor. Also, if there
is any question or doubt about the packaged product, contact your local distributor.
2.2 Other Tool Products Required for Development
To bring forward programs development on the M30220 and M30221 Group MCUs, the products
listed below are necessary in addition to the package components listed above. Get them separately.
Quantity
1
2
1
1
1
1
Table 2.2 Other tool products
Emulator main unit
Emulation pod main unit
Emulator debugger
Converter board
PC4701
M30200T-RPD-E
M3T-PD30 Ver.4.00 or later
For 144-pin LQFP (144P6Q-A):FLX-144NSD
For 144-pin TQFP (144PFB-A):FLX-144NSE
For 120-pin LQFP (120P6R-A):FLX-120NSE
The converter board which matches to the foot pattern of the target
system is required.
To purchase these products, contact your nearest distributer.
( 14 / 54 )
2.3 System Configuration
Figure 2.1 System configuration
Product (1) shown in Figure 2.1 is this product. Get (2) to (4) separately.
(1) Pod probe (M30220TF-PRB)
This pod probe is for flash memory rewrite mode debug of M30220 and M30221 Group MCUs.
The evaluation MCUs M30220GP-EVA and M30220GP-PORT are mounted on it.
(2) Pitch converter board for 144-pin 0.5-mm-pitch LQFP (FLX-144NSD)
This is a pitch converter board (separately available) to be mounted on the foot pattern for 144pin 0.5-mm-pitch LQFP prepared on the target system.
(3) Pitch converter board for 144-pin 0.4-mm-pitch TQFP (FLX-144NSE)
This is a pitch converter board (separately available) to be mounted on the foot pattern for 144pin 0.4-mm-pitch TQFP prepared on the target system.
(4) Pitch converter board for 120-pin 0.4-mm-pitch LQFP (FLX-120NSE)
This is a pitch converter board (separately available) to be mounted on the foot pattern for 120pin 0.4-mm-pitch LQFP prepared on the target system.
For details on the connection, refer to "3.4 Connecting the Target System" (page 22).
( 15 / 54 )
MEMO
( 16 / 54 )
Chapter 3. Setting Up
This chapter describes switch settings required for using this product and how to connect this product to the PC4701 and
the target system.