Renesas M3062PT-EPB User Manual

M3062PT-EPB
Emulation Probe for M16C/62 Group M16C/62P
User's Manual
Rev. 1.00 July 1, 2003 REJ10J0074-0100Z
* IC61-1004-051 is a trademark of Yamaichi Electronics Co., Ltd. * NQPACK, YQPACK, YQSOCKET, YQ-GUIDE, HQPACK, TQPACK and TQSOCKET are trademarks of Tokyo Eletech Corporation.
• Renesas Technology Corporation and Renesas Solutions Corporation put the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap.
• These materials are intended as a reference to assist our customers in the selection of the Renesas Technology product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corporation, Renesas Solutions Corporation or a third party.
• Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, or infringement of any third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials.
• All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by Renesas Technology Corporation and Renesas Solutions Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corporation, Renesas Solutions Corporation or an authorized Renesas Technology product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical errors. Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology Corporation and Renesas Solutions Corporation by various means, including the Renesas home page (http://www.renesas.com).
• When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. Renesas Technology Corporation and Renesas Solutions Corporation assume no responsibility for any damage, liability or other loss resulting from the information contained herein.
• Renesas Technology semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Renesas Technology Corporation, Renesas Solutions Corporation or an authorized Renesas Technology product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
• The prior written approval of Renesas Technology Corporation and Renesas Solutions Corporation is necessary to reprint or reproduce in whole or in part these materials.
• If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited.
• Please contact Renesas Technology Corporation or Renesas Solutions Corporation for further details on these materials or the products contained therein.
Keep safety first in your circuit designs!
Notes regarding these materials
• This product is a development supporting unit for use in your program development and evaluation stages. In mass-producing your program you have finished developing, be sure to make a judgment on your own risk that it can be put to practical use by performing integration test, evaluation, or some experiment else.
• In no event shall Renesas Solutions Corporation be liable for any consequence arising from the use of this product.
• Renesas Solutions Corporation strives to cope with the issues given below at some charge or without charge.
• 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.
For inquiries about the contents of this document or product, fill in the text file the installer of the emulator debugger generates in the following directory and email to your local distributor.
\SUPPORT\Product-name\SUPPORT.TXT Renesas Tools Homepage http://www.renesas.com/en/tools
Precautions to be taken when using this product
( 2 / 80 )

Preface

The M3062PT-EPB is an emulation probe for the M16C/62 Group M16C/62P MCUs. The M3062PT-EPB is used by connecting to the PC7501 emulator main unit.
This user's manual mainly describes specifications of the M3062PT-EPB emulation probe and how to setup it. For details on the following products, which are used with the M3062PT-EPB, refer to each product's user's manual.
• Emulator: PC7501 User's Manual
• Emulator debugger: M3T-PD30F User's Manual
All the components of this product are shown in "Table 2.1 Package components" (page 20). If there is any question or doubt about this product, contact your local distributor.
To use the product properly
Precautions for Safety:
• In both this user's manual and on the product itself, several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons, or damage to your properties.
• The icons' graphic images and meanings are given in "Chapter 1. Precautions for Safety" (page 7). Be sure to read this chapter before using the product.
( 3 / 80 )

Contents

Chapter 1. Precautions for Safety ...........................................................................................7
1.1 Safety Symbols and Meanings ..............................................................................8
WARNING .................................................................................................................9
Warning for Installation...................................................................................9
Warning for Use Environment.........................................................................9
CAUTION.................................................................................................................10
Caution to Be Taken for Modifying This Product .........................................10
Cautions to Be Taken for Turning On the Power ..........................................10
Cautions to Be Taken for Handling This Product..........................................10
Caution to Be Taken for Malfunctions ..........................................................10
Caution to Be Taken for External Trigger Input Voltage ..............................10
IMPORTANT ...........................................................................................................11
Notes on Downloading Firmware..................................................................11
Notes on Self-check .......................................................................................11
Note on Quitting the Emulator Debugger......................................................11
Note on Final Evaluation ...............................................................................11
Notes on Power Supply to the Target System ...............................................11
Note on RESET* Input ..................................................................................11
Note on NMI* Input ......................................................................................12
Note on RDY* Input......................................................................................12
Note on HOLD* Input ...................................................................................12
Notes on Maskable Interrupts ........................................................................12
Note on Clock Supply to the MCU................................................................12
Note on Access Prohibited Area ....................................................................13
Notes on Stack Area ......................................................................................13
Notes on Reset Vector Area...........................................................................13
Note on Accessing Address 00000h ..............................................................13
Note on Stop and Wait Modes .......................................................................13
Note on Display of MCU Status ....................................................................14
Note on Breaks...............................................................................................14
Notes on Address-Match Breaks ...................................................................14
Notes on Address-Match Interrupts ...............................................................15
Notes on Software Breaks..............................................................................15
Note on Differences between the Actual MCU and Emulator ......................16
Note on the Watchdog Function ....................................................................16
Note on DMA Transfer..................................................................................16
Note on Protect Register ................................................................................17
Notes on Pullup Control ................................................................................17
Note on Operating Frequency........................................................................17
Notes on Internal Flash ROM of the MCU....................................................17
Notes on Debugging in CPU Rewrite Mode .................................................18
Chapter 2. Preparation ..........................................................................................................19
2.1 Package Components ..........................................................................................20
2.2 Other Tool Products Required for Development ................................................20
2.3 Name of Each Part ..............................................................................................21
2.3.1 System Configuration ...........................................................................21
2.3.2 Names and Functions of the PC7501 Upper Panel LEDs ....................21
2.4 When Using the Emulator for the First Time......................................................24
2.4.1 Downloading Firmware ........................................................................24
2.4.2 Self-check .............................................................................................24
( 4 / 80 )
Chapter 3. Setup ...................................................................................................................25
3.1 Selecting Clock Supply .......................................................................................26
3.1.1 Clocks ...................................................................................................26
3.1.2 Using an Internal Oscillator Circuit Board ...........................................26
3.1.3 Using the Oscillator Circuit on the Target System ...............................29
3.1.4 Using the Internal Generator Circuit ....................................................30
3.2 Switch Settings....................................................................................................30
3.3 A-D Conversion Bypass Capacitors....................................................................31
3.4 Pullup of Emulation Ports ...................................................................................32
3.5 Connecting the PC7501.......................................................................................33
3.6 Connecting the Target System ............................................................................34
3.6.1 Connecting to an 80-pin 0.65-mm-pitch Foot Pattern ..........................35
3.6.2 Connecting to a 100-pin LCC Socket ...................................................36
3.6.3 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1) .............37
3.6.4 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2) .............38
3.6.5 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3) .............39
3.6.6 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 1) ...............40
3.6.7 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 2) ...............41
3.6.8 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 3) ...............42
3.6.9 Connecting to a 128-pin 0.5-mm-pitch Foot Pattern ............................43
Chapter 4. Usage ..................................................................................................................45
4.1 Turning On the Power .........................................................................................46
4.1.1 Checking Connections of the Emulator System ...................................46
4.1.2 Turning ON/OFF the Power .................................................................46
4.1.3 Power Supply to the Target System......................................................46
4.1.4 LED Display When the PC7501 Starts Up Normally...........................47
4.2 Downloading Firmware ......................................................................................48
4.2.1 When It is Necessary to Download Firmware ......................................48
4.2.2 Downloading Firmware in Maintenance Mode ....................................48
4.3 Self-check............................................................................................................49
4.3.1 Self-check Procedure ............................................................................49
4.3.2 If an Error is Detected in the Self-check...............................................50
Chapter 5. Specifications......................................................................................................51
5.1 Specifications ......................................................................................................52
5.2 Operation Timing of Memory Expansion Mode and Microprocessor Mode (5 V) .......53
5.3 Operation Timing of Memory Expansion Mode and Microprocessor Mode (3 V) .......58
5.4 Connection Diagram ...........................................................................................63
5.5 External Dimensions ...........................................................................................65
5.5.1 External Dimensions of the Emulation Probe.......................................65
5.5.2 External Dimensions of the Converter Board M30800T-PTC .............66
5.5.3 External Dimensions of the Converter Board M3062PT-80FPB .........67
5.5.4 External Dimensions of the Converter Board M3T-F160-100NSD .....67
5.5.5 External Dimensions of the Converter Board M3T-F160-128NRD ....68
Chapter 6. Troubleshooting ..................................................................................................69
6.1 Flowchart to Remedy the Troubles .....................................................................70
6.2 When the Emulator Debugger Does Not Start Up Properly ...............................71
Chapter 7. Maintenance and Guarantee................................................................................75
7.1 Maintenance ........................................................................................................76
7.2 Guarantee ............................................................................................................76
7.3 Repair Provisions ................................................................................................76
7.4 How to Request for Repair..................................................................................77
( 5 / 80 )

Terminology

Some specific words used in this user's manual are defined as follows:
PC7501 system
This means an emulator system built around the PC7501 emulator. The PC7501 emulator system is configured with an emulator main unit PC7501, emulation probe M3062PT-EPB, emulator debugger M3T-PD30F and host machine.
Emulator main unit PC7501
This means an emulator for the M16C Family MCUs. You can configure your emulator system by changing emulation probes according to your target MCU.
Emulation probe M3062PT-EPB
This means the emulation probe (this product) for the M16C/62 Group M16C/62P. It is used with the emulator main unit PC7501.
Emulator debugger M3T-PD30F
This means a software tool for the M16C Series. You can control the emulator from a host machine through various interfaces.
Firmware
This means a program stored in the flash ROM of the emulator main unit PC7501. It analyzes contents of communication with the emulator debugger and controls the emulator PC7501. This program is downloadable from the emulator debugger to upgrade firmware or to support other MCUs.
Host machine
This means a personal computer used to control the PC7501 emulator system.
Target MCU
This means the microcomputer you are going to debug.
Target system
This means a user's application system using the microcomputer to be debugged.
User program
This means a user's application program to be debugged.
Evaluation MCU
This means a microcomputer mounted on the emulation probe which is operated in the special mode for the emulator.
*
In this user's manual, this symbol is used to show active LOW. (e.g. RESET*)
( 6 / 80 )
Chapter 1. Precautions for Safety
This chapter describes precautions for using this product safely and properly. For precautions for the emulator main unit and the emulator debugger, refer to each user's manual included with your product.
1.1 Safety Symbols and Meanings .....................................................................................................8
WARNING
CAUTION
IMPORTANT
Warning for Installation............................................................................................... 9
Warning for Use Environment.....................................................................................9
Caution to Be Taken for Modifying This Product ..................................................... 10
Cautions to Be Taken for Turning On the Power ...................................................... 10
Cautions to Be Taken for Handling This Product...................................................... 10
Caution to Be Taken for Malfunctions ......................................................................10
Caution to Be Taken for External Trigger Input Voltage .......................................... 10
Notes on Downloading Firmware.............................................................................. 11
Notes on Self-check ...................................................................................................11
Note on Quitting the Emulator Debugger.................................................................. 11
Note on Final Evaluation ........................................................................................... 11
Notes on Power Supply to the Target System ........................................................... 11
Note on RESET* Input ..............................................................................................11
Note on NMI* Input...................................................................................................12
Note on RDY* Input..................................................................................................12
Note on HOLD* Input ............................................................................................... 12
Notes on Maskable Interrupts ....................................................................................12
Note on Clock Supply to the MCU............................................................................12
Note on Access Prohibited Area ................................................................................ 13
Notes on Stack Area...................................................................................................13
Notes on Reset Vector Area....................................................................................... 13
Note on Accessing Address 00000h .......................................................................... 13
Note on Stop and Wait Modes ................................................................................... 13
Note on Display of MCU Status ................................................................................14
Note on Breaks........................................................................................................... 14
Notes on Address-Match Breaks ............................................................................... 14
Notes on Address-Match Interrupts ........................................................................... 15
Notes on Software Breaks.......................................................................................... 15
Note on Differences between the Actual MCU and Emulator .................................. 16
Note on the Watchdog Function ................................................................................ 16
Note on DMA Transfer.............................................................................................. 16
Note on Protect Register ............................................................................................17
Notes on Pullup Control.............................................................................................17
Note on Operating Frequency.................................................................................... 17
Notes on Internal Flash ROM of the MCU................................................................ 17
Notes on Debugging in CPU Rewrite Mode: ............................................................ 18
( 7 / 80 )

1.1 Safety Symbols and Meanings

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.
WARNING
CAUTION
IMPORTANT
In addition to the three above, the following are also used as appropriate.
means WARNING or CAUTION.
Example: CAUTION AGAINST AN ELECTRIC SHOCK
If the requirements shown in the "WARNING" sentences are ignored, the equipment may cause serious personal injury or death.
If the requirements shown in the "CAUTION" sentences are ignored, the equipment may malfunction.
It means important information on using this product.
means PROHIBITION.
Example: DISASSEMBLY PROHIBITED
means A FORCIBLE ACTION.
Example:
The following pages describe the symbols "WARNING", "CAUTION", and "IMPORTANT".
UNPLUG THE POWER CABLE FROM THE RECEPTACLE.
( 8 / 80 )
WARNING
Warning for Installation:
• Do not set this product in water or areas of high humidity. Make sure that the main unit does not get wet. Spilling water or some other liquid into the main unit can cause an 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.
( 9 / 80 )
CAUTION
Caution to Be Taken for Modifying This Product:
• Do not modify this product. Modifying or disassembling this product will void your warranty.
Cautions to Be Taken for Turning On the Power:
• Turn on the power of the emulator and target system as simultaneously as possible.
• Turn off the power of the emulator and target system as simultaneously as possible.
• Do not leave either the emulator or target 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 Malfunctions:
• If the emulator malfunctions because of interference like external noise, do the following to remedy the trouble.
(1) Press the system reset switch on the emulator front panel. (2) If normal operation is not restored after step (1), shut OFF power to the emulator once and then
reactivate it.
Caution to Be Taken for External Trigger Input Voltage:
• Keep an external trigger input voltage of the emulator main unit less than a Vcc2 voltage. Overvoltage may cause damage to the internal circuits.
( 10 / 80 )
IMPORTANT
Notes on Downloading Firmware:
• Before using this product for the first time, it is necessary to download the dedicated firmware. Please note that, to do this, it is necessary to start up the emulator main unit in maintenance mode. For downloading firmware, see "4.2 Downloading Firmware" (page 48). 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 the power is shut off unexpectedly, redownload the firmware.
• Download the firmware with the target system not connected.
Notes on Self-check:
• If the self-check does not result normally (excluding target system errors), the emulation probe may be damaged. Then contact your local distributor.
• Run the self-check with the target system not connected.
Note on Quitting the Emulator Debugger:
• To restart the emulator debugger, always shut power to the emulator module off once and then on again.
Note on Final Evaluation:
• Be sure to evaluate your system with an evaluation MCU. Before starting mask production, evaluate your system and make final confirmation with a CS (Commercial Sample) version MCU.
Notes on Power Supply to the Target System:
• Pins Vcc1 and Vcc2 are connected to the target system to observe the voltage. Therefore, the power is not supplied to the target system from the emulator, design your system so that the target system is powered separately.
• The voltage of the target system should be as follows.
(1) When JP1 is set as Vcc1 = Vcc2:
2.7 V Vcc1 = Vcc2 5.5 V
(2) When JP1 is set as Vcc1 > Vcc2:
4.8 V Vcc1 5.2 V
2.7 V Vcc2 < Vcc1
•Do not change the voltage of the target system after turning on the power.
Note on RESET* Input:
•A low input to pin RESET* from the target system is accepted only when a user program is being executed (when the RUN status LED on the PC7501's front panel is lit).
( 11 / 80 )
IMPORTANT
Note on NMI* Input:
•A low input to pin NMI* from the target system is accepted only when a user program is being executed (when the RUN status LED on the PC7501's front panel is lit).
Note on RDY* Input:
• Be sure to input a low to pin RDY* of the target system during the user program execution (only while the RUN status LED on the PC7501's upper panel is lit). Inputting a low signal to pin RDY* when the user program is stopped may cause a malfunction of the emulator.
Note on HOLD* Input:
• Be sure to input a low to pin HOLD* of the target system during the user program execution (only while the RUN status LED on the PC7501's upper panel is lit). Inputting a low signal to pin HOLD* when the user program is stopped may cause a malfunction of the emulator.
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 emulation probe. Therefore, timers and other components do not stop running.
If a maskable interrupt is requested when the user program is not being executed (including when run-time debugging is being performed), the maskable interrupt request cannot be accepted, because the emulator disables interrupts. The interrupt request is accepted immediately after the user program execution is started.
• 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.
Note on Clock Supply to the MCU:
•A clock supplied to the evaluation MCU is selected by the Emulator tab in the Init dialog box of the emulator debugger.
(1) When "Internal" is selected:
A clock generated by the oscillator circuit board in the PC7501 is supplied. It is continually supplied regardless of the status of the target system clock and that of the user program execution.
(2) When "External" is selected:
A clock generated by the oscillator in the target system is supplied. It depends on the status of the oscillation (on/off) of the target system.
(3) When "Generate" is selected:
A clock generated by the dedicated circuit in the PC7501 is supplied. It is continually supplied regardless of the status of the target system clock and that of the user program execution.
( 12 / 80 )
IMPORTANT
Note on Access Prohibited Area:
• You cannot use internally reserved areas. Write signals to the areas will be ignored, and values read will be undefined.
Notes on Stack Area:
• With this product, a maximum 8 bytes of the user stack is consumed as a work area. Even if the user stack does not have an enough area, do not use areas which cannot be used as a stack
(SFR area, RAM area which stores data, or ROM area) as a work area. Using areas like this is a cause of user program crashes and destabilized emulator control.
• With this product, the interrupt stack pointer (ISP) is set at 00500h and used as a stack area after a reset is released.
Notes on Reset Vector Area:
• Memory in the emulator main unit is always selected as a reset vector area (FFFFCh--FFFFFh) in order to operate the evaluation MCU in the emulator-dedicated mode. Set the contents of the reset vector area in one of the following ways.
(1) Download a user program to an area including the reset vector area. (2) Set the reset vector using a memory window of the emulator debugger etc.
• You can change data in the reset vector area only when the user program is stopped.
• Do not access the reset vector area as data. It may not be accessed properly, and the program may not run properly in the next bus cycle.
Note on Accessing Address 00000h:
• With the M16C Series MCUs, when a maskable interrupt is generated, the interrupt data (interrupt number and interrupt request level) stored in address 00000h is read out. Also, the interrupt request bit is cleared when address 00000h is read out. Consequently, when the address 00000h readout instruction is executed or when address 00000h is read out in the cause of a program runaway, a malfunction occurs in that the interrupt is not executed despite the interrupt request, because the request bit of the highest priority interrupt factor enabled is cleared.
For this malfunction, when the reading out to address 00000h is generated excluding the interrupt, the WARNING LED (yellow) lights up to alarm. When this LED lights, there is a possibility of wrong access, therefore check the user program.
Note on Stop and Wait Modes:
• Do not single step an instruction shifting to stop or wait mode. It may cause communication errors.
( 13 / 80 )
IMPORTANT
Note on Display of MCU Status:
•"MCU status" you can refer to in the MCU tab of the MCU Setting dialog box of the emulator debugger shows pin levels of the target system. Make sure that proper pin levels are specified according to the mode you use.
(1) When single-chip mode is used:
CNVss: Low
(2) When memory expansion mode 16-bit data bus width is used:
CNVss: Low, BYTE: Low, HOLD*: High, RDY*: High
(3) When memory expansion mode 8-bit data bus width is used:
CNVss: Low, BYTE: High, HOLD*: High, RDY*: High
(4) When microprocessor mode 16-bit data bus width is used:
CNVss: High, BYTE: Low, HOLD*: High, RDY*: High
(5) When microprocessor mode 8-bit data bus width is used:
CNVss: High, BYTE: High, HOLD*: High, RDY*: High
Note on Breaks:
• The area displaying break points in the program window of the emulator debugger shows the following breaks.
(1) Address-match break "A"
This is a debugging function which breaks a program, using the address-match interrupt function of the MCU, immediately before the system executes an instruction at a specified address. The instruction at the preset address will not be executed.
(2) Software break "B"
This is a debugging function which generates a BRK interruption by changing an instruction at a specified address to a BRK instruction (00h) to break a program immediately before the system executes an instruction at a specified address. The instruction at the preset address will not be executed.
(3) Hardware break "H"
This is a debugging function which breaks a program by setting the detection of an execution of an instruction at a specified address as a break event. The program will break after the instruction at the specified address is executed.
Notes on Address-Match Breaks:
• As the processing speed of setting and canceling address-match breaks is relatively fast, you can save the times of writing into the internal flash ROM of an MCU. Therefore, address-match breaks precede the other breaks when setting breakpoints in the internal flash ROM area of an MCU.
•Address-match breaks can be set only in RAM and ROM areas of an MCU.
• Address-match breaks can be set at up to four points. The other breaks are set as software breaks.
•Address-match breaks can be set or canceled even when the user program is being executed.
( 14 / 80 )
IMPORTANT
Notes on Address-Match Interrupts:
•When you use the address-match interrupt function in a user program, uncheck "Enable the Address Match Interrupt Break Function" in the MCU tab of the Init dialog box of the emulator debugger. Thus, normal software breaks are used for the internal RAM and ROM areas of an MCU.
• Do not set a software break at an address where an address-match interrupt occurs. Otherwise, a user program may be run out of control. Set a software or hardware break in the top address in address-match interrupt processing.
• When you single step an address where an address-match interrupt occurs, the program stops after executing the first instruction after returning from address-match interrupt processing.
Notes on Software Breaks:
• Software breaks change the instruction at a specified address to a BRK (00h). Therefore, take note that when you reference the result of a trace in bus mode, "00h" is displayed.
• The BRK instruction can be used for the emulator only. You cannot use it in a user program.
• You can neither set nor cancel a software breakpoint in the internal ROM area of an MCU during user program execution, while you can set or cancel it in the internal RAM area of an MCU and the area (emulation memory) where the map setting is INTERNAL in chip-select CS3* to CS0*.
( 15 / 80 )
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
Set the time for starting up (0.2 Vcc to 0.8 Vcc) 1 µs or less. (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 evaluation MCU of this product has RAM of 31 KB (00400h--07FFFh) and flash ROM
of 4 KB (0F000h--0FFFFh) and 384 KB (A0000h--FFFFFh). (5) Oscillator circuit
In the oscillator circuit where an oscillator is connected between pins XIN and XOUT, oscillation
does not occur because a converter board is used between the evaluation MCU and the target
system. It is same for pins XCIN and XCOUT. For notes on when using the oscillator circuit on
the target system, refer to "3.1.3 Using the Oscillator Circuit on the Target System" (page 29). (6) A-D conversion
The characteristics of the A-D converter differ from those of actual MCU because there are
a converter board and other devices between the evaluation MCU and the target system. (7) Ports P0 to P5, P10
This product emulates some I/O ports (P0 to P5, P10). Therefore, the electrical characteristics
of these ports differ from those of an actual MCU. (8) Address and status of BHE*
When the internal RAM or ROM area of an MCU is accessed during user program execution,
actual MCUs retain a preceding address and status of BHE*, while this product does not. (9) Status of a data bus
In stop or wait mode, actual MCUs retain a preceding status of a data bus, while with this
product a data bus is floating.
Note on the Watchdog Function:
• If the reset circuit of the target system has a watchdog timer, disable it when using the emulator.
Note on DMA Transfer:
•With this product, the program is stopped with a loop program to a specific address. Therefore, if a DMA request is generated while the program is stopped, DMA transfer is executed. However, make note 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 program is stopped.
(1) DMA0 transfer counter: TCR0 (2) DMA1 transfer counter: TCR1
( 16 / 80 )
IMPORTANT
Note on Protect Register:
• The protect is not canceled when bit 2 of protect register PRCR (PRC2), which enables writing into the port P9 direction register and the SI/Oi control register, is changed with the below procedure.
(1) Step execution of an instruction setting PRC2 to "1" (2) Setting a break point between an instruction setting PRC2 to "1" and a point where the port
P9 direction register or the SI/Oi control register is set
(3) Setting PRC2 to "1" by the memory window or script window
Notes on Pullup Control:
•Because this product emulates some I/O ports (P0 to P5, P10), you can not pullup ports P0 to P5 by the pullup control registers. Install the included resistor arrays (51 k) as necessary.
• The initial value of pullup control register 1 PUR1 of this product is different from that of an actual MCU. When a Vcc level is input to pin CNVss, the value of an actual MCU is "02h" (bit 1 PU11 is "1"), while that of this product is "00h".
Note on Operating Frequency:
•You can not use this product with a main clock (XIN-XOUT) less than 1 MHz. To use it with a main clock less than 1 MHz, contact your local distributor.
Notes on Internal Flash ROM of the MCU:
• This product downloads a user program to the flash ROM in an MCU when debugging in single­chip or memory expansion mode. By checking "Disable the Internal Flash ROM" in the MCU tab of the MCU setting dialog box of the emulator debugger, you can disable the operation of the internal flash ROM of the MCU to use the emulation memory. However, the maximum operating frequency is 10 MHz.
•Because the number of write/erase cycles of the internal flash ROM of the MCU is limited, it must be replaced at the end of its service-life.
• If the following errors occur frequently when downloading a program, replace the MCU board.
(1) Flash ROM erase error occurred ERROR (16258) (2) Flash ROM verify error occurred ERROR (16259)
To purchase products for replacement, contact your local distributor.
( 17 / 80 )
IMPORTANT
Notes on Debugging in CPU Rewrite Mode:
• When you debug an M16C/62P MCU of the M16C/62 group in CPU rewrite mode, do not change the block 0 area (FF000h--FFFFFh) of the flash memory. Otherwise, the emulator will be uncontrollable.
• If you check "Debug the program using CPU Rewrite Mode" in the MCU tab of the Init dialog box of the emulator debugger, you cannot use the following functions.
(1) Setting software breakpoints in an internal ROM area (2) Executing COME in an internal ROM area
• In the rewrite control program area (from setting CPU rewrite mode to releasing it), do not use the following functions.
(1) Single-stepping (2) Setting software breakpoints (3) Setting hardware breakpoints
• To reference data after executing CPU rewrite, stop the program at a point which is not a rewrite control program area and use a memory window etc.
• As the following interrupt vectors are used by the emulator system, the read data is different from expected value.
(1) BRK instruction (FFFE4h--FFFE7h) (2) Address match (FFFE8h--FFFEBh) (3) Single-step (FFFECh--FFFEFh) (4) DBC (FFFF4h--FFFF7h)
( 18 / 80 )
Chapter 2. Preparation
This chapter describes the package components, the system configuration and the preparation for using this product for the first time.
2.1 Package Components...................................................................................................................20
2.2 Other Tool Products Required for Development......................................................................... 20
2.3 Name of Each Part.......................................................................................................................21
2.3.1 System Configuration........................................................................................................21
2.3.2 Names and Functions of the PC7501 Upper Panel LEDs .................................................21
2.4 When Using the Emulator for the First Time .............................................................................. 24
2.4.1 Downloading Firmware..................................................................................................... 24
2.4.2 Self-check .......................................................................................................................... 24
( 19 / 80 )

2.1 Package Components

The M3062PT-EPB package consists of the following items. When unpacking it, check to see if your M3062PT-EPB contains all of these items.
Table 2.1 Package components
M3062PT-EPB emulation probe M30800T-PTC converter board for 100-pin 0.65-mm-pitch LCC IC61-1004-051 LCC socket (100-pin 0.65-mm-pitch) made by Yamaichi Electronics Co., Ltd. OSC-3 (16 MHz) oscillator circuit board OSC-2 oscillator circuit bare board Resistor arrays (51 k) for ports P0 to P5 pullup Hardware tool user registration FAX sheet (English) Hardware tool user registration FAX sheet (Japanese) M3062PT-EPB user's manual (this manual) M3062PT-EPB user's manual (Japanese)
* Please keep the M3062PT-EPB's packing box and cushion material in your place for reuse at a
later time when sending your product for repair or other purposes. Always use these packing box
and cushion material when transporting this product. * If there is any question or doubt about the packaged product, contact your local distributor. * For purchasing the IC61-1004-051 or for technical information, contact Yamaichi Electronics Co., Ltd.
http://www.yamaichi.co.jp/e/index.shtml
Item
Quantity
1 1 1 1 1 6 1 1 1 1

2.2 Other Tool Products Required for Development

To bring forward programs development on an M16C/62P MCU of the M16C/62 Group, the products listed below are necessary in addition to those contained package above. Get them separately.
Table 2.2 Other tool products required for development
Product Emulator main unit Emulator debugger
80-pin 0.65-mm-pitch QFP
(80P6S-A)
100-pin 0.65-mm-pitch QFP
(100P6S-A)
Converter boards
100-pin 0.5-mm-pitch LQFP
(100P6Q-A)
128-pin 0.5-mm-pitch LQFP
(128P6Q-A)
Product name
PC7501
M3T-PD30F
M3062PT-80FPB
M3T-100LCC-DMS
M3T-DIRECT100S
M3T-100LCC-DMS M3T-DUMMY100S
M3T-100LCC-DMS
M3T-FLX-100NRB
M3T-F160-100NSD
M3T-100LCC-QSD M3T-100LCC-DMS
M3T-FLX-100NSD
M3T-F160-128NRD
Notes Required Required
+
+
Required according to a foot pattern of a target system
+
+
* For purchasing these products, contact your local distributor.
( 20 / 80 )

2.3 Name of Each Part

2.3.1 System Configuration

Figure 2.1 shows a configuration of the PC7501 system.
Emulator debugger
Host machine
M3T-PD30F
(1) Emulation probe
M3062PT-EPB
(2) Converter board
M30800T-PTC
Emulator PC7501
Target system
LPT parallel, USB or LAN interface
Figure 2.1 System configuration
(1) Emulation probe M3062PT-EPB
This emulation probe consists of the interface board PCA7501EPBA for the M16C Series and MCU board M3062PT-EPBM for the M16C/62P. The M3062PT-EPBM with an evaluation MCU is separately available for replacement.
(2) Converter board M30800T-PTC
This is a converter board for connecting to 100-pin 0.65-mm-pitch LCC socket IC61-1004-051 on the target system. For details, refer to "3.6 Connecting the Target System" (page 34).

2.3.2 Names and Functions of the PC7501 Upper Panel LEDs

Figure 2.2 shows the names of the LEDs on the upper panel of the PC7501.
System status LEDs Target status LEDs
Figure 2.2 Names of the LEDs on the upper panel of the PC7501
( 21 / 80 )
(1) System Status LEDs
The system status LEDs indicate the emulator PC7501's power supply, firmware operating status, etc. Table 2.3 lists the definition of each system status LED.
Table 2.3 Definition of the system status LEDs
Name
POWER
SAFE
ERROR
Status
ON
OFF
ON
Flashing
OFF
ON
Flashing
OFF
Meaning PC7501 system is turned ON. PC7501 system is turned OFF. PC7501 system is operating normally.
1.The self-check is being executed.
2.Downloaded firmware is being written into memory.
3.If the ERROR LED is flashing or turned on at the same time, the self-
check cannot be executed because of malfunction of the target
system. PC7501 system is not operating normally (system status error). PC7501 system is not operating normally (system status error).
1.Firmware is being downloaded.
2.If the SAFE LED is flashing at the same time or alternately, the self-
check cannot be executed because of malfunction of the target
system. PC7501 system is operating normally.
(2) Target Status LEDs
The target status LEDs indicate operating status of the target MCU and power supply of the target system. Table 2.4 lists the definition of each target status LED.
Table 2.4 Definition of the target status LEDs
Name
POWER
CLOCK
RESET
RUN
WARNING
Status
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
Meaning Power is supplied to the target system. Power is not supplied to the target system. Target MCU clock is oscillating. Target MCU clock is not oscillating. Target MCU is being reset. Target MCU is not being reset. User program is being executed. User program has been halted. Address 00000h has been read out. Address 00000h has not been read out.
( 22 / 80 )
IMPORTANT
Note on Usage in Memory Expansion or Microprocessor Mode:
•When you use this product in memory expansion or microprocessor mode, be sure to design your system so that pins RDY* and HOLD* are not active at startup. Otherwise, it cannot startup normally.
Note on the Target Status POWER LED:
• If your MCU has two or more Vcc terminals, the LED does not light unless power is supplied to all the terminals.
Note on the Target Status CLOCK LED:
• If the LED is not turned on, check the following.
(1) After powering on the PC7501 (before starting up the emulator debugger):
Make sure that the oscillator circuit board is properly installed in the PC7501 and it is oscillating normally.
(2) After the emulator debugger is started up (after the Init dialog box settings are
completed): Make sure that the oscillator selected in the Init dialog box is oscillating normally.
Note on Accessing Address 00000h:
• With the M16C Series MCUs, when a maskable interrupt is generated, the interrupt data (interrupt number and interrupt request level) stored in address 00000h is read out. Also, the interrupt request bit is cleared when address 00000h is read out. Consequently, when the address 00000h readout instruction is executed or when address 00000h is read out in the cause of a program runaway, a malfunction occurs in that the interrupt is not executed despite the interrupt request, because the request bit of the highest priority interrupt factor enabled is cleared.
For this malfunction, when the reading out to address 00000h is generated excluding the interrupt, the WARNING LED (yellow) lights up to alarm. When this LED lights, there is a possibility of wrong access, therefore check the user program.
( 23 / 80 )

2.4 When Using the Emulator for the First Time

2.4.1 Downloading Firmware

If you have purchased this emulation probe newly, you need to download the firmware. The download procedure is given in Figure 2.3.
Before downloading the firmware, check that emulator debugger M3T-PD30F is installed to your host machine and the PC7501 is connected to the host machine. For more details, see each user's manual of the emulator debugger M3T-PD30F and the PC7501.

2.4.2 Self-check

Install oscillator circuit board OSC-3 (16 MHz)
included with this product to the PC7501
Connect this product and the PC7501.
Within 2 seconds of turning the power ON,
press the system reset switch of the PC7501
and check it is in maintenance mode.
Startup emulator debugger M3T-PD30F
and download the firmware.
Quit the emulator debugger
and shut down the PC7501.
See "3.1 Selecting Clock Supply" (page 26).
See "3.5 Connecting the PC7501" (page 33).
See "4.2 Downloading Firmware" (page 48).
Figure 2.3 Firmware download procedure
Execute the self-check after downloading the firmware to check that the emulation probe operates properly. Figure 2.4 shows the self-check procedure.
Within 2 seconds of turning the power ON,
press the system reset switch of the PC7501
and check it is in maintenance mode.
Press the system reset switch of the PC7501
to start the self-check.
After about 30 seconds, check that the self-check is
terminated normally and shut down the PC7501.
Figure 2.4 Self-check procedure
( 24 / 80 )
See "4.3 Self-check" (page 49).
Loading...
+ 56 hidden pages