Renesas M30850T-EPB User Manual

M30850T-EPB
Emulation Probe for M32C/80, 84, 85 and 86 Groups
User's Manual
Rev.2.00 April 1, 2004 REJ10J0345-0200Z
* NQPACK, YQPACK, YQSOCKET, YQ-GUIDE, HQPACK, TQPACK and TQSOCKET are trademarks of Tokyo Eletech Corporation. * IC61-1004-051 is a trademark of Yamaichi Electronics Co., Ltd.
• 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 / 76 )

Preface

The M30850T-EPB is an emulation probe for M32C/80, 84, 85 and 86 Groups MCUs. The M30850T-EPB is used by connecting to the PC7501 emulator main unit.
This user's manual mainly describes specifications of the M30850T-EPB emulation probe and how to setup it. For details on the following products, which are used with the M30850T-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 "2.2 Package components" (page 21). 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 / 76 )

Contents

Chapter 1. Precautions for Safety ...........................................................................................7
1.1 Safety Symbols and Meanings ..............................................................................9
Chapter 2. Preparation ..........................................................................................................19
2.1 Terminology ........................................................................................................20
2.2 Package Components ..........................................................................................21
2.3 Other Tool Products Required for Development ................................................21
2.4 Name of Each Part ..............................................................................................22
(1) System Configuration...............................................................................22
(2) Names and Functions of the PC7501 Upper Panel LEDs........................22
2.5 When Using the Emulator for the First Time......................................................24
Chapter 3. Setting Up ...........................................................................................................25
3.1 Selecting Clock Supply .......................................................................................26
3.2 Using an Internal Oscillator Circuit Board .........................................................27
(1) Kinds of Oscillator Circuit Boards...........................................................27
(2) Replacing an Oscillator Circuit Board .....................................................27
(3) Using the Oscillator Circuit Bare Board ..................................................29
3.3 Using the Oscillator Circuit on the Target System .............................................30
3.4 Using the Internal Oscillator Circuit ...................................................................31
3.5 Setting Switches ..................................................................................................31
3.6 A-D Conversion Bypass Capacitor .....................................................................35
3.7 Connecting the PC7501.......................................................................................36
3.8 Connecting the Target System ............................................................................37
(1) Connecting to a 100-pin LCC Socket ......................................................38
(2) Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1) ................39
(3) Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2) ................40
(4) Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3) ................41
(5) Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 1) ..................42
(6) Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 2) ..................43
(7) Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 3) ..................44
(8) Connecting to a 144-pin 0.5-mm-pitch Foot Pattern ...............................45
Chapter 4. Usage ..................................................................................................................47
4.1 Turning On the Power .........................................................................................48
(1) Checking the Connection of the Emulator System ..................................48
(2) Turning ON/OFF the Power.....................................................................48
(3) LED Display When the Emulator Starts Up Normally ............................49
( 4 / 76 )
4.2 Downloading Firmware ......................................................................................50
(1) When It is Necessary to Download Firmware .........................................50
(2) Downloading Firmware in Maintenance Mode .......................................50
4.3 Starting Up the Emulator Debugger (Setting the EMEM Dialog Box) ..............51
(1) Setting the Debug Monitor Bank Address ...............................................52
(2) Selecting a Processor Mode .....................................................................52
(3) Setting Emulation Memory ......................................................................53
(4) Emulation Memory Allocation as Expansion Area .................................53
(5) Referring MCU STATUS ........................................................................55
4.4 Self-check............................................................................................................55
(1) Self-check Procedure ...............................................................................55
(2) If an Error is Detected in the Self-check ..................................................55
Chapter 5. Specifications......................................................................................................57
5.1 Specifications ......................................................................................................58
5.2 Connection Diagrams..........................................................................................59
5.3 External Dimensions ...........................................................................................61
(1) External Dimensions of the Emulation Probe ..........................................61
(2) External Dimensions of Converter Board M30800T-PTC ......................62
(3) External Dimensions of Converter Board M3T-F160-100NSD ..............63
(4) External Dimensions of Converter Board M3T-FLX-144NSD...............63
Chapter 6. Troubleshooting ..................................................................................................65
6.1 Flowchart to Remedy the Troubles .....................................................................66
6.2 When the Emulator Debugger Does Not Start Up Properly ...............................67
(1) When the LED Display of the PC7501 is Abnormal ...............................67
(2)
EMEM Dialog Box is Not Displayed at Debugger Startup (Target Connected) .................
(3)
EMEM Dialog Box is Not Displayed at Debugger Startup (Target Not Connected) ..........
68 69
(4) Errors Occur at Debugger Startup (Target Connected)............................69
6.3 How to Request for Support................................................................................70
Chapter 7. Maintenance and Guarantee................................................................................71
7.1 Maintenance ........................................................................................................72
7.2 Guarantee ............................................................................................................72
7.3 Repair Provisions ................................................................................................72
7.4 How to Request for Repair..................................................................................73
( 5 / 76 )
MEMO
( 6 / 76 )
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 Quitting the Emulator Debugger..................................................................11
Note on Differences between an Actual MCU and the Emulator.............................. 11
Notes on Target System ............................................................................................. 12
Notes on Using This Product When the Voltage of VCC1 is Higher than That of VCC2 ......12
Note on RESET* Input ..............................................................................................12
Note on RDY* Input..................................................................................................12
Note on HOLD* Input ............................................................................................... 12
Note on NMI* Interrupt ............................................................................................. 12
Notes on Clock Supply to an MCU ...........................................................................13
Notes on Using the CPU Clock at Less than 16 MHz ...............................................13
Notes on EMEM Dialog Box..................................................................................... 14
Notes on Address-Match Interrupt.............................................................................15
Notes on Watchdog Function.....................................................................................15
Notes on Debugging in CPU Rewrite Mode..............................................................15
Notes on Reset Vector Area....................................................................................... 15
Notes on Stack Area...................................................................................................16
Notes on Interrupts..................................................................................................... 16
Note on Software Break.............................................................................................16
Notes on Access Prohibited Area .............................................................................. 16
Note on DMA Transfer..............................................................................................17
Note on DMAC II Transfer Completion Interrupts ...................................................17
( 7 / 76 )
Note on Downloading Programs................................................................................ 17
Notes on Service-Life of the MCU's Internal Flash ROM ........................................ 17
Note on Voltage Detect Circuit..................................................................................17
Notes on A-D Conversion.......................................................................................... 18
Note on Protect Resistor ............................................................................................18
Note on Applicable MCUs.........................................................................................18
Note on Final Evaluation ........................................................................................... 18
( 8 / 76 )
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 / 76 )
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.
• Do not leave either the emulator or target system powered on, because of leakage current the internal circuits may be damaged.
•When turning ON the power again after shutting OFF the power, wait about 10 seconds.
Cautions to Be Taken for Handling This Product:
• Use caution when handling the main unit. Be careful not to apply a mechanical shock.
• Do not touch the connector pins of the emulator main unit and the target MCU connector pins. Static electricity may damage the internal circuits.
• Do not pull this product by the flexible cable for connecting to the emulator main unit and emulation probe. The cable may cause a break.
•Do not flex the flexible cable for connecting to the emulator main unit and emulation probe excessively. The cable may cause a break.
•Do not use inch-size screws for this equipment. The screws used in this equipment are all ISO (meter-size) type screws. When replacing screws, use same type screws as equipped before.
Caution to Be Taken for Malfunctions:
• If the emulator malfunctions because of interference like external noise, do the following to remedy the trouble.
(1) Press the RESET switch on the emulator upper panel. (2) If normal operation is not restored after step (1), shut OFF power to the emulator once and then
reactivate it.
( 10 / 76 )
IMPORTANT
Notes on Downloading Firmware:
• Before using this product for the first time, it is necessary to download the dedicated firmware (control software built into the PC7501). Please note that, to do this, it is necessary to start up the PC7501 in maintenance mode. For firmware download procedures, see "4.2 Downloading Firmware" (page 50). 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 while not connecting the target system.
Note on Quitting the Emulator Debugger:
• To restart the emulator debugger after it ends, always shut power to the emulator module off once and then on again.
Note on Differences between an Actual MCU and the Emulator:
• Operations of the emulator differs from those of mask MCUs as listed below.
(1) Reset conditions (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 24KB RAM (400h--63FFh). In single-chip mode or memory expansion mode, internal flash memory is automatically allocated in F000h--FFFFh and F80000h--FFFFFFh, and it can be accessed.
(5) Oscillator circuit
•Make note of the fact that in the oscillator circuit where a resonator is connected between pins XIN and XOUT, oscillation does not occur because a converter board and other devices are used between the evaluation MCU and the target system. It is same for a sub-clock oscillator (XCIN and XCOUT).
• For notes on when using the oscillator circuit on the target system, refer to "3.3 Using the Oscillator Circuit on the Target System" (page 30).
(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 an actual MCU.
(7) Port P15
As one of I/O ports (P15) is connected to the target system through the analog switch circuit, electric characteristics slightly differ from those of an actual MCU.
(8) When the SW4 is set to XOUT in stop mode, a clock is output from the XOUT pin.
( 11 / 76 )
IMPORTANT
Notes on Target System:
• Pin Vcc of the 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 following.
(1) When JP1 is set as VCC1 = 2:
3.0 V VCC1 = VCC2 5.5 V
(2) When JP1 is set as VCC1 > 2:
4.8 V VCC1 5.2 V
3.3 V VCC2 < VCC1
Do not change the voltage of the target system after turning on the power.
Notes on Using This Product When the V oltage of VCC1 is Higher than That of VCC2:
• If using this product when the voltage of VCC1 is higher than that of VCC2, set the JP1 to VCC1>2. For the switch JP1, refer to "3.5 Setting Switches" (page 31).
•When the JP1 is set to VCC1>2, the voltage of VCC2 on the target system should be 3.3 V or more.
• If using a CPU clock of 30 MHz or more when the voltage of VCC1 is higher than that of VCC2, set the SFR area of the intelligent I/O function to 2-wait (set the PM13 bit to "1") when reading this area. This precaution only needs to be observed when using an emulator, and does not apply for the actual MCU.
Note on 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 pin RDY* 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 pin RDY* during the user program stopping may cause a malfunction of the emulator.
Note on HOLD* Input:
• Be sure to input "L" to pin HOLD* of the target system during the user program executing (only while the RUN status LED on the PC7501's upper panel is lit). Inputting "L" to pin HOLD* during the user program stopping may cause a malfunction of the emulator.
Note on NMI* Interrupt:
• 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).
( 12 / 76 )
IMPORTANT
Notes on Clock Supply to an MCU:
• Clock can be supplied to the evaluation MCU in one of the following three ways. This is determined by emulator debugger clock selection.
(1) When Internal is selected:
The clock generated by the oscillation circuit in the PC7501 is supplied to the evaluation MCU. The clock is continually supplied to the evaluation MCU regardless of "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.
(3) When Generate is selected:
A clock generated by the dedicated circuit in the PC7501 is supplied to the evaluation MCU. The clock is continually supplied to the evaluation MCU regardless of "target system clock status" and "user program execution status".
• When operating this product with XCIN, be sure to set the SW2 and SW3 to XCIN and NC, respectively.
Notes on Using the CPU Clock at Less than 16 MHz:
• To use the CPU clock at less than 16 MHz, execute the command shown below in the Script Window after starting the emulator debugger M3T-PD308F.
[Command] _settimeout 300
Once this command is executed, it remains effective the next time you start the emulator debugger M3T-PD308F. Therefore, you do not need to execute this command again.
•When you use the CPU clock at less than 1 MHz, contact your local distributor.
( 13 / 76 )
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 for the debug monitor cannot be used.
• The below areas cannot be set for the debug monitor.
(1) MCU internal resources (ROM/RAM/SFR area) (2) Multiplex area (3) Interrupt vector area
• It is not possible to view or set the content of the specified area. Even on the memory window or in the reverse assemble area of the program/source windows, the content of this area is not displayed correctly though it can be displayed.
(2) Processor Mode
• Set a processor mode for the target MCU.
• To set single-chip mode or memory expansion mode, pin CNVSS used with MCU status must be "L". MCU status indicates pin level of the target system.
• To set microprocessor mode, pin CNVSS used with MCU status must be "H".
• To set memory expansion mode or microprocessor mode, pins RDY* and HOLD* used with MCU status must be "H".
•When the target system is not connected, all modes are available.
IMPORTANT
(3) Emulation Memory Allocation
• The 4MB memory mounted in the PC7501 can be allocated out.
•When single-chip mode or memory expansion mode is set as a processor mode, ROM area is automatically allocated to the internal Flash ROM of an MCU. Therefore, it is not necessary to deliberately specify the emulation memory as expansion area in order to allocate the ROM area.
• Except for the SFR, RAM, ROM and internally reserved areas, all areas other than the set area are externally accessible.
• MCU internal resources are automatically selected for SFR, RAM and ROM areas regardless of settings.
• Be careful that the specified areas do not overlap one another.
• Set memory allocation so that the total of the 4 length values does not exceed the emulation memory size (4 MB).
• Do not set a multiplex bus area and unusable areas for memory allocation.
•Emulator main unit's memory is automatically selected as a reset vector area regardless of settings.
( 14 / 76 )
IMPORTANT
Notes on Address-Match Interrupt:
• Do not single-step an address where an address-match interrupt occurs.
• When using an address-match interrupt, do not check the box of "Enable the Address Match Interrupt Break Function" in the MCU tab of the Init dialog box. When not using an address-match interrupt, check the box.
• When you use address-match breaks, if a low reset is input during a user program execution, a debug monitor program (about 100 cycles) is executed after a reset is released. Take note that it has effects on the user program execution time and the result of a trace.
Notes on Watchdog Function:
• When using the watchdog function, check the box of "Debug the program using the watchdog timer" in the MCU tab of the Init dialog box.
•When not using the watchdog function, do not check the box.
• If the reset circuit of the target system has a watchdog timer, disable it when using the emulator.
Notes on Debugging in CPU Rewrite Mode:
• To debug a program in CPU rewrite mode, check the box "Debug the program using the CPU Rewrite Mode" in the MCU tab of the Init dialog box.
•When you do not debug a program in CPU rewrite mode, uncheck the box.
• When you debug a program in CPU rewrite mode, the block 0 area (FFF000h--FFFFFFh) must not be rewritten. Otherwise, the emulator will be out of control.
• When debugging in CPU rewrite mode is enabled, you cannot use the following functions. (1) Setting an address match breakpoint
(2) Setting a software breakpoint to the internal ROM area (3) Executing COME to the internal ROM area
• Do not use the following functions to the rewrite control program area (from setting CPU rewrite mode select bit to releasing it). If any of these are used, malfunctions may occur (e.g. The emulator cannot shift to CPU rewrite mode or contents of ROM cannot be read out properly.).
(1) Single stepping (2) Setting a software breakpoint (3) Setting a hardware breakpoint (4) Executing COME
Notes on Reset Vector Area:
• For a reset vector area, memory of the emulator is always selected regardless of the setting of the EMEM dialog box. Therefore when setting a microprocessor mode, to use a ROM of the target system etc. as an area including a reset vector area, set a reset vector using a memory window etc.
•A reset vector area can be changed only when a program is stopped. When a program is executed, the area can not be changed.
( 15 / 76 )
Notes on Stack Area:
• With this product, a maximum 20 bytes of the user stack is consumed as a 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.
Notes on Interrupts:
• Even if a user program is not being executed (when the user program is stopped or when run-time debugging is being performed), the evaluation MCU keeps running so as to control the emulation probe. Therefore, timers and other components do not stop running.
• 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 interrupt is not accepted. Take note that when the user program is not being executed, a peripheral I/O interrupt request can be cleared.
IMPORTANT
Note on Software Break:
•A software break generates a break interruption by forcibly inserting a BRK instruction "08h" instead of an instruction code. Therefore, when referencing the result of a trace in bus mode, "08h" is displayed for the instruction fetch address where a software break is set.
Notes on 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.
( 16 / 76 )
IMPORTANT
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 count register DCT0 DMA1 transfer count register DCT1 DMA0 memory address register DMA0 DMA1 memory address register DMA1 DMA2 transfer count register DCT2 (R0) DMA3 transfer count 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 Downloading Programs:
• When you download a program to an internal ROM area and set software breaks, the main clock operates in divide-by-8 mode. Keep it in mind when you specify a watchdog timer refresh interval.
Notes on Service-Life of the MCU's Internal Flash ROM:
• With the M30850T-EPB, programs are downloaded to the MCU's flash ROM when debugging in single-chip mode or memory expansion mode. Because the number of write/erase cycles of this ROM is limited, the ROM must be replaced when at the end of its service-life.
• If the following errors occur frequently during program download, replace the emulation probe or request for repair.
Flash ROM erase error occurred ERROR (16258) Flash ROM verify error occurred ERROR (16259)
To purchase the product for replacement or request for repair, contact your local distributor.
Note on Voltage Detect Circuit:
•As the power voltage cannot be changed after powering on the target system, the voltage detect circuit (voltage down detect interrupt and hardware reset 2) cannot be used with this product.
( 17 / 76 )
Notes on A-D Conversion:
• When setting the register below to use the analog input port selection function, you need to set the direction register of port P15 for a pin that performs A-D conversion to "input". And you need to set the function selection register of port P15 for a pin that performs A-D conversion to "I/O port".
A-D0 control register 2 (address 394h)
b2, b1
1, 0 : AN00 to AN07 1, 0 : AN20 to AN27
Also, when the P0 group and P2 group are selected for A-D input, port P15 cannot be used as an I/O port. When setting the register above, port P15 cannot be used as an I/O port even if A-D conversion is halting. For the switch SW5, refer to "3.5 Setting Switches" (page 31).
• When setting the register below to use multi-port sweep mode, you need to set the direction register of port P15 for a pin that performs A-D conversion to "input". And you need to set the function selection register of port P15 for a pin that performs A-D conversion to "I/O port".
A-D0 control register 4 (address 392h)
b3, b2
1, 0 : AN0 to AN7, AN00 to AN07 1, 0 : AN0 to AN7, AN20 to AN27
IMPORTANT
Also, when the P0 group and P2 group are used for multi-port sweep mode, port P15 cannot be used as an I/O port. When setting the register above, port P15 cannot be used as an I/O port even if A­D conversion is halting.
•Because a converter board and other devices are used between the evaluation MCU and the target system, the A-D converter operates differently from an actual MCU. Make the final evaluation of the A-D converter using an actual MCU.
Note on Protect Resistor:
•A protect is not canceled when protect register bit 2 (PRC2), which enables writing in the port P9 direction register and the function select register A3, is changed with the below procedure.
(1) Step execution of an instruction setting ("1") PRC2 (2) Setting a break point from an instruction setting ("1") PRC2 to where the port P9 direction
register or the function select register A3 is set
(3) Setting ("1") PRC2 from the dump window or script window during user program execution
Note on Applicable MCUs:
• The M30850T-EPB supports M32C/80, 84, 85 and 85 Group MCUs. As the ROM and RAM sizes and peripheral functions depend on a target MCU, refer to each hardware manual of the MCU to develop your system.
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.
( 18 / 76 )
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 ................................................................................................................................20
2.2 Package Components...................................................................................................................21
2.3 Other Tool Products Required for Development......................................................................... 21
2.4 Name of Each Part.......................................................................................................................22
(1) System Configuration ........................................................................................................... 22
(2) Names and Functions of the PC7501 Upper Panel LEDs .................................................... 22
2.5 When Using the Emulator for the First Time .............................................................................. 24
( 19 / 76 )
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/80, 84, 85 and 86 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 V.3.20 Release 1 or later to control the emulator from a 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)
( 20 / 76 )

2.2 Package Components

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

2.3 Other Tool Products Required for Development

To bring forward programs development on the M32C/80, 84, 85 and 86 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 board
100-pin 0.65-mm-pitch QFP
(100P6S-A)
Product name
PC7501
M3T-PD308F V.3.20
Release 1 or later
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.8 Connecting the Target
+
+
+
System" on page 37)
* To purchase these products, contact your local distributor.
( 21 / 76 )

2.4 Name of Each Part

(1) System Configuration

Host machine
(1) Emulation probe
M30850T-EPB
(2) Converter board
M30800T-PTC
Emulator PC7501
Target board
LPT parallel, USB
or LAN interface
Figure 2.1 System configuration
• Emulation probe M30850T-EPB This emulation probe contains an evaluation MCU.
• 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.8 Connecting the Target System" (page 37)

(2) Names and Functions of the PC7501 Upper Panel LEDs

System status LEDs Target status LEDs
Figure 2.2 Names of PC7501 upper panel LEDs
( 22 / 76 )
(1) System Status LEDs
The system status LEDs indicate the emulator PC7501's power supply, firmware operating status, etc. Table 2.3 lists the definition of each system status LED.
Table 2.3 Definition of the system status LEDs
Name
POWER
SAFE
ERROR
Status
ON
OFF
ON
Flashing
OFF
ON
Flashing
OFF
Meaning Emulator system power supply is turned ON. Emulator system power supply is turned OFF. Emulator system is operating normally. Special mode (maintenance mode) for downloading firmware. The
emulator system does not operate except for downloading firmware and the 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 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 the target status LEDs
Name
POWER
CLOCK
RESET
RUN
WARNING
Status
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
Meaning Power is supplied to the target 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.
( 23 / 76 )
Loading...
+ 53 hidden pages