Renesas M30620T2-RPD-E User Manual

To our customers,
Old Company Name in Catalogs and Other Documents
On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1 Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
st
, 2010
Send any inquiries to http://www.renesas.com/inquiry
.
Notice
1. All information included in this document is current as of the date this document is issued. Such information, however, is
subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
2. Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights
of third parties by or arising from the use of Renesas Electronics products or technical information described in this document. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others.
3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
4. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information.
5. When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations.
6. Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics
does not warrant that such informatio n is error free. Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein.
7. Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular application. You may not use any Renesas Electronics product for any application categorized as “Specific” without the prior written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific” or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise expressly specified in a Ren esas E lectronics data sheets or dat a books, etc.
“Standard”: Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electron ic appliances; machine tools; personal electronic equipment; and industrial robots.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-
crime systems; safety equipment; and medical equipment not specifically designed for life support.
“Specific”: Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare intervention (e.g. excision, etc.), and any other appl i cations or purposes that pose a d irect threat to human life.
8. You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges.
9. Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have
specific characteristics such as t he occu rrence o f failure at a certai n rate an d malfunct io ns under cert ain u se con dition s. Further, Renesas Electronics prod ucts are not subject to radiation resistance design. Please be sure to implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you.
10. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations.
11. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation an d also includes its majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
User’s Manual
M30620T2-RPD-E
User’s Manual
Emulation Pod for M16C/62,62A Group MCUs
Rev.1.00 2003.07
* 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. (1) Repairing or replacing a flawed product. There can be instances in which a product cannot be repaired if more than one year have passed since the discontinuance of its marketing. (2) Renovating or providing a workaround for product malfunction. This does not necessarily mean that Renesas Solutions Corporation guarantees the renovation or the provision under any circumstances.
• This product has been developed by assuming its use for program development and evaluation in laboratories. Therefore, it does not fall under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan.
• Do not attempt to modify this equipment. If modified, your authority to operate this equipment might be voided by FCC. Note: This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense. Warning: This is a Class A product. In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures.
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 / 78 )

Preface

The M30620T2-RPD-E is an emulation pod for the M16C/62 and M16C/62A Groups of 16-bit microcomputers. It's used with a PC4701 emulator.
This user's manual mainly describes functions of the M30620T2-RPD-E emulation pod and how to operate it. For details on the following products, which are used with M30620T2-RPD-E, refer to each product's user's manual.
• Emulator: PC4701M/PC4701HS/PC4701L User's Manual
• Emulator debugger: M3T-PD30 User's Manual
All the components of this product are shown in "2.2 Package Components" (page 19) of this user's manual. 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". Be sure to read this chapter before using the product.
When using outside Japan
• When using in Europe, the United States, or Canada, be sure to use both the emulator (PC4701M, PC4701HS or PC4701L) and the emulation pod which meet overseas standards. EMI standards are not met when the M30620T2-RPD-E is used with the PC4700H or PC4700L emulator.
( 3 / 78 )

Contents

Chapter 1. Precautions for Safety ...........................................................................................7
1.1 Safety Symbols and Meanings ..............................................................................8
Chapter 2. Preparation ..........................................................................................................17
2.1 Terminology ........................................................................................................18
2.2 Package Components ..........................................................................................19
2.3 Other Tool Products Required for Development ................................................19
2.4 Name of Each Part ..............................................................................................20
(1) System Configuration...............................................................................20
(2) Inside of Emulation Pod...........................................................................21
2.5 When Using the Emulator for the First Time......................................................22
Chapter 3. Setting Up ...........................................................................................................23
3.1 Removing the Upper Cover ................................................................................24
3.2 Setting Switches and Pullup Resistor..................................................................25
3.3 Selecting Clock Supply .......................................................................................29
(1) Using the Oscillator Circuit on Target System ........................................30
(2) Changing the Internal Oscillator Circuit of Emulation Pod.....................31
(3) Replacing the Oscillator Circuit Boards ..................................................32
3.4 Connecting the PC4701 and Emulation Pod.......................................................33
(1) Connecting the Cable to the PC4701 .......................................................33
(2) Connecting the Cable to the Emulation Pod ............................................34
3.5 Connecting the Target System ............................................................................35
Chapter 4. Usage ..................................................................................................................37
4.1 Turning On the Power .........................................................................................38
(1) Checking the Connection of the Emulator System ..................................38
(2) Turning On the Power ..............................................................................38
(3) LED Display When PC4701 Starts Up Normally....................................39
4.2 Downloading Firmware ......................................................................................40
(1) When It is Necessary to Download Firmware .........................................40
(2) Downloading Firmware in Maintenance Mode .......................................40
4.3 Self-check............................................................................................................41
(1) Self-check Procedure ...............................................................................41
(2) If an Error is Detected in the Self-check ..................................................41
Chapter 5. Specifications......................................................................................................43
5.1 Specifications ......................................................................................................44
5.2 Operation Timing in Memory Expansion and Microprocessor Modes (5 V) .....45
(1) Separate Bus, No-wait..............................................................................45
( 4 / 78 )
(2) Separate Bus, With Wait, Accessing External Memory Area .................47
(3) Multiplex Bus, With Wait, Accessing External Memory Area ...............49
(4) Timing Requirements...............................................................................51
5.3 Operation Timing of Memory Expansion and Microprocessor Modes (3 V).....53
(1) Separate Bus, No-wait..............................................................................53
(2) Separate Bus, With Wait, Accessing External Memory Area .................55
(3) Multiplex Bus, With Wait, Accessing External Memory Area ...............57
(4) Timing Requirements...............................................................................59
5.4 Electrical Characteristics.....................................................................................61
5.5 Connection Diagram ...........................................................................................62
5.6 External Dimensions ...........................................................................................64
(1) External Dimensions of Emulation Pod...................................................64
(2) External Dimensions of Pitch Converter Board (FLX-100LCC) ............65
Chapter 6. Troubleshooting ..................................................................................................67
6.1 Flowchart to Remedy the Troubles .....................................................................68
6.2 When the Emulator Debugger Does Not Start Up Properly ...............................69
(1) When the LED Display of PC4701 is Abnormal .....................................69
(2) Errors Occur When the Emulator Debugger Starts up
(When the target system is connected)....................................70
(3) Errors Occur When the Emulator Debugger Starts up
(When the target system is not connected) .............................71
6.3 Operation Differs from That of PROM Version MCUs .....................................71
(1) Does Not Operate with Operating Frequencies (3.6 V to 5.5 V) Properly .. 71 (2) Does Not Operate with Operating Frequencies (2.7 V to 3.6 V) Properly .. 71
(3) Cannot Reset from Target System............................................................71
(4) Data Values of ROM Area at Power-on Are Different ............................72
(5) HOLD* control.........................................................................................72
(6) A-D Conversion Values are Different from Expected Values ....................72
(7)
Outputs of ALE, Address and Others are Different from Those of Actual MCUs ..
72
Chapter 7. Maintenance and Guarantee................................................................................73
7.1 Maintenance ........................................................................................................74
7.2 Guarantee ............................................................................................................74
7.3 Repair Provisions ................................................................................................74
7.4 How to Request for Repair..................................................................................75
( 5 / 78 )
MEMO
( 6 / 78 )
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
Warnings for Use Environment ...................................................................................9
Caution to Be Taken for Modifying This Product ....................................................... 9
Cautions to Be Taken for This Product........................................................................ 9
Note on Malfunctions in the PC4701 System..............................................................9
Notes on Downloading Firmware..............................................................................10
Notes on Target System ............................................................................................. 10
Note on Reset Input ...................................................................................................10
Notes on Watchdog Function..................................................................................... 10
Note on When the Emulator Debugger Ends.............................................................10
Note on DMA Transfer..............................................................................................11
Note on Setting the Work Area..................................................................................11
Notes on Stack Area................................................................................................... 11
Note on Address 0 Access ......................................................................................... 11
Note on Stop and Wait Modes ................................................................................... 11
Notes on MAP References and Settings ....................................................................12
Notes on Software Breaks and Hardware Breaks ...................................................... 12
Note on BRK Instruction ...........................................................................................12
Note on NMI* Input................................................................................................... 13
Note on HOLD* Input ...............................................................................................13
Notes on Address Match Interrupt.............................................................................13
Note on Software Reset .............................................................................................13
Note on Protect Resistor (PRC2) ...............................................................................13
Note on Pullup Control Resistor ................................................................................ 13
Note on Differences between Actual MCU and Emulator ........................................ 14
Note on Switch Settings According to Operation Voltage ........................................16
( 7 / 78 )
Chapter 1. Precautions for Safety
In both the user's manual and on the product itself, several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons, or damage to your properties.
This chapter describes the precautions which should be taken in order to use this product safely and properly. Be sure to read this chapter before using this product.

1.1 Safety Symbols and Meanings

If the requirements shown in the "WARNING"
WARNING
CAUTION
IMPORTANT
In addition to the three above, the following are also used as appropriate.
sentences are ignored, the equipment may cause serious personal injury or death.
If the requirements shown in the "CAUTION" sentences are ignored, the equipment may malfunction.
It means important information on using this product.
means WARNING or CAUTION.
Example: CAUTION AGAINST AN ELECTRIC SHOCK
means PROHIBITION.
Example: DISASSEMBLY PROHIBITED
means A FORCIBLE ACTION.
Example:
The following pages describe the symbols "WARNING", "CAUTION", and "IMPORTANT".
UNPLUG THE POWER CABLE FROM THE RECEPTACLE.
( 8 / 78 )
WARNING
Warning for Installation:
• Do not set this product in water or areas of high humidity. Spilling water or some other liquid into the main unit can cause an unrepairable damage.
Warnings for Use Environment:
• The emulation pod is air-cooled with the ventilation slot. Therefore, do not block the ventilation slot. When heated to high temperatures, the emulation pod may not work properly.
• 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.
CAUTION
Caution to Be Taken for Modifying This Product:
• Do not disassemble or modify this product. Disassembling or modifying this product can cause damage. Disassembling and modifying the product will void your warranty.
Cautions to Be Taken for This Product:
• Use caution when handling the main unit. Be careful not to apply a mechanical shock.
• Do not touch the connector pins of the emulator main unit and the target MCU connector pins directly with your hand. Static electricity may damage the internal circuits.
• Do not pull the emulation pod main unit by the flexible cable (FLX120-RPD) for connecting to the emulator main unit or the flexible cable (FLX64, FLX100 or FLX160) for connecting the target system. The cable may cause a break.
• Flexible cable (FLX120-RPD) for connecting to the emulator main unit and the flexible cable (FLX64, FLX100 or FLX160) for connecting the target system are different from earlier models. The slits make them more flexible. However, excessive flexing or force may break conductors.
•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.
IMPORTANT
Note on Malfunctions in the PC4701 System
• 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 front panel. (2) If normal operation is not restored after step (1), shut OFF power to the emulator once and then
reactivate it.
( 9 / 78 )
IMPORTANT
Notes on Downloading Firmware:
• Before using this product for the first time, it is necessary to download the dedicated firmware (control software for the emulation pod built into the PC4701). Please note that, to do this, it is necessary to start up the PC4701 in the maintenance mode. For firmware download procedures, see "4.2 Downloading Firmware" (page 40). 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. However, perform the self-check in the below setup.
(1) Target system: Not connected (2) Emulation pod internal switches: At their factory settings
Notes on Target System:
• The Vcc pin of emulator is connected to the target system to observe the voltage of the target system. Therefore design your system so that the emulator MCU is powered by the target system.
• The voltage of the target system should be within the range of the MCU specification.
•Do not change the voltage of the target system after turning on the power.
• Before powering on your emulator system, check that the host machine, the emulator main unit, the converter board and target system are all connected correctly. Next, turn on the power to each equipment following the procedure below.
(1) Turn ON/OFF the target system and the PC4701 emulator as simultaneously as possible. (2) When the PC4701 and emulator debugger start up, check the target status LEDs on the
emulator main unit's front panel to see if this product is ready to operate.
• Is the power supplied? Check that target status LED (POWER) is ON. For details, refer to "Chapter 4. Usage" (page 37).
Note on Reset Input:
• The reset input from the target system is accepted only while a user program is being executed (only while the RUN status LED on the PC4701's front panel is lit).
Notes on Watchdog Function:
• The MCU's watchdog timer can be used only while programs are being executed. To use it otherwise, disable the timer.
• If the reset circuit of the target system has a watchdog timer, disable it when using the emulator.
Note on When the Emulator Debugger Ends:
• To restart the emulator debugger after it ends, always shut power to the emulator module off once and then on again.
( 10 / 78 )
IMPORTANT
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 by a timer or other source while the 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 program is stopped.
DMA0 transfer counter register TCR0 DMA1 transfer counter register TCR1
Note on Setting the Work Area:
• To use this product, it is necessary to set the work area in the internal reserved area of the MCU. However, do not set it in the last 10 bytes of the internal reserved area. And be sure to set the internal reserved area to INTERNAL. (Set the work area by INIT window of the emulator debugger M3T­PD30.)
Example 1: When debugging the program of the MCU whose internal reserved area is 02C00
03FFF16 address, set the work area within the range of 02C0016 to 03FF616 address.
Example 2: When debugging the program of the MCU whose internal reserved area is 0540016 to
05FFF16 address, set the work area within the range of 0540016 to 05FF616 address.
For instance, when setting the work area at 05C0016, the emulator uses 10 bytes area of 05C0016 to 05C0916.
Notes on Stack Area:
•With this product, a maximum 8 bytes of the user stack is consumed.
• 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. Therefore, ensure the +8 bytes maximum capacity used by the user program as the user stack area.
Note on Address 0 Access:
• With the M16C/62 and 62A Group MCUs, when a maskable interrupt is generated, the interrupt data (interrupt No. and interrupt request level) stored in address 0 is read out. Also, the interrupt request bit is cleared when address 0 is read out. Consequently, when the address 0 readout instruction is executed or when address 0 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.
to
16
For this malfunction, when the reading out to the 0 address is generated excluding the interrupt, the yellow LED lights up to alarm. When this LED lights, there is a possibility of wrong access, therefore check the program. This LED is turned off by the RESET switch of the emulator main unit.
Note on Stop and Wait Modes:
•Do not perform step execution at addresses in the stop or wait mode. It may cause communication errors.
( 11 / 78 )
IMPORTANT
Notes on MAP References and Settings:
• For details on referencing and setting MAP information, see User's Manual of the emulator debugger M3T-PD30.
• Be sure to set the SFR area to EXTERNAL (an external section).
•When setting 0FFFC16 to 0FFFF16 to EXTERNAL : This product uses the 4 byte area 0FFFC16 through 0FFFF16 as the stack area. If this 4 byte memory
cannot be read or written to, reset cannot be properly effected. As a result, you need to alter the map settings if the condition given below is met.
(1) With the system which shifts from the single-chip mode to the memory expansion (or
microprocessor) mode, using the 4 byte area of 0FFFC16 to 0FFFF16 set to EXTERNAL.
(2) With the system which starts up in microprocessor mode, using the 4 byte area of 0FFFC16 to
0FFFF16 set to EXTERNAL and there is not enough memory to read or write.
The procedures to alter the MAP settings when the conditions (1) or (2) above are met.
(1) Set the 4 byte area of 0FFFC16 to 0FFFF16 to INTERNAL. (2) Execute the RESET command by use of the emulator debugger M3T-PD30. (3) Set the stack pointer.
(Example) RESET:
FCLR I LDC #480H, SP <-- Set the stack pointer
○○
(4) Set the 4 byte area 0FFFC16 through 0FFFF16 to EXTERNAL.
(Stop the program after executing this instruction)
Notes on Software Breaks and Hardware Breaks:
• Software breaks generate BRK interrupts by substituting the proper instruction to the BRK instruction. Therefore, when referencing the result of a trace in bus mode, "0016" is displayed for the instruction fetch address where a software break is set, and when referencing in reverse assemble mode, "BRK" instruction is displayed.
• It is not possible to use a software break and a hardware break at the same time. If doing so, it may not operate normally.
• In the area where the MAP setting is EXTERNAL, software breaks cannot be used.
Note on BRK Instruction:
• BRK instruction cannot be used.
( 12 / 78 )
IMPORTANT
Note on NMI* Input:
• NMI* input from the target system is accepted only while a user program is being executed (only while the RUN status LED on the PC4701's front panel is lit).
Note on HOLD* Input:
•Be sure to input "L" to the HOLD* pin of the target system during the user program executing. Inputting "L" to the HOLD pin when stopping the user program or when run-time debugging may cause a malfunction of the emulator.
Notes on Address Match Interrupt:
• Do not set software breaks at the same addresses as address-match interrupts as the program may run out of control.
• Do not set a hardware break within 4 instructions before an address at which an address-match interrupt occurs. If you do set a hardware break in this range, the program will run out of control.
•When an address at which an address-match interrupt occurs is executed in one-step mode, the program stops after executing the first instruction after returning from the address-match interrupt processing.
Note on Software Reset:
• Do not use a software reset.
Note on Protect Resistor (PRC2):
•Make note of the fact that the protect is not canceled when protect register (PRC2), which enables writing in the port P9 direction register and the SI/O3, 4 control register, is changed with the below procedure.
(1) Step execution of the "instruction for setting ("1") PRC2" (2) Setting the break point from the "instruction for setting ("1") PRC2" to when the "setting the
register for the protect"
(3) Setting "("1") PRC2" from the dump window or script window
Note on Pullup Control Resistor:
• Ports P00 to P57 are not pulled up by the pullup control resistor. When pulling up the ports P00 to P57, apply a resistance to the inside of the emulator. How to apply
it, refer to "3.2 Setting Switches and Pullup Resistor" (page 25). Note: Ports P60 to P100 are pulled up by the pullup control resistor.
Note: Pullup control resistor can read and write from P00 to P100 properly.
( 13 / 78 )
IMPORTANT
Note on Differences between Actual MCU and Emulator:
•Operations of the emulator differs from those of mask 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) Data values of ROM area at power-on (3) Internal memories (RAM and ROM) capacities etc. (4) Characteristics of ports P00 to P5
Ports P00 to P57 are connected via emulation circuits. The device used for the port emulation
circuit is;
Device: M60081L-0142FP
(5) HOLD* control
When inputting "Low" to the HOLD* pin to run into the HOLD state, P00 to P52 will be in the
HOLD state delaying by 2.5 cycles than the actual MCU (see Table 5.5, Figure 5.5, Table 5.9
and Figure 5.10). (6) A-D input group selection function
To use the A-D input group selection function, following settings are required.
1) To select A-D input for port P0
•Set the whole 8-bit direction registers of P107 to P100 to input.
• Set P107 to P100 to no pullup for pullup control resister setting.
• P107 to P100 cannot be used for the input pins of I/O port and key input interrupt functions.
2) To select A-D input for port P2
• Set the whole 8-bit direction registers of P107 to P100 to input.
• Set P107 to P100 to no pullup for pullup control resister setting.
• P107 to P100 cannot be used for the input pins of I/O port and key input interrupt functions.
3) To select A-D input for port P10
• There is no limitation.
7
As a flexible cable, a pitch converter board and other devices are used between the evaluation
MCU and the target system, some characteristics are slightly different from those of the actual
MCU. Therefore, be sure to evaluate your system with an evaluation MCU. Before starting
mask production, evaluate your system and make final confirmation with an ES (Engineering
Sample) version MCU.
( 14 / 78 )
IMPORTANT
(7) Output of the actual MCU and this product
Table 1.1 Differences of outputs between actual MCU and this product (when executing program)
Access area Signal Actual MCU
SFR area
(MAP = EXT)
Internal RAM Internal ROM
External area
Address
BHE*
Data
RD*
WR*
CS*
ALE
Address
BHE*
Data
RD*
WR*
CS*
ALE
Address
BHE*
Data
RD*
WR*
CS*
ALE
(floating during read operating)
(inputs external data at read cycle)
Outputs Outputs
Outputs
(Low at write cycle,
Low at read cycle)
Does not output
(fixed to High output)
Does not output
(fixed to Low output)
Retains previous status
Floating
Does not output
(fixed to High output)
Does not output
(fixed to High output)
Does not output
(fixed to Low output)
Outputs
Outputs
Outputs
(Low at write cycle,
Low at read cycle)
Outputs Outputs
(floating during read operating)
This product
Outputs
Outputs
Outputs
(Low at write cycle,
Low at read cycle)
Does not output
(fixed to High output)
Outputs
Outputs
Floating
Does not output
(fixed to High output)
Does not output
(fixed to High output)
Outputs
Outputs
Outputs
(inputs external data at read cycle)
Outputs
(Low at write cycle,
Low at read cycle)
Outputs Outputs
for difference
Table 1.2 Differences of outputs between actual MCU and this product (when stopping program)
Access area Signal
Address
BHE*
Data Floating
RD*
WR*
CS*
ALE
Actual MCU
( 15 / 78 )
This product
Outputs
Outputs RD* only
(WR* is fixed to High output)
Outputs Outputs
for difference
IMPORTANT
Table 1.3 Differences of outputs between actual MCU and this product (in stop mode)
Access area Signal Actual MCU
Address
BHE*
Data Floating
RD*
WR*
CS*
ALE
Retains previous status
Retains previous status
Does not output
(fixed to High output)
Retains previous status
Does not output
(fixed to High output)
Table 1.4 Differences of outputs between actual MCU and this product (in wait mode)
Access area Signal Actual MCU
Address
BHE*
Data Floating
RD*
WR*
CS*
ALE
Retains previous status
Retains previous status
Does not output
(fixed to High output)
Retains previous status
Does not output
(fixed to High output)
This product
Retains previous status
Does not output
(fixed to High output)
Retains previous status
Does not output
(fixed to High output)
This product
Retains previous status
Does not output
(fixed to High output)
Retains previous status
Does not output
(fixed to High output)
for difference
for difference
Note on Switch Settings According to Operation Voltage:
• With this product, you need to change the switch setting according to the operation voltage. Change the setting as described below. For details, see "3.2 Setting Switches and Pullup Resistor" (page 25).
L
JP2
(Factory-setting)
JP2
L
JP2
Set when using at the range of the target voltage
H
within +3.6 to +5.5 V or not connecting the target system.
Set when using at the range of the target voltage
H
within +2.7 to +3.6 V.
( 16 / 78 )
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 Terminology ...............................................................................................................................18
2.2 Package Components.................................................................................................................. 19
2.3 Other Tool Products Required for Development........................................................................ 19
2.4 Name of Each Part......................................................................................................................20
(1) System Configuration ...........................................................................................................20
(2) Inside of Emulation Pod .......................................................................................................21
2.5 When Using the Emulator for the First Time.............................................................................22
( 17 / 78 )
Chapter 2. Preparation

2.1 Terminology

Some specific words used in this user's manual are defined as follows:
Emulator system
This means an emulator system built around the PC4701 emulator. The PC4701 emulator system is configured with an emulator main unit, emulation pod, host machine and emulator debugger.
Emulator main unit (Hereafter PC4701)
This means a generic name for PC4701M, PC4701HS and PC4701L emulators for 8 and 16-bit MCUs.
Emulation pod
This means M30620T2-RPD-E (this product). This emulation pod is for M16C/62 and 62A Group MCUs.
Host machine
This means a personal computer used to control the emulator and emulation pod.
Emulator debugger
This means a software tool M3T-PD30 to control the emulator from the host machine through an interface.
Firmware
Program that analyzes contents of communication with the emulator debugger and controls the emulator hardware. This program is installed in the EEPROM. This program is downloadable from the emulator debugger to upgrade the firmware or to support other MCUs.
Evaluation MCU
This means the microcomputer mounted on the emulation pod which is operated in the specific mode for tools.
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.
*
In this user's manual, this symbol is used to show active LOW. (e.g. RESET*: Reset signal)
( 18 / 78 )

2.2 Package Components

The M30620T2-RPD-E package consists of the following items. When unpacking, check to see if your M30620T2-RPD-E contains all of these items.
Item M30620T2-RPD-E emulation pod main unit FLX120-RPD flexible cable for connecting PC4701 FLX100 flexible cable for connecting pitch converter board (pre-installed in emulation pod) FLX-100LCC pitch converter board for connecting target system OSC-3 (16 MHz) oscillator circuit board (pre-installed in emulation pod) OSC-2 oscillator circuit board Resistor arrays for pulling up ports P00 to P57 (51 kΩ) Hardware tool user registration FAX sheet (English) Hardware tool user registration FAX sheet (Japanese) M30620T2-RPD-E user's manual (this manual) M30620T2-RPD-E user's manual (Japanese)
Quantity
1 1 1 1 1 1
12
1 1 1 1
Please keep the M30620T2-RPD-E’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 any of these items are missing or found faulty, please contact your local distributor. Also, if there is any question or doubt about the packaged product, contact your local distributor.

2.3 Other Tool Products Required for Development

To bring forward programs development on the M16C/62 and 62A Group MCUs, the products listed below are necessary in addition to those contained package above. Get them separately.
Emulator main unit Emulator debugger
Converter board (Required for 80-pin MCUs)
To purchase these products, contact your nearest distributer.
PC4701M, PC4701HS or PC4701L M3T-PD30 FLX-DIRECT613 + DIRECT80S
or 100LCC-80QSB
see Figure 3.11 Connecting emulation pod and target systems (page 35)
( 19 / 78 )

2.4 Name of Each Part

(1) System Configuration

Figure 2.1 System configuration
(1) to (4) in Figure 2.1 are included with this product package. (1) Emulation pod (M30620T2-RPD-E)
This emulation pod contains an evaluation MCU, emulation memory and circuit to feature the debugging function.
(2) Flexible cable (FLX120-RPD)
This is a 120-pin flexible cable for connecting the PC4701 emulator and the emulation pod.
(3) Flexible cable (FLX100)
This is a 100-pin flexible cable for connecting the emulation pod and the target system.
(4) Pitch converter board
This is a pitch converter board for connecting to the target system. For details, refer to "3.5 Connecting the Target System" (page 35).
( 20 / 78 )

(2) Inside of Emulation Pod

Figure 2.2 Internal view of emulation pod
(1) MCU-dependent board
Board which groups parts (pins and added functions) which vary according to MCU model.
(2) Base board
Board for the M16C/60 and M16C/20 Series MCUs which controls the interface with the PC4701 and the evaluation MCU.
(3) Memory board
Board on which is mounted the emulation memory (1 MB) and the map memory (4 bit × 1 M) for the M16C/60 and M16C/20 Series MCUs.
(4) Oscillation circuit board
Oscillator circuit board on which the oscillation module device is mounted (16.000 MHz).
It is planned to enable customers to use future M16C/62 and 62A Group models by changing the MCU-dependent board and MCU board.
( 21 / 78 )

2.5 When Using the Emulator for the First Time

If you have purchased this emulation pod newly, it is necessary to download the firmware. The download procedure is given in Figure 2.3.
Before attempting to download the firmware, check the emulator debugger is installed and the emulator is connected to the host machine. For more information, see each user's manual of the emulator debugger and the PC4701.
Connect the PC4701 and this product.
Within 2 seconds of turning the power ON, press the RESET switch of the PC4701 and check the maintenance mode is accessed.
Download the firmware using the emulator debugger.
End the emulator debugger and shut the power of the PC4701 OFF.
See "3.4 Connecting the PC4701 and Emulation Pod" (page 33).
See "4.2 Downloading Firmware" (page 40).
Figure 2.3 Firmware download procedure when emulator is used for the first time
To make sure the emulation pod works properly, run the self-check. For self-check procedures, see "4.3 Self-check" (page 41).
( 22 / 78 )
Loading...
+ 56 hidden pages