Renesas M30830T-EPB 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
M30830T-EPB
User’s Manual
Emulation Pod for M32C/81, 82 and 83 Groups
Rev.2.00 2004.07
* IIC61-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 renovate or provide a workaround for product malfunction at some charge or without charge. However, 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.
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 / 72 )

Preface

The M30830T-EPB is an emulation probe for M32C/81, 82 and 83 Groups of Renesas MCUs. The M30830T-EPB is used by connecting to the PC7501 emulator main unit.
This user's manual mainly describes specifications of the M30830T-EPB emulation probe and how to setup it. For details on the following products, which are used with the M30830T-EPB, refer to each product's user's manual.
• Emulator: PC7501 User's Manual
• Emulator debugger: M3T-PD308F User's Manual
All the components of this product are shown in "Table 2.1 Package components" (page 19). 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 / 72 )

Contents

Chapter 1. Precautions for Safety ..........................................................................................7
1.1 Safety Symbols and Meanings .............................................................................9
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) Names and Functions of PC7501 Upper Panel LEDs..............................20
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 Selecting Clock Supply ......................................................................................25
(1) Using the Oscillator Circuit on the Target System ..................................26
(2) Changing the Internal Oscillator Circuit of the Emulator ........................27
(3) Replacing the Oscillator Circuit Boards ..................................................28
3.3 Setting Switches .................................................................................................29
3.4 A-D Conversion Bypass Capacitor ....................................................................32
3.5 Connecting the PC7501......................................................................................33
3.6 Connecting the Target System ...........................................................................34
(1) Connecting 100-pin LCC Socket .............................................................35
(2) Connecting 100-pin 0.65-mm-pitch Foot Pattern (Part 1) .......................36
(3) Connecting 100-pin 0.65-mm-pitch Foot Pattern (Part 2) .......................37
(4) Connecting 100-pin 0.65-mm-pitch Foot Pattern (Part 3) .......................38
(5) Connecting 100-pin 0.5-mm-pitch Foot Pattern (Part 1) .........................39
(6) Connecting 100-pin 0.5-mm-pitch Foot Pattern (Part 2) .........................40
(7) Connecting 100-pin 0.5-mm-pitch Foot Pattern (Part 3) .........................41
(8) Connecting 144-pin 0.5-mm-pitch Foot Pattern ......................................42
Chapter 4. Usage .................................................................................................................43
4.1 Turning On the Power ........................................................................................44
(1) Checking the Connection of the Emulator System ..................................44
(2) Turning ON/OFF the Power.....................................................................44
(3) LED Display When PC7501 Starts Up Normally....................................45
4.2 Downloading Firmware .....................................................................................46
(1) When It is Necessary to Download Firmware .........................................46
(2) Downloading Firmware in the Maintenance Mode .................................46
( 4 / 72 )
4.3 Starting Up the Emulator Debugger (Setting EMEM Dialog Box) ...................47
(1) Setting the Debug Monitor Bank Address ...............................................48
(2) Selecting the Processor Mode ..................................................................48
(3) Setting the Emulation Memory ................................................................49
(4) Emulation Memory Allocation as Expansion Area .................................49
(5) Referring MCU STATUS ........................................................................51
4.4 Self-checks .........................................................................................................51
(1) Self-check Procedure ...............................................................................51
(2) If an Error is Detected in Self-checks ......................................................51
Chapter 5. Specifications.....................................................................................................53
5.1 Specifications .....................................................................................................54
5.2 Connection Diagrams.........................................................................................55
5.3 External Dimensions ..........................................................................................57
(1) External Dimensions of the Emulation Probe ..........................................57
(2) External Dimensions of the Converter Board (M30800T-PTC)..............58
(3) External Dimensions of the Converter Board (M3T-FLX-144NSD) ......59
Chapter 6. Troubleshooting .................................................................................................61
6.1 Flowchart to Remedy the Troubles ....................................................................62
6.2 When the Emulator Debugger Does Not Start Up Properly ..............................63
(1) When the LED Display of the PC7501 is Abnormal ...............................63
(2)
EMEM Dialog Box is Not Displayed When the Emulator Debugger Starts Up
(When the target system is connected)....................................64
(3)
EMEM Dialog Box is Not Displayed When the Emulator Debugger Starts Up
(When the target system is not connected) .............................65
(4) Errors Occur When the Emulator Debugger Starts Up
(When the target system is connected)....................................65
Chapter 7. Maintenance and Guarantee...............................................................................67
7.1 Maintenance .......................................................................................................68
7.2 Guarantee ...........................................................................................................68
7.3 Repair Provisions ...............................................................................................68
7.4 How to Request for Repair.................................................................................69
M30830T-EPB Repair Request Sheet Technical Support Communication Sheet
( 5 / 72 )
MEMO
( 6 / 72 )
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 ..................................................................................................... 9
WARNING
CAUTION
IMPORTANT
Warning for Handling This Product ..........................................................................10
Warning for Installation.............................................................................................10
Warning for Use Environment...................................................................................10
Cautions for Powering On .........................................................................................10
Cautions to Be Taken for Handling This Product......................................................10
Caution to Be Taken for Malfunctions ...................................................................... 10
Notes on Downloading Firmware..............................................................................11
Note on When the Emulator Debugger Ends.............................................................11
Note on Final Evaluation ...........................................................................................11
Notes on Target System ............................................................................................. 11
Note on RESET* Input ..............................................................................................11
Note on RDY* Input..................................................................................................11
Note on HOLD* Input ...............................................................................................11
Note on NMI* Input................................................................................................... 12
Notes on Interruption .................................................................................................12
Note on Clock Supply to the MCU............................................................................12
Notes on Access Prohibited Area ..............................................................................12
Notes on Stack Area................................................................................................... 12
Notes on Reset Vector Area.......................................................................................13
Notes on EMEM Dialog Box.....................................................................................13
Note on S/W Break ....................................................................................................14
Note on Differences between Actual MCU and Emulator ........................................ 14
Notes on Watchdog Function..................................................................................... 14
Notes on A-D Input Selection Function..................................................................... 15
Note on DMA Transfer..............................................................................................15
Note on DMAC II Transfer Completion Interrupts ...................................................15
Note on Protect Resistor ............................................................................................ 15
( 7 / 72 )
Note on Downloading Programs................................................................................16
Note on On-chip Oscillator........................................................................................16
Note on PLL Clock ....................................................................................................16
Notes on Address-Match Interrupt............................................................................. 16
Note on Operating Frequency....................................................................................16
Note on Support for M32C/81 and 82 Groups........................................................... 16
Notes on Service-Life of the MCU's Internal Flash ROM ........................................16
( 8 / 72 )
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.
( 9 / 72 )
WARNING
Warning for Handling This Product:
• Do not disassemble or modify this product. Disassembling or modifying this product can cause damage.
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.
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.
CAUTION
Cautions for Powering On:
• 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.
• When turning ON the power again after shutting OFF the power, wait 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 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.
( 10 / 72 )
IMPORTANT
Notes on Downloading Firmware:
• Before using this product for the first time, it is necessary to download the dedicated firmware (control software built into the PC7501). Please note that, to do this, it is necessary to start up the PC7501 in the maintenance mode. For firmware download procedures, see "4.2 Downloading Firmware" (page 46). 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 self-checks are not completed successfully, there may be trouble with the product. In such case, contact your sales representative. However, perform self­checks while not connecting the target system.
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.
Note on Final Evaluation:
• Be sure to evaluate your system with an MCU for evaluation purposes. Before starting mask production, evaluate your system and make final confirmation with a CS (Commercial Sample) version MCU.
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 3.0 - 3.6 V, 4.2 - 5.5 V.
•Do not change the voltage of the target system after turning on the power.
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 PC7501's upper panel is lit).
Note on RDY* Input:
•Be sure to input "L" to the RDY* pin of the target system during the user program executing (only while the RUN status LED on the PC7501's upper panel is lit). Inputting "L" to the RDY* pin during the user program stopping may cause a malfunction of the emulator.
Note on HOLD* Input:
• Be sure to input "L" to the HOLD* pin of the target system during the user program executing (only while the RUN status LED on the PC7501's upper panel is lit). Inputting "L" to the HOLD* pin during the user program stopping may cause a malfunction of the emulator.
( 11 / 72 )
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 PC7501's upper panel is lit).
Notes on Interruption:
•Even when the user program is not being executed (when the user program is paused or when run­time debugging is being performed), the evaluation MCU is operating for debugging purposes. Therefore, take note that timers and other functions are not stopped when the user program is not being executed.
• Even if a maskable interrupt is generated when the user program is not being executed (when the user program is paused or when run-time debugging is being performed), the interrupt cannot be accepted, because the emulator disables interrupts. If an interrupt is requested when a user program is not being executed and the user program allow an interrupt, the interrupt is accepted immediately after the user program execution is started.
• When the user program is not being executed (when the user program is paused or when run-time debugging is being performed), a peripheral I/O interruption is not accepted. Take note that when the user program is not being executed, a request a peripheral I/O interruption can be cleared.
IMPORTANT
Note on Clock Supply to the MCU:
• Clock can be supplied to the evaluation MCU in one of the following two ways. This is determined by emulator debugger clock selection.
(1) When Internal is selected:
The clock generated by the oscillation circuit in the PC7501 is supplied to the evaluation MCU. The clock is continually supplied to the evaluation MCU regardless of "target system clock status" and "user program execution status".
(2) When External is selected:
Clock supply to the evaluation MCU depends on oscillation status (oscillate/off) of the target system.
Notes on Access Prohibited Area:
• The emulator control register (000020h - 00003Fh) in the SFR is read and write-protected. When this register is accessed, emulator control cannot be utilized.
•With this product, address FFFFFFh cannot be read or written in correctly.
Notes on Stack Area:
• With this product, a maximum 20 bytes of the user stack is consumed as work area.
• If the user stack does not have enough area, do not use areas which cannot be used as stack (SFR area, RAM area which stores data, or ROM area) as work area. Using areas like this is a cause of user program crashes and destabilized emulator control. Therefore, ensure the +20 byte maximum capacity used by the user program as the user stack area.
•With this product, the interrupt stack pointer (ISP) is set to 0500h and used as stack area after the reset is released.
( 12 / 72 )
Notes on Reset Vector Area:
• For a reset vector area, memory of the emulator is always selected regardless of the setting of EMEM dialog. Therefore when setting the microprocessor mode, to use a ROM of the target system etc. as an area including a reset vector area, set a reset vector using a dump window etc.
• The reset vector area can be changed only when a program is stopped. When a program is executed, the area can not be changed.
Notes on EMEM Dialog Box:
Observe the following when setting up EMEM dialog box of the emulator debugger. (1) Debug Monitor Bank Address
• When "F0" is specified, 64 KB of area starting from F00000h are allocated for use by the debug monitor.
• The 64 KB allocated to the debug monitor cannot be used.
• The below areas cannot be set for the debug monitor.
(1) MCU internal resources (ROM/RAM/SFR area) (2) DRAM area or multiplex area (3) Interrupt vector area
IMPORTANT
• It is not possible to view or set the content of the specified area. Even on the dump window or in the reverse assemble area of the program/source windows, the content of this area is not displayed correctly though it can be displayed.
(2) Processor Mode
• Set the target MCU to the processor mode.
• To set the single-chip mode or memory expansion mode, the CNVSS pin used with MCU status must be "L". MCU status indicates pin level of the target system.
•To set the microprocessor mode, the CNVSS pin used with MCU status must be "H".
• To set the memory expansion mode or microprocessor mode, the RDY* and HOLD* pins used with MCU status must be "H".
•When the target system is not connected, all modes are available.
(3) Emulation Memory Allocation
• The 4MB memory mounted in the PC7501 can be allocated out.
•When the single chip mode and memory expansion mode are set by specifying the processor mode, ROM area is automatically allocated to the internal Flash ROM of MCU. Therefore, it is not necessary to deliberately specify the emulation memory as expansion area in order to allocate the ROM area.
• Except for the SFR, RAM, ROM and internally reserved areas, all areas other than the set area are externally accessible.
• MCU internal resources are automatically selected for SFR, RAM and ROM areas regardless of settings.
• Be careful that the specified areas do not overlap one another.
• Set memory allocation so that the total of the 4 length values does not exceed the emulation memory size (4 MB).
•Do not set unusable areas for memory allocation.
•Emulator main unit's memory is automatically selected as a reset vector area regardless of settings.
( 13 / 72 )
IMPORTANT
Note on S/W Break:
• S/W breaks generate break interruptions by forcibly inserting a BRK instruction "08h" instead of an instruction code. Therefore, when referencing the result of a trace in bus mode, "08h" is displayed for the instruction fetch address where a S/W break is set.
Note on Differences between Actual MCU and Emulator:
•Operations of the emulator differs from those of mask MCUs as listed below.
(1) Reset condition (2) Initial values of internal resource data at power-on (3) Interrupt stack pointer (ISP) after releasing reset (4) Internal memories (ROM and RAM) capacities, etc.
This emulator system has an MCU with 31KB RAM (0400h - 7FFFh). In single-chip mode or memory expansion mode, emulation memory for internal flash memory is automatically allocated in the area between F80000h through FFFFFFh, and it can be read and written into.
(5) Oscillator circuit
•Make note of the fact that in the oscillator circuit where a resonator is connected between
IN and XOUT pins, oscillation does not occur because a flexible cable, buffer IC and other
the X devices are used between the evaluation MCU and the target system. It is same for sub-clock oscillators (XCIN and XCOUT).
• For notes on when using the oscillator circuit on the target system, refer to "3.2 (1) Using the Oscillator Circuit on the Target System" (page 26).
(6) A-D conversion
As a 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.
(7) Port P15
As a part of I/O port (P15) is connected to the target system through the analog switch circuit, electric characteristics slightly differ from those of an actual MCU.
Notes on Watchdog Function:
• When using the watchdog function, check the box of "Use Watch Dog Timer" in the MCU tab of the Init dialog box.
• When not using the watchdog function, do not check the box of "Use Watch Dog Timer" in the MCU tab of the Init dialog box.
• Take note that when the following two conditions are satisfied, programs can not be executed.
(1) The watchdog timer function selection bit (CM06) of the system clock control register 0 is set
to "1".
(2) The HOLD function is used while the watchdog timer is operating.
• If the reset circuit of the target system has a watchdog timer, disable it when using the emulator.
( 14 / 72 )
IMPORTANT
Notes on A-D Input Selection Function:
• To use A-D input group selection function, it is necessary to set the direction register of port P15 to input. Port 15 corresponds to the pin that performs A-D conversion.
Example: To select A-D input for P00-P07, set the direction register of P150-P157 and P00-P07
to input.
Also, when the port P0 group and port P2 group are selected for A-D input, port P15 cannot be used as an I/O port.
• Because a flexible board and other elements exist between the evaluation MCU and target system, the A-D converter operates differently than the actual MCU. Perform final evaluations of the A­D converter with the actual MCU.
Note on DMA Transfer:
• With this product, the user program is stopped with a loop program to a specific address. Therefore, if a DMA request is generated by a timer or other source while the user program is stopped, DMA transfer is executed. However, make note of the fact that DMA transfer while the program is stopped may not be performed correctly. Also note that the below registers have been changed to generate DMA transfer as explained here even when the user program is stopped.
DMA0 transfer counter register DCT0 DMA1 transfer counter register DCT1 DMA0 memory address register DMA0 DMA1 memory address register DMA1 DMA2 transfer counter register DCT2 (R0) DMA3 transfer counter register DCT3 (R1) DMA2 memory address register DMA2 (A0) DMA3 memory address register DMA3 (A1)
Note on DMAC II Transfer Completion Interrupts:
•You can use DMAC II transfer completion interrupts during program execution only. Do not generate DMAC II transfer completion interrupts when you use any function but program execution.
Note on Protect Resistor:
• Make note of the fact that the protect is not canceled when protect register 3 (PRC2), which enables writing in the port P9 direction register and the pin output function select 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 port P9
direction register or pin output function select register 3 is set
(3) Setting ("1") PRC2 from the dump window or script window during user program execution
( 15 / 72 )
IMPORTANT
Note on Downloading Programs:
•When specifying a DRAM refresh interval, take note that when setting downloading a program to an internal ROM area and setting software breaks, the main clock operates in the divide-by-8 mode.
Note on On-chip Oscillator:
• Take note that you can not debug a program using the oscillation stop detection function (on-chip oscillator). If you use the function, be sure to evaluate a system with an actual MCU.
Note on PLL Clock:
• The PLL clock can be used as a clock for peripheral functions only. You can not debug your program using it as a CPU clock. To use the PLL clock as a CPU clock, be sure to evaluate your system with an actual MCU.
Notes on Address-Match Interrupt:
•Do not single-step an address where an address-match interrupt occurs.
• When using the address-match interrupt, do not check the box of "Use Address Interrupt Break" in the MCU tab of the Init dialog box. When not using the address-match interrupt, check the box.
• When you use address-match interrupt breaks, if a low reset is input during a user program execution, a debug monitor program (about 100 cycles) is executed after the reset is released. Take note that it has effects on the user program execution time and the result of a trace.
Note on Operating Frequency:
• You can not use the M30830T-EPB with a main clock (XIN-XOUT) less than 1 MHz. Contact your nearest distributor to use it under the condition.
Note on Support for M32C/81 and 82 Groups:
• The M30830T-EPB has the M30835FJGP of M32C/83 Group as an evaluation MCU. Because of the differences of ROM and RAM sizes and peripheral functions, to develop a program for an M32C/81 or 82 Group MCU, refer to the User's Manual of M32C/81, 82 Group MCUs.
Notes on Service-Life of the MCU's Internal Flash ROM:
•With the M30830T-EPB, programs are downloaded to the MCU's flash ROM when debugging in the single-chip mode and memory expansion mode. Because the number of write/erase cycles of this ROM is limited, the ROM must be replaced when at the end of its service-life.
• If the following errors occur frequently during program download, replace the emulation probe.
Flash ROM erase error ERROR (16258) Flash ROM verify error ERROR (16259)
To purchase the product for replacement, contact your nearest distributor.
( 16 / 72 )
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) Names and Functions of PC7501 Upper Panel LEDs .......................................................... 20
2.5 When Using the Emulator for the First Time.............................................................................22
( 17 / 72 )
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 PC7501 emulator. The PC7501 emulator system is configured with an emulator main unit, emulation probe, host machine and emulator debugger.
Emulator main unit (Hereafter PC7501)
This means an emulator main unit for M16C Family MCUs.
Emulation probe
This means the emulation probe (this product) for the M32C/81, 82 and 83 Group MCUs.
Host machine
This means a personal computer used to control the emulator main unit and emulation probe.
Emulator debugger
This means a software tool M3T-PD308F 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 flash memory in the emulator main unit. This program is downloadable from the emulator debugger to upgrade the firmware or to support other MCUs.
Software break
A software break is a function to break the program before the system executes an instruction at the specified address. The instruction at the preset address will not be executed.
Hardware break
A hardware break is a function to break the program when the system detects a write/read of data to/ from memory or a leading/trailing edge of the signal entered from the external trace cable. The former break function is called address break; and the latter break function is called trigger break. While the instruction at the address where the software break is set is not executed, a hardware break is performed after the specified instruction is executed.
Evaluation MCU
This means the MCU mounted on the emulation probe which is operated in the specific mode for tools.
Target MCU
This means the MCU you are going to debug.
Target program
This means the program 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 / 72 )

2.2 Package Components

The M30830T-EPB package consists of the following items. When unpacking, check to see if your M30830T-EPB contains all of these items.
Table 2.1 Package components
M30830T-EPB emulation probe M30800T-PTC converter board for 100-pin LCC IC61-1004-051 100-pin LCC socket made by Yamaichi Electronics Co., Ltd. Hardware tool user registration FAX sheet (English) Hardware tool user registration FAX sheet (Japanese) M30830T-EPB user's manual (this manual) M30830T-EPB user's manual (Japanese)
* Please keep the M30830T-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 any of these items are missing or found faulty, please contact your distributor. * If there is any question or doubt about the packaged product, contact your 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 1 1

2.3 Other Tool Products Required for Development

To bring forward programs development on the M32C/81, 82 and 83 Group MCUs, 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
144-pin 0.5-mm-pitch LQFP
(144P6Q-A)
100-pin 0.5-mm-pitch LQFP
(100P6Q-A)
Converter boards
100-pin 0.65-mm-pitch QFP
(100P6S-A)
Product name
PC7501
M3T-PD308F
M3T-FLX-144NSD
M3T-100LCC-QSD
M3T-100LCC-DMS
M3T-FLX-100NSD M3T-F160-100NSD M3T-100LCC-DMS
M3T-DUMMY100S
M3T-100LCC-DMS
M3T-DIRECT100S
M3T-100LCC-DMS
M3T-FLX-100NRB
Notes Required Required
+
Required according to the foot pattern of the target system (see "3.6 Connecting the Target
+
+
+
System" on page 34)
* To purchase these products, contact your nearest distributer.
( 19 / 72 )

2.4 Name of Each Part

(1) System Configuration
Emulator debugger
M3T-PD308F
Host machine
LPT parallel, USB
or LAN interface
(1) Emulation probe
M30830T-EPB
(2) Converter board
M30800T-PTC
Emulator PC7501
Target board
Figure 2.1 System configuration
(1) Emulation probe (M30830T-EPB)
This emulation probe contains an evaluation MCU.
(2) Converter board (M30800T-PTC)
This is a converter board for connecting to the target system (for 100-pin 0.65-mm-pitch LCC socket). For details, refer to "3.6 Connecting the Target System" (page 34)
(2) Names and Functions of PC7501 Upper Panel LEDs
System status LEDs Target status LEDs
POWER
POWER CLOCK
SAFE
RESET
ERROR
SYSTEM
STATU S
RUN WARNING
TARGET
STATU S
EMULATOR
Figure 2.2 Names of PC7501 upper panel LEDs
( 20 / 72 )
(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 system status LEDs
Name
POWER
SAFE
ERROR
Status
ON
OFF
ON
Flashing
OFF
ON
Flashing
OFF
Meaning Emulator system power supply is turned ON. Emulator system power supply is turned OFF. Emulator system is operating normally. Specific mode (maintenance mode) for downloading the firmware. The
emulator system does not operate except for downloading firmware and self-check.
Emulator system is not operating normally. Emulator is not operating normally. Downloading firmware Emulator is operating normally.
(2) Target Status LEDs
The target status LEDs typically indicate the target MCU's operating status and target board's power supply. Table 2.4 lists the definition of each target status LED.
Table 2.4 Definition of 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 board. Power is not supplied to the target board. Target MCU clock is oscillating. Target MCU clock is not oscillating. Target MCU is being reset. Target MCU is not being reset. Target program is being executed. Target program has been halted. Target MCU internal clock is not oscillating. Target MCU internal clock is oscillating.
CAUTION
Caution for Target Status POWER LED:
• If your MCU has two or more power supply terminals (Vcc), you need to supply power to all the terminals.
( 21 / 72 )
Loading...
+ 51 hidden pages