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.
Any 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.
M30870T-EPB User’s Manual Preface
Preface
The M30870T-EPB is an emulation probe for M32C/87 Group MCUs. The M30870T-EPB is used by connecting to the
PC7501 emulator main unit.
This user's manual mainly describes specifications of the M30870T-EPB emulation probe and how to setup it. For details on
the following products, which are used with the M30870T-EPB, refer to each product's user's manual.
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
Emulator main unit PC7501 User’s Manual
C compiler NC308 User’s Manual
Assembler AS308 User’s Manual
Integrated development environment High-performance Embedded Workshop User’s 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) PC7501 main unit
(2) Emulation probe
(3) 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 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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 4 of 104
M30870T-EPB 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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 5 of 104
M30870T-EPB 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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 6 of 104
M30870T-EPB 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.
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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 7 of 104
M30870T-EPB User’s Manual Precautions for Safety
CAUTION
Cautions to Be Taken for Turning On the Power:
Turn ON the power of the emulator and user system as simultaneously as possible. Turn 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. Static electricity
may damage the internal circuits.
Do not pull this product by the flexible cable for connecting to the emulator main unit and emulation probe. The
cable may cause a break.
Do not flex the flexible cable for connecting to the emulator main unit and emulation probe excessively. The
cable may cause a break.
Do not use inch-size screws for this equipment. The screws used in this equipment are all ISO (meter-size) type
screws. When replacing screws, use same type screws as equipped before.
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 switch on the emulator upper panel.
(2) If normal operation is not restored after step (1), shut OFF power to the emulator once and then reactivate it.
Precautions for Safety ..................................................................................................................................................6
User Registration ........................................................................................................................................................11
1.2 Other Tool Products Required for Development ...........................................................................................13
1.3 System Configuration ....................................................................................................................................14
1.3.1 System Configuration..........................................................................................................................14
1.3.2 Names and Functions of the PC7501 Upper Panel LEDs ..................................................................15
2.1 Flowchart of Starting Up the Emulator ..........................................................................................................19
2.2 Installing the Emulator Debugger ..................................................................................................................20
2.3 Connecting the Host Machine .......................................................................................................................21
2.4 Connecting the PC7501 ................................................................................................................................22
2.5 Connecting the Power Supply for the Emulator ............................................................................................23
2.6 Turning ON the Power...................................................................................................................................24
2.6.1 Checking the Connections of the Emulator System............................................................................24
2.6.2 Turning ON/OFF the Power ................................................................................................................24
2.6.3 Power Supply to the User System ......................................................................................................24
2.6.4 LED Display When the Emulator Starts Up Normally .........................................................................25
2.8.2 If an Error is Detected in the Self-check..............................................................................................28
2.9 Connecting the User System.........................................................................................................................29
2.9.1 Connecting to a 100-pin LCC Socket..................................................................................................30
2.9.2 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1)............................................................31
2.9.3 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2)............................................................32
2.9.4 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3)............................................................33
2.9.5 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 1)..............................................................34
2.9.6 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 2)..............................................................35
2.9.7 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 3)..............................................................36
2.9.8 Connecting to a 144-pin 0.5-mm-pitch Foot Pattern...........................................................................37
3.1 Starting Up the Emulator Debugger (Init Dialog Box) ...................................................................................50
3.2 Starting Up the Emulator Debugger (EMEM Dialog Box) .............................................................................57
3.3 Program Window ...........................................................................................................................................62
4.2 Differences between the Actual MCU and Emulator.....................................................................................80
Note on Differences between the Actual MCU and Emulator......................................................................80
Note on RESET* Input .................................................................................................................................80
Note on RDY* Input......................................................................................................................................80
Note on HOLD* Input ...................................................................................................................................80
Note on NMI* Input.......................................................................................................................................80
Notes on Reset Vector Area ........................................................................................................................81
Notes on Stack Area ....................................................................................................................................81
Notes on Maskable Interrupts ......................................................................................................................81
Notes on Access Prohibited Area ................................................................................................................81
Note on DMA Transfer .................................................................................................................................81
Note on DMAC II Transfer Completion Interrupts ........................................................................................82
Note on Final Evaluation ..............................................................................................................................82
4.4.1 External Dimensions of the Emulation Probe .....................................................................................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 Downloading Firmware .................................................................................................................89
Note on Quitting the Emulator Debugger .....................................................................................................89
Notes on Power Supply to the User System ................................................................................................89
Notes on Using This Product When the Voltage of VCC1 is Higher than That of VCC2.............................89
Notes on Clock Supply to an MCU...............................................................................................................90
Notes on Using the CPU Clock at Less than 10 MHz..................................................................................90
Notes on Address-Match Interrupt ...............................................................................................................90
Notes on EMEM Dialog Box.........................................................................................................................91
Notes on Watchdog Function.......................................................................................................................91
Notes on Debugging in CPU Rewrite Mode.................................................................................................92
Note on Software Break ...............................................................................................................................92
Notes on Service-Life of the MCU's Internal Flash ROM.............................................................................92
Note on Protect Resistor ..............................................................................................................................93
Note on Memory Access ..............................................................................................................................93
Notes on MCU File .......................................................................................................................................93
Note on Intelligent I/O Resistor Access........................................................................................................93
Note on Voltage Detect Circuit.....................................................................................................................93
Notes on A/D Conversion.............................................................................................................................94
5.1 Flowchart to Remedy the Troubles ...............................................................................................................95
5.2 When the Emulator Debugger Does Not Start Up Properly ..........................................................................96
5.3 How to Request for Support ..........................................................................................................................99
6. Maintenance and Guarantee ................................................................................................................................100
6.1 User Registration.........................................................................................................................................100
6.5 How to Make Request for Repair ................................................................................................................101
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 10 of 104
M30870T-EPB 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
REJ10J0482-0300 Rev.3.00 February 16, 2006 Page 11 of 104
M30870T-EPB User’s Manual Terminology
Terminology
Some specific words used in this user's manual are defined as follows:
Emulator system
This means an emulator system built around the PC7501 emulator. The PC7501 emulator system is configured with an
emulator main unit, emulation probe, host machine and emulator debugger.
Emulator main unit (Hereafter PC7501)
This means an emulator main unit for M16C Family MCUs.
Emulation probe
This means the emulation probe (this product) for the M32C/87 Group MCUs.
Emulator debugger (M32C PC7501 Emulator Deb ug ger or M3T-PD308F)
This means a software tool to control the PC7501 emulator and this product and enable debugging.
Firmware
Program that analyzes contents of communication with the emulator debugger and controls the emulator hardware. This
program is installed in the flash memory in the emulator main unit. This program is downloadable from the emulator debugger
to upgrade the firmware or to support other MCUs.
Host machine
This means a personal computer used to control the emulator main unit and emulation probe.
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 MCU you are going to debug.
User system
This means a user's application system using the microcomputer to be debugged.
User program
This means the program you are going to debug.
Evaluation MCU
This means the MCU mounted on the emulation probe which is operated in the specific mode for tools.
*
In this user's manual, this symbol is used to show active Low. (e.g. RESET*: Reset signal)
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 12 of 104
M30870T-EPB 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 M30870T-EPB package consists of the following items. When unpacking it, check to see if your M30870T-EPB contains
Real-time RAM monitor function - 4,096 bytes (256 bytes x16)
- Data/last access result
Hardware break function 8 points (Execution address, bus detection, interrupt, external trigger signal)
Execution time measurement function Time between program start and stop
Maximum/minimum/average execution time and pass count of specified four
zones.
Count clock: Equal to MCU Clock or 16 MHz
C0 coverage 8,192 KB (256 KB x 32 blocks)
External trigger input/event output External trigger input (MCU-dependent-voltage CMOS level x8) or event output
(break x1, event x7)
Expansion emulation memory Maximum operating frequency 32 MHz 1Φ + 1Φ Specifiable areas Max. 4 areas
Area size Contiguous 256 KB range or contiguous 1 MB range
(mixed setting of 256 KB range and 1 MB range is available)
Emulation memory size 4 MB for 4 areas
Specifiable bank - For area size 256 KB
X0h, X4h, X8h, XCh banks
e.g.) 20 bank, 64 bank, A8 bank, EC bank etc.
- For area size 1 MB
X0h hank
e.g.) 20 bank, 40 bank, 80 bank, A0 bank etc.
* 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 24 MHz 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.
- LAN (10BASE-T)
Power supply to emulator Supplied from included AC adapter (power supply voltage: 100--240 V, 50/60 Hz)
Connection to user system
(see "2.9 Connecting the User System"
on page 29)
Be sure to use this 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
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.
* Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States
and other countries.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 18 of 104
M30870T-EPB 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 95).
Install the M32C PC7501 Emulator Debugger
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).
▼
or M3T-PD308F.
▼
Connect the host machine.
▼
Connect the power supply for the emulator. Connect a 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.
Install the M32C PC7501 Emulator Debugger or M3T-PD308F for
this product.
Connect the PC7501 to the host machine with the LPT parallel
interface cable, USB interface cable or LAN interface cable.
Set the interface selection switch on the rear panel of the PC7501 to
the using interface.
Turn ON the power to the emulator and the user system as
simultaneously as possible.
Check that the system status LED, and POWER CLOCK, RESET
and WARNING of target status LED are lighting. When the user
system is not connected, the POWER 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 the emulator
debugger’s online manual.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 19 of 104
M30870T-EPB User’s Manual 2. Setup
2.2 Installing the Emulator Debugger
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.
Install the emulator debugger (M32C PC7501 Emulator Debugger or M3T-PD308F) following the procedure described below.
(1) Downloading the emulator debugger (as occasion demands)
Download the emulator debugger from the URL below (free of charge).
In the “user information” dialog box, enter the user information (contractor, section, contact address, and host machine).
The supplied information will be turned into a format by which technical support will be provided by e-mail.
(4) Selecting components
In the “component selection” dialog box, select the components you want to install. In this dialog box you can change the
directory in which to install.
(5) Completing the installation
A dialog box will be displayed indicating that setup has been completed. It means that the installation you made is
completed.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 20 of 104
M30870T-EPB User’s Manual 2. Setup
2.3 Connecting the Host Machine
When connecting the emulator PC7501 to a host machine, you can choose your desired interface from LPT parallel interface,
USB interface and LAN interface. Use the interface selection switch on the emulator PC7501's rear panel to specify your
desired interface. Figure 2.2 shows the outline to connect each interface cable.
Figure 2.2 Outline for interface cable connections
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 21 of 104
M30870T-EPB User’s Manual 2. Setup
2.4 Connecting the PC7501
Figure 2.3 shows how to connect the PC7501 and the emulation probe.
M3T-FLX160-EPB
M30870T-EPB
Note: Connect the PCA7501EPBA board side to the M3T-FLX160-EPB.
Figure 2.3 Connecting the PC7501 and emulation probe
CAUTION
Cautions for Connecting the PC7501:
When connecting the emulation probe, be sure to hold the both sides of the emulation probe horizontally and
insert it directly.
Connect the PCA7501EPBA board to the M3T-FLX160-EPB.
Always shut OFF power before connecting the emulation probe. Otherwise, internal circuits may be damaged.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 22 of 104
M30870T-EPB User’s Manual 2. Setup
2.5 Connecting the Power Supply for the Emulator
The power is supplied from AC adapter to the emulator PC7501. Here following explains how to connect the AC adapter.
(1) Turn OFF the power to the PC7501.
(2) Connect the DC cable of AC adapter to the PC7501.
(3) Connect the AC power cable to the AC adapter.
(4) Connect the AC power cable to the receptacle.
CAUTION
Cautions for AC Adapter:
Use only the AC adapter included in PC7501 package.
The included AC adapter is for PC7501. Do not use it for other product.
Before installing this equipment or connecting it to other equipment, disconnect the AC power cable from its
outlet to prevent injury or accident.
The DC plug on the included AC adapter has the below polarity.
The included AC adapter has no power supply switch. The AC adapter is always active while connecting the
AC power cable. Check if the power is supplied by the LED of AC adapter.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 23 of 104
M30870T-EPB User’s Manual 2. Setup
2.6 Turning ON the Power
2.6.1 Checking the Connections of the Emulator System
Before turning the power ON, check the connection of the interface cable with host machine, PC7501, emulation probe, and
user system.
2.6.2 Turning ON/OFF the Power
Turn ON the power of the emulator and user system as simultaneously as possible.
Turn 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.
IMPORTANT
Notes on Power Supply:
The emulator's pin Vcc is connected to the user system in order to monitor user system voltage. For this reason,
the emulator cannot supply power to the user system. Therefore, provide the user system with a separate power
supply from that of the emulator.
Keep user system power supply voltage within the MCU's specified range (3.0 to 5.5 V).
Do not change user system power supply voltage after power has been activated.
2.6.3 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.
The voltage of the user system should be within the following. And do not change the voltage after activating the system.
(1) When JP1 is set as VCC1 = 2:
3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V
(2) When JP1 is set as VCC1 > 2:
4.8 V ≤ VCC1 ≤ 5.2 V
3.0 V ≤ VCC2 < VCC1
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 24 of 104
M30870T-EPB User’s Manual 2. Setup
2.6.4 LED Display When the Emulator Starts Up Normally
Figure 2.4 shows upper panel LED lighting status when the emulator started up properly. Check it when starting up the
emulator system.
- If this LED does not light, check the voltage of the user system.
- Check power is supplied to all the power terminals.
- When the user system is not connected, this LED does not light.
POWER
SAFE
ERROR
SYSTEM
STATUS
POWER
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
: ON
: OFF
: Flashing
Figure 2.4 LED display when the power turned on PC7501
IMPORTANT
Note on Memory Expansion and Microprocessor Modes:
To use memory expansion or microprocessor mode, be sure to set pins RDY*, HOLD* and NMI* so that they
are not active at start-up. Otherwise the emulator system will not start up correctly.
Note on CLOCK LED:
If CLOCK LED does not turn on, check the following:
(1) Immediately after starting PC7501 (before starting the emulator debugger)
Check if the oscillation circuit within the PC7501 emulator main unit oscillates normally.
(2) After starting the emulator debugger (after setting the Init dialog box)
Check the oscillation circuit set in the Init dialog box oscillates normally.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 25 of 104
M30870T-EPB User’s Manual 2. Setup
2.7 Downloading Firmware
2.7.1 When It is Necessary to Download Firmware
It is necessary to download the firmware in the cases listed below. Normally, the following are automatically detected when
the emulator debugger is started up, and the firmware is downloaded.
(1) When you use this product for the first time
(2) When the firmware has been upgraded
(3) When the emulator debugger has been upgraded
(4) When you use this product with a PC7501 which was used with other emulation probe before
If downloading firmware is not completed in the cases below, redownload the firmware.
- When the power is unexpectedly shut down during a download from the emulator debugger
- When a communications interface cable is unexpectedly pulled out
2.7.2 Downloading Firmware in Maintenance Mode
Download the firmware in maintenance mode as explained here following. The user system must not be connected when
downloading the firmware.
(1) Set the interface select switch on the rear panel of the PC7501 to the LPT side and connect the LPT parallel interface cable
to the PC7501 and the host machine.
(2) Within 2 seconds of activating power to the emulator, press the RESET switch on the PC7501 upper panel to switch to
maintenance mode.
Switched to maintenance mode, the SAFE SYSTEM STATUS LED begins to flash.
(3) Start up the emulator debugger. When the Init dialog box setup is complete, the dialog which urges to download the
firmware will appear. Download the firmware following messages. Required time for downloading the firmware is about
60 seconds.
POWERPOWER
SAFE
ERROR
SYSTEM
STATUS
POWERPOWER
SAFE
ERROR
SYSTEM
STATUS
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
POWERPOWER
SAFE
ERROR
SYSTEM
POWERPOWER
SAFE
ERROR
SYSTEM
Download terminated
CLOCK
RESET
RUN
WARNING
TARGET
CLOCK
RESET
RUN
WARNING
TARGET
POWERPOWER
SAFE
ERROR
STATUSSTATUS
: ON
: OFF
STATUSSTATUS
: Flashing
SYSTEM
Downloading firmware startedMaintenance mode started
STATUS
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
Figure 2.5 Downloading firmware in maintenance mode
IMPORTANT
Note on Downloading Firmware:
Do not shut OFF power while the firmware is being downloaded. Doing so, the emulator will not start up
properly. If power is shut OFF by mistake, redownload the firmware in maintenance mode.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 26 of 104
M30870T-EPB User’s Manual 2. Setup
2.8 Self-check
2.8.1 Self-check Procedure
To run the emulator self-check, do so as explained here below. While the self-check is in progress, LEDs will change as shown
in Figure 2.6.
(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.1).
(3) Within 2 seconds of activating power to the emulator, press the system reset switch on the emulator upper panel to switch
the emulator to maintenance mode.
(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 20 seconds, the self-check terminated normally.
Table 2.1 Switch settings at self-check
Switch Setting
AVCC/AVSS switch (SW1) EXT side
P87 switch (SW2) P87 side
P86 switch (SW3) P86 side
XOUT switch (SW4) NC side
A/D conversion bit selection switch (SW5) All lower side
VDDIO switch (JP1) VCC1=2 side
POWER
SAFE
ERROR
SYSTEM
STATUS
Maintenance mode started
POWER
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
SAFE and ERROR flash
ERROR 1
ERROR 2
SAFE flashes and
ERROR lights
ERROR 3
SAFE and ERROR
light alternately
ERROR 4
SAFE goes out and
ERROR lights
Figure 2.6 Self-check procedure
POWER
SAFE
ERROR
SYSTEM
STATUS
Self-check terminated normally
POWER
SAFE
ERROR
SYSTEM
STATUS
Emulation probe and firmware
do not match
POWER
SAFE
ERROR
SYSTEM
STATUS
PC7501 system status error
POWER
SAFE
ERROR
SYSTEM
STATUS
Emulation probe initialization error
POWER
SAFE
ERROR
SYSTEM
STATUS
Emulation probe status error
POWER
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
POWER
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
POWER
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
POWER
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
POWER
CLOCK
RESET
RUN
WARNING
TARGET
STATUS
: ON
: OFF
: Flashing
- When the firmware does not support the emulation probe
- When the emulation probe is not connected properly
- When the PC7501 system is not working properly
- When a clock is not supplied to the emulation probe
- When the emulation probe is not working properly
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 27 of 104
M30870T-EPB User’s Manual 2. Setup
2.8.2 If an Error is Detected in the Self-check
If the self-check does not result normally (ERROR 1 to ERROR 4 in Figure 2.6), check the following.
(1) Recheck the connection of the emulation probe and PC7501.
(2) Redownload the proper firmware.
IMPORTANT
Note on the Self-check:
If the self-check does not result normally (excluding user system errors), the emulation probe may be damaged.
Then contact your local distributor.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 28 of 104
M30870T-EPB User’s Manual 2. Setup
2.9 Connecting the User System
There are eight ways available to connect the emulation probe to user systems as shown in Figure 2.7.
100-pin
Emulation probe
0.65-mm-pit ch
M30800T-PTC
(included)
M3T-100LCC-DMS
(not included)
LCC socket
100-pin LCC
(included)
M30800T-PTC
(included)
M3T-DIRECT100S
100-pin QFP
(not included)
M3T-FLX100-T
(not included)
M3T-DUMMY100S
100-pin QFP
(not included)
: No. 1 pin
*1: These items are available in one package.
*1
M3T-FLX100-R
(not included)
M3T-FLX-100NRB
100-pin QFP
(not included)
Figure 2.7 Connection of the M30870T-EPB and user system
M3T-F160-100NSD
100-pin LQFP
(not included)
0.5-mm-pitch
M3T-100LCC-QSD
100-pin QFP
(not included)
M30800T-PTC
M3T-FLX100-T
(not included)
(included)
M3T-FLX-10 0NSD
100-pin QFP
(not included)
M3T-100LCC-DMS
(not included)
144-pin 0.5-mm-pitch
M3T-FLX100-R
(not included)
M3T-FLX-144NSD
144-pin LQFP
(not included)
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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
CAUTION
Page 29 of 104
M30870T-EPB User’s Manual 2. Setup
2.9.1 Connecting to a 100-pin LCC Socket
When connecting the emulation probe to a 100-pin LCC socket (Yamaichi Electronics Co., Ltd.: IC61-1004-051 etc.) on the
user system, following the procedure below.
(1) Attach the CN2 side of the M30870T-EPB to the CN2 side of the M30800T-PTC.
(2) Attach the M30800T-PTC to the 100-pin LCC socket.
M3T-FLX160-EPB
M30870T-EPB
Figure 2.8 Connecting to a 100-pin LCC socket
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 M30870T-EPB 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.
http://www.yamaichi.co.jp/e/index.shtml
(1)
(2)
100 -pin LCC socket
No. 1 pin
CAUTION
CN2 side
M30800T-PTC
User system
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 30 of 104
M30870T-EPB User’s Manual 2. Setup
2.9.2 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1)
Figure 2.9 shows how to connect the emulation probe 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) Attach the M3T-DUMMY100S to the user system.
(2) Attach the M3T-100LCC-DMS to the M3T-DUMMY100S.
(3) Attach the M30800T-PTC to the M30870T-EPB.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M3T-FLX160-EPB
M30870T-EPB
(3)
(4)
(2)
(1)
CN2 side
M30800T-PTC
M3T-100LCC-DMS
100 -pin 0.65-mm- pitch
(100P6S) foot pattern
(not included)
M3T-DUMMY100S
(not included)
On-board evaluation
FLASH MCU etc.
No. 1 pin
Figure 2.9 Connecting to a 100-pin 0.65-mm-pitch foot pattern (1/3)
CAUTION
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-DUMMY100S are guaranteed for only 20
insertion/removal iterations.
The small connectors of the M30870T-EPB and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
REJ10J0482-0300 Rev.3.00 February 16, 2006
User system
Page 31 of 104
M30870T-EPB User’s Manual 2. Setup
2.9.3 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2)
Figure 2.10 shows how to connect the emulation probe 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 M30870T-EPB.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M3T-FLX160-EPB
M30870T-EPB
Figure 2.10 Connecting to a 100-pin 0.65-mm-pitch foot pattern (2/3)
(3)
(4)
(2)
(1)
CN2 side
M30800T-PTC
M3T-100LCC-DMS
(not included)
M3T-DIRECT100S
(not included)
100 -pin 0.65-mm -pitch
(100P6S) 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 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 M30870T-EPB and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
REJ10J0482-0300 Rev.3.00 February 16, 2006
CAUTION
Page 32 of 104
M30870T-EPB User’s Manual 2. Setup
The HQPACK100RB cannot be used.
Please use the HQPACK100RB168.
2.9.4 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3)
Figure 2.11 shows how to connect the emulation probe 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 M30870T-EPB.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M3T-FLX160-EPB
M30870T-EPB
CN2
(3)
M30800T-PTC
M3T-100LCC-DMS
(4)
(not included)
M3T-FLX-100NRB
(not included)
(2)
YQ-GUIDE(x4)
*
YQPACK100RB
These corners are not round.
*:These four items are available in one package.
NQPACK100RB
(1)
100-pin 0.65-mm-pitch
(100P6S) foot pattern
No. 1 pin
Figure 2.11 Connecting to a 100-pin 0.65-mm-pitch foot pattern (3/3)
User system
On-board evaluation
HQPACK100RB
(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-100NRB are guaranteed for only 20
insertion/removal iterations.
The small connectors of the M30870T-EPB 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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
CAUTION
Page 33 of 104
M30870T-EPB User’s Manual 2. Setup
2.9.5 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 1)
Figure 2.12 shows how to connect the emulation probe 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 M30870T-EPB.
(3) Attach the M30800T-PTC to the M3T-100LCC-QSD.
M3T-FLX160-EPB
M30870T-EPB
Figure 2.12 Connecting to a 100-pin 0.5-mm-pitch foot pattern (1/3)
(2)
(3)
(1)
CN2 side
M30800T-PTC
M3T-100LCC-QSD
(not included)
100 -pin 0.5-mm -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 user system.
The small connectors of the M30870T-EPB and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
REJ10J0482-0300 Rev.3.00 February 16, 2006
CAUTION
Page 34 of 104
M30870T-EPB User’s Manual 2. Setup
2.9.6 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 2)
Figure 2.13 shows how to connect the emulation probe 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 M30870T-EPB.
(4) Attach the M30800T-PTC to the M3T-100LCC-DMS.
M3T-FLX160-EPB
M30870T-EPB
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 pack age.
Figure 2.13 Connecting to a 100-pin 0.5-mm-pitch foot pattern (2/3)
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 M30870T-EPB and M30800T-PTC are guaranteed for only 50 insertion/removal
iterations.
REJ10J0482-0300 Rev.3.00 February 16, 2006
CAUTION
Page 35 of 104
M30870T-EPB User’s Manual 2. Setup
2.9.7 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 3)
Figure 2.14 shows how to connect the emulation probe 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 M30870T-EPB to the M3T-F160-100NSD.
M3T-FLX160-EPB
M30870T-EPB
CN2 side
(5)
M3T-F160-100NSD
(not included)
(4)
*
(3)
These corners are not round.
*: These four items are available in one package.
Figure 2.14 Connecting to a 100-pin 0.5-mm-pitch foot pattern (3/3)
(2)
(1)
YQ-GUIDE (x4)
YQPACK100SD
NQPACK100SD
100 -pin 0.5-mm -pitch
(100P6Q) foot pattern
No. 1 pin
User system
On-board evalution
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.
The small connectors of the M30870T-EPB and M3T-F160-100NSD are guaranteed for only 50
insertion/removal iterations.
REJ10J0482-0300 Rev.3.00 February 16, 2006
CAUTION
Page 36 of 104
M30870T-EPB User’s Manual 2. Setup
2.9.8 Connecting to a 144-pin 0.5-mm-pitch Foot Pattern
Figure 2.15 shows how to connect the emulation probe 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 M30870T-EPB to the M3T-FLX-144SD.
M3T-FLX160-EPB
M30870T-EPB
These corners are not round.
(5)
(4)
*
(3)
(2)
(1)
CN2 side
M3T-FLX-144NSD
(not included)
YQ-GUIDE (x4)
YQPACK144SD
NQPACK144SD
144 -pin 0.5-mm -pitch
(144P6Q) foot pattern
On-board evaluation
HQPACK144SD
(not included)
FLASH MCU etc.
*: These four items are available in one package.
Figure 2.15 Connecting to a 144-pin 0.5-mm-pitch foot pattern
CAUTION
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.
The small connectors of the M30870T-EPB and M3T-FLX-144NSD are guaranteed for only 50
insertion/removal iterations.
REJ10J0482-0300 Rev.3.00 February 16, 2006
No. 1 pin
User system
Page 37 of 104
M30870T-EPB User’s Manual 2. Setup
2.10 Setting Switches
2.10.1 Setting Switches of Emulation Probe
Set the switches of the emulation probe according to the condition. Figure 2.16 shows the positions of the switches of the
M30870T-EPBM REV.B, and Figure 2.17 shows the positions of the switches of the M30870T-EPBM REV.C.
N
O
1823456
C1
RENESAS
MADE IN JAPAN
C2
C3
C4
SW5
7
M30870T-EPBM REV.B
SW3SW4
P86
VCONT
NC
AVCC
AVSS
EXTINT
SW2SW1
P87
XCIN
Figure 2.16 Positions of the switches of the M30870T-EPBM REV.B
C2
RENESAS
C1
MADE IN JAPAN
VSS
NC
JP1
VCC1=2
XOUT
N
O
1823456
C3
C4
VCC1>2
SW5
7
M30870T-EPBM REV.C
AVCC
AVSS
EXTINT
SW1
SW2
SW3
P86
SW4
NCXCINP87
NC
XOUT
JP1
VCC1=2
VCC1>2
Figure 2.17 Positions of the switches of the M30870T-EPBM REV.C
REJ10J0482-0300 Rev.3.00 February 16, 2006 Page 38 of 104
M30870T-EPB User’s Manual 2. Setup
(1) Setting JP1, SW1 to SW4 on the M30870T-EPBM
Table 2.2 shows the settings of JP1, SW1 to SW4 on the M30870T-EPBM REV.B, and Table 2.3 shows the settings of JP1,
SW1 to SW4 on the M30870T-EPBM REV.C.
Table 2.2 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
(Factory-setting)
VCC1=2
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
INT
EXT
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.
NCP86
VSS
XOUTNC
SW4 XOUT
(Factory-setting)
XOUTNC
REJ10J0482-0300 Rev.3.00 February 16, 2006
Do not set to VSS.
Connects pin P86 to the VSS in the emulation probe.
Does not connect pin XOUT of the MCU.
Connects pin XOUT of the MCU to the user system.
Page 39 of 104
M30870T-EPB User’s Manual 2. Setup
Table 2.3 Switch settings of the M30870T-EPBM REV.C (JP1, SW1 to SW4)
Switch Switch name Setting Description
JP1 VDDIO
SW1
AVCC
AVSS
SW2 P87
VCC1=2
VCC1>2
(Factory-setting)
VCC1=2
VCC1>2
AVCC
AVSS
EXT
INT
(Factory-setting)
AVCC
AVSS
P87XCIN
EXT
INT
(Factory-setting)
P87
XCIN
3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V
4.8 V ≤ VCC1 ≤ 5.2 V and 3.0 V ≤ VCC2 < VCC1
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).
SW3 P86
SW4 XOUT
P86NC
(Factory-setting)
P86NC
XOUTNC
(Factory-setting)
XOUTNC
Connects pin P86 of the MCU to the user system.
Does not connect pin P86 of the MCU.
Does not connect pin XOUT of the MCU.
Connects pin XOUT of the MCU to the user system.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 40 of 104
M30870T-EPB User’s Manual 2. Setup
(2) Setting SW5 on the M30870T-EPBM
Table 2.4 lists the examples of setting the switch SW5 on the M30870T-EPBM. 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"
*1
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”
*2
in the Init dialog box of the emulator debugger, set the switch
SW5 as the factory-settings (all lower side).
*1 When using the M3T-PD308F, select the MCU file "m30870_ad_a.mcu".
*2 When using the M3T-PD308F, select the MCU file “m30870_a.mcu”.
Table 2.4 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
When not using the
analog input port
selection function
AD ON 07
O
N
1234567
OFF 0
this setting.
- When using the memory expansion mode
- When using the microprocessor mode
8
- When using the multi-port sweep mode
7
- When selecting AN0 to AN7 for analog input port select bits
- 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
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 41 of 104
M30870T-EPB 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 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 following MCU files in the Init dialog box of the emulator debugger to execute the A/D
When using this product in memory expansion mode or microprocessor 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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 42 of 104
M30870T-EPB User’s Manual 2. Setup
2.10.2 Selecting Clock Supply
There are two ways to supply a clock to the MCU, using the oscillator circuit of the emulator or using the oscillator circuit on
the user system. Table 2.5 lists the factory-settings of each clock supply.
Table 2.5 Clock supply to the MCU and default settings
Clock Display of emulator debuggerDescription Default setting
Internal oscillator circuit
(OSC-3 or OSC-2)
Internal generator circuit
(1.0 to 32.0 MHz)
Internal oscillator circuit
(32.768 kHz)
Yes
-
-
Main XIN-X
Sub X
CIN-XCOUT
OUT
Internal
External Oscillator of user system -
Generated
Internal
External Oscillator of user system Yes
IMPORTANT
Notes on Changing the Clock Supply:
The clock supply can be set by the Init dialog box when starting up the emulator debugger or inputting CLK
command on the script window.
For XCIN-XCOUT, it is necessary to set switches in the emulator. For details, refer to "2.10.1 Setting Switches
of Emulation Probe" (page 38).
(1) Using an Internal Oscillator Circuit Board
1) Kinds of Oscillator Circuit Boards
The PC7501 comes with an oscillator circuit board OSC-3 (30 MHz). And an oscillator circuit board OSC-3 (32 MHz)
and an oscillator circuit board OSC-2 (bare board) are included with this product. If you use the internal oscillator
circuit board OSC-3 (32 MHz) or OSC-2 of the PC7501 as a main clock, choose "Internal" in the emulator debugger
after replacing oscillator circuit boards to change a clock supplied to an MCU.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 43 of 104
M30870T-EPB User’s Manual 2. Setup
2) Replacing an Oscillator Circuit Board
Remove the four screws of both sides of this product and lift off the upper cover (see Figure 2.18).
Figure 2.18 Removing the upper cover
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 44 of 104
M30870T-EPB User’s Manual 2. Setup
Unscrew the screw of the oscillator circuit board of the PC7501 and replace it (see Figure 2.19).
The oscillator circuit board of the PC7501 is in the lower right corner of the
board.
Unscrew the screw securing the oscillator circuit board.
Lift off the oscillator circuit board.
Attach another oscillator circuit board to the connector.
Secure the new oscillator circuit board with the screw.
Figure 2.19 Replacing oscillator circuit boards
Reinstall the upper cover once removed and secure the four screws of the PC7501.
CAUTION
Note on Removing the Upper Cover:
Always shut OFF power when removing the upper cover or chang ing the oscillator circuit board. Otherwise the
internal circuit may be damaged.
REJ10J0482-0300 Rev.3.00 February 16, 2006 Page 45 of 104
M30870T-EPB User’s Manual 2. Setup
3) Using the Oscillator Circuit Bare Board
To use this product at a frequency you like, build a desired oscillator circuit on the included OSC-2 oscillator circuit
bare board. Figure 2.20 shows an external view of the OSC-2 oscillator circuit bare board and the connector pin
locations. Figure 2.21 shows the circuitry of the oscillator circuit bare board OSC-2. Use the number of oscillator
circuits recommended by the oscillator manufacturer.
5. Using or not using the address match break function
Using or not using the address match break
function
Specify whether or not to use the address match brea
function.
- To use the address match break function (default), selec
the check box (marked by a check mark when selected).
In this case, the address match interrupt is used by the
emulator, and cannot be used in the user program.
- When not using the address match break function,
deselect the check box (check mark cleared). In this case,
the address match interrupt can be used in the use
program.
This option can be selected or deselected only when you are
starting up the emulator debugger.
6. Using or not using the watchdog function
Using or not using the watchdog function
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.
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
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 microprocessor mode, the level of pin CNVSS of the MCU status should be "H".
When setting memory expansion mode or microprocessor mode, pins RDY* and HOLD* of the user system
should be "H".
When the user system is not connected, all modes are available.
The debug monitor uses contiguous 64 KB as a work area o
the emulator. Specify the bank address of the debug
monitor.
(e.g.: If D0 is specified, 64 KB area from D00000H address
is used by the debug monitor)
utomatically Allocating the Emulation
Memory of the Internal ROM
When selecting the single-chip mode or memory expansio
mode, an emulation memory is automatically allocated to an
internal ROM area. The automatically allocated addresses o
the internal ROM are shown here.
IMPORTANT
Notes on Setting a Debug Monitor Bank Address:
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.
The below bank addresses cannot be set for the debug monitor.
(1) MCU internal resources (ROM, RAM and SFR areas)
(2) Multiplex areas
(3) Interrupt vector area
microprocessor mode, it is possible to allocate the emulation
memory at the expansion area for debugging (max. 4 areas).
In this dialog box, set the memory allocation at the area fo
debugging and specify the mapping information.
- Setting bank address (Bank):
Specify the bank address of the area to be allocated fo
expansion as a hexadecimal number.
For example, specifying "C0" allocates the bank fro
address C00000h.
- Specifying area size (Length):
Specify the size of the specified expansion area (256 KB
or 1 MB). When “256 KB” is specified for Length, 00,
04, 08 and -FC (by 4 banks) can be specified for Bank.
When “1 MB” is specified for Length, 00, 10, 20 and
F0 (by 16 banks) can be specified for Bank.
- Specifying area map (Map):
Specify the mapping information (“INTERNAL” o
“EXTERNAL”). When not using the specified area,
select “No Use”.
Internal: This bank is allocated as an internal area
(emulation memory)
External: This bank is allocated as an external area
(external resource on user system).
IMPORTANT
Notes on Using Emulation Memory for Expansion:
When single-chip mode or memory expansion mode is set as a processor mode, internal ROM area is
automatically allocated to the internal flash ROM. Therefore, it is not necessary to deliberately specify
emulation memory as expansion area in order to allocate the internal ROM area.
The 4MB memory mounted in the product can be allocated out. Set memory allocation so that the total of the 4
length values does not exceed the emulation memory size (4 MB). However, the emulation memory is 3.00 MB
in memory expansion mode.
Be careful that the specified areas do not overlap one another.
Do not set the following areas for memory allocation of the MCU. Set these areas referring the specifications of
the MCU.
(1) Area allocated for multiplex bus
(2) Unusable area
Memory in the emulator is automatically selected as reset vector area regardless of settings.
Except for the SFR, RAM, ROM and internally reserved areas, all areas other than the set area are externally
accessible.
MCU internal resources are automatically selected as SFR and RAM areas regardless of settings.
When “No Use” is selected or nothing is selected in “Map”, the specified area is allocated to an external area.
The difference between these cases and selecting “EXTERNAL” is a download speed only.
The program window is a window that always shows the
content of the source file corresponding to the curren
osition of the program counter. It automatically opens
when the emulator starts up. The program counter position
is identified by the yellow background color. Here, you can
execute the program up to the cursor position, set or clea
software breakpoints, and line-assemble the source file.
Because the present emulator uses the MCU’s internal flash
ROM, the initial value for the ROM area data at the time o
urchase is “FFh.”
2. Downloading the program
Menu Menu item Function
File
Download
L
oad Module...
M
emory Image...
S
ymbol...
R
om Data...
Downloads the user program.
Downloads machine language data and debug information.
Downloads only machine language data.
Downloads only debug information.
Downloads machine language data additionally.
Reload... Reloads the user program.
Upload... Uploads the user program.
ave Disasm... Saves the disassembled result.
S
Display after downloading the program
The program window has the following three display
modes.
- Source display mode
Displays the source file of the user program. The source
file can be edited.
- Disassemble display mode
Displays the disassembled result of the user program.
- MIX display mode
Displays the source file of the user program along with
the disassembled result for that part of the program.
4.2 Differences between the Actual MCU and Emulator
Differences between the actual MCU and emulator are shown below. When debugging the MCU using this product, be careful
about the following precautions.
IMPORTANT
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) Using the Oscillator
Circuit on the User System" (page 47).
(6) A/D conversion
As a converter board and other devices are used between the evaluation MCU and the user system, some
characteristics are slightly different from those of an actual MCU.
(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 (only
while 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 PC7501'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 PC7501'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 (only
while the RUN status LED on the C7501'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. Therefore when setting a microprocessor mode, to use a ROM of the user system etc. as an area including
a reset vector area, set a reset vector using a dump window etc.
A reset vector area can be changed only when a program is stopped.
Notes on Stack Area:
With this product, a maximum 20 bytes of the user stack is consumed as a work area. Therefore, ensure the +20
byte maximum capacity used by the user program as the user stack area. If the user stack does not have enough
area, do not use areas which cannot be used as stack (SFR area, RAM area which stores data, or ROM area) as
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 to 00500h and used as stack area after the 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)
Notes on using this product are listed below. When debugging the MCU using this product, be careful about the following
precautions.
IMPORTANT
Notes on Downloading Firmware:
Before using this product for the first time, it is necessary to download the dedicated firmware (control software
built into the PC7501). Please note that, to do this, it is necessary to start up the PC7501 in maintenance mode.
For firmware download procedures, see "2.7 Downloading Firmware" (page 26). Once the firmware has been
downloaded, the product can be used by simply turning on the power.
Do not shut off the power while downloading the firmware. If this happens, the product will not start up
properly. If power is shut off unexpectedly, redownload the firmware.
Except when a target status error occurs, if the self-check is not completed successfully, there may be trouble
with the product. In such case, contact your sales representative.
Perform the self-check while not connecting the user system.
Note on Quitting the Emulator Debugger:
To restart the emulator debugger after it ends, always shut power to the emulator module off once and then on
again.
Notes on Power Supply to the User System:
Pin Vcc of the emulator is connected to the user system to observe the voltage of the user system. Therefore
design your system so that the user system is powered separately.
The voltage of the user system should be within the following.
(1) When JP1 is set as VCC1 = 2:
3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V
(2) When JP1 is set as VCC1 > 2:
4.8 V ≤ VCC1 ≤ 5.2 V
3.0 V ≤ VCC2 < VCC1
Do not change the voltage of the user system after turning on the power.
Notes on Using This Product When the Voltage of VCC1 is Higher than That of VCC2:
If using this product when the voltage of VCC1 is higher than that of VCC2, set the JP1 to VCC1>2. For the
switch JP1, refer to "2.10 Setting Switches" (page 38).
If using this product when the voltage of VCC1 is higher than that of VCC2, the CPU clock must be 24 MHz or
Clock can be supplied to the evaluation MCU in one of the following three ways. This is determined by
emulator debugger clock selection.
(1) When Internal is selected:
The clock generated by the oscillation circuit in the PC7501 is supplied to the evaluation MCU. The clock
is continually supplied to the evaluation MCU regardless of "user system clock status" and "user program
execution status".
(2) When External is selected:
The clock oscillating on the user system is supplied to the evaluation MCU. Clock supply to the evaluation
MCU depends on oscillation status (oscillate/off) of the user system.
(3) When Generate is selected:
A clock generated by the dedicated circuit in the PC7501 is supplied to the evaluation MCU. The clock is
continually supplied to the evaluation MCU regardless of "user system clock status" and "user program
execution status".
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 Interrupt:
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
Observe the following when setting up EMEM dialog box of the emulator debugger.
(1) Debug Monitor Bank Address
The default value of Debug Monitor Bank Address is "F0". To set single-chip mode or memory expansion
mode, internal flash memory is automatically allocated in F000h--FFFFh and F00000h--FFFFFFh.
Therefore, change the Debug Monitor Bank Address to the area which does not start from "F0". The
specified value becomes effective after restarting the system.
When "D0" is specified, 64 KB of area starting from D00000h 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 microprocessor mode, pin CNVSS used with MCU status must be "H".
To set memory expansion mode or microprocessor mode, pins RDY* and HOLD* used with MCU status
must be "H".
When the user system is not connected, all modes are available.
(3) Emulation Memory Allocation
The memory mounted in the PC7501 can be allocated out.
When single-chip mode or memory expansion mode is set as a processor mode, ROM area is automatically
allocated to the internal Flash ROM of an MCU. Therefore, it is not necessary to deliberately specify the
emulation memory as expansion area in order to allocate the ROM area.
Except for the SFR, RAM, ROM and internally reserved areas, all areas other than the set area are
externally accessible.
MCU internal resources are automatically selected for SFR, RAM and ROM areas regardless of settings.
Be careful that the specified areas do not overlap one another.
Set memory allocation so that the total of the 4 length values does not exceed the emulation memory size (4
MB).
Do not set a multiplex bus area and unusable areas for memory allocation.
Emulator main unit's memory is automatically selected as a reset vector area regardless of settings.
Notes on Watchdog Function:
When using the watchdog function, select the check box of "Debug the program using the Watchdog Timer" in
the MCU tab of the Init dialog box. When not using the watchdog function, clear the check box.
If the reset circuit of the user system has a watchdog timer, disable it when using the emulator.
To debug a program in CPU rewrite mode, select the check 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, clear
the check 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 out properly.).
(1) Single stepping
(2) Setting a software breakpoint
(3) Setting a hardware breakpoint
(4) Executing COME
When CPU rewrite program is allocated to the expansion emulation memory, the program may run out of
control. For the CPU rewrite program, use an internal RAM area or external resource on the use system. These
precautions only need to be observed when using an emulator, and do not apply for the actual MCU.
Note on Software Break:
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 M30870T-EPB, 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 replaced when at the end of its service-life.
If the following errors occur frequently during program download, replace the emulation probe or request for
repair.
(1) Flash ROM erase error occurred ERROR (16258)
(2) Flash ROM verify error occurred ERROR (16259)
To purchase the product for replacement or request for repair, contact your local distributor.
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 ("1") PRC2
(2) Setting a break point from an instruction setting ("1") PRC2 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 user 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
Notes on MCU File:
Two types of MCU file are available for when using this product with the M32C PC7501 Emulator Debugger.
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".
Two types of MCU file (m30870_a.mcu and m30870_ad_a.mcu) are available for when using this product with
the M3T-PD308F, the notes are the same as above.
Note on Intelligent I/O Resistor Access:
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. This precaution only needs to be observed when using an emulator,
and does not apply for the actual MCU.
Note on Voltage Detect Circuit:
As the power voltage cannot be changed after powering on the user system, the voltage detect circuit (voltage
down detect interrupt and hardware reset 2) cannot be used with this product.
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 and P2 groups 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.10.1 Setting Switches of Emulation Probe" (page 38).
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 and P2 groups 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.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 94 of 104
M30870T-EPB 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
EMEM dialog box of
emulator debugger
Normal
Program window of emulator
debugger displayed
Not normal
1. Check connection of the power supply cable.
“
2.5 Connecting the Power Supply for the Emulator” (page 23).
See
2. Check that the power is properly supplied to the user system.
See
Turning ON the Power” (page 24).
“
Not normal/Error displayed
1. Check the operating environment etc. of the emulator debugger.
See the user
2. Reinstall the emulator debugger.
Not normal/Error displayed
See “5.2 (2) EMEM Dialog Box Does Not Appear at Debugger Startup
(page 97).
Error displayed
’
s manual of the emulator debugger.
”
Normal
Emulator debugger startup completed
Figure 5.1 Flowchart to remedy the troubles
REJ10J0482-0300 Rev.3.00 February 16, 2006
See “5.2 (3) Errors Occur at Debugger Startup” (page 98).
Page 95 of 104
M30870T-EPB User’s Manual 5. Troubleshooting
5.2 When the Emulator Debugger Does Not Start Up Properly
(1) When the LEDs of the PC7501 Do Not Display Normally
Table 5.1 Errors LEDs show and their checkpoints
Error Checkpoint
LEDs do not light up. - Check that the power cable is connected.
All LEDs remain lit. - Recheck the connection between the PC7501 and this product.
The POWER LED of "STATUS
OF TARGET" does not light up.
The CLOCK LED of "STATUS
OF TARGET" does not light up.
The RESET LED of "STATUS
OF TARGET" does not go out.
Connection to
the user system
See "2.5 Connecting the Power Supply for the Emulator" (page 23)
and the user's manual of the PC7501.
See "2.4 Connecting the PC7501" (page 22).
Connected Check that power (Vcc) 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 the oscillation circuit in the emulator is oscillating.
S ee "2.10.2 Selecting Clock Supply" (page 43).
Connected (1) When the clock is supplied from an external oscillator, check
that the oscillator circuit in the user system is oscillating
properly.
(2) Check the switches in the emulation probe is properly set..
See "2.10.1 Setting Switches of Emulation Probe" (page 38).
Connected Check that the reset pin of the user system is pulled up.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 96 of 104
M30870T-EPB User’s Manual 5. Troubleshooting
(2) EMEM Dialog Box Does Not Appear at Debugger Startup
Table 5.2 Checkpoints of errors at debugger startup
Error Checkpoint
Communication error occurred. Check all emulator debugger settings, interface cable settings and
Data was not sent to the target.
switches on the rear of the PC7501 match.
See the user's manuals of PC7501 and emulator debugger.
User system cannot be properly built. (1) Download the proper firmware.
See "2.7 Downloading Firmware" (page 26).
(2) Recheck the connection between the PC7501 and this product.
See "2.4 Connecting the PC7501" (page 22).
M3T-PD308F version is not the same version as
the firmware in the target.
Download the proper firmware.
See "2.7 Downloading Firmware" (page 26).
Target MCU is in the reset state. (1) Check the reset pin of the user system is pulled up.
(2) Check the reset pin of the user system has changed from "L" to "H"
level.
Target MCU cannot be reset. (1) Check pin NMI* is held high.
(2) If in memory expansion mode or microprocessor mode, check pins
RDY* and HOLD* are held high.
(3) If the reset circuit of the user system has a watchdog timer, disable
the watchdog timer.
(4) Check that power is properly supplied to the user system and that the
user system is properly grounded.
(5) The program may be uncontrollable in areas where memory is not
allocated. Recheck the map setting.
Target is in "HOLD" state. (1) The MCU is either in stop mode or wait mode. Either reset the MCU
or cancel the mode with an interrupt.
See MCU specifications.
(2) The program may be uncontrollable in areas where memory is not
allocated. Recheck the map setting.
Target clock is stopped. (1) When the clock is supplied from an external oscillator, check that the
oscillator circuit in the user system is oscillating properly.
(2) Check the switches in the emulation probe are correctly set.
See "2.10.1 Setting Switches of Emulation Probe" (page 38).
Target MCU is not receiving power. Check that power is properly supplied to the user system and that the
user system is properly grounded.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 97 of 104
M30870T-EPB 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 pin NMI* is held high.
(4) If in memory expansion mode or microprocessor mode, check pins
RDY* and HOLD* are held high.
(5) The program may be uncontrollable in areas where memory is not
allocated. Recheck the map setting.
REJ10J0482-0300 Rev.3.00 February 16, 2006
Page 98 of 104
M30870T-EPB 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