Renesas M30870T2-CPE User manual

REJ10J0766-0400
(
T
)
M30870T2-CPE
User's Manual
Com
p
act Emulator for M32C/87 Grou
p
Rev.4.00
Feb. 16, 2006

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 ap-
propriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of non-
flammable material or (iii) prevention against any malfunction or mishap.
Keep safety first in your circuit designs!
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
y
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, pro-
grams 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
t
Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributo
r
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
r
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
y
must be exported under a license from the Japanese government and cannot be imported
into a country other than the approved destination.
A
ny diversion or reexport contrary to the export control laws and regulations of Japan and/ o
r
the country of destination is prohibited.
8. Please contact Renesas Technology Corp. for further details on these materials or the
products contained therein.
Notes regarding these materials

M30870T2-CPE User’s Manual Preface
REJ10J0766-0400 Rev.4.00 February 16, 2006
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.
Emulator debugger: M32C Compact Emulator Debugger
C compiler: M3T-NC308WA (evaluation version)
Integrated development environment: High-performance Embedded Workshop
All the components of this product are shown in "1.1 Package Components" (page 13). If there is any question or doubt about
this product, contact your local distributor.
The related manuals for using this product are listed below. You can download the latest manuals from the Renesas Tools
homepage (http://www.renesas.com/en/tools).
Related manuals
Item Manual
Accessory tools M3T-100LCC-DMS User’s Manual
M3T-DUMMY100S User’s Manual
M3T-DIRECT100S User’s Manual
M3T-FLX-100NRB User’s Manual
M3T-100LCC-QSD User’s Manual
M3T-FLX-100NSD User’s Manual
M3T-F160-100NSD User’s Manual
M3T-FLX-144NSD User’s Manual
Emulator debugger M32C Compact Emulator Debugger User’s Manual
C compiler NC308 User’s Manual
Assembler AS308 User’s Manual
Integrated development environment High-performance Embedded Workshop User’s Manual
Page 3 of 102

M30780T2-CPE User’s Manual Important
REJ10J0766-0400 Rev.4.00 February 16, 2006
Important
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.
Page 4 of 102

M30780T2-CPE User’s Manual Important
REJ10J0766-0400 Rev.4.00 February 16, 2006
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.
Page 5 of 102

M30870T2-CPE User’s Manual Precautions for Safety
REJ10J0766-0400 Rev.4.00 February 16, 2006
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 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
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
WARNING indicates a potentially dangerous situation that will cause death or heavy wound
unless it is avoided.
CAUTION
CAUTION indicates a potentially dangerous situation that will cause a slight injury or a
medium-degree injury unless it is avoided.
CAUTION
CAUTION with no safety warning symbols attached indicates a potentially dangerous
situation that will cause property damage unless it is avoided.
IMPORTANT
This is used in operation procedures or explanatory descriptions to convey exceptional
conditions or cautions to the user.
In addition to the five above, the following are also used as appropriate.
means WARNING or CAUTION.
Example: CAUTION AGAINST AN ELECTRIC SHOCK
means PROHIBITION.
Example: DISASSEMBLY PROHIBITED
means A FORCIBLE ACTION.
Example: UNPLUG THE POWER CABLE FROM THE RECEPTACLE.
Page 6 of 102

M30870T2-CPE User’s Manual Precautions for Safety
REJ10J0766-0400 Rev.4.00 February 16, 2006
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.
Page 7 of 102

M30870T2-CPE User’s Manual Precautions for Safety
REJ10J0766-0400 Rev.4.00 February 16, 2006
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.
Page 8 of 102

M30870T2-CPE User’s Manual Contents
REJ10J0766-0400 Rev.4.00 February 16, 2006
Contents
Page
Preface..........................................................................................................................................................................3
Important.......................................................................................................................................................................4
Precautions for Safety ..................................................................................................................................................6
User Registration........................................................................................................................................................11
Terminology ................................................................................................................................................................12
1. Outline.....................................................................................................................................................................13
1.1 Package Components ...................................................................................................................................13
1.2 System Configuration ....................................................................................................................................14
1.2.1 System Configuration..........................................................................................................................14
1.2.2 Names and Functions of each part of the Emulator............................................................................15
1.3 Specifications ................................................................................................................................................18
1.4 Operating Environment..................................................................................................................................19
2. Setup.......................................................................................................................................................................20
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 Self-check......................................................................................................................................................28
2.7.1 Self-check Procedure..........................................................................................................................28
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
2.9 Changing Settings .........................................................................................................................................39
2.9.1 Setting Switches of Emulator ................................................................................................................39
2.9.2 Selecting Clock Supply .......................................................................................................................46
2.9.3 A/D Conversion Bypass Capacitors....................................................................................................50
3. Usage (Emulator Debugger)...................................................................................................................................52
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
3.4 Hardware Breakpoint Setting Window...........................................................................................................66
3.5 Trace Window................................................................................................................................................71
3.6 RAM Monitor Window....................................................................................................................................76
Page 9 of 102

M30870T2-CPE User’s Manual Contents
REJ10J0766-0400 Rev.4.00 February 16, 2006
Page
4. Hardware Specifications.........................................................................................................................................79
4.1 Target MCU Specifications............................................................................................................................79
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.3 Connection Diagram......................................................................................................................................83
4.4 External Dimensions......................................................................................................................................86
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. Troubleshooting......................................................................................................................................................94
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.2 Maintenance..................................................................................................................................................99
6.3 Guarantee......................................................................................................................................................99
6.4 Repair Provisions ..........................................................................................................................................99
6.5 How to Make Request for Repair ................................................................................................................100
Page 10 of 102

M30870T2-CPE User’s Manual User Registration
REJ10J0766-0400 Rev.4.00 February 16, 2006 Page 11 of 102
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 only after-sale services, and not 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

M30870T2-CPE User’s Manual Terminology
REJ10J0766-0400 Rev.4.00 February 16, 2006
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*)
Page 12 of 102

M30870T2-CPE User’s Manual 1. Outline
REJ10J0766-0400 Rev.4.00 February 16, 2006
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)
1
* 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.
Page 13 of 102

M30870T2-CPE User’s Manual 1. Outline
REJ10J0766-0400 Rev.4.00 February 16, 2006
1.2 System Configuration
1.2.1 System Configuration
Figure 1.1 shows a configuration of the M30870T2-CPE 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.
Host machine
(not included)
User system
Power supply
for user system
(not included)
Power supply cable USB interface cable
Compact emulator
M30870T2-CPE
Power supply for emulator
(not included)
Page 14 of 102

M30870T2-CPE User’s Manual 1. Outline
REJ10J0766-0400 Rev.4.00 February 16, 2006
(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.
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.
MADE
POWER
SW1
COMPACT EMULATOR
INT
JP1
5.0V
JP2
3.3V
EXT
CLOCK
RESET
RUN
LED3
LED6
LED5 LED4
POWER
LED1
SAFE
LED2
Target status LEDs
LED3: User system power (POWER)
LED4: Clock oscillation (CLOCK)
LED5: MCU RESET pin (RESET)
LED6: Program execution (RUN)
System status LEDs
LED1: Emulator power (POWER)
LED2: Emulator startup (SAFE)
JP2: MCU power supply voltage selection jumper
(factory-setting: 5.0V)
System reset switch
J2: USB cable connector
J1: Power connector
M30870T2-CPE
POWER USB
5.0V
5.0V
3.3V
MCU
POWER
EXT
INT
JP2
JP1
STATUS
SYSTEM
STATUS
TARGET
MADE IN JAPAN
COMPACT EMULATOR
POWER
SAFE
POWER
CLOCK
RESET
RUN
Switches and Selection Jumpers on the M30870T-EPBM
SW1--SW5 and JP1 (emulator side panel)
JP1: MCU power supply source selection jumper
(factory-setting: INT)
Page 15 of 102

M30870T2-CPE User’s Manual 1. Outline
REJ10J0766-0400 Rev.4.00 February 16, 2006
(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 Initializes the emulator and waits for a command from the
emulator debugger
When the user’s program is executed 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).
Page 16 of 102

M30870T2-CPE User’s Manual 1. Outline
REJ10J0766-0400 Rev.4.00 February 16, 2006
(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).
Page 17 of 102

M30870T2-CPE User’s Manual 1. Outline
REJ10J0766-0400 Rev.4.00 February 16, 2006
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)
3.0--5.5 VApplicable power supply
User system not connected
(JP1=INT)
3.3 V or 5.0 V
(supplied from the emulator, set by JP2)
Basic debugging functions - Download
- Software break (max. 64 points)
- Program execution/stop (allows free-run execution supporting software breaks)
- Memory reference/setting (reference/setting C-variables, run-time execution)
- Register reference/setting
- Disassemble display
- C-level debugging, etc.
Real-time trace function - 64K-cycle bus information recordable
(Address: 24 bits, Data: 16 bits, MCU status: 12 bits)
- 5 trace modes supported (Break/Before/About/After/Full)
- Can be recorded ON/OFF by events
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.
Page 18 of 102

M30870T2-CPE User’s Manual 1. Outline
REJ10J0766-0400 Rev.4.00 February 16, 2006
Table 1.6 M30870T2-CPE specifications (2/2)
For 144-pin 0.5-mm-pitch LQFP
(144P6Q-A)
M3T-FLX-144NSD (not included)
For 100-pin 0.5-mm-pitch LQFP
(100P6Q-A)
(1) M30800T-PTC (included) +
M3T-100LCC-QSD (not included)
(2) M30800T-PTC (included) +
M3T-100LCC-DMS (not included) +
M3T-FLX-100NSD (not included)
(3) M3T-F160-100NSD (not included)
For 100-pin 0.65-mm-pitch QFP
(100P6S-A):
(1) M30800T-PTC (included) +
M3T-100LCC-DMS (not included) +
M3T-FLX-100NRB (not included)
(2) M30800T-PTC (included) +
M3T-100LCC-DMS (not included) +
M3T-DUMMY100S (not included)
(3) M30800T-PTC (included) +
M3T-100LCC-DMS (not included) +
M3T-DIRECT100S (not included)
Connection to user system
(see “2.8 Connecting the User System”
on page 30)
100-pin LCC socket M30800T-PTC (included) +
IC61-1004-051 (included)
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
*1
Windows 98
Windows XP
Windows 2000
CPU Pentium III 600 MHz or more recommended
Host machine interface USB 1.1 full-speed *2
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.
Page 19 of 102

M30870T2-CPE User’s Manual 2. Setup
REJ10J0766-0400 Rev.4.00 February 16, 2006
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).
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). Select a power voltage supplied to the target MCU.
↓
Connect the USB interface cable. Connect the USB interface cable to the USB interface connector
(J2) of the emulator and the USB port of the host machine.
↓
Connect the power supply for the emulator. Connect a power supply to the power connector (J1). Power supply
should be 5.0 V ±5%, / 2 A.
↓
Connect the user system. Connect the user system as occasion demands.
↓
Turning on the power supply. Turn on the power to the emulator and the user system as
simultaneously as possible.
↓
Check the LED display of the emulator.
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.
↓
Start up the emulator debugger. Start up the emulator debugger.
↓
Set the operating environment
of the emulator debugger. Set the INIT dialog box and EMEM dialog box of the emulator
debugger.
↓
Debug a program with various functions of
the emulator debugger. For how to use the emulator debugger, refer to its online manual.
Figure 2.1 Flowchart of starting up the emulator
Page 20 of 102
Table of contents
Other Renesas Terminal Emulator manuals