Renesas M30870T2-CPE User Manual
Renesas M30870T2-CPE User Manual

Renesas M30870T2-CPE User Manual

Compact emulator for m32c/87 group
Table of Contents

Advertisement

Quick Links

REJ10J0766-0400(T)
M30870T2-CPE
User's Manual
Compact Emulator for M32C/87 Group
Rev.4.00
Feb. 16, 2006

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the M30870T2-CPE and is the answer not in the manual?

Questions and answers

Summary of Contents for Renesas M30870T2-CPE

  • Page 1 REJ10J0766-0400(T) M30870T2-CPE User's Manual Compact Emulator for M32C/87 Group Rev.4.00 Feb. 16, 2006...
  • Page 2 6. The prior written approval of Renesas Technology Corp. is necessary to reprint or reproduce in whole or in part these materials. 7. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination.
  • Page 3: Preface

    The M30870T2-CPE is a compact emulator for the M32C/87 Group MCUs with the real-time trace function. This user's manual mainly describes specifications of the M30870T2-CPE compact emulator and how to setup it. For details on the following products included with the M30870T2-CPE, refer to each product's online manual.
  • Page 4: Important

    (2) In no event shall Renesas Solutions Corp. be liable for any consequence arising from the use of this product. (3) Renesas Solutions Corp. strives to renovate or provide a workaround for product malfunction at some charge or without charge.
  • Page 5 M30780T2-CPE User’s Manual Important Usage restrictions: This emulator has been developed as a means of supporting system development by users. Therefore, do not use it as a device used for equipment-embedded applications. Also, do not use it for developing the systems or equipment used for the following purposes either: (1) Transportation and vehicular (2) Medical (equipment where human life is concerned)
  • Page 6: Precautions For Safety

    M30870T2-CPE User’s Manual Precautions for Safety Precautions for Safety Definitions of Signal Words In both the user’s manual and on the product itself, several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons, or damage to your properties.
  • Page 7 M30870T2-CPE User’s Manual Precautions for Safety WARNING Warnings for AC Power Supply: If the attached AC power cable does not fit the receptacle, do not alter the AC power cable and do not plug it forcibly. Failure to comply may cause electric shock and/or fire.
  • Page 8 M30870T2-CPE User’s Manual Precautions for Safety CAUTION Notes on Connecting the Power Supply of the Emulator: Do not use any power cable other than the one that is included with the product. The power cable included with the product has its positive and negative poles color-coded by red and black, respectively.
  • Page 9: Table Of Contents

    M30870T2-CPE User’s Manual Contents Contents Page Preface..................................3 Important..................................4 Precautions for Safety ..............................6 User Registration ................................11 Terminology ................................12 1. Outline..................................13 1.1 Package Components ...........................13 1.2 System Configuration ............................14 1.2.1 System Configuration ..........................14 1.2.2 Names and Functions of each part of the Emulator................15 1.3 Specifications ..............................18...
  • Page 10 M30870T2-CPE User’s Manual Contents Page 4. Hardware Specifications ............................79 4.1 Target MCU Specifications..........................79 4.2 Differences between the Actual MCU and Emulator..................80 Notes on the User System (Power Supply, Order of Powering On) ............80 Notes on Using This Product When the Voltage of VCC1 is Higher than That of VCC2......80 Note on Intelligent I/O Resistor Access......................80...
  • Page 11: User Registration

    M30870T2-CPE User’s Manual User Registration User Registration When you have purchased the emulator presented in this user's manual, please be sure to register it. As the H/W Tool Customer Registration Sheet is included with this manual, fill it in and FAX it to your local distributor or email the same contents to the following address.
  • Page 12: Terminology

    This means a program stored in the flash ROM of the emulator. It analyzes contents of communication with the emulator debugger and controls the emulator M30870T2-CPE. This program is downloadable from the emulator debugger to upgrade firmware or to support other MCUs.
  • Page 13: Outline

    (evaluation version) * Please keep the M30870T2-CPE’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.
  • Page 14: System Configuration

    M30870T2-CPE User’s Manual 1. Outline 1.2 System Configuration 1.2.1 System Configuration Figure 1.1 shows a configuration of the M30870T2-CPE system. Power supply for emulator Host machine Power supply Power supply cable USB interface cable (not included) for user system (not included)
  • Page 15: Names And Functions Of Each Part Of The Emulator

    Switches and Selection Jumpers on the M 30870T-EPBM SW1--SW5 and JP1 (emulator side panel) Figure 1.2 Names of the LEDs on the upper panel of the M30870T2-CPE (1) System Status LEDs The system status LEDs indicate the emulator main unit’s operating status etc. Table 1.2 lists the definition of the system status LEDs.
  • Page 16 M30870T2-CPE User’s Manual 1. Outline (2) Target Status LEDs The target status LEDs indicate the target MCU’s power supply and operating status. Table 1.3 lists the definition of each target status LED. Table 1.3 Definitions of the target status LEDs...
  • Page 17 M30870T2-CPE User’s Manual 1. Outline (6) MCU Power Supply Source Selection Jumper (JP1) This is a jumper switch to set the power supply source to the MCU. For details on this switch, see “2.6.1 MCU Power Supply Source Selection Jumper/MCU Power Supply Voltage Selection Jumper” (page 24).
  • Page 18: Specifications

    M30870T2-CPE User’s Manual 1. Outline 1.3 Specifications Table 1.5 and 1.6 list specifications of the M30870T2-CPE. Table 1.5 M30870T2-CPE specifications (1/2) Applicable MCUs M32C/87 Group Evaluation MCU M3087BFLGP ROM size: 1024 KB + 4 KB, RAM size: 48 KB Usable mode...
  • Page 19: Operating Environment

    M30870T2-CPE User’s Manual 1. Outline Table 1.6 M30870T2-CPE specifications (2/2) Connection to user system For 144-pin 0.5-mm-pitch LQFP M3T-FLX-144NSD (not included) (see “2.8 Connecting the User System” (144P6Q-A) on page 30) For 100-pin 0.5-mm-pitch LQFP (1) M30800T-PTC (included) + (100P6Q-A)
  • Page 20: Setup

    M30870T2-CPE User’s Manual 2. Setup 2. Setup This chapter describes the preparation for using this product, the procedure for starting up the emulator and how to change settings. 2.1 Flowchart of Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2.1. For details, refer to each section hereafter. And, when the emulator does not start up normally, refer to “5.
  • Page 21: Installing The Included Software

    M30870T2-CPE User’s Manual 2. Setup 2.2 Installing the Included Software If the OS used in your host machine is Windows XP or 2000, this installation must be executed by a user with administrator rights. Be aware that users without administrator rights cannot complete the installation.
  • Page 22: Attaching The Ferrite Core

    M30870T2-CPE User’s Manual 2. Setup 2.3 Attaching the Ferrite Core Attach the ferrite core included with this product close to the DC plug of the power cable. Without the ferrite core it may cause interference. The power cable should be wound around the ferrite core as shown in the figure, and close the ferrite core until it clicks.
  • Page 23: Connecting The Host Machine

    M30870T2-CPE User’s Manual 2. Setup 2.5 Connecting the Host Machine Connect the emulator and the host machine with the USB interface cable. Connect the USB interface cable (included) to the USB interface connector (J2) and the USB port of the host machine (see Figure 2.5).
  • Page 24: Turning On The Power Supply

    M30870T2-CPE User’s Manual 2. Setup 2.6 Turning ON the Power Supply 2.6.1 MCU Power Supply Source Selection Jumper/MCU Power Supply Voltage Selection Jumper Set the MCU power supply source selection jumper and the MCU power supply voltage selection jumper of the emulator according to conditions of use.
  • Page 25: Checking Connections Of The Emulator System

    M30870T2-CPE User’s Manual 2. Setup 2.6.2 Checking Connections of the Emulator System Before turning the power ON, check the connection of the interface cable to the host machine, emulator, and user system. 2.6.3 Turning ON/OFF the Power Turn ON/OFF the power of the emulator and user system as simultaneously as possible.
  • Page 26: Led Display When The Emulator Starts Up Normally

    M30870T2-CPE User’s Manual 2. Setup 2.6.5 LED Display When the Emulator Starts Up Normally After the emulator starts up, check the status of the LEDs to see whether the emulator operation is enabled or not. Figure 2.7 shows the positions of the emulator status LEDs.
  • Page 27 M30870T2-CPE User’s Manual 2. Setup When the user system connected: When the POWER LED does not light, shut off the system and check the setting of the POWER LED 3 jumper switches, and if the power is properly supplied to the user system.
  • Page 28: Self-Check

    M30870T2-CPE User’s Manual 2. Setup 2.7 Self-check 2.7.1 Self-check Procedure To run the self-check of the emulator, do so as explained here below. While the self-check is in progress, the LEDs will change as shown in Figure 2.10. (1) If the user system is connected, disconnect it.
  • Page 29: If An Error Is Detected In The Self-Check

    M30870T2-CPE User’s Manual 2. Setup 2.7.2 If an Error is Detected in the Self-check Table 2.4 lists how to remedy the troubles if the target status LED display is abnormal in the self-check. When an error is detected, shut off the emulator and the user system and follow the steps in the Table 2.4.
  • Page 30: Connecting The User System

    M30870T2-CPE User’s Manual 2. Setup 2.8 Connecting the User System Figure 2.11 shows the connection of the M30870T2-CPE and the user system. Compact emulator 100-pin 144-pin 0.5-mm-pich 0.65-mm-pitch 0.5-mm-pitch M30800T-PTC (included) M30800T-PTC (included) M3T-100LCC-DMS (not included) M3T-100LCC-DMS (not included) M30800T-PTC...
  • Page 31: Connecting To A 100-Pin Lcc Socket

    Here following is a procedure of connecting to a 100-pin LCC socket (Yamaichi Electronics Co., Ltd.:IC61-1004-051, etc.) on the user system. (1) Attach the CN2 side of the M30870T2-CPE to the CN2 side of the M30800T-PTC. (2) Attach the M30800T-PTC to the 100-pin LCC socket.
  • Page 32: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 1)

    The small connectors of the M3T-100LCC-DMS and the M3T-DUMMY100S are guaranteed for only 20 insertion/removal iterations. The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal iterations. REJ10J0766-0400 Rev.4.00 February 16, 2006 Page 32 of 102...
  • Page 33: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 2)

    The small connectors of the M3T-100LCC-DMS and M3T-DIRECT100S are guaranteed for only 20 insertion/removal iterations. The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal iterations. REJ10J0766-0400 Rev.4.00 February 16, 2006 Page 33 of 102...
  • Page 34: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 3)

    The small connectors of the M3T-100LCC-DMS and M3T-FLX-100NRB are guaranteed for only 20 insertion/removal iterations. The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal iterations. *NQPACK, YQPACK, YQSOCKET, YQ-GUIDE, HQPACK, TQPACK and TQSOCKET are trademarks of Tokyo Eletech Corporation.
  • Page 35: Connecting To A 100-Pin 0.5-Mm-Pitch Foot Pattern (Part 1)

    Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator and the user system. The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal iterations.
  • Page 36: Connecting To A 100-Pin 0.5-Mm-Pitch Foot Pattern (Part 2)

    The small connectors of the M3T-100LCC-DMS and M3T-FLX-100NSD are guaranteed for only 20 insertion/removal iterations. The small connectors of the M30870T2-CPE and M30800T-PTC are guaranteed for only 50 insertion/removal iterations. REJ10J0766-0400 Rev.4.00 February 16, 2006 Page 36 of 102...
  • Page 37: Connecting To A 100-Pin 0.5-Mm-Pitch Foot Pattern (Part 3)

    Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator and user system. The small connectors of the M30870T2-CPE and M3T-F160-100NSD are guaranteed for only 50 insertion/removal iterations. REJ10J0766-0400 Rev.4.00 February 16, 2006...
  • Page 38: Connecting To A 144-Pin 0.5-Mm-Pitch Foot Pattern

    Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator and user system. The small connectors of the M30870T2-CPE and M3T-FLX-144NSD are guaranteed for only 50 insertion/removal iterations. REJ10J0766-0400 Rev.4.00 February 16, 2006...
  • Page 39: Changing Settings

    2.9 Changing Settings 2.9.1 Setting Switches of Emulator Set the switches of the emulator according to the condition. Figures 2.20 and 2.21 show the positions of the switches of the M30870T2-CPE with the M30870T-EPBM REV.B and M30870T-EPBM REV.C, respectively. POWER USB 5.0V...
  • Page 40 M30870T2-CPE User’s Manual 2. Setup POWER USB 5.0V LED1 POWER SYSTEM POWER SAFE SAFE STATUS LED2 5.0V MCU Power Supply Voltage 3.3V Selection Jumper COMPACT EMULATOR M30870T2-CPE MCU Power Supply Source Selection Jumper LED3 POWER POWER CLOCK CLOCK TARGET RESET...
  • Page 41 M30870T2-CPE User’s Manual 2. Setup (1) MCU Power Supply Source Selection Jumper/MCU Power Supply Voltage Selection Jumper These are the jumper switches to select power supply to the MCU and its power voltage. As shown in Table 2.5 below, set the switch according to the connection to the user system.
  • Page 42 M30870T2-CPE User’s Manual 2. Setup (2) Setting JP1, SW1 to SW4 on the M30870T-EPBM Table 2.6 shows the settings of JP1, SW1 to SW4 on the M30870T-EPBM REV.B, and Table 2.7 shows the settings of JP1, SW1 to SW4 on the M30870T-EPBM REV.C.
  • Page 43 M30870T2-CPE User’s Manual 2. Setup Table 2.7 Switch settings of the M30870T-EPBM REV.C (JP1, SW1 to SW4) Switch Switch name Setting Description 3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V (Factory-setting) JP1* VDDIO 4.8 V ≤ VCC1 ≤ 5.2 V and 3.0 V ≤ VCC2 < VCC1 Connects pins AVCC and AVSS of the MCU to the user system.
  • Page 44 M30870T2-CPE User’s Manual 2. Setup (3) Setting SW5 on the M30870T-EPBM Table 2.8 lists the examples of setting the switch SW5. It is necessary to change the setting if using the analog input port selection function of the A/D converter when selecting the MCU file "m30870_ad.mcu" in the Init dialog box of the emulator debugger.
  • Page 45 M30870T2-CPE User’s Manual 2. Setup IMPORTANT Notes on Switch JP1: If using this product when the voltage of VCC1 is higher than that of VCC2, set the JP1 of the M30870T- EPBM to VCC1>2. If using this product when the voltage of VCC1 is higher than that of VCC2, the CPU clock must be 24 MHz or less.
  • Page 46: Selecting Clock Supply

    1. Kinds of Oscillator Boards The M30870T2-CPE comes with an oscillator circuit board OSC-3 (32 MHz). And an oscillator circuit bare board OSC-2 is included with this product. If you use an internal oscillator circuit board of the emulator as a main clock, choose "Internal" in the emulator debugger after replacing oscillator circuit boards to change a clock supplied to an MCU.
  • Page 47 M30870T2-CPE User’s Manual 2. Setup 2. Replacing Oscillator Circuit Boards Figure 2.22 shows how to replace the oscillator circuit boards. POWER USB 5.0V POWER LED1 SYSTEM POWER SAFE STATUS SAFE 5.0V LED2 3.3V The oscillator circuit board of the emulator is in the lower right...
  • Page 48 M30870T2-CPE User’s Manual 2. Setup 3. Using the Internal Oscillator Circuit Bare Board To use this product at a frequency you like, build a desired oscillator circuit on the included OSC-2 oscillator circuit bare board. Figure 2.23 shows an external view of the OSC-2 oscillator circuit bare board and the connector pin locations. Figure 2.24 shows the circuitry of the oscillator circuit bare board OSC-2.
  • Page 49 M30870T2-CPE User’s Manual 2. Setup (2) Using an Oscillator Circuit on the User System To operate this product with an external clock, construct an oscillator circuit as shown in Figure 2.25 in the user system and input the oscillator output at 50% duty (within the operating range of the evaluation MCU) into pin X .
  • Page 50: A/D Conversion Bypass Capacitors

    M30870T2-CPE User’s Manual 2. Setup 2.9.3 A/D Conversion Bypass Capacitors There is a foot pattern on the M30870T-EPBM board for mounting bypass capacitors for an A/D conversion circuit near the MCU. Mount suitable bypass capacitors as occasion demands. Figure 2.27 shows the mounting location of the A/D conversion bypass capacitors on the M30870T-EPBM REV.B and structure of this product, and Figure 2.28 shows the mounting location...
  • Page 51 M30870T2-CPE User’s Manual 2. Setup AVCC AVSS XCIN XOUT AVss AVss AVss C1 C2 AVss AVcc C1, C3: Vref-Avss bypass capacitor C2, C4: AVcc-Avss bypass capacitor Figure 2.28 Foot pattern for the A/D conversion bypass capacitor on the M30870T-EPBM REV.C...
  • Page 52: Usage (Emulator Debugger)

    M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3. Usage (Emulator Debugger) This chapter describes how to start up the emulator debugger and how to use the major windows. 3.1 Starting Up the Emulator Debugger (Init Dialog Box) (1) MCU tab 1.
  • Page 53 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3. Using or not using the watchdog function Using or not using the watchdog function Specify whether or not to debug the program which uses the watchdog function. When debugging the user system which...
  • Page 54 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 4. Using or not using the CPU rewrite mode Using or not using CPU rewrite mode Specify whether or not to debug in CPU rewrite mode. To debug the user system that uses CPU rewrite mode, select the check box.
  • Page 55 - Compiler Select the compiler you are using. (By default, the C compiler from Renesas is selected.) - Object Format Select the format of the object file that is output by the compiler you are using.
  • Page 56 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (3) Emulator tab 1. Specifying the target clock Specifying the target clock Specify the clock sources supplied to the MCU (main clock and sub clock). Select the appropriate clock sources according to the clock used by your target MCU.
  • Page 57 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (4) Resume tab 1. Automatically executing a script command Automatically executing a script command To automatically execute a script command when starting up the debugger, click the “Refer...” button and specify the script file to be executed.
  • Page 58: Starting Up The Emulator Debugger (Emem Dialog Box)

    M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3.2 Starting Up the Emulator Debugger (EMEM Dialog Box) (1) STATUS tab 1. Specifying the processor mode Specifying the processor mode Select the appropriate processor mode that suits your system. Cansel Help IMPORTANT...
  • Page 59 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 1. Referring to the MCU Status Referring to the MCU Status It shows the status of each MCU pin. Check it to see if the MCU status matches the selected processor mode. If a slider is at the center, it means that the pin status is indeterminate.
  • Page 60 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (2) Emulation Memory tab 1. Setting the Bank Address of the Debug Monitor Setting the Bank Address of the Debug Monitor The debug monitor uses contiguous 64 KB as a work area of the emulator.
  • Page 61 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (3) Flash Clear tab 1. Setting to clear the MCU’s internal flash ROM Setting to clear the MCU’s internal flash Specify whether or not you want the MCU’s internal flash ROM to be cleared when downloading the user program or data.
  • Page 62: Program Window

    M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3.3 Program Window (1) Downloading the program 1. Downloading from the work space window Downloading the program Download the object program you want to debug. Select Download from “xxx.x30” of “Download module”. M32C_87_TEST Or you can select “Download”...
  • Page 63 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (2) Program execution 1 Resetting the user program CPU reset Resets the target MCU. Or you can select “CPU Reset” from “Debug" menu for the same effect. 2 Executing the user program (Go) Runs the program beginning with the current PC position.
  • Page 64 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 7 Editor (Source) window after you have stopped the user program Editor (Source) window The position at which the user program has stopped is marked by a yellow arrow. (3) Setting breakpoints 1. Screen after breakpoint setup Screen after breakpoint setup There are three types of breakpoints as described below.
  • Page 65 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (4) Executing up to the cursor position 1. Setup procedure for running the program up to the cursor position Setup procedure for running the program Enlarged view up to the cursor position (1) Click the line in the editor (source) window that you want to be executed.
  • Page 66: Hardware Breakpoint Setting Window

    M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3.4 Hardware Breakpoint Setting Window (1) Breakpoint setup dialog box 1. Opening the hardware breakpoint setup dialog box Hardware Break Point Clicking this button opens the hardware breakpoint setup dialog box. 2. Hardware Break Point Setting Window in initial state...
  • Page 67 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 4. Opening the break event setting dialog box Specifying the event type Click to select the event type you want to set. - FETCH Detects an instruction prefetch. - DATA ACCESS Detects a memory access.
  • Page 68 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (3) When DATA ACCESS is selected 1. Window for setting the address Setting the address You can set eight conditions, e.g., a specified address, a specified address range, etc. 2. Window for setting data Setting data You can set two conditions, e.g., specified data or not to...
  • Page 69 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3. Example Data Settings Event setting for even-address word access Setting a break event MOV.W R0,512h(R0=0203h) Address 1 :000512 Data 1 :0203 High-order and low-order data effective MASK :FFFF Access :WRITE Event setting for odd-address word access Setting a break event (using 2 events) MOV.W R0,519h(R0=0203h)
  • Page 70 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (4) Setting the combinatorial event condition 1. Window for setting the combinatorial event condition Setting the combinatorial event condition There are following three conditions that you can choose for the combinatorial events. - OR The program breaks when one of the specified events occurs.
  • Page 71: Trace Window

    M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3.5 Trace Window (1) Trace window 1. Opening the trace window Trace window Clicking this button opens the trace window. Or you can select “Trace” from “Trace” of “Display” menu for the same effect.
  • Page 72 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 2. Trace window (bus display) Explanation of the trace window (bus Bus display display) The following explains the displayed contents, from left to right. - Address Shows the status of the address bus.
  • Page 73 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (2) Suspending and resuming trace measurement 1. Suspending trace measurement Stop Click this toolbar button to suspend the trace measurement in progress. 2. Resuming trace measurement Re-Start Click this toolbar button to resume the trace measurement in progress.
  • Page 74 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) (3) Trace point setup window 1. Opening the trace point setup dialog box Trace Point Clicking this toolbar button opens the trace point setting window. 2. Trace Point Setting Window in initial state...
  • Page 75 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3. Specifying a trace range Specifying a trace range You can specify a trace range for the trace event. - Break 64K cycles of instruction execution before the user program stopped is recorded.
  • Page 76: Ram Monitor Window

    M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 3.6 RAM Monitor Window (1) RAM monitor window 1 Opening the RAM monitor window RAM monitor Clicking this button opens the RAM monitor window. Or you can select “RAM monitor” from “CPU” of “Display”...
  • Page 77 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 2. RAM monitor area setting window in initial state RAM Monitor Area Setting Window in initial state By default, the monitor area is set to 000400h through 0007FFh. To change it, click the line you want to set.
  • Page 78 M30870T2-CPE User’s Manual 3. Usage (Emulator Debugger) 4. RAM monitor area setting dialog box when RAM monitor area is changed from 400h to 1 block Specifying the start address You can set the start address of the RAM area to be monitored.
  • Page 79: Hardware Specifications

    4. Hardware Specifications This chapter describes specifications of this product. 4.1 Target MCU Specifications Table 4.1 lists the specifications of target MCUs which can be debugged with this product. Table 4.1 Specifications of target MCUs for the M30870T2-CPE Item Description Applicable MCU...
  • Page 80: Differences Between The Actual Mcu And Emulator

    M30870T2-CPE User’s Manual 4. Hardware Specifications 4.2 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below. When debugging the MCU using this product, be careful about the following precautions. IMPORTANT Notes on the User System (Power Supply, Order of Powering On): When the user system is connected, be sure to set the JP1 of the emulator to "EXT".
  • Page 81: Note On Differences Between The Actual Mcu And Emulator

    M30870T2-CPE User’s Manual 4. Hardware Specifications IMPORTANT Note on Differences between the Actual MCU and Emulator: Operations of the emulator system differ from those of actual MCUs as listed below. (1) Reset condition (2) Initial values of internal resource data of an MCU at power-on...
  • Page 82: Notes On Reset Vector Area

    M30870T2-CPE User’s Manual 4. Hardware Specifications IMPORTANT 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. A reset vector area can be changed only when a program is stopped.
  • Page 83: Connection Diagram

    4. Hardware Specifications 4.3 Connection Diagram Figures 4.1, 4.2 and 4.3 show a part of the connection diagram of the M30870T2-CPE. Figures 4.1 and 4.2 show the connection diagrams using the M30870T-EPBM REV.B and M30870T-EPBM REV.C, respectively. These connection diagrams mainly show the interface section. The signals not shown in Figures 4.1, 4.2 and 4.3 connect the evaluation MCU and the user system directly.
  • Page 84 M30870T2-CPE User’s Manual 4. Hardware Specifications IC15 AVcc AVss Vref Vref CPU Emulate Xcin XCIN Xcout XCIN P87/Xcin/Vcont P87/Xcin/Vcont P86/Xcout P86/Xcout I/O Emulate MCU AVcc AVcc AVcc AVss AVss AVss Vref Vref 100k P85/NMI* P85/NMI* XOUT XOUT XOUT 100k RESET*...
  • Page 85 M30870T2-CPE User’s Manual 4. Hardware Specifications AP15 AP15 AP15 AP15 AP15 AP15 AP15 AP15 74HC4066 74HC4066 74HC4066 74HC4066 IC10 74HC4066 74HC4066 Figure 4.3 Connection diagram (3/3) Table 4.2 Electrical characteristics of the 74HC4066 Condition Standard values Symbol Item Unit Min.
  • Page 86: External Dimensions

    M30870T2-CPE User’s Manual 4. Hardware Specifications 4.4 External Dimensions 4.4.1 External Dimensions of the Compact Emulator Figure 4.4 shows external dimensions of the M30870T2-CPE connected with the M30800T-PTC and LCC socket. 85.0 POWER USB 5.0V POWER LED1 SYSTEM POWER SAFE...
  • Page 87: External Dimensions Of The M30800T-Ptc

    M30870T2-CPE User’s Manual 4. Hardware Specifications 4.4.2 External Dimensions of the M30800T-PTC Figure 4.5 shows external dimensions of the converter board M30800T-PTC for a 100-pin QFP (100P6S). 55.0 13.5 M30800T-PTC 40.0 MADE I N JAPAN 13.5 Unit: mm Figure 4.5 External dimensions of the M30800T-PTC REJ10J0766-0400 Rev.4.00 February 16, 2006...
  • Page 88: External Dimensions Of The M3T-F160-100Nsd

    M30870T2-CPE User’s Manual 4. Hardware Specifications 4.4.3 External Dimensions of the M3T-F160-100NSD Figure 4.6 shows external dimensions of the converter board M3T-F160-100NSD for a 100-pin LQFP (100P6Q). 55.0 21.5 40.0 16.2 21.5 Unit: mm Figure 4.6 External dimensions of the M3T-F160-100NSD 4.4.4 External Dimensions of the M3T-FLX-144NSD...
  • Page 89: Notes On Using This Product

    (1) When "Internal" is selected: A clock generated by the oscillator circuit board in the M30870T2-CPE is supplied to the evaluation MCU. The clock is continually supplied to the evaluation MCU regardless of a status of user system clock and a status of user program execution.
  • Page 90: Notes On Emem Dialog Box

    M30870T2-CPE User’s Manual 4. Hardware Specifications IMPORTANT Notes on EMEM Dialog Box: Observe the following when setting up EMEM dialog box of the emulator debugger. (1) Debug Monitor Bank Address When "E0" is specified, 64 KB of area starting from E00000h are allocated for use by the debug monitor.
  • Page 91: Note On Software Breaks

    To purchase the product for replacement or request for repair, contact your local distributor. Note on Voltage Detect Circuit: With the M30870T2-CPE, as the power voltage cannot be change after powering on the user system, the voltage detect circuit (voltage down detect interrupt and hardware reset 2) cannot be used with this product.
  • Page 92: Notes On A/D Conversion

    M30870T2-CPE User’s Manual 4. Hardware Specifications IMPORTANT Notes on A/D Conversion: When selecting the MCU file "m30870_ad.mcu" in the Init dialog box of the emulator debugger to execute the A/D conversion debug, note the following. 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”.
  • Page 93: Notes On Mcu File

    M30870T2-CPE User’s Manual 4. Hardware Specifications IMPORTANT Notes on MCU File: Two types of MCU file are available for this product. Please use one of them as occasion demands. (1) Using the MCU file "m30870.mcu" When selecting AN00-AN07 or AN20-AN27 for analog input port select bits (bit2 and bit1 of 0394h), port P15 can be used as an I/O port and intelligent I/O pin.
  • Page 94: Troubleshooting

    Figure 5.1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger starts up. Check this while the user system is disconnected. For the latest FAQs visit the Renesas Tools Homepage.
  • Page 95: When The Emulator Debugger Does Not Start Up Properly

    M30870T2-CPE User’s Manual 5. Troubleshooting 5.2 When the Emulator Debugger Does Not Start Up Properly (1) When the LEDs of the M30870T2-CPE Do Not Display Normally Table 5.1 Errors LEDs show and their checkpoints Connection to Error Checkpoint the user system LEDs do not light up.
  • Page 96 M30870T2-CPE User’s Manual 5. Troubleshooting (2) MCU Setting Dialog Box Does Not Appear at Debugger Startup Table 5.2 Checkpoints of errors at debugger startup Error Checkpoint Communication error occurred. Check that the USB cable is connected properly. Data was not sent to the target.
  • Page 97 M30870T2-CPE User’s Manual 5. Troubleshooting (3) Errors Occur at Debugger Startup Table 5.3 Checkpoints of errors at debugger startup Error Checkpoint Target MCU is uncontrollable. (1) Check that the NQPACK etc. mounted on the user system is soldered properly. (2) Check that the connector is installed properly to the user system.
  • Page 98: How To Request For Support

    M30870T2-CPE User’s Manual 5. Troubleshooting 5.3 How to Request for Support After checking the items in "5 Troubleshooting", fill in the text file which is downloaded from the following URL, then send the information to your local distributor. http://tool-support.renesas.com/eng/toolnews/registration/support.txt For prompt response, please specify the following information:...
  • Page 99: Maintenance And Guarantee

    M30870T2-CPE User’s Manual 6. Maintenance and Guarantee 6. Maintenance and Guarantee This chapter describes how to maintenance, repair provisions and how to request for repair. 6.1 User Registration When you purchase our product, be sure register as a user. For user registration, refer to “User registration” (page 11) of this user's manual.
  • Page 100: How To Make Request For Repair

    M30870T2-CPE User’s Manual 6. Maintenance and Guarantee (3) Expiration of the repair period When a period of one year elapses after the model was dropped from production, repairing products of the model may become impossible. (4) Transportation fees at sending your product for repair Please send your product to us for repair at your expense.
  • Page 101 M30870T2-CPE User's Manual Publication Date: Feb. 16, 2006 Rev.4.00 Sales Strategic Planning Div. Published by: Renesas Technology Corp. Microcomputer Tool Development Department Edited by: Renesas Solutions Corp. © 2006. Renesas Technology Corp. and Renesas Solutions Corp., All rights reserved. Printed in Japan.
  • Page 102 M30870T2-CPE User's Manual...

Table of Contents