1. Renesas Technology Corp. puts 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.
Notes regarding these materials
1. These materials are intended as a reference to assist our customers in the selection of the
Renesas Technology Corp. 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 Corp. or a third party.
2. Renesas Technology Corp. assumes no responsibility for any damage, or infringement of an
third-party's rights, originating in the use of any product data, diagrams, charts, programs,
algorithms, or circuit application examples contained in these materials.
3. 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 Corp. without notice due to
product improvements or other reasons. It is therefore recommended that customers contac
Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributo
for the latest product information before purchasing a product listed herein.
The information described here may contain technical inaccuracies or typographical errors.
Renesas Technology Corp. assumes 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 Corp. by various
means, including the Renesas Technology Corp. Semiconductor home page (http:/
www.renesas.com).
4. 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 Corp. assumes no responsibility for any damage, liability o
other loss resulting from the information contained herein.
5. Renesas Technology Corp. 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 Corp. or an authorized Renesas Technology Corp.
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.
6. The prior written approval of Renesas Technology Corp. is necessary to reprint or reproduce
in whole or in part these materials.
7. If these products or technologies are subject to the Japanese export control restrictions, the
must be exported under a license from the Japanese government and cannot be imported
into a country other than the approved destination.
ny diversion or reexport contrary to the export control laws and regulations of Japan and/ o
the country of destination is prohibited.
8. Please contact Renesas Technology Corp. for further details on these materials or the
products contained therein.
Page 3
M30870T2-CPE User’s Manual Preface
Preface
The M30870T2-CPE is a compact emulator for the M32C/87 Group MCUs with the real-time trace function.
This user's manual mainly describes specifications of the M30870T2-CPE compact emulator and how to setup it. For details on
the following products included with the M30870T2-CPE, refer to each product's online manual.
Before using this product, be sure to read this user's manual carefully.
Keep this user’s manual, and refer to this when you have questions about this product.
Emulator:
The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp.:
(1) Compact emulator main unit
(2) Package converter board for connecting the user system
The emulator herein does not include the customer’s user system and host machine.
Purpose of use of the emulator:
This emulator is a device to support the development of a system that uses the M16C Family M32C/80 Series and M32C/87
Group of Renesas 16/32-bit single-chip MCUs. It provides support for system development in both software and hardware.
Be sure to use this emulator correctly according to said purpose of use. Please avoid using this emulator for other than its
intended purpose of use.
For those who use this emulator:
This emulator can only be used by those who have carefully read the user’s manual and know how to use it.
Use of this emulator requires the basic knowledge of electric circuits, logical circuits, and MCUs.
When using the emulator:
(1) 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.
(2) In no event shall Renesas Solutions Corp. be liable for any consequence arising from the use of this product.
(3) Renesas Solutions Corp. 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 Corp. guarantees the renovation or the provision
under any circumstances.
(4) 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.
(5) Renesas Solutions Corp. cannot predict all possible situations or possible cases of misuse where a potential danger exists.
Therefore, the warnings written in this user’s manual and the warning labels attached to this emulator do not necessarily
cover all of such possible situations or cases. Please be sure to use this emulator correctly and safely on your own
responsibility.
(6) 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.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 4 of 102
Page 5
M30780T2-CPE User’s Manual Important
Usage restrictions:
This emulator has been developed as a means of supporting system development by users. Therefore, do not use it as a device
used for equipment-embedded applications. Also, do not use it for developing the systems or equipment used for the following
purposes either:
(1) Transportation and vehicular
(2) Medical (equipment where human life is concerned)
(3) Aerospace
(4) Nuclear power control
(5) Undersea repeater
If you are considering the use of this emulator for one of the above purposes, please be sure to consult your local distributor.
About product changes:
We are constantly making efforts to improve the design and performance of this emulator. Therefore, the specification or
design of this emulator or its user’s manual may be changed without prior notice.
About the rights:
(1) We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of
any information, products or circuits presented in this user’s manual.
(2) The information or data in this user’s manual does not implicitly or otherwise grant a license for patent rights or any other
rights belonging to us or third parties.
(3) This user’s manual and this emulator are copyrighted, with all rights reserved by us. This user’s manual may not be copied,
duplicated or reproduced, in whole or part, without prior written consent of us.
About diagrams:
The diagrams in this user’s manual may not all represent exactly the actual object.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 5 of 102
Page 6
M30870T2-CPE User’s Manual Precautions for Safety
Precautions for Safety
Definitions of Signal Words
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.
This symbol represents a warning about safety. It is used to arouse caution about a potential
DANGER
WARNING
CAUTION
CAUTION
IMPORTANT
In addition to the five above, the following are also used as appropriate.
means WARNING or CAUTION.
Example:
danger that will possibly inflict an injury on persons. To avoid a possible injury or death,
please be sure to observe the safety message that follows this symbol.
DANGER indicates an imminently dangerous situation that will cause death or heavy wound
unless it is avoided. However, there are no instances of such danger for the product presented
in this user's manual.
WARNING indicates a potentially dangerous situation that will cause death or heavy wound
unless it is avoided.
CAUTION indicates a potentially dangerous situation that will cause a slight injury or a
medium-degree injury unless it is avoided.
CAUTION with no safety warning symbols attached indicates a potentially dangerous
situation that will cause property damage unless it is avoided.
This is used in operation procedures or explanatory descriptions to convey exceptional
conditions or cautions to the user.
CAUTION AGAINST AN ELECTRIC SHOCK
means PROHIBITION.
Example:
DISASSEMBLY PROHIBITED
means A FORCIBLE ACTION.
Example:
UNPLUG THE POWER CABLE FROM THE RECEPTACLE.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 6 of 102
Page 7
M30870T2-CPE User’s Manual Precautions for Safety
WARNING
Warnings for AC Power Supply:
If the attached AC power cable does not fit the receptacle, do not alter the AC power cable and do not plug it
forcibly. Failure to comply may cause electric shock and/or fire.
Use an AC power cable which complies with the safety standard of the country.
Do not touch the plug of the AC power cable when your hands are wet. This may cause electric shock.
This product is connected signal ground with frame ground. If your developing product is transformless (not
having isolation transformer of AC power), this may cause electric shock. Also, this may give an unrepairable
damage to this product and your developing one.
While developing, connect AC power of the product to commercial power through isolation transformer in
order to avoid these dangers.
If other equipment is connected to the same branch circuit, care should be taken not to overload the circuit.
Use the power supply which complies with CE marking requirements.
When installing this equipment, insure that a reliable ground connection is maintained.
If you smell a strange odor, hear an unusual sound, or see smoke coming from this product, then disconnect
power immediately by unplugging the AC power cable from the outlet.
Do not use this as it is because of the danger of electric shock and/or fire. In this case, contact your local
distributor.
Before setting up this emulator and connecting it to other devices, turn off power or remove a power cable to
prevent injury or product damage.
Warnings to Be Taken for This Product:
Do not disassemble or modify this product. Personal injury due to electric shock may occur if this product is
disassembled and modified. Disassembling and modifying the product will void your warranty.
Make sure nothing falls into the cooling fan on the top panel, especially liquids, metal objects, or anything
combustible.
Warning for Installation:
Do not set this product in water or areas of high humidity. Make sure that the product does not get wet. Spilling
water or some other liquid into the product may cause unrepairable damage.
Warning for Use Environment:
This equipment is to be used in an environment with a maximum ambient temperature of 35°C. Care should be
taken that this temperature is not exceeded.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 7 of 102
Page 8
M30870T2-CPE User’s Manual Precautions for Safety
CAUTION
Notes on Connecting the Power Supply of the Emulator:
Do not use any power cable other than the one that is included with the product.
The power cable included with the product has its positive and negative poles color-coded by red and black,
respectively.
Pay attention to the polarities of the power supply. If its positive and negative poles are connected in reverse,
the internal circuit may be broken.
Do not apply any voltages exceeding the product’s rated power supply voltage (5.0 V ±5%). Extreme voltages
may cause a burn due to abnormal heat or cause the internal circuit to break down.
Cautions to Be Taken for Turning On the Power:
Turn ON/OFF the power of the emulator and user system as simultaneously as possible.
Do not leave either the emulator or user system powered on, because of leakage current the internal circuits may
be damaged.
When turning on the power again after shutting off the power, wait about 10 seconds.
Cautions to Be Taken for Handling This Product:
Use caution when handling the main unit. Be careful not to apply a mechanical shock.
Do not touch the connector pins of the emulator main unit and the target MCU connector pins directly. Static
electricity may damage the internal circuits.
Do not pull this emulator by the communications interface cable or the cable for connecting the user system.
And, excessive flexing or force may break conductors.
Caution to Be Taken for System Malfunctions:
If the emulator malfunctions because of interference like external noise, do the following to remedy the trouble.
(1) Press the RESET button on the emulator upper panel.
(2) If normal operation is not restored after step (1), shut OFF the emulator once and then reactivate it.
Precautions for Safety ..................................................................................................................................................6
User Registration........................................................................................................................................................11
1.2 System Configuration ....................................................................................................................................14
1.2.1 System Configuration..........................................................................................................................14
1.2.2 Names and Functions of each part of the Emulator............................................................................15
2.1 Flowchart of Starting Up the Emulator ..........................................................................................................20
2.2 Installing the Included Software ....................................................................................................................21
2.3 Attaching the Ferrite Core .............................................................................................................................22
2.4 Connecting the Power Supply for the Emulator ............................................................................................22
2.5 Connecting the Host Machine .......................................................................................................................23
2.6 Turning ON the Power Supply.......................................................................................................................24
2.6.1 MCU Power Supply Source Selection Jumper/MCU Power Supply Voltage Selection Jumper.........24
2.6.2 Checking Connections of the Emulator System..................................................................................25
2.6.3 Turning ON/OFF the Power ................................................................................................................25
2.6.4 Power Supply to the User System ......................................................................................................25
2.6.5 LED Display When the Emulator Starts Up Normally .........................................................................26
2.7.2 If an Error is Detected in the Self-check..............................................................................................29
2.8 Connecting the User System.........................................................................................................................30
2.8.1 Connecting to a 100-pin LCC socket ..................................................................................................31
2.8.2 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1)............................................................32
2.8.3 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2)............................................................33
2.8.4 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3)............................................................34
2.8.5 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 1)..............................................................35
2.8.6 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 2)..............................................................36
2.8.7 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 3)..............................................................37
2.8.8 Connecting to a 144-pin 0.5-mm-pitch Foot Pattern...........................................................................38
3.1 Starting Up the Emulator Debugger (Init Dialog Box) ...................................................................................52
3.2 Starting Up the Emulator Debugger (EMEM Dialog Box) .............................................................................58
3.3 Program Window...........................................................................................................................................62
4.2 Differences between the Actual MCU and Emulator.....................................................................................80
Notes on the User System (Power Supply, Order of Powering On) ............................................................80
Notes on Using This Product When the Voltage of VCC1 is Higher than That of VCC2.............................80
Note on Intelligent I/O Resistor Access........................................................................................................80
Note on Differences between the Actual MCU and Emulator......................................................................81
Note on RESET* Input .................................................................................................................................81
Note on RDY* Input......................................................................................................................................81
Note on HOLD* Input ...................................................................................................................................81
Note on NMI* Input.......................................................................................................................................81
Notes on Reset Vector Area ........................................................................................................................82
Notes on Stack Area ....................................................................................................................................82
Notes on Maskable Interrupts ......................................................................................................................82
Notes on Access Prohibited Area ................................................................................................................82
Note on DMA Transfer .................................................................................................................................82
Note on DMAC II Transfer Completion Interrupts........................................................................................82
Note on Final Evaluation ..............................................................................................................................82
4.4.1 External Dimensions of the Compact Emulator ..................................................................................86
4.4.2 External Dimensions of the M30800T-PTC ........................................................................................87
4.4.3 External Dimensions of the M3T-F160-100NSD.................................................................................88
4.4.4 External Dimensions of the M3T-FLX-144NSD ..................................................................................88
4.5 Notes on Using This Product.........................................................................................................................89
Notes on the Self-check ...............................................................................................................................89
Note on Quitting the Emulator Debugger.....................................................................................................89
Notes on Clock Supply to the MCU..............................................................................................................89
Notes on Using the CPU Clock at Less than 10 MHz..................................................................................89
Notes on Address-Match Interrupts .............................................................................................................89
Notes on EMEM Dialog Box.........................................................................................................................90
Notes on the Watchdog Function.................................................................................................................90
Notes on Debugging in CPU Rewrite Mode.................................................................................................90
Note on Software Breaks .............................................................................................................................91
Notes on Service-Life of the MCU’s Internal Flash ROM.............................................................................91
Note on Voltage Detect Circuit.....................................................................................................................91
Note on Protect Register..............................................................................................................................91
Note on Memory Access ..............................................................................................................................91
Notes on A/D Conversion.............................................................................................................................92
Notes on MCU File.......................................................................................................................................93
Notes on CE Declaration of Conformity .......................................................................................................93
5.1 Flowchart to Remedy the Troubles ...............................................................................................................94
5.2 When the Emulator Debugger Does Not Start Up Properly..........................................................................95
5.3 How to Request for Support..........................................................................................................................98
6. Maintenance and Guarantee ..................................................................................................................................99
6.1 User Registration...........................................................................................................................................99
6.5 How to Make Request for Repair ................................................................................................................100
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 10 of 102
Page 11
M30870T2-CPE User’s Manual User Registration
User Registration
When you have purchased the emulator presented in this user's manual, please be sure to register it. As the H/W Tool
Customer Registration Sheet is included with this manual, fill it in and FAX it to your local distributor or email the same
contents to the following address. If you register it by email, you can use a text format for user registration created when
installing the software in the following folder. Your registered information is used for o nly after-sale services, and no t for any
other purposes. Without user registration, you will not be able to receive maintenance services such as a notification of field
changes or trouble information. So be sure to carry out the user registration.
For more information about user registration, please email to the following address.
Text format for user registration C:\Program Files\Renesas\Hew\Support
For user registration regist_tool@renesas.com
REJ10J0766-0400 Rev.4.00 February 16, 2006 Page 11 of 102
Page 12
M30870T2-CPE User’s Manual Terminology
Terminology
Some specific words used in this user’s manual are defined as follows:
Emulator M30870T2-CPE
This means the compact emulator (this product) for M32C/87 Group MCUs.
MCU board M30870T-EPBM
The MCU board M30870T-EPBM with an evaluation MCU.
Emulator system
This means an emulator system built around the M30870T2-CPE emulator. The M30870T2-CPE emulator system is
configured with an emulator main unit M30870T2-CPE, M32C compact emulator debugger and host machine.
M32C compact emulator debugger
This means a software tool which you can control the emulator from a host machine through the USB interface.
Firmware
This means a program stored in the flash ROM of the emulator. It analyzes contents of communication with the emulator
debugger and controls the emulator M30870T2-CPE. This program is downloadable from the emulator debugger to upgrade
firmware or to support other MCUs.
Host machine
This means a personal computer used to control the M30870T2-CPE emulator system.
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
leading/trailing 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.
Target MCU
This means the microcomputer you are going to debug.
User system
This means a user’s application system using the microcomputer to be debugged.
User program
This means a user’s application program to be debugged.
Evaluation MCU
This means a microcomputer mounted on the emulator which is operated in the special mode for the emulator.
*
In this user’s manual, this symbol is used to show active LOW. (e.g. RESET*)
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 12 of 102
Page 13
M30870T2-CPE User’s Manual 1. Outline
1. Outline
This chapter describes the package components, the system configuration and the preparation for using this product for the first
time.
1.1 Package Components
The M30870T2-CPE package consists of the following items. When unpacking it, check to see if your M30870T2-CPE
contains all of these items.
Table 1.1 Package components
Item Quantity
M30870T2-CPE compact emulator 1
M30800T-PTC (pre-mounted) converter board for 100-pin LCC socket 1
IC61-1004-051 100-pin LCC socket made by Yamaichi Electronics Co, Ltd. 1
OSC-3 (32MHz) oscillator circuit board 1
OSC-2 oscillator circuit bare board 1
USB interface cable for connecting host machine and emulator 1
Power supply cable for compact emulator 1
Ferrite core for connecting power supply cable 1
H/W Tool Customer Registration Sheet (English) 1
H/W Tool Customer Registration Sheet (Japanese) 1
M30870T2-CPE User’s Manual (this manual) 1
M30870T2-CPE User’s Manual (Japanese) 1
M30870T2-CPE Release Notes (English) 1
M30870T2-CPE Release Notes (Japanese) 1
CD-ROM - M32C compact emulator debugger
- C compiler M3T-NC308WA
(evaluation version)
* Please keep the M30870T2-CPE’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 this
product.
* If there is any question or doubt about the packaged product, contact your local distributor.
1
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 13 of 102
Page 14
M30870T2-CPE User’s Manual 1. Outline
1.2 System Configuration
1.2.1 System Configuration
Figure 1.1 shows a configuration of the M30870T2-CPE system.
Host machine
(not included)
Power supply for emulator
(not included)
Power supply cable
Compact emulator
M30870T2-CPE
USB interface cable
Power supply
for user system
(not included)
User system
Figure 1.1 System configuration
(1) Compact emulator M30870T2-CPE (this product)
This is a compact emulator for the M32C/87 Group with the real-time trace functions (hereafter, emulator).
(2) USB interface cable (included)
This is an interface cable for the host machine and the emulator.
(3) Power supply for emulator
This is a power supply for the emulator. Supply 5.0 V ±5% (DC).
Prepare a power supply which complies with CE marking requirements separately. The power cable is included with this
product.
Note: Be aware that there are some AC adapters whose power supply voltage varies rather widely with its load. You are
recommended to use an AC adapter with a switching power supply or a stabilized power supply.
(4) User system
This is your application system. This emulator can be used without the user system.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 14 of 102
Page 15
M30870T2-CPE User’s Manual 1. Outline
(5) Power supply for the user system
This is a power supply for the user system. As this emulator cannot supply the power to the user system, supply the power
to the user system separately from the emulator.
(6) Host machine
This is a personal computer for controlling the emulator.
(7) Pitch converter board such as M30800T-PTC (included)
This is a pitch converter board for connecting to an MCU foot pattern on the user system (for 100-pin 0.65-mm-pitch
LCC socket). For details, refer to “2.8 Connecting the User System” (page 30).
1.2.2 Names and Functions of each part of the Emulator
Figure 1.2 shows the names of the LEDs on the upper panel of the emulator.
J1: Power connector
J2: USB cable connector
System status LEDs
LED1: Emulator power (POWER)
LED2: Emulator startup (SAFE)
Target status LEDs
LED3: User system power (POWER)
LED4: Clock oscillation (CLOCK)
LED5: MCU RESET pin (RESET)
LED6: Program execution (RUN)
LED1
POWER
SAFE
POWER
CLOCK
RESET
RUN
POWER
SAFE
LED2
LED3
POWER
CLOCK
RESET
RUN
LED5 LED4
LED6
COMPACTEMULATOR
POWER USB
SYSTEM
STATUS
COMPACT EMULATOR
5.0V
M30870T2-CPE
TARGET
STATUS
MADE IN JAPAN
MADE
5.0V
JP2
3.3V
EXT
MCU
POWER
JP1
INT
SW1
System reset switch
JP2
5.0V
3.3V
EXT
JP1
INT
JP2: MCU power supply voltage selection jumper
(factory-setting: 5.0V)
JP1: MCU power supply source selection jumper
(factory-setting: INT)
Switches and Selection Jumpers on the M30870T-EPBM
SW1--SW5 and JP1 (emulator side panel)
Figure 1.2 Names of the LEDs on the upper panel of the M30870T2-CPE
(1) System Status LEDs
The system status LEDs indicate the emulator main unit’s operating status etc. Table 1.2 lists the definition of the system status
LEDs.
Table 1.2 Definitions of the system status LEDs
Name Number Color Status Meaning
ON Power is supplied to the emulator. POWER LED1 Orange
OFF Power is not supplied to the emulator.
ON Emulator system has started normally. SAFE LED2 Green
OFF Emulator system has not started normally.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 15 of 102
Page 16
M30870T2-CPE User’s Manual 1. Outline
(2) Target Status LEDs
The target status LEDs indicate the target MCU’s power supply and operating status. Table 1.3 lists the definition of each
target status LED.
Table 1.3 Definitions of the target status LEDs
Name Number Color Status Meaning
ON Power is supplied to the target MCU. POWER LED3 Orange
OFF Power is not supplied to the target MCU.
ON The target MCU internal clock is oscillating. CLOCK LED4 Green
OFF The target MCU internal clock is not oscillating.
ON Target MCU is being reset. RESET LED5 Red
OFF Target MCU is not being reset.
ON User program is being executed. RUN LED6 Green
OFF User program is not being executed.
(3) System Reset Switch
By pressing the system reset switch, you can initialize the emulator system. Table 1.4 shows the functions of the system reset
switch depending on the state of the emulator.
Table 1.4 Functions of the system reset switch
State of Emulator Function
When the user’s program is halted
When the user’s program is executed
Initializes the emulator and waits for a command from the
emulator debugger
Stops the user’s program, initializes the emulator, and
waits for a command from the emulator debugger.
IMPORTANT
Notes on a System Reset:
After pressing the system reset switch, restart the emulator debugger. Otherwise the display of emulator
debugger and the actual value (in the emulator) may not match.
When the emulator debugger does not start up normally even after rebooting, turn off the emulator and then turn
on again.
(4) Power Connector (J1)
This is a connector for connecting the power supply to this product. For details, refer to “2.4 Connecting the Power Supply for
the Emulator” (page 22).
(5) USB Cable Connector (J2)
This is a USB cable connector for connecting the host machine to this product. For details, “2.5 Connecting the Host Machine”
(page 23).
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 16 of 102
Page 17
M30870T2-CPE User’s Manual 1. Outline
(6) MCU Power Supply Source Selection Jumper (JP1)
This is a jumper switch to set the power supply source to the MCU. For details on this switch, see “2.6.1 MCU Power Supply
Source Selection Jumper/MCU Power Supply Voltage Selection Jumper” (page 24).
(7) MCU Power Supply Voltage Selection Jumper (JP2)
This is a jumper switch to set the power supply voltage of the MCU. This setting is valid when the MCU power supply source
selection jumper is set to INT only. For details on this switch, see “2.6.1 MCU Power Supply Source Selection Jumper/MCU
Power Supply Voltage Selection Jumper” (page 24).
(8) Switches and Selection Jumpers on the M30870T-EPBM
These are switches to change the connections in the emulator according to the user system.
For details on the settings, see “2.9 Changing Settings” (page 39).
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 17 of 102
Page 18
M30870T2-CPE User’s Manual 1. Outline
1.3 Specifications
Table 1.5 and 1.6 list specifications of the M30870T2-CPE.
Table 1.5 M30870T2-CPE specifications (1/2)
Applicable MCUs M32C/87 Group
Evaluation MCU M3087BFLGP
ROM size: 1024 KB + 4 KB, RAM size: 48 KB
Usable mode Single-chip mode
Memory expansion mode
Maximum operating frequency* VCC1=VCC2=4.2--5.5V: 32MHz
VCC1=VCC2=3.0--5.5V: 24MHz
Dual-power supply specification
(4.8 V ≤ VCC1 ≤ 5.5 V and 3.0 V ≤ VCC2 < VCC1): 24MHz
User system connected
(JP1=EXT)
User system not connected
(JP1=INT)
Basic debugging functions - Download
- Software break (max. 64 points)
- Program execution/stop (allows free-run execution supporting software breaks)
Real-time RAM monitor function - 1,024 bytes (256 bytes x4)
- Data/last access result
Hardware break function 2 points (Address match, bus match, max. 255 pass counts)
Execution time measurement function Time between program start and stop
* Notes on Using This Product
- If using this product when the voltage of VCC1 is higher than that of VCC2, the CPU clock must be 24MHz or less.
- If using a CPU clock of more than 24MHz, set the SFR area of the intelligent I/O function to 2-wait (set the PM13 bit to
"1") when reading this area.
These precautions only need to be observed when using an emulator, and does not apply for the actual MCU.
3.0--5.5 V Applicable power supply
3.3 V or 5.0 V
(supplied from the emulator, set by JP2)
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 18 of 102
Page 19
M30870T2-CPE User’s Manual 1. Outline
Table 1.6 M30870T2-CPE specifications (2/2)
Connection to user system
(see “2.8 Connecting the User System”
on page 30)
For 144-pin 0.5-mm-pitch LQFP
(144P6Q-A)
For 100-pin 0.5-mm-pitch LQFP
(100P6Q-A)
Power supply for emulator DC 5.0 V ±5 % / (2 A) externally supplied
(Prepare a power supply which complies with CE marking requirements
separately.)
Host machine interface USB (USB 1.1 full-speed*, mini-B standard connector)
* Available to connect the host machine that supports USB 2.0. With the USB interface, not all hardware (such as host
machine, USB devices, USB hub) combination will work and guaranteed.
1.4 Operating Environment
Be sure to use thins emulator with the operating environmental of the emulator and host machine listed in Tables 1.7 and 1.8.
Table 1.7 Operating environmental conditions
Item Description
Operating temperature 5 to 35°C (no dew)
Storage temperature -10 to 60°C (no dew)
Table 1.8 Operating environment of the host machine
Item Description
Host machine IBM PC/AT compatibles
OS Windows Me
Windows 98
Windows XP
Windows 2000
CPU Pentium III 600 MHz or more recommended
Host machine interface USB 1.1 full-speed
Memory 128 MB or more recommended
Pointing device such as mouse Mouse or any other pointing device usable with the above OS that can be
connected to the main body of the host machine.
CD drive Needed to install the emulator debugger or refer to the user’s manual
*1 Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States
and other countries.
*2 Available to connect the host machine that supports USB 2.0. With the USB interface, not all hardware (such as host
machine, USB devices, USB hub) combination will work and guaranteed.
*1
*2
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 19 of 102
Page 20
M30870T2-CPE User’s Manual 2. Setup
2. Setup
This chapter describes the preparation for using this product, the procedure for starting up the emulator and how to change
settings.
2.1 Flowchart of Starting Up the Emulator
The procedure for starting up the emulator is shown in Figure 2.1. For details, refer to each section hereafter. And, when the
emulator does not start up normally, refer to “5. Troubleshooting” (page 94).
Debug a program with various functions of
Figure 2.1 Flowchart of starting up the emulator
Check the package components. Refer to “1.1 Package Components (page 13).
↓
User registration Refer to “User Registration” (page 11).
↓
Install the M32C compact emulator debugger. Install it from the included CD-ROM.
↓
Set the MCU power voltage
selection jumper (JP2).
↓
Connect the USB interface cable.
↓
Connect the power supply for the emulator.
↓
Connect the user system. Connect the user system as occasion demands.
↓
Turning on the power supply.
↓
Check the LED display of the emulator.
↓
Start up the emulator debugger. Start up the emulator debugger.
↓
Set the operating environment
of the emulator debugger.
↓
the emulator debugger.
Select a power voltage supplied to the target MCU.
Connect the USB interface cable to the USB interface connector
(J2) of the emulator and the USB port of the host machine.
Connect a power supply to the power connector (J1). Power supply
should be 5.0 V ±5%, / 2 A.
Turn on the power to the emulator and the user system as
simultaneously as possible.
Check that the system status LED, and POWER and RESET of
target status LED are lighting. When the user system is not
connected, the POWER of target status LED does not light up.
Set the INIT dialog box and EMEM dialog box of the emulator
debugger.
For how to use the emulator debugger, refer to its online manual.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 20 of 102
Page 21
M30870T2-CPE User’s Manual 2. Setup
2.2 Installing the Included Software
If the OS used in your host machine is Windows XP or 2000, this installation must be executed by a user with administrator
rights. Be aware that users without administrator rights cannot complete the installation.
The "auto_run.exe" starts up by inserting the included CD into the CD-ROM drive, and the HTML page for installation will
open. Install the C compiler, emulator debugger and USB driver as occasion demands.
In process of installation, “user information” dialog box to enter the user information (contractor, section, contact address, and
host machine) will open. The supplied information will be turned into a format by which technical support will be provided by
e-mail.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 21 of 102
Page 22
M30870T2-CPE User’s Manual 2. Setup
2.3 Attaching the Ferrite Core
Attach the ferrite core included with this product close to the DC plug of the power cable. Without the ferrite core it may cause
interference.
The power cable should be wound around the ferrite core as shown in the figure, and close the ferrite core until it clicks.
Figure 2.2 Attaching the ferrite core
2.4 Connecting the Power Supply for the Emulator
Connect the power supply for the emulator to the power connector (J1). The specification of the power supply for the emulator
is listed in Table 2.1.
Table 2.1 Specification of power supply of the emulator
Power supply voltage
Figures 2.3 and 2.4 show the specifications of the power connector (J1) and an applicable plug, respectively.
DC 5.0 V±5%/2 A
Electrode (-) Electrode (+)
ɸ 1.7mm(Inside diameter)
4.75mm
ɸ
Figure 2.3 Power connector specifications Figure 2.4 Applicable plug specifications
CAUTION
Notes on Connecting a Power Supply of the Emulator:
The power cable included in this product package is colored red (+) and black (-).
Be careful about the polarity of the power supply. Connecting to the wrong electrode could destroy internal
circuits.
Do not apply a voltage exceeding the specified voltage of the product (5.0 V ±5%), because it may cause burn
injuries and the failure of internal circuits.
Use the power supply which complies with CE marking requirements.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 22 of 102
Page 23
M30870T2-CPE User’s Manual 2. Setup
2.5 Connecting the Host Machine
Connect the emulator and the host machine with the USB interface cable.
Connect the USB interface cable (included) to the USB interface connector (J2) and the USB port of the host machine (see
Figure 2.5).
To host machineTo emulator power supply
b
LED1
POWER
SAFE
POWER
CLOCK
RESET
RUN
LED2
LED3
LED6
LED5 LED4
POWER
SAFE
POWER
CLOCK
RESET
RUN
COMPACTEMULATOR
Figure 2.5 Connecting the emulator system
Connect the power cable to
connector J1.
POWER USB
SYSTEM
STATUS
COMPACT EMULATOR
5.0V
J1
M30870T2-CPE
TARGET
STATUS
MADE IN JAPAN
MADE
J2
MCU
POWER
Connect the USB interface cable to
connector J2.
SW1
5.0V
JP2
3.3V
EXT
JP1
INT
5.0V
3.3V
EXT
INT
JP2
JP1
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 23 of 102
Page 24
M30870T2-CPE User’s Manual 2. Setup
2.6 Turning ON the Power Supply
2.6.1 MCU Power Supply Source Selection Jumper/MCU Power Supply Voltage Selection Jumper
Set the MCU power supply source selection jumper and the MCU power supply voltage selection jumper of the emulator
according to conditions of use.
POWER USB
5.0V
3.3V
EXT
INT
SW1
JP1
JP2
5.0V
JP2
JP1: MCU power supply source
selection jumper
(factory-setting: INT)
JP2: MCU power supply voltage
selection jumper
(factory-setting: 5.0V)
3.3V
EXT
JP1
INT
LED1
POWER
SAFE
POWER
CLOCK
RESET
RUN
POWER
SAFE
LED2
LED3
POWER
CLOCK
RESET
RUN
LED5 LED 4
LED6
COMPACT EMULATOR
SYSTEM
STATUS
COMPACT EMULATOR
5.0V
M30870T2-CPE
TARGET
STATUS
MADE IN JAPAN
MADE
MCU
POWER
5.0V
JP2
3.3V
EXT
JP1
INT
Figure 2.6 Jumper switch locations
These are the jumper switches to select power supply to the MCU and its power voltage. As shown in Table 2.2 below, set the
switch according to the connection to the user system.
Table 2.2 Setting jumper switches
Connection to
the user system
MCU power supply
source selection
jumper (JP1)
Not connected INT
MCU power supply
voltage selection
jumper (JP2)
3.3 V
5.0 V
Description
Supplied from the emulator. The MCU operating
voltage is 3.3 V.
Supplied from the emulator. The MCU operating
voltage is 5.0 V.
Supplied from the user system. This emulator
Connected EXT Invalid
consumes max. 500 mA of electrical current from the
user system.
Note on Jumper Switch Settings:
Always shut OFF the emulator before changing the setting of the jumper switches, and connecting the cable.
Otherwise the internal circuit may cause a break.
REJ10J0766-0400 Rev.4.00 February 16, 2006
CAUTION
Page 24 of 102
Page 25
M30870T2-CPE User’s Manual 2. Setup
2.6.2 Checking Connections of the Emulator System
Before turning the power ON, check the connection of the interface cable to the host machine, emulator, and user system.
2.6.3 Turning ON/OFF the Power
Turn ON/OFF the power of the emulator and user system as simultaneously as possible.
Do not leave either the emulator or user system powered on, because of leakage current the internal circuits may be damaged.
When turning ON the power again after shutting OFF the power, wait for about 10 seconds.
2.6.4 Power Supply to the User System
This emulator cannot supply the power to the user system. Therefore design your system so that the user system is powered
separately. This product consumes max. 500mA of electrical current from the user system. Please consider the capacity of the
power supply of the user system.
The voltage of the user system should be within the following. And do not change the voltage of the user system after turning
on the power.
(1) When JP1 of the M30870T-EPBM is set as VCC1=2:
3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V
(2) When JP1 of the M30870T-EPBM is set as VCC1 > 2:
4.8 V ≤ VCC1 ≤ 5.2 V
3.0 V ≤ VCC2 < VCC1
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 25 of 102
Page 26
M30870T2-CPE User’s Manual 2. Setup
2.6.5 LED Display When the Emulator Starts Up Normally
After the emulator starts up, check the status of the LEDs to see whether the emulator operation is enabled or not. Figure 2.7
shows the positions of the emulator status LEDs.
POWER USB
SW1
JP2
5.0V
3.3V
EXT
JP1
INT
System status LEDs
Target status LEDs
LED1
POWER
SAFE
POWER
CLOCK
RESET
RUN
POWER
SAFE
LED2
LED3
POWER
CLOCK
RESET
RUN
LED5 LED4
LED6
COMPACT EMULATOR
SYSTEM
STATUS
COMPACT EMULATOR
5.0V
J1
M30870T2-CPE
TARGET
STATUS
MADE IN JAPAN
MADE
J2
5.0V
JP2
3.3V
EXT
MCU
POWER
JP1
INT
Figure 2.7 Positions of the system status LEDs and target status LEDs
(1) System status LEDs
Check that the LED1 and LED2 of the system status LEDs are lit immediately after the power is activated. If it is not lit, shut
off the emulator and check the power supply for the emulator is properly connected.
(2) Target status LEDs
Target status LEDs light as shown in Figure 2.8 when the user system is not connected and as shown in Figure 2.9 when a user
system is connected. After turning on the power, only the LED5 (RESET) lights on. Check the target status LEDs display normally after starting up the emulator debugger.
When the target status LEDs do not display as shown in Figures 2.8 and 2.9, refer to “5. Troubleshooting” (page 94).
When the user system NOT connected:
The POWER LED does not light.
POWER
CLOCK
LED 3
LED4
: ON
RESET
LED5
: OFF
RUN
LED6
Figure 2.8 Target status LEDs display when the emulator starts up normally (when user system not connected)
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 26 of 102
Page 27
M30870T2-CPE User’s Manual 2. Setup
When the user system connected:
When the POWER LED does not light, shut off
the system and check the setting of the
jumper switches, and if the power is properly
supplied to the user system.
POWER
LED 3
CLOCK
RESET
LED 4
LED 5
: ON
RUN
LED 6
: OFF
Figure 2.9 Target status LEDs display when the emulator starts up normally (when user system connected)
IMPORTANT
Note on the Target Status CLOCK LED:
If the LED is not turned on, check the following.
(1) After powering on the emulator (before starting up the emulator debugger):
Make sure that the oscillator circuit board is properly installed in the emulator and it is oscillating normally.
(2) After the emulator debugger is started up (after the Init dialog box settings are completed):
Make sure that the oscillator selected in the Init dialog box is oscillating normally.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 27 of 102
Page 28
M30870T2-CPE User’s Manual 2. Setup
2.7 Self-check
2.7.1 Self-check Procedure
To run the self-check of the emulator, do so as explained here below. While the self-check is in progress, the LEDs will change
as shown in Figure 2.10.
(1) If the user system is connected, disconnect it.
(2) Set the switches as the factory-settings to execute the self-check (see Table 2.3).
(3) Within 2 seconds of activating power to the emulator, press the system reset switch on the emulator upper panel.
(4) Check the SAFE LED starts flashing and then press the system reset switch again.
(5) The self-check will start. If the normal result is displayed in about 10 seconds, the self-check terminated normally.
Table 2.3 Switch settings for the self-check
Switch Setting
MCU power supply source selection jumper (JP1) INT
MCU power supply voltage selection jumper (JP2)5V
POWER
LED3
POWER
LED 3
POWER
LED3
POWER
LED3
CLOCK
CLOCK
RESETRUN
CLOCK
LED 4LED 5LED 6
RESETRUN
LED 4LED 5LED 6LED 1LED 2
RESETRUN
CLOCK
LED4LED5LED6
Blinking
RESETRUN
LED4LED5LED 6
SAFE LED status
POWERSAFE
LED 1LED 2
POWERSAFE
Self -check starts .
POWERSAFE
LED1LED2
ON
Normal
POWERS AFE
LED1LED2
RESET(1 ) Within 2 seconds of activating power,
RESET
(3 ) Target status LEDs start blinking at random intervals..
It takes 10 seconds at XIN = 32 MHz.
OFF
POWER
LED3
press the reset switch.
(2 ) Check that the SAFE LED starts
blinking,, then press the system reset
switch again..
RESET RUN
CLOCK
LED4LED5LED 6
Error
POWERSAFE
LED1LED2
Figure 2.10 LED display during the self-check
REJ10J0766-0400 Rev.4.00 February 16, 2006
SAFE LED is turned off and one or more target status
LEDs start blinking according to the error type.
LED display
ON
Blinking
Page 28 of 102
OFF
Page 29
M30870T2-CPE User’s Manual 2. Setup
2.7.2 If an Error is Detected in the Self-check
Table 2.4 lists how to remedy the troubles if the target status LED display is abnormal in the self-check. When an error is
detected, shut off the emulator and the user system and follow the steps in the Table 2.4.
Table 2.4 Error display in the self-check and how to remedy it
LED display
BlinkingOFF
POWER CLOCK RESET RUN
Problem & Remedy
The emulator system is not working properly.
- Check that power is supplied to the emulator.
- The emulator may be damaged. Contact your local distributor.
A clock is not supplied to the emulator.
- Check that the oscillator circuit board (OSC-3) is attached.
The power is not supplied to the emulator.
- Check that the power supply cable is connected properly.
- Check of jumper switch settings (see Table 2.3).
The block 0 area (address FFF000h--FFFFFFh) may be rewritten when debugging in the
CPU rewrite mode.
- Within 2 seconds of activating power to the emulator, press the system reset switch to
restart the emulator debugger. The firmware will be redownloaded.
The emulator system is not working properly.
- The emulator may be damaged. Contact your local distributor.
IMPORTANT
Notes on the Self-check:
Be sure to disconnect the user system before executing the self-check.
Use the preinstalled oscillator circuit board OSC-3 (32 MHz) to execute the self-check.
If the self-check does not result normally (excluding target status errors), the emulator may be damaged. Then,
contact your local distributor.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 29 of 102
Page 30
M30870T2-CPE User’s Manual 2. Setup
2.8 Connecting the User System
Figure 2.11 shows the connection of the M30870T2-CPE and the user system.
Compact emulator
100-pin
144-pin
0.5-mm-pich
M30800T-PTC
(included)
0.65-mm-pitch
M3T-FLX100-T
(not included)
M30800T-PTC
(included)
M3T-100LCC-DMS
(not included)
M3T-FLX100-R
(not included)
0.5-mm-pitch
M30800T-PTC
(included)
M3T-100LCC-DMS
(not included)
*1
LCC socket
100-pin LCC
(included)
M3T-DIRECT100S
100-pin QFP
(not included)
M3T-DUMMY100S
100-pin QFP
(not included)
: No.1 pin
M3T-FLX-100NR B
100-pin QFP
(not included)
Figure 2.11 Connection of the M30870T2-CPE and user system
CAUTION
Note on Connecting the User System:
Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator
and user system.
M3T-F160-100NSD
100-pin LQFP
(not included)
M3T-100LCC-QSD
100-pin QFP
(not included)
M3T-FLX100-T
(not included)
M3T-FLX-100NSD
100-pin QFP
(not included)
M3T-FLX100-R
(not included)
M3T-FLX-144NSD
144-pin LQFP
(not included)
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 30 of 102
Page 31
M30870T2-CPE User’s Manual 2. Setup
2.8.1 Connecting to a 100-pin LCC socket
Here following is a procedure of connecting to a 100-pin LCC socket (Yamaichi Electronics Co., Ltd.:IC61-1004-051, etc.) on
the user system.
(1) Attach the CN2 side of the M30870T2-CPE to the CN2 side of the M30800T-PTC.
(2) Attach the M30800T-PTC to the 100-pin LCC socket.
M30870T2-CPE
CN2 side
(1)
M30800T-PTC
Figure 2.12 Connecting to a 100-pin LCC socket
Notes on Connecting the User System:
Take care not to attach a converter board in a wrong direction. It may cause a fatal damage to the emulator and
user system.
The connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
For purchasing the IC61-1004-051 or for technical information, contact Yamaichi Electronics Co., Ltd.
(2)
CAUTION
100-pin LCC socket
No. 1 pin
User system
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 31 of 102
Page 32
M30870T2-CPE User’s Manual 2. Setup
2.8.2 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1)
Figure 2.13 shows how to connect the compact emulator to a 100-pin 0.65-mm-pitch foot pattern on the user system with the
M3T-DUMMY100S (not included), and here following is its procedure.
For details on the M3T-100LCC-DMS and M3T-DUMMY100S, refer to each user's manual.
(1) Mount the M3T-DUMMY100S to the user system.
(2) Attach the M3T-100LCC-DMS to the M3T-DUMMY100S.
(3) Attach the M30800T-PTC to the M30870T2-CPE.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M30870T2-CPE
CN2 side
(3)
M30800T-PTC
M3T-100LCC-DMS
(4)
(2)
M3T-DUMMY100S
100-pin 0.65-mm-pitch
(100P6S) foot pattern
(1)
No. 1 pin
Figure 2.13 Connecting to a 100-pin 0.65-mm-pitch foot pattern (part 1)
(not included)
On-board evaluation
(not included)
FLASH MCU etc.
User system
Notes on Connecting the User System:
Take care not to attach a converter board in a wrong direction. It may cause a fatal damage to the emulator and
user system.
The small connectors of the M3T-100LCC-DMS and the M3T-DUMMY100S are guaranteed for only 20
insertion/removal iterations.
The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
REJ10J0766-0400 Rev.4.00 February 16, 2006
CAUTION
Page 32 of 102
Page 33
M30870T2-CPE User’s Manual 2. Setup
2.8.3 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2)
Figure 2.14 shows how to connect the compact emulator to a 100-pin 0.65-mm-pitch foot pattern on the user system with the
M3T-DIRECT100S (not included), and here following is its procedure. For details on the M3T-100LCC-DMS and M3T-
DIRECT100S, refer to each user's manual.
(1) Attach the M3T-DIRECT100S to the user system.
(2) Attach the M3T-100LCC-DMS to the M3T-DIRECT100S.
(3) Attach the M30800T-PTC to the M30870T2-CPE.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M30870T2-CPE
CN2 side
(3)
M30800T-PTC
(4)
(2)
100-pin 0.65-mm-pitch
(100P6S) foot pattern
(1)
No. 1 pin
Figure 2.14 Connecting to a 100-pin 0.5-mm-pitch foot pattern (part 2)
CAUTION
Notes on Connecting the User System:
Take care not to attach a converter board in a wrong direction. It may cause a fatal damage to the emulator and
user system.
The small connectors of the M3T-100LCC-DMS and M3T-DIRECT100S are guaranteed for only 20
insertion/removal iterations.
The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
M3T-100LCC-DMS
(not included)
M3T-DIRECT100S
(not included)
User system
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 33 of 102
Page 34
M30870T2-CPE User’s Manual 2. Setup
The HQPACK100RB cannot be used.
Please use the HQPACK100RB168.
2.8.4 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3)
Figure 2.15 shows how to connect the compact emulator to a 100-pin 0.65-mm-pitch foot pattern on the user system with the
M3T-FLX-100NRB (not included), and here following is its procedure. For details on the M3T-100LCC-DMS and M3T-FLX-
100NRB, refer to each user's manual.
(1) Attach the M3T-FLX-100NRB to the user system.
(2) Attach the M3T-100LCC-DMS to the M3T-FLX-100NRB.
(3) Attach the M30800T-PTC to the M30870T2-CPE.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M30870T2-CPE
CN2 side
(3)
M30800T-PTC
M3T-100LCC-D MS
(not included)
(4)
M3T-FLX-100NRB
(not included)
(2)
YQ-GUIDE(x4)
*
YQPACK100RB
NQPACK100RB
These corners are not rou nd.
100-pin 0.65-mm-pitch
(100P6S) foot pattern
(1)
No. 1 pin
*: These four items are available in one package
User system
Figure 2.15 Connecting to an 100-pin 0.65-mm-pitch foot pattern (part 3)
CAUTION
On-board evaluation
HQPACK100RB
(not included)
FLASH MCU etc.
Notes on Connecting the User System:
Take care not to attach a converter board in a wrong direction. It may cause a fatal damage to the emulator and
user system.
The small connectors of the M3T-100LCC-DMS and M3T-FLX-100NRB are guaranteed for only 20
insertion/removal iterations.
The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
*NQPACK, YQPACK, YQSOCKET, YQ-GUIDE, HQPACK, TQPACK and TQSOCKET are trademarks of Tokyo Eletech
Corporation.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 34 of 102
Page 35
M30870T2-CPE User’s Manual 2. Setup
2.8.5 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 1)
Figure 2.16 shows how to connect the compact emulator to a 100-pin 0.5-mm-pitch foot pattern on the user system with the
M3T-100LCC-QSD (not included), and here following is its procedure. For details on the M3T-100LCC-QSD, refer to its
user's manual.
(1) Attach the M3T-100LCC-QSD to the user system.
(2) Attach the M30800T-PTC to the M30870T2-CPE.
(3) Attach the M30800T-PTC to the M3T-100LCC-QSD.
M30870T2-CPE
(2)
(3)
(1)
Figure 2.16 Connecting to a 100-pin 0.5-mm-pitch foot pattern (part 1)
CN2 side
M30800T-PTC
M3T-100LCC-QSD
(not included)
100-pin 0.5mm-pitch
(100P6Q) foot pattern
No. 1 pin
User system
Notes on Connecting the User System:
Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator
and the user system.
The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
REJ10J0766-0400 Rev.4.00 February 16, 2006
CAUTION
Page 35 of 102
Page 36
M30870T2-CPE User’s Manual 2. Setup
2.8.6 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 2)
Figure 2.17 shows how to connect the compact emulator to a 100-pin 0.5-mm-pitch foot pattern on the user system with the
M3T-FLX-100NSD (not included), and here following is its procedure. For details on the M3T-100LCC-DMS and M3T-FLX-
100NSD, refer to each user's manual.
(1) Attach the M3T-FLX-100NSD to the user system.
(2) Attach the M3T-100LCC-DMS to the M3T-FLX-100NSD.
(3) Attach the M30800T-PTC to the M30870T2-CPE.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M30870T2-CPE
CN2 side
(3)
M30800T-PTC
M3T-100LCC-DMS
(not included)
(4)
(2)
*
These corners are not round.
(1)
*: These four items are available in one package.
Figure 2.17 Connecting to a 100-pin 0.5-mm-pitch foot pattern (part 2)
M3T-FLX-100NSD
(not included)
YQ-GUIDE(x4)
YQPACK100SD
NQPACK100SD
100-pin 0.5-mm-pitch
(100P6Q) foot pattern
No. 1 pin
User system
On-board evaluation
HQPACK100SD
(not included)
FLASH MCU etc.
Notes on Connecting the User System:
Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator
and user system.
The small connectors of the M3T-100LCC-DMS and M3T-FLX-100NSD are guaranteed for only 20
insertion/removal iterations.
The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
REJ10J0766-0400 Rev.4.00 February 16, 2006
CAUTION
Page 36 of 102
Page 37
M30870T2-CPE User’s Manual 2. Setup
2.8.7 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 3)
Figure 2.18 shows how to connect the compact emulator to a 100-pin 0.5-mm-pitch foot pattern on the user system with the
M3T-F160-100NSD (not included), and here following is its procedure. For details on the M3T-F160-100NSD, refer to its
user's manual.
(1) Mount the NQPACK100SD included with the M3T-F160-100NSD to the user system.
(2) Attach the YQPACK100SD included with the M3T-F160-100NSD to the NQPACK100SD.
(3) Insert the YQ-GUIDE's included with the YQPACK100SD to the YQPACK100SD.
(4) Attach the M3T-F160-100NSD to the YQPACK100SD.
(5) Attach the M30870T2-CPE to the M3T-F160-100NSD.
M30870T2-CPE
CN2 side
M3T-F160-100NSD
(5)
(not included)
(4)
*
(3)
These corners are not round.
*: These four items are available in one package.
Figure 2.18 Connecting to a 100-pin 0.5-mm-pitch foot pattern (part 3)
(2)
(1)
YQ-GUIDE(x4)
YQPACK100SD
NQPACK100SD
100-pin 0.5-mm-pitch
(100P6Q) foot pattern
No. 1 pin
User system
On-board evaluation
HQPACK100SD
(not included)
FLASH MCU etc.
Notes on Connecting the User System:
Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator
and user system.
The small connectors of the M30870T2-CPE and M3T-F160-100NSD are guaranteed for only 50
insertion/removal iterations.
REJ10J0766-0400 Rev.4.00 February 16, 2006
CAUTION
Page 37 of 102
Page 38
M30870T2-CPE User’s Manual 2. Setup
2.8.8 Connecting to a 144-pin 0.5-mm-pitch Foot Pattern
Figure 2.19 shows how to connect the compact emulator to a 144-pin 0.5-mm-pitch foot pattern on the user system with the
M3T-FLX-144NSD (not included), and here following is its procedure. For details on the M3T-FLX-144NSD, refer to its
user's manual.
(1) Attach the NQPACK144SD included with the M3T-FLX-144NSD to the user system.
(2) Attach the YQPACK144SD included with the M3T-FLX-144NSD to the NQPACK144SD.
(3) Insert the YQ-GUIDE's included with the YQPACK144SD to the YQPACK144SD.
(4) Attach the M3T-FLX-144NSD to the YQPACK144SD.
(5) Attach the M30870T2-CPE to the M3T-FLX-144SD.
M30870T2-CPE
CN2 side
M3T-FLX-144NSD
(5)
(not included)
On-board evaluation
*
(3)
These corners are not round.
*: These four items are available in one package.
Figure 2.19 Connecting to a 144-pin 0.5-mm-pitch foot pattern
CAUTION
(4)
YQ-GUIDE (x4)
YQPACK144SD
NQPACK144SD
(2)
144-pin 0.5-mm-pitch
(144P6Q) foot pattern
(1)
No.1 pin
User system
HQPACK144SD
(not included)
FLASH MCU etc.
Notes on Connecting the User System:
Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator
and user system.
The small connectors of the M30870T2-CPE and M3T-FLX-144NSD are guaranteed for only 50
insertion/removal iterations.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 38 of 102
Page 39
M30870T2-CPE User’s Manual 2. Setup
2.9 Changing Settings
2.9.1 Setting Switches of Emulator
Set the switches of the emulator according to the condition. Figures 2.20 and 2.21 show the positions of the switches of the
M30870T2-CPE with the M30870T-EPBM REV.B and M30870T-EPBM REV.C, respectively.
POWER USB
LED1
POWER
SAFE
LED2
LED3
POWER
CLOCK
RESET
LED5 LED4
RUN
LED6
RENESAS
POWER
SAFE
POWER
CLOCK
RESET
RUN
SYSTEM
STATUS
COMPACT EMULATOR
5.0V
M30870T2-CPE
TARGET
STATUS
MADE IN JAPAN
MADE
MCU
POWER
O
1823456
JP1
N
SW1
5.0V
JP2
5.0V
3.3V
EXT
INT
JP2
3.3V
EXT
JP1
INT
SW5
7
JP2
MCU Power
Supply Voltage
Selection Jumper
JP1
MCU Power
Supply Source
Selection Jumper
SW5
A/D converter bit
selection switch
RENESAS
MADE IN JAPAN
AVCC
EXT INT
AVSS
SW1
AVCC, AVSS
Figure 2.20 Positions of the switches (with M30870T-EPBM REV.B)
C1
C2
C3
C4
M30870T-EPBM REV.B
VCC1=2
SW4
XOUT
JP1
VCC1>2
JP1
VDDIO
SW2
P87
XCIN
VCONT
SW3SW4
P86
VSS
NC
SW3
P86
XOUT
NC
SW2SW1
P87
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 39 of 102
Page 40
M30870T2-CPE User’s Manual 2. Setup
POWER USB
LED1
POWER
SAFE
LED2
LED3
POWER
CLOCK
RESET
LED5 LED4
RUN
LED6
RENESAS
RENESAS
POWER
SAFE
POWER
CLOCK
RESET
RUN
MADE IN JAPAN
SYSTEM
STATUS
COMPACT EMULATOR
5.0V
M30870T2-CPE
TARGET
STATUS
MADE IN JAPAN
C2
C1
MADE
JP2
EXT
MCU
POWER
JP1
INT
N
O
1823456
C3
C4
SW1
5.0V
5.0V
3.3V
JP2
3.3V
EXT
JP1
INT
SW5
7
JP2
MCU Power
Supply Voltage
Selection Jumper
JP1
MCU Power
Supply Source
Selection Jumper
SW5
A/D converter bit
selection switch
M30870T-EPBM REV.C
AVCC
EXT INT
AVSS
SW1
AVCC, AVSS
Figure 2.21 Positions of the switches (with M30870T-EPBM REV.C)
JP1
SW1
SW2
SW2
P87
SW3
P86
NCXCINP87
SW3
P86
SW4
NC
XOUT
VCC1=2
SW4
XOUT
VCC1>2
JP1
VDDIO
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 40 of 102
Page 41
M30870T2-CPE User’s Manual 2. Setup
(1) MCU Power Supply Source Selection Jumper/MCU Power Supply Voltage Selection Jumper
These are the jumper switches to select power supply to the MCU and its power voltage. As shown in Table 2.5 below, set the
switch according to the connection to the user system.
Table 2.5 Setting jumper switches
Connection to
the user system
Not connected INT
Connected EXT Invalid
MCU power supply
source selection
jumper (JP1)
MCU power supply
voltage selection
jumper (JP2)
3.3 V
5.0 V
Description
Supplied from the emulator. The MCU operating
voltage is 3.3 V.
Supplied from the emulator. The MCU operating
voltage is 5.0 V.
Supplied from the user system. This emulator
consumes max. 500 mA of electrical current from
the user system.
CAUTION
Note on Setting Jumper Switches:
Always shut OFF the emulator before changing the setting of the jumper switches, and connecting the cable.
Otherwise the internal circuit may cause a break.
When the MCU power supply source selection jumper is set to INT and the MCU power supply voltage
selection jumper is set to 5.0 V, the JP1 of the M30870T-EPBM can only be set as VCC1 = VCC2.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 41 of 102
Page 42
M30870T2-CPE User’s Manual 2. Setup
(2) Setting JP1, SW1 to SW4 on the M30870T-EPBM
Table 2.6 shows the settings of JP1, SW1 to SW4 on the M30870T-EPBM REV.B, and Table 2.7 shows the settings of JP1,
SW1 to SW4 on the M30870T-EPBM REV.C.
Table 2.6 Switch settings of the M30870T-EPBM REV.B (JP1, SW1 to SW4)
Switch Switch name Setting Description
3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V
JP1* VDDIO
VCC1=2
(Factory-setting)
VCC1>2
4.8 V ≤ VCC1 ≤ 5.2 V and 3.0 V ≤ VCC2 < VCC1
VCC1=2
VCC1>2
SW1
AVCC
AVSS
SW2 P87
SW3 P86
AVCC
AVSS
EXT
INT
(Factory-setting)
AVCC
AVSS
EXT
INT
XCINP87VCONT
(Factory-setting)
XCINP87VCONT
XCINP87VCONT
NCP86
VSS
(Factory-setting)
NCP86
VSS
Connects pins AVCC and AVSS of the MCU to the user system.
Connects pin AVCC of the MCU to the internal power supply of the
emulator, and connects pin AVSS to the GND in the emulator.
Connects pin P87 of the MCU to the user system.
Connects pin P87 of the MCU to the sub-clock oscillator circuit
(32.768 kHz).
Do not set to VCONT.
Pin P87 is disconnected.
Connects pin P86 of the MCU to the user system.
Does not connect pin P86 of the MCU.
Do not set to VSS.
NCP86
VSS
Connects pin P86 to the VSS in the emulator.
Does not connect pin XOUT of the MCU.
SW4 XOUT
XOUTNC
(Factory-setting)
Connects pin XOUT of the MCU to the user system.
XOUTNC
* This JP1 is not the MCU Power Supply Source Selection Jumper (JP1) on the upper side of the emulator.
Be careful about the direction when connecting.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 42 of 102
Page 43
M30870T2-CPE User’s Manual 2. Setup
Table 2.7 Switch settings of the M30870T-EPBM REV.C (JP1, SW1 to SW4)
Switch Switch name Setting Description
3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V
JP1* VDDIO
VCC1=2
(Factory-setting)
VCC1>2
4.8 V ≤ VCC1 ≤ 5.2 V and 3.0 V ≤ VCC2 < VCC1
VCC1=2
VCC1>2
SW1
AVCC
AVSS
SW2 P87
SW3 P86
AVCC
AVSS
EXT
INT
(Factory-setting)
AVCC
AVSS
EXT
INT
P87XCI N
(Factory-setting)
P87
P86NC
XCIN
(Factory-setting)
Connects pins AVCC and AVSS of the MCU to the user system.
Connects pin AVCC of the MCU to the internal power supply of the
emulator, and connects pin AVSS to the GND in the emulator.
Connects pin P87 of the MCU to the user system.
Connects pin P87 of the MCU to the sub-clock oscillator circuit
(32.768 kHz).
Connects pin P86 of the MCU to the user system.
Does not connect pin P86 of the MCU.
P86NC
Does not connect pin XOUT of the MCU.
SW4 XOUT
XOUTNC
(Factory-setting)
Connects pin XOUT of the MCU to the user system.
XOUTNC
* This JP1 is not the MCU Power Supply Source Selection Jumper (JP1) on the upper side of the emulator.
Be careful about the direction when connecting.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 43 of 102
Page 44
M30870T2-CPE User’s Manual 2. Setup
(3) Setting SW5 on the M30870T-EPBM
Table 2.8 lists the examples of setting the switch SW5. It is necessary to change the setting if using the analog input port
selection function of the A/D converter when selecting the MCU file "m30870_ad.mcu" in the Init dialog box of the
emulator debugger.
Setting the SW5 enables to set each analog input pin for selecting an analog input port. When selecting AN00 to AN07 or
AN20 to AN27 for the analog input port select bits (bit 2 and bit 1 of 0394h), set the pins used for A/D conversion to ON,
the pins not used to OFF.
However, when selecting the MCU file “m30870.mcu” in the Init dialog box of the emulator debugger, set the switch SW5
as the factory-settings (all lower side).
Table 2.8 Switch settings of the M30870T-EPBM (SW5)
Analog input port Setting Description
This is the setting when not using the analog input port selection
function. When using this product with the conditions below, use
this setting.
- When using the memory expansion mode
8
- When using the multi-port sweep mode
7
- When selecting AN0 to AN7 for analog input port select bits
When not using the
analog input port
selection function
AD ON 07
O
N
1234567
OFF 0
- When selecting AN150 to AN157 for analog input port select bits
AD23 to AD27 used: ON
This is a setting when using the analog input port selection function
When using AN23 to
AN27
AD ON 07
O
N
1234567
OFF 0
and using AN23 to AN27 for analog input pins.
Set the analog input pins to ON.
With this setting, set the direction registers of ports P153 to P157 to
8
input. Pins P150 to P152 can be used for I/O port, ISTxD0, ISCLK0
7
and ISRxD0.
AD20 to AD22 unused: OFF
AD20 to AD27 used: ON
This is a setting when using the analog input port selection function
and using AN20 to AN27 for analog input pins.
When using AN20 to
AN27
AD ON 07
O
N
1234567
OFF 0
AD04 to AD07 used: ON
Set the analog input pins to ON.
With this setting, set the direction registers of ports P150 to P157 to
input. Pins P150 to P157 cannot be used for I/O port, ISTxD0,
8
ISCLK0 and ISRxD0.
7
This is a setting when using the analog input port selection function
When using AN04 to
AN07
AD ON 07
O
N
1234567
OFF 0
and using AN04 to AN07 for analog input pins.
Set the analog input pins to ON.
With this setting, set the direction registers of ports P154 to P157 to
8
input. Pins P150 to P153 can be used for I/O port, ISTxD0, ISCLK0
7
and ISRxD0.
AD00 to AD03 unused: OFF
AD03 to AD05 used: ON
AD25 to AD27 used: ON
This is a setting when using the analog input port selection function
When using AN03 to
AN05 and AN25 to
AN27
AD ON 07
O
N
1234567
OFF 0
and using AN03 to AN05 and AN25 to AN27 for analog input pins.
Set the analog input pins to ON.
With this setting, set the direction registers of ports P153 to P157 to
8
input. Pins P150 to P152 can be used for I/O port, ISTxD0, ISCLK0
7
and ISRxD0.
AD00 to AD02 unused: OFF
AD20 to AD22 unused: OFF
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 44 of 102
Page 45
M30870T2-CPE User’s Manual 2. Setup
IMPORTANT
Notes on Switch JP1:
If using this product when the voltage of VCC1 is higher than that of VCC2, set the JP1 of the M30870T-
EPBM to VCC1>2.
If using this product when the voltage of VCC1 is higher than that of VCC2, the CPU clock must be 24 MHz or
less.
IMPORTANT
Notes on Switch SW5:
When selecting the MCU file "m30870_ad.mcu" in the Init dialog box of the emulator debugger to execute the
A/D conversion debug, note the following.
When using this product in memory expansion mode, be sure to set the all SW5 to ON.
When setting the register below to use the analog input port selection function, you need to set the direction
register of port P15 for a pin that performs A/D conversion to "input".
And you need to set the function selection register of port P15 for a pin that performs A/D conversion to "I/O
port".
A/D0 control register 2 (address 394h)
b2, b1
1, 0 : AN00 to AN07
1, 1 : AN20 to AN27
Also, when the P0 group and P2 group are selected for A/D input, port P15 cannot be used as an I/O port. When
setting the register above, port P15 cannot be used as an I/O port even if A/D conversion is halting.
When using the A/D converter in multi-port sweep mode, be sure to set the all SW5 to ON. When setting the
register below to use multi-port sweep mode, you need to set the direction register of port P15 for a pin that
performs A/D conversion to "input".
And you need to set the function selection register of port P15 for a pin that performs A/D conversion to "I/O
port".
A/D0 control register 4 (address 392h)
b3, b2
1, 0 : AN0 to AN7, AN00 to AN07
1, 1 : AN0 to AN7, AN20 to AN27
Also, when the P0 group and P2 group are used for multi-port sweep mode, port P15 cannot be used as an I/O
port. When setting the register above, port P15 cannot be used as an I/O port even if A/D conversion is halting.
Because a converter board and other devices are used between the evaluation MCU and the user system, the
A/D converter operates differently from an actual MCU. Make the final evaluation of the A/D converter using
an actual MCU.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 45 of 102
Page 46
M30870T2-CPE User’s Manual 2. Setup
2.9.2 Selecting Clock Supply
You can choose a clock supplied to the evaluation MCU by the Emulator tab in the Init dialog box of the emulator debugger.
Table 2.9 shows the clocks and their initial settings.
Specify whether or not to debug the program which uses the
watchdog function. When debugging the user system which
uses the watchdog function, select the check box
CanselHelpOK
IMPORTANT
Notes on selection of whether or not to use the watchdog timer:
If the check box “Debug the program using the Watchdog Timer” is selected, while the user program remains
idle the emulator is performing refresh processing (by writing to the watchdog timer start register) within the
emulator control program.
Therefore, the watchdog timer starts after the user program has stopped.
To use the watchdog timer to debug the user program, select this check box. If this check box is unselected, the
emulator may run out of control after the user program has stopped.
To debug a user system that does not use the watchdog timer, do not select this check box. If this check box is
selected, the watchdog timer starts after the user program has stopped, so that if the user program is
reexecuted, the watchdog timer underflows generating a watchdog timer interrupt or a reset.
3.2 Starting Up the Emulator Debugger (EMEM Dialog Box)
(1) STATUS tab
1. Specifying the processor mode
CanselHelpOK
Specifying the processor mode
Select the appropriate processor mode that suits you
system.
IMPORTANT
Notes on Selecting a Processor Mode:
When setting single-chip mode or memory expansion mode, the level of pin CNVSS of the MCU status should
be "L". The MCU status shows the pin level of the user system.
When setting memory expansion mode, pins RDY* and HOLD* of the user system should be "H".
When the user system is not connected, all modes are available.
Note on Differences between the Actual MCU and Emulator:
Operations of the emulator system differ from those of actual MCUs as listed below.
(1) Reset condition
(2) Initial values of internal resource data of an MCU at power-on
(3) Interrupt stack pointer (ISP) after a reset is released
(4) Capacities of the internal memories (ROM and RAM)
The MCU whose RAM size is 48 KB (400h--C3FFh) is mounted on this product. The internal flash
memory is automatically allocated to F000h--FFFFh and F00000h--FFFFFFh in the single-chip mode and
memory expansion mode.
(5) Oscillator circuit
- Make note of the fact that in the oscillator circuit where a resonator is connected between pins X
X
, oscillation does not occur because a converter board and other devices are used between the
OUT
evaluation MCU and the user system. It is same for a sub-clock oscillator (X
CIN
and X
COUT
).
- For notes on when using the oscillator circuit on the user system, refer to "2.9.2 Selecting Clock
Supply" (page 46).
(6) A/D conversion
The characteristics of the A/D converter differ from those of actual MCU because there are a converter
board and other devices between the evaluation MCU and the user system.
(7) Port P15
As one of I/O ports (P15) is connected to the user system through the analog switch circuit, electric
characteristics slightly differ from those of an actual MCU.
(8) When the SW4 is set to XOUT in stop mode, a clock is output from the XOUT pin.
Note on RESET* Input:
A low input to pin RESET* from the user system is accepted only when a user program is being executed
(when the RUN status LED on the emulator's upper panel is lit).
Note on RDY* Input:
Be sure to input "L" to pin RDY* of the user system during the user program executing (when the RUN status
LED on the emulator's upper panel is lit). Inputting "L" to pin RDY* during the user program stopping may
cause a malfunction of the emulator.
Note on HOLD* Input:
Be sure to input "L" to pin HOLD* of the user system during the user program executing (when the RUN status
LED on the emulator's upper panel is lit). Inputting "L" to pin HOLD* during the user program stopping may
cause a malfunction of the emulator.
Note on NMI* Input:
A low input to pin NMI* from the user system is accepted only when a user program is being executed (when
the RUN status LED on the emulator's upper panel is lit).
For a reset vector area, memory of the emulator is always selected regardless of the setting of the EMEM dialog
box.
A reset vector area can be changed only when a program is stopped.
Notes on Stack Area:
With this product, a maximum 8 bytes of the user stack is consumed as a work area. Therefore, ensure the +8
byte maximum capacity used by the user program as the use stack area.
Even if the user stack does not have an enough area, do not use areas which cannot be used as a stack (SFR
area, RAM area which stores data, or ROM area) as a work area. Using areas like this is a cause of user
program crashes and destabilized emulator control.
With this product, the interrupt stack pointer (ISP) is set at 00500h and used as a stack area after a reset is
released.
Notes on Maskable Interrupts:
Even if a user program is not being executed (including when run-time debugging is being performed), the
evaluation MCU keeps running so as to control the emulator, so the function such as timer is operated. Take
note that when the user program is not being executed (including when run-time debugging is being performed),
a peripheral I/O interruption is not accepted.
Notes on Access Prohibited Area:
The emulator control register (000020h--00003Fh) in the SFR is read-and write-protected. When this register is
accessed, emulator control cannot be utilized.
With this product, address FFFFFFh cannot be read or written in correctly.
Note on DMA Transfer:
With this product, the user program is stopped with a loop program to a specific address. Therefore, if a DMA
request is generated by a timer or other source while the user program is stopped, DMA transfer is executed.
However, make note of the fact that DMA transfer while the program is stopped may not be performed
correctly. Also note that the below registers have been changed to generate DMA transfer as explained here
even when the user program is stopped.
(1) DMA0 transfer count register DCT0
(2) DMA1 transfer count register DCT1
(3) DMA0 memory address register DMA0
(4) DMA1 memory address register DMA1
(5) DMA2 transfer count register DCT2 (R0)
(6) DMA3 transfer count register DCT3 (R1)
(7) DMA2 memory address register DMA2 (A0)
(8) DMA3 memory address register DMA3 (A1)
Note on DMAC II Transfer Completion Interrupts:
You can use DMAC II transfer completion interrupts during program execution only. Do not generate DMAC II
transfer completion interrupts when you use any function but program execution.
Note on Final Evaluation:
Be sure to evaluate your system with an evaluation MCU. Before starting mask production, evaluate your
system and make final confirmation with a CS (Commercial Sample) version MCU.
Figures 4.1, 4.2 and 4.3 show a part of the connection diagram of the M30870T2-CPE. Figures 4.1 and 4.2 show the
connection diagrams using the M30870T-EPBM REV.B and M30870T-EPBM REV.C, respectively. These connection
diagrams mainly show the interface section. The signals not shown in Figures 4.1, 4.2 and 4.3 connect the evaluation MCU
and the user system directly. The circuits not connected to the user system such as the emulator's control system are omitted in
Figures 4.1, 4.2 and 4.3. Table 4.2 shows IC electric characteristics of this product for reference purposes.
IC15
CPU Emulate
IC1
AVcc
AVss
MCU
Xcout
P87/Xcin/Vcont
P86/Xcout
I/O Emulate
MCU
AVcc
AVss
P85/NMI*
XOUT
Vref
Xcin
Vref
143
140
142
17
18
17
18
143
140
142
24
20
R18
100
*
C3
C1
NC
SW2
SW3
C4
SW1
C2
SW4
Vcc
JP1
GND
Vcc
R17
VCONT
XCIN
VCONT
XCIN
P87
VSS
NC
NC
VSS
100k
NC
NC
NC
P86
GND
XOUT
NC
Vcc
AVcc
AVss
Vcc
*
*
Vref
NC
NC
AVcc
AVss
Vref
P85/NMI*
XOUT
P87/Xcin/Vcont
P86/Xcout
User system
R14
100k
*RESET*
R16
100k
*
R15
100k
*
*
*
*
Vcc
Vcc
Vcc
P55/RDY*
P57/HOLD*
XIN
CNVss
BYTE
*: Connected to the inside of the emulator
Figure 4.1 Connection diagram (when using M30870T-EPBM REV.B) (1/3)
REJ10J0766-0400 Rev.4.00 February 16, 2006 Page 83 of 102
Notes on using this product are listed below. When debugging the MCU using this product, be careful about the following
precautions.
IMPORTANT
Notes on the Self-check:
If the self-check does not result normally (excluding target status errors), the emulator may be damaged. Then
contact your local distributor.
Run the self-check with the user system not connected.
Note on Quitting the Emulator Debugger:
To restart the emulator debugger, always shut power to the emulator module off once and then on again.
Notes on Clock Supply to the MCU:
A clock supplied to the evaluation MCU is selected by the Emulator tab in the Init dialog box of the emulator
debugger.
(1) When "Internal" is selected:
A clock generated by the oscillator circuit board in the M30870T2-CPE is supplied to the evaluation MCU.
The clock is continually supplied to the evaluation MCU regardless of a status of user system clock and a
status of user program execution.
(2) When "External" is selected:
A clock generated by the oscillator in the user system is supplied. It depends on the status of the oscillation
(on/off) of the user system.
When operating this product with a sub clock, be sure to set the SW2 and SW3 to XCIN and NC, respectively.
Notes on Using the CPU Clock at Less than 10 MHz:
To use the CPU clock at less than 10 MHz, execute the command shown below in the Script Window after
starting the emulator debugger.
[Command]
_settimeout ,600
Once this command is executed, it remains effective the next time you start the emulator debugger. Therefore,
you do not need to execute this command again.
When you use the CPU clock at less than 1 MHz, contact your local distributor.
Notes on Address-Match Interrupts:
Do not single-step an address where an address-match interrupt occurs.
When using an address-match interrupt, do not select the check box of "Enable the Address Match Interrupt
Break Function" in the MCU tab of the Init dialog box. When not using an address-match interrupt, select the
check box.
When you use address-match breaks, if a low reset is input during a user program execution, a debug monitor
program (about 100 cycles) is executed after a reset is released. Take note that it has effects on the user program
execution time and the result of a trace.
Observe the following when setting up EMEM dialog box of the emulator debugger.
(1) Debug Monitor Bank Address
When "E0" is specified, 64 KB of area starting from E00000h are allocated for use by the debug monitor.
The 64 KB allocated for the debug monitor cannot be used.
The below areas cannot be set for the debug monitor.
1) MCU internal resources (ROM/RAM/SFR area)
2) Multiplex area
3) Interrupt vector area
It is not possible to view or set the content of the specified area. Even on the memory window or in the
reverse assemble area of the program/source windows, the content of this area is not displayed correctly
though it can be displayed.
(2) Processor Mode
Set a processor mode for the target MCU.
To set single-chip mode or memory expansion mode, pin CNVSS used with MCU status must be "L". MCU
status indicates pin level of the user system.
To set memory expansion mode, pins RDY* and HOLD* used with MCU status must be "H".
When the user system is not connected, all modes are available.
Notes on the Watchdog Function:
When using the watchdog function, check the box of “Debug the program using the Watchdog Timer” in the
MCU tab of the Init dialog box. When not using the watchdog function, do not check the box.
If the reset circuit of the user system has a watchdog timer, disable it when using the emulator.
Notes on Debugging in CPU Rewrite Mode:
To debug a program in CPU rewrite mode, check the box “Debug the program using the CPU Rewrite Mode” in
the MCU tab of the Init dialog box. When you do not debug a program in CPU rewrite mode, uncheck the box.
When you debug a program in CPU rewrite mode, the block 0 area (FFF000h--FFFFFFh) must not be rewritten.
Otherwise, the emulator will be out of control.
When debugging in CPU rewrite mode is enabled, you cannot use the following functions.
(1) Setting an address match breakpoint
(2) Setting a software breakpoint to the internal ROM area
(3) Executing COME to the internal ROM area
Do not use the following functions to the rewrite control program area (from setting CPU rewrite mode select
bit to releasing it). If any of these are used, malfunctions may occur (e.g. The emulator cannot shift to CPU
rewrite mode or contents of ROM cannot be read our properly.).
(1) Single stepping
(2) Setting a software breakpoint
(3) Setting a hardware breakpoint
(4) Executing COME
A software break generates a break interruption by forcibly inserting a BRK instruction “08h” instead of an
instruction code. Therefore, when referencing the result of a trace in bus mode, “08h” is displayed for the
instruction fetch address where a software break is set.
Notes on Service-Life of the MCU’s Internal Flash ROM:
With the M30870T2-CPE, programs are downloaded to the MCU’s flash ROM when debugging in single-chip
mode or memory expansion mode. Because the number of write/erase cycles of this ROM is limited, the ROM
must be replace when at the end of its service-life.
If the following errors occur frequently during program download, replace the MCU board.
Flash ROM erase error occurred ERROR (16258)
Flash ROM verify error occurred ERROR (16259)
To purchase the product for replacement or request for repair, contact your local distributor.
Note on Voltage Detect Circuit:
With the M30870T2-CPE, as the power voltage cannot be change after powering on the user system, the
voltage detect circuit (voltage down detect interrupt and hardware reset 2) cannot be used with this product.
Note on Protect Register:
A protect is not canceled when protect register bit 2 (PRC2), which enables writing in the port P9 direction
register and the function select register A3, is changed with the below procedure.
(1) Step execution of an instruction setting PRC2 to "1"
(2) Setting a break point from an instruction setting PRC2 to "1" to where the port P9 direction register or the
function select register A3 is set
(3) Setting (“1”) PRC2 from the dump window or script window during use program execution
Note on Memory Access:
When setting memory expansion mode as a processor mode, it may be changed to memory expansion mode
temporarily before the user program itself changes from single-chip mode to memory expansion mode.
Take due consideration on this phenomenon in the following cases:
(1) Immediately before executing the program after setting a software break
(2) Immediately after stopping the program when a software break is set
When selecting the MCU file "m30870_ad.mcu" in the Init dialog box of the emulator debugger to execute the
A/D conversion debug, note the following.
When setting the register below to use the analog input port selection function, you need to set the direction
register of port P15 for a pin that performs A/D conversion to “input”.
And you need to set the function selection register of port P15 for a pin that performs A/D conversion to “I/O
port”.
A/D0 control register 2 (address 394h)
b2, b1
1, 0 : AN00 to AN07
1, 1 : AN20 to AN27
Also, when the P0 group and P2 group are selected for A/D input, port P15 cannot be used as an I/O port, When
setting the register above, port P15 cannot be used as an I/O port even if A/D conversion is halting.
For the switch SW5, refer to “2.9.1 Setting Switches of Emulator” (page 39).
When setting the register below to use multi-port sweep mode, you need to set the direction register of port P15
for a pin that performs A/D conversion to “input”.
And you need to set the function selection register of port P15 for a pin that performs A/D conversion to "I/O
port".
A/D0 control register 4 (address 392h)
b3, b2
1, 0 : AN0 to AN7, AN00 to AN07
1, 1 : AN0 to AN7, AN20 to AN27
Also, when the P0 group and P2 group are used for multi-port sweep mode, port P15 cannot be use as an I/O
port. When setting the register above, port P15 cannot be used as an I/O port even if A/D conversion is halting.
Because a converter board and other devices are used between the evaluation MCU and the user system, the
A/D converter operates differently from an actual MCU. Make the final evaluation of the A/D converter using
an actual MCU.
Two types of MCU file are available for this product. Please use one of them as occasion demands.
(1) Using the MCU file "m30870.mcu"
When selecting AN00-AN07 or AN20-AN27 for analog input port select bits (bit2 and bit1 of 0394h), port
P15 can be used as an I/O port and intelligent I/O pin. However, external trigger mode (ADtrg and three-phase
timer B2) cannot be used. When using the "m30870.mcu", set all the SW5 switches of the M30870T-EPBM to
"OFF".
(2) Using the MCU file "m30870_ad.mcu"
For external trigger mode, use the "m30870_ad.mcu".
In this case, set analog input port select bits (bit2 and bit1 of 0394h) as follows.
- To select AN0-AN7 or AN150-AN157 for analog input port select bits:
Set all the SW5 switches of the M30870T-EPBM to "ON".
- To select AN00-AN07 or AN20-AN27 for analog input port select bits:
Setting the SW5 switches of the M30870T-EPBM enables to set analog input pin by each individual pin.
Set the pins used for the A/D conversion to ON and the pins not used to OFF.
Port P15 corresponding to a selected bit needs to be set to "input".
Notes on CE Declaration of Conformity:
This product complies with CE marking (EN55022: 1998 Class A, EN55024: 1998 ). Please use it with care
described below.
* Electrostatic Discharge Precautions must be taken when handling the product.
* Must not be used within 30 meters of a domestic radio or television receiver.
* For correct operation of this product, it is recommended that Mobile phones are not used within 10 meters of
this product system.
* This product should be powered down when not in use.
This product generates, uses, and can radiate radio frequency energy and may cause harmful interference to
radio communications.
If this product causes harmful interference to radio or television reception, which can be determined by turning
this product off or on, you are encouraged to try to correct the interference by one or more of the following
methods;
* Ensure attached cables do not lie across the probe board and converter board.
* Reorient the receiving antenna.
* Increase the distance between the product and the receiver.
* Connect the product into an outlet on a circuit different from that to which the receiver is connected.
* Consult the dealer or experienced radio/TV technician for help.
Attach the ferrite core included with this product close to the DC plug of the power cable. Without the ferrite
core it may cause interference.
The power cable should be wound around the ferrite core as shown in the figure, and close the ferrite core until
it clicks.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 93 of 102
Page 94
M30870T2-CPE User’s Manual 5. Troubleshooting
5. Troubleshooting
This chapter describes how to troubleshoot when this product does not work properly.
5.1 Flowchart to Remedy the Troubles
Figure 5.1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator
debugger starts up. Check this while the user system is disconnected. For the latest FAQs visit the Renesas Tools Homepage.
http://www.renesas.com/en/tools
Turning on emulator
Front panel LED
of emulator
Normal
Init dialog box of
emulator debugger displayed
Normal
MCU Setting dialog box
of emulator debugger displayed
Normal
Not normal
1 . Check connection of the power supply cable.
See "2.4 Connecting the Power Supply for Emulator" (page 22)
2. Check that the power is properly supplied to the user system.
See "2.6 Turning ON the Power Supply"(page 24)
Not normal/ Error displayed
1. Check the operating environment etc., of the emulator debugger.
See the user's m anual of the emulator debugger.
2. Reinstall the emulator debugger.
Not normal/ Error displayed
See "5. 2 (2) MCU Setting Dialog Box Does Not Appear at
Debugger Startup" (page 96).
Program window of
emulator debugger displayed
Normal
Emulator debugger startup completed
Figure 5.1 Flowchart to remedy the troubles
REJ10J0766-0400 Rev.4.00 February 16, 2006
Error displayed
See "5.2 (3) Errors Oc cu r a t D e bugger S tartu p" (pag e 97).
Page 94 of 102
Page 95
M30870T2-CPE User’s Manual 5. Troubleshooting
5.2 When the Emulator Debugger Does Not Start Up Properly
(1) When the LEDs of the M30870T2-CPE Do Not Display Normally
Table 5.1 Errors LEDs show and their checkpoints
Error
LEDs do not light up. - Check that the power cable is connected.
Target Status POWER LED does
not light up.
Target Status CLOCK LED does
not light up.
Target Status RESET LED does
not go out.
Connection to
the user system
Checkpoint
See "2.4 Connecting the Power Supply for the Emulator" (page 22).
Connected Check that power is properly supplied to the user system and that
the user system is properly grounded.
Not connected(1) Check that both the main and sub clocks of the emulator
debugger are not set to "EXT".
See the CLK command of the emulator debugger.
(2) Check that the oscillator circuit board is properly installed in
the emulator and is oscillating.
See "2.9.2 Selecting Clock Supply" (page 46).
Connected When the clock is supplied from an external oscillator, check that
the oscillator circuit in the user system is oscillating properly.
Connected Check that the reset pin of the user system is pulled up.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 95 of 102
Page 96
M30870T2-CPE User’s Manual 5. Troubleshooting
(2) MCU Setting Dialog Box Does Not Appear at Debugger Startup
Table 5.2 Checkpoints of errors at debugger startup
Error Checkpoint
Communication error occurred.
Data was not sent to the target.
Check that the USB cable is connected properly.
See "2.5 Connecting the Host Machine" (page 23).
Not compact emulator. Check that an emulator other than the compact emulator (such as
PC4701, PC7501) is not connected.
Target MCU is in the reset state. (1) Check that the reset pin of the user system is pulled up.
(2) Check that the reset pin of the user system has changed from Low to
High level.
Target MCU cannot be reset. (1) Check that pin NMI* is held High.
(2) If the reset circuit of the user system has a watchdog timer, disable
the timer.
(3) Check that power is properly supplied to the user system and that
the user system is properly grounded.
Target is in "HOLD" state. The MCU is either in stop mode or wait mode. Either reset the MCU or
cancel the mode with an interrupt.
See MCU specifications.
Target clock is stopped. When the clock is supplied from an external oscillator, check that the
oscillator circuit in the user system is oscillating properly.
Target MCU is not receiving power. Check that power is properly supplied to the user system and that the
user system is properly grounded.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 96 of 102
Page 97
M30870T2-CPE User’s Manual 5. Troubleshooting
(3) Errors Occur at Debugger Startup
Table 5.3 Checkpoints of errors at debugger startup
Error Checkpoint
Target MCU is uncontrollable. (1) Check that the NQPACK etc. mounted on the user system is soldered
properly.
(2) Check that the connector is installed properly to the user system.
(3) Check that pin CNVSS is held Low.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 97 of 102
Page 98
M30870T2-CPE User’s Manual 5. Troubleshooting
5.3 How to Request for Support
After checking the items in "5 Troubleshooting", fill in the text file which is downloaded from the following URL, then send
For prompt response, please specify the following information:
(1) Operating environment
- Operating voltage: [V]
- Operating frequency:
[MHz]
- Clock supply to the MCU: Internal oscillator/External oscillator
(2) Condition
- The emulator debugger starts up/does not start up
- The error is detected/not detected in the self-check
- Frequency of errors: always/frequency ( )
(3) Problem
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 98 of 102
Page 99
M30870T2-CPE User’s Manual 6. Maintenance and Guarantee
6. Maintenance and Guarantee
This chapter describes how to maintenance, repair provisions and how to request for repair.
6.1 User Registration
When you purchase our product, be sure register as a user. For user registration, refer to “User registration” (page 11) of this
user's manual.
6.2 Maintenance
(1) If dust or dirt collects on any equipment of your emulation system, wipe it off with a dry soft cloth. Do not use thinner or
other solvents because these chemicals can cause the equipment's surface coating to separate.
(2) When you do not use this product for a long period, for safety purposes, disconnect the power cable from the power
supply.
6.3 Guarantee
If your product becomes faulty within one year after its purchase while being used under good conditions by observing
"IMPORTANT" and "Precautions for Safety" described in this user's manual, we will repair or replace your faulty product free
of charge. Note, however, that if your product's fault is raised by any one of the following causes, we will repair it or replace it
with new one with extra-charge:
- Misuse, abuse, or use under extraordinary conditions
- Unauthorized repair, remodeling, maintenance, and so on
- Inadequate user's system or misuse of it
- Fires, earthquakes, and other unexpected disasters
In the above cases, contact your local distributor. If your product is being leased, consult the leasing company or the owner.
6.4 Repair Provisions
(1) Repair with extra-charge
The products elapsed more than one year after purchase can be repaired with extra-charge.
(2) Replacement with extra-charge
If your product's fault falls in any of the following categories, the fault will be corrected by replacing the entire product
instead of repair, or you will be advised to purchase new one, depending on the severity of the fault.
- Faulty or broken mechanical portions
- Flaw, separation, or rust in coated or plated portions
- Flaw or cracks in plastic portions
- Faults or breakage caused by improper use or unauthorized repair or modification
- Heavily damaged electric circuits due to overvoltage, overcurrent or shorting of power supply
- Cracks in the printed circuit board or burnt-down patterns
- Wide range of faults that makes replacement less expensive than repair
- Unlocatable or unidentified faults
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 99 of 102
Page 100
M30870T2-CPE User’s Manual 6. Maintenance and Guarantee
(3) Expiration of the repair period
When a period of one year elapses after the model was dropped from production, repairing products of the model may
become impossible.
(4) Transportation fees at sending your product for repair
Please send your product to us for repair at your expense.
6.5 How to Make Request for Repair
Fill in the Repair Request Sheet included with this product, then send it along with this product for repair to your local
distributor. Make sure that information in the Repair Request Sheet is written in as much detail as possible to facilitate repair.
CAUTION
Note on Transporting the Product:
When sending your product for repair, use the packing box and cushion material supplied with this product
when delivered to you and specify handling caution for it to be handled as precision equipment. If packing of
your product is not complete, it may be damaged during transportation. When you pack your product in a bag,
make sure to use conductive polyvinyl supplied with this product (usually a blue bag). When you use other
bags, they may cause a trouble on your product because of static electricity.
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page 100 of 102
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.