Renesas M16C/30P User Manual
Renesas M16C/30P User Manual

Renesas M16C/30P User Manual

Emulation probe for m16c/62p and m16c/30p groups
Table of Contents

Advertisement

Quick Links

REJ10J0868-0200(T)
M3062PT2-EPB
User's Manual
Emulation Probe for M16C/62P and M16C/30P Groups
Rev.2.00
Jan. 16, 2006

Advertisement

Table of Contents
loading

Summary of Contents for Renesas M16C/30P

  • Page 1 REJ10J0868-0200(T) M3062PT2-EPB User’s Manual Emulation Probe for M16C/62P and M16C/30P Groups Rev.2.00 Jan. 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. 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

    All the components of this product are shown in "1.1 Package components" (page 13). If there is any question or doubt about this product, contact your local distributor. The related manuals for using this product are listed below. You can download the latest manuals from the Renesas Tools homepage (http://www.renesas.com/en/tools).
  • 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 M3062PT2-EPB User’s manual 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

    M3062PT2-EPB User’s Manual 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. This chapter describes the precautions which should be taken in order to use this product safely and properly.
  • Page 7 M3062PT2-EPB User’s Manual 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. Use an AC power cable which complies with the safety standard of the country.
  • Page 8 M3062PT2-EPB User’s Manual Cautions to Be Taken for Turning On the Power: Turn ON/OFF the power of the emulator and user system as simultaneously as possible. Do not leave either the emulator or user system powered on, because of leakage current the internal circuits may be damaged.
  • Page 9: Table Of Contents

    M3062PT2-EPB User’s Manual Contents Preface...3 Important...4 Precautions for Safety ...6 Contents...9 User Registration ...11 Terminology ...12 1. Outline...13 1.1 Package Components ...13 1.2 Other Tool Products Required for Development ...14 1.3 System Configuration ...15 1.3.1 System Configuration ...15 1.3.2 Names and Functions of the PC7501 Upper Panel LEDs ...16 1.4 Specifications ...18 1.5 Operating Environment...19 2.
  • Page 10 M3062PT2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) ...49 3.1 Starting Up the Emulator Debugger ...49 3.1.1 INIT Dialog Box ...49 3.1.2 MCU Setting Dialog Box ...54 3.1.3 Checking Connections of the Emulator System...57 3.2 Editor (Source) Window...58 3.3 Hardware Breakpoint Setting Window...62 3.4 Trace Window...67 3.5 RAM Monitor Window...70...
  • Page 11: User Registration

    Without user registration, you will not be able to receive maintenance services such as a notification of field changes or trouble information. So be sure to carry out the user registration. For more information about user registration, please email to the following address. regist_tool@renesas.com REJ10J0868-0200 Rev.2.00 January 16, 2006 Page 11 of 102...
  • Page 12: Terminology

    Emulator main unit (Hereafter PC7501) This means an emulator main unit for M16C Family. Emulation probe This means the emulation probe (this product) for the M16C/60 Series M16C/62P and M16C/30 Series M16C/30P Groups MCUs. Emulator debugger This means a software tool starting up from the High-performance Embedded Workshop to control the PC7501 and this product and enable debugging.
  • Page 13: Outline

    M3062PT2-EPB User’s Manual 1. Outline This chapter describes the package components, the system configuration, the specifications of the emulator functions and the operating environment. 1.1 Package Components The M3062PT2-EPB package consists of the following items. When unpacking it, check to see if your M3062PT2-EPB contains all of these items.
  • Page 14: Other Tool Products Required For Development

    1.2 Other Tool Products Required for Development To bring forward programs development on an M16C/60 Series of the M16C/62P Group, and M16C/30 Series of the M16C/30P Group MCUs, the products listed below are necessary in addition to those contained package above. Get them separately.
  • Page 15: System Configuration

    (4) Host machine Figure 1.2 System configuration (1) Emulation probe M3062PT2-EPB (this product) This is an emulation probe for the M16C/60 Series M16C/62P Group and M16C/60 Series M16C/30P Group MCUs and contains an evaluation MCU. (2) Pitch converter board M30800T-PTC (included) This is a pitch converter board for connecting to 100-pin 0.65-mm-pitch LCC socket IC61-1004-051 on the user system.
  • Page 16: Names And Functions Of The Pc7501 Upper Panel Leds

    M3062PT2-EPB User’s Manual 1.3.2 Names and Functions of the PC7501 Upper Panel LEDs Figure 1.3 shows the names of the LEDs on the upper panel of the emulator. System status LEDs Figure 1.3 Names of the LEDs on the upper panel of the PC7501 (1) System Status LEDs The system status LEDs indicate the emulator PC7501's power supply, firmware operating status, etc.
  • Page 17 M3062PT2-EPB User’s Manual (2) Target Status LEDs The target status LEDs indicate operating status of the target MCU and power supply of the user system. Table 1.4 lists the definition of each target status LED. Table 1.4 Definition of the target status LEDs Name Status POWER...
  • Page 18: Specifications

    With the USB interface, not all hardware (such as host machine, USB devices, USB hub) combination will work and guaranteed. REJ10J0868-0200 Rev.2.00 January 16, 2006 M16C/60 Series M16C/62P Group and M16C/30 Series M16C/30P Group MCUs Single-chip mode Memory expansion mode (NORMAL, 4MB) Microprocessor mode (NORMAL, 4MB) 1.
  • Page 19: Operating Environment

    M3062PT2-EPB User’s Manual Table 1.6 Specifications of the M3062PT2-EPB (2/2) Connection to user system (see "Connecting User System" on page 30) 1.5 Operating Environment Be sure to use this emulator with the operating environmental of the emulator and host machine listed in Tables 1.7 and 1.8. Table 1.7 Operating environmental conditions Item Operating temperature...
  • Page 20: Setup

    M3062PT2-EPB User’s Manual 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 Emulator Debugger (M16C R8C Pc7501 Emulator Debugger)

    Install the M16C R8C PC7501 emulator debugger following the procedure described below. 2.2.1 Installing the Emulator Debugger (1) Downloading the M16C R8C PC7501 emulator debugger Download the M16C R8C PC7501 emulator debugger from the URL below. http://download.renesas.com/eng/mpumcu/upgrades/in_circuit_emulators/pc7501/index.html (2) Launching the installer Start the “setup.exe” program. (3) Entering the user information In the “user information”...
  • Page 22: Connecting The Host Machine

    M3062PT2-EPB User’s Manual 2. Setup 2.3 Connecting the Host Machine When connecting the emulator PC7501 to a host machine, you can choose your desired interface from LPT parallel interface, USB interface and LAN interface. Use the interface selection switch on the emulator PC7501's rear panel to specify your desired interface.
  • Page 23: Connecting The Pc7501

    M3062PT2-EPB User’s Manual 2.4 Connecting the PC7501 Figure 2.3 shows how to connect the PC7501 and the emulation probe. Figure 2.3 Connecting the PC7501 and emulation probe Cautions for Connecting the PC7501: When connecting the emulation probe, be sure to hold the both sides of the emulation probe horizontally and insert it directly.
  • Page 24: Connecting The Power Supply For The Emulator

    M3062PT2-EPB User’s Manual 2.5 Connecting the Power Supply for the Emulator The power is supplied from AC adapter to the emulator PC7501. Here following explains how to connect the AC adapter. (1) Turn OFF the power to the PC7501. (2) Connect the DC cable of AC adapter to the PC7501. (3) Connect the AC power cable to the AC adapter.
  • Page 25: Turning On The Power

    M3062PT2-EPB User’s Manual 2.6 Turning ON the Power 2.6.1 Checking the Connections of the Emulator System Before turning the power ON, check the connection of the interface cable with host machine, PC7501, emulation probe, and user system. 2.6.2 Turning ON/OFF the Power Turn ON the power of the emulator and user system as simultaneously as possible.
  • Page 26: Led Display When The Emulator Starts Up Normally

    M3062PT2-EPB User’s Manual 2.6.3 LED Display When the Emulator Starts Up Normally Figure 2.4 shows upper panel LED lighting status when the emulator started up properly. Check it when starting up the emulator system. POWER POWER SAFE CLOCK ERROR RESET WARNING SYSTEM TARGET...
  • Page 27: Downloading Firmware

    M3062PT2-EPB User’s Manual 2.7 Downloading Firmware 2.7.1 When It is Necessary to Download Firmware It is necessary to download the firmware in the cases listed below. Normally, the following are automatically detected when the emulator debugger is started up, and the firmware is downloaded. When you use this product for the first time When the firmware has been upgraded When the emulator debugger has been upgraded...
  • Page 28: Self-Check

    M3062PT2-EPB User’s Manual 2.8 Self-check 2.8.1 Self-check Procedure The self-check is a function to check the memory etc. mounted in the emulator. 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.6. In case of ERROR 1 to 4, because the target status LEDs will change depending on errors, check the system status LEDs.
  • Page 29: If An Error Is Detected In The Self-Check

    M3062PT2-EPB User’s Manual 2.8.2 If an Error is Detected in the Self-check If the self-check does not result normally (ERROR 1 to ERROR 4 in Figure 2.6), check the following. (1) Recheck the connection of the emulation probe and PC7501. (2) Redownload the proper firmware.
  • Page 30: Connecting The User System

    M3062PT2-EPB User’s Manual 2.9 Connecting the User System Figure 2.7 shows how to connect this product according to your user system. 80-pin 0.65-mm-pitch 0.65-mm-pitch M3T-FLX100-T M3062PT-80FPB M3T-F160-100NRB LCC socket 80-pin QFP 100-pin QFP 100-pin LCC (not included) (not included) (included) Figure 2.7 Connecting the user system according to user system Note on Connecting the User System: Take care not to attach a converter board in a wrong direction.
  • Page 31: Connecting To An 80-Pin 0.65-Mm-Pitch Foot Pattern

    M3062PT2-EPB User’s Manual 2.9.1 Connecting to an 80-pin 0.65-mm-pitch Foot Pattern Here following is a procedure of connecting to an 80-pin 0.65-mm-pitch foot pattern on the user system using the M3062PT- 80FPB (not included). For details on the M3062PT-80FPB (not included), refer to its user's manual. (1) Attach the NQPACK080SB included with the M3062PT-80FPB to the user system.
  • Page 32: Connecting To A 100-Pin Lcc Socket

    M3062PT2-EPB User’s Manual 2.9.2 Connecting to a 100-pin LCC Socket Here following is a procedure of connecting to a 100-pin LCC socket (IC61-1004-051 of Yamaichi Electronics Co., Ltd.) on the user system using the included M30800T-PTC. (1) Attach the CN2 side of the M30800T-PTC to the J4 side of the M3062PT2-EPB. (2) Attach the M30800T-PTC to the 100-pin LCC socket.
  • Page 33: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 1)

    M3062PT2-EPB User’s Manual 2.9.3 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1) Here following is a procedure of connecting to a 100-pin 0.65-mm-pitch foot pattern on the user system using the M3T-F160- 100NRB (not included). For details on the M3T-F160-100NRB (not included), refer to its user's manual. (1) Attach the NQPACK100RB included with the M3T-F160-100NRB to the user system.
  • Page 34: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 2)

    M3062PT2-EPB User’s Manual 2.9.4 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2) Here following is a procedure of connecting to a 100-pin 0.65-mm-pitch foot pattern on the user system using the M3T- DIRECT100S (not included). For details on the M3T-100LCC-DMS (not included) and M3T-DIRECT100S (not included), refer to each user's manual.
  • Page 35: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 3)

    M3062PT2-EPB User’s Manual 2.9.5 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3) Here following is a procedure of connecting to a 100-pin 0.65-mm-pitch foot pattern on the user system using the M3T- DUMMY100S (not included). For details on the M3T-100LCC-DMS (not included) and M3T-DUMMY100S (not included), refer to each user's manual.
  • Page 36: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 4)

    M3062PT2-EPB User’s Manual 2.9.6 Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 4) Here following is a procedure of connecting to a 100-pin 0.65-mm-pitch foot pattern on the user system using the M3T-FLX- 100NRB (not included). For details on the M3T-100LCC-DMS (not included) and M3T-FLX-100NRB (not included), refer to each user's manual.
  • Page 37: Connecting To A 100-Pin 0.5-Mm-Pitch Foot Pattern (Part 1)

    M3062PT2-EPB User’s Manual 2.9.7 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 1) Here following is a procedure of connecting to a 100-pin 0.5-mm-pitch foot pattern on the user system using the M3T-F160- 100NSD (not included). For details on the M3T-F160-100NSD (not included), refer to its user's manual. (1) Attach the NQPACK100SD-ND included with the M3T-F160-100NSD to the user system.
  • Page 38: Connecting To A 100-Pin 0.5-Mm-Pitch Foot Pattern (Part 2)

    M3062PT2-EPB User’s Manual 2.9.8 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 2) Here following is a procedure of connecting to a 100-pin 0.5-mm-pitch foot pattern on the user system using the M3T- 100LCC-QSD (not included). For details on the M3T-100LCC-QSD (not included), refer to its user's manual. (1) Attach the TQPACK100SD to the user system.
  • Page 39: Connecting To A 100-Pin 0.5-Mm-Pitch Foot Pattern (Part 3)

    M3062PT2-EPB User’s Manual 2.9.9 Connecting to a 100-pin 0.5-mm-pitch Foot Pattern (Part 3) Here following is a procedure of connecting to a 100-pin 0.5-mm-pitch foot pattern on the user system using the M3T-FLX- 100NSD (not included). For details on the M3T-100LCC-DMS (not included) and M3T-FLX-100NSD (not included), refer to each user's manual.
  • Page 40: Connecting To A 128-Pin 0.5-Mm-Pitch Foot Pattern

    M3062PT2-EPB User’s Manual 2.9.10 Connecting to a 128-pin 0.5-mm-pitch Foot Pattern Here following is a procedure of connecting to a 128-pin 0.5-mm-pitch foot pattern on the user system using the M3T-F160- 128NRD (not included). For details on the M3T-F160-128NRD (not included), refer to its user's manual. (1) Attach the NQPACK128RD included with the M3T-F160-128NRD to the user system.
  • Page 41: Switch Settings

    M3062PT2-EPB User’s Manual 2.10 Switch Settings 2.10.1 Switch Settings of the JP1 Set jumper switch JP1 according to a power supply you use. Figure 2.18 shows the positions of jumper switch JP1. Table 2.2 lists how to set the switch. F r o n t s i d e o f t h e M3 0 6 2 P T 2 - E P B M Figure 2.18 Position of the JP1 Table 2.2 Switch settings of the JP1...
  • Page 42: A/D Conversion Bypass Capacitors

    M3062PT2-EPB User’s Manual 2.10.2 A/D Conversion Bypass Capacitors There is a foot pattern on the M3062PT2-EPBM board for mounting bypass capacitors for the A/D conversion circuit near the MCU. Mount suitable bypass capacitors as occasion demands. Figure 2.19 shows where they are installed and the configuration of this product.
  • Page 43: Pullup Of Emulation Ports

    M3062PT2-EPB User’s Manual 2.10.3 Pullup of Emulation Ports Because this product emulates some I/O ports (P0 to P5, P10), you can not pullup ports P0 to P5 by the pullup control registers. Install the included resistor arrays (51 kΩ) as necessary. Figure 2.20 shows the positions of the pullup resistors. And, Table 2.3 lists the emulation port numbers and the pullup resistor part numbers.
  • Page 44: Selecting Clock Supply

    M3062PT2-EPB User’s Manual 2.11 Selecting Clock Supply 2.11.1 Clocks You can choose a clock supplied to the evaluation MCU by the Emulator tab in the Init dialog box of the emulator debugger. Table 2.4 shows the clocks and their initial settings. Table 2.4 Clock supply to the MCU Display of Clock...
  • Page 45 M3062PT2-EPB User’s Manual 2. Setup (2) Replacing an Oscillator Circuit Board 1. Remove the four screws of both sides of this product and lift off the upper cover (see Figure 2.21). Figure 2.21 Removing the upper cover REJ10J0868-0200 Rev.2.00 January 16, 2006 Page 45 of 102...
  • Page 46 M3062PT2-EPB User’s Manual 2. Replace the oscillator circuit board (see Figure 2.22). Oscillator circuit board Figure 2.22 Replacing the oscillator circuit board 3. Reinstall the upper cover and secure the four screws of the PC7501. Note on Replacing the Oscillator Circuit Board: Always shut OFF power when removing the upper cover or replacing oscillator circuit board.
  • Page 47 M3062PT2-EPB User’s Manual (3) Using the Internal Oscillator Circuit Bare Board To use the emulation probe 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 where the connector pins are located.
  • Page 48: Using The Oscillator Circuit On The User System

    M3062PT2-EPB User’s Manual 2.11.3 Using the Oscillator Circuit on the User System To operate this product with an external clock, construct the 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 be open.
  • Page 49: Usage (How To Use The Emulator Debugger)

    M3062PT2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) This chapter describes how to start up the emulator debugger from the High-performance Embedded Workshop. 3.1 Starting Up the Emulator Debugger When debugging the completed programs, switch the session. The session can be changed by the drop down list of the tool bar shown below.
  • Page 50: Usb Communication

    M3062PT2-EPB User’s Manual 2. Specifying the communication interface REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the communication interface (LPT communication) - For selecting the LPT communication, click the radio button “LPT” of the MCU tab. - For the Type area, specify the LPT interface communication mode to be used.
  • Page 51 M3062PT2-EPB User’s Manual 3. Executing the self-check 4. Using or not using the address match break function 5. Using or not using CPU rewrite mode REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Executing the self-check Enable this function when you want the emulator to be self- checked at startup.
  • Page 52 - 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 53 M3062PT2-EPB User’s Manual (4) Automatically executing a script command REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Automatically executing 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 54: Mcu Setting Dialog Box

    (2) An initial value of the internal reserved area expansion bit (PM13) for the M16C/30P Group: 0 When developing the program for the M16C/30P Group, be sure to set the initial value of the internal reserved area expansion bit (PM13) to “0” in the program.
  • Page 55 M3062PT2-EPB User’s Manual 2. Option 3. MCU Status Notes on Selecting a Processor Mode: The MCU status is shown in “MCU Status” of the EMEM dialog box. Check that it matches to the processor mode to be set. When setting memory expansion mode or microprocessor mode, pins RDY# and HOLD# of the user system should be "H".
  • Page 56 M3062PT2-EPB User’s Manual (2) MAP tab (3) Flash Clear tab REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying emulation allocation Sets the memory area assigned to the emulation memory by 4KB. Up to four areas can be set. An area set to [INTERNAL] will be allocated to the emulation memory by selecting the check box.
  • Page 57: Checking Connections Of The Emulator System

    M3062PT2-EPB User’s Manual 3.1.3 Checking Connections of the Emulator System REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Checking connections of the emulator system When the emulator debugger is connected correctly to the emulator after you’ve finished setting up the Init dialog box and the MCU Setting dialog box, you will see a message “Connected”...
  • Page 58: Editor (Source) Window

    M3062PT2-EPB User’s Manual 3.2 Editor (Source) Window (1) Program window (2) Showing the program REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Downloading the program Download the object program you want to debug. Select Download from “xxx.x30” of “Download module”.
  • Page 59 M3062PT2-EPB User’s Manual (3) Program execution REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) CPU reset Resets the target MCU. Runs the program beginning with the current PC position. Reset Go Runs the program after reset the target MCU. Step In Single-steps program...
  • Page 60 M3062PT2-EPB User’s Manual (4) Setting break points 1. Screen after software breakpoint setup REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Breakpoint setup screen There are three types of breakpoints as described below. - Address match breakpoint This breakpoint can be set only when you chose to use the address match break function on the MCU tab of the Init dialog box.
  • Page 61 M3062PT2-EPB User’s Manual (5) Executing up to the cursor position (Come command) 1. Specifying the Come command 2. After the Come command has finished REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Setup procedure for executing COME command (1) Click the line in the program display area at which you want the program to execute.
  • Page 62: Hardware Breakpoint Setting Window

    M3062PT2-EPB User’s Manual 3.3 Hardware Breakpoint Setting Window (1) Breakpoint setup dialog box 1. Opening the hardware breakpoint setup dialog box 2. Hardware Break Point Setting Window in initial state REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Hardware Break Point Clicking this button opens the hardware breakpoint setup dialog box.
  • Page 63 M3062PT2-EPB User’s Manual 3. Opening the break event setting dialog box (2) When FETCH is selected 1. Window for setting addresses REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the event type Click to select the event type you want to set. - FETCH Detects an instruction prefetch.
  • Page 64 M3062PT2-EPB User’s Manual (3) When DATA ACCESS is selected 1. Window for setting the address 2. Window for setting data REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Setting the address You can set eight conditions, e.g., a specified address, a specified address range, etc.
  • Page 65 M3062PT2-EPB User’s Manual 3. Example Data Settings Setting events for wordwise accesses to the even-addresses STE.W A0,20E8h(A0=5423h) High-order and low-order data effective Setting events for wordwise accesses to the odd-addresses STE.W A0,20E5h(A0=AB79h) Odd-address high-order data effective Even-address low-order data effective Setting events for wordwise accesses to the even-addresses STE.B R0L,[A1A0](R0L=E5h,A1=0000h,A0=20E2h) Low-order data effective...
  • Page 66 M3062PT2-EPB User’s Manual (4) Setting the combinatorial event condition 1. Window for setting the combinatorial event condition REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Setting the combinatorial event condition There are following four conditions that you can choose for the combinatorial events.
  • Page 67: Trace Window

    M3062PT2-EPB User’s Manual 3.4 Trace Window The trace window is used to show the results of real-time trace measurements. (1) Trace window 1. Trace window display REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Trace window The trace window is used to show the results of real-time trace measurements.
  • Page 68 M3062PT2-EPB User’s Manual 2. Trace window (Bus display) 3. Trace window (Disassemble display) 4. Trace window (Source display) REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Explanation of the trace window (bus display) The following explains the displayed contents, from left to right. - Address Shows the status of the address bus.
  • Page 69 M3062PT2-EPB User’s Manual (2) Trace point setup window 1 Trace point setup window 2. Setting the trace write condition 3. Realtime trace Write Condition dialog box REJ10J0868-0200 Rev.2.00 January 16, 2006 3. Usage (How to Use the Emulator Debugger) Trace Point Setting Window in initial state Clicking this toolbar button opens the trace point setting window.
  • Page 70: Ram Monitor Window

    M3062PT2-EPB User’s Manual 3.5 RAM Monitor Window This function makes it possible to make reference to the changes in memory contents without impairing the real-time performance for target program execution. The emulator PC7501 system is provided with the 4KB RAM monitor area. This RAM monitor area can be divided into the 16-block area in units of arbitrary continuous address or 256 bytes for mapping or layout.
  • Page 71: Hardware Specifications

    Power supply voltage Operating voltage/frequency REJ10J0868-0200 Rev.2.00 January 16, 2006 Description M16C/60 Series M16C/62P Group MCUs M16C/30 Series M16C/30P Group MCUs M30627FJPGP, M30627FHPGP ROM size : 512KB+4KB , RAM size : 31KB Single-chip mode Memory expansion mode (NORMAL, 4MB) Microprocessor mode (NORMAL, 4MB) 1.
  • Page 72: Access Timing

    M3062PT2-EPB User’s Manual 4.2 Access Timing Because this product emulates some ports, access timings are different from those of the actual MCUs. Chapters 4.2.1 and 4.2.2 describe the access timing using this product. 4.2.1 Operation Timing of Memory Expansion Mode and Microprocessor Mode (Vcc1=Vcc2=5V) (1) Separate Bus Timing Table 4.2 and Figure 4.1 show the bus timing in memory expansion mode and microprocessor mode.
  • Page 73 M3062PT2-EPB User’s Manual Read timing BCLK td(BCLK-CS) tcyc td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) td(BCLK-RD) Hi-Z Write timing BCLK td(BCLK-CS) tcyc td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) td(BCLK-WR) WR , WRL , WRH Hi-Z Figure 4.1 Memory expansion mode and microprocessor mode (3 wait, accessing external area) REJ10J0868-0200 Rev.2.00 January 16, 2006 tac2(RD-DB) td(BCLK-DB)
  • Page 74 M3062PT2-EPB User’s Manual (2) Multiplex Bus Timing Table 4.3 and Figure 4.2 show the bus timing in memory expansion mode and microprocessor mode (2-wait, accessing external area, using multiplex bus). Table 4.3 Memory expansion mode and microprocessor mode (2-wait, accessing external area, using multiplex bus) Symbol td(BCLK-AD) Address output delay time...
  • Page 75 M3062PT2-EPB User’s Manual Read timing tcyc BCLK td(BCLK-CS) td(AD-ALE) th(ALE-AD) /DBi td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) Write timing tcyc BCLK td(BCLK-CS) td(AD-ALE) th(ALE-AD) /DBi td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) WRL , W RH Figure 4.2 Memory expansion mode and microprocessor mode (2 wait, accessing external area, using multiplex bus) REJ10J0868-0200 Rev.2.00 January 16, 2006 tac3(RD-DB) Hi-Z...
  • Page 76 M3062PT2-EPB User’s Manual (3) Timing Requirements Tables 4.4 and Figure 4.3 list the timing requirements in memory expansion mode and microprocessor mode.. Table 4.4 Timing requirements Symbol tsu(DB-RD) Data input setup time tsu(RDY-BCLK) RDY# input setup time tsu(HOLD-BCLK) HOLD# input setup time th(RD-DB) Data input hold time th(BCLK-RDY)
  • Page 77: Operation Timing Of Memory Expansion Mode And Microprocessor Mode (Vcc1=Vcc2=3V)

    M3062PT2-EPB User’s Manual 4.2.2 Operation Timing of Memory Expansion Mode and Microprocessor Mode (Vcc1=Vcc2=3V) (1) Separate Bus Timing Table 4.5 and Figure 4.4 show the bus timing in memory expansion mode and microprocessor mode (3 wait, accessing external area). Table 4.5 Memory expansion mode and microprocessor mode (3 wait, accessing external area) Symbol td(BCLK-AD) Address output delay time...
  • Page 78 M3062PT2-EPB User’s Manual Read timing BCLK td(BCLK-CS) tcyc td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) td(BCLK-RD) Hi-Z Write timing BCLK td(BCLK-CS) tcyc td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) td(BCLK-WR) WRL ,WRH Hi-Z Figure 4.4 Memory expansion mode and microprocessor mode (3 wait, accessing external area) REJ10J0868-0200 Rev.2.00 January 16, 2006 tac2(RD-DB) td(BCLK-DB) td(DB-WR)
  • Page 79 M3062PT2-EPB User’s Manual (2) Multiplex Bus Timing Table 4.6 and Figure 4.5 show the bus timing in memory expansion mode and microprocessor mode (2 wait, accessing external area and using multiplex bus). Table 4.6 Memory expansion mode and microprocessor mode (2 wait, accessing external area and using multiplex bus) Symbol td(BCLK-AD) Address output delay time...
  • Page 80 M3062PT2-EPB User’s Manual Read timing tcyc BCLK td(BCLK-CS) td(AD-ALE) th(ALE-AD) /DBi td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) Write timing tcyc BCLK td(BCLK-CS) td(AD-ALE) th(ALE-AD) /DBi td(BCLK-AD) td(BCLK-ALE) th(BCLK-ALE) WRL,WRH Figure 4.5 Memory expansion mode and microprocessor mode (2 wait, accessing external area and using multiplex bus) REJ10J0868-0200 Rev.2.00 January 16, 2006 tac3(RD-DB) Hi-Z...
  • Page 81 M3062PT2-EPB User’s Manual (3) Timing Requirements Table 4.7 and Figures 4.6 show timing requirements in memory expansion mode and microprocessor mode. Table 4.7 Timing requirements Symbol tsu(DB-RD) Data input setup time tsu(RDY-BCLK) RDY# input setup time tsu(HOLD-BCLK) HOLD# input setup time th(RD-DB) Data input hold time th(BCLK-RDY)
  • Page 82: Differences Between The Actual Mcu And Emulator

    M3062PT2-EPB User’s Manual 4.3 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. Note on Differences between the Actual MCU and Emulator: Operations of the emulator system differ from those of actual MCUs as listed below.
  • Page 83 M3062PT2-EPB User’s Manual Note on Voltage Detect Circuit: With this product, as the power voltage cannot be change after powering on the user system, the voltage detect circuit (voltage down detect interrupt, voltage down detect reset, etc.) cannot be used with this product. Notes on Reset Vector Area: Memory in the PC7501 is always selected as a reset vector area (FFFFCh--FFFFFh) in order to operate the evaluation MCU in the emulator-dedicated mode.
  • Page 84 (2) An initial value of the internal reserved area expansion bit (PM13) for the M16C/30P Group: 0 When developing the program for the M16C/30P Group, be sure to set the initial value of the internal reserved area expansion bit (PM13) to “0” in the program.
  • Page 85: Connection Diagrams

    M3062PT2-EPB User’s Manual 4.4 Connection Diagrams Figure 4.7 shows a connection diagram of the M3062PT2-EPB. This connection diagram mainly show the circuit to be connected to the user system. The circuits not connected to the user system such as the emulator’s control system are omitted. Tables 4.8 and 4.9 show IC electric characteristics of this product for reference purpose.
  • Page 86 M3062PT2-EPB User’s Manual Table 4.8 Electrical characteristics of the 74HC4066 Symbol Item ON resistor ΔR ON resistor difference Leak current (Off) Leak current (On, output: open) Table 4.9 Electrical characteristics of port emulation FPGA Symbol Item "H" level input voltage "L"...
  • Page 87: External Dimensions

    M3062PT2-EPB User’s Manual 4.5 External Dimensions 4.5.1 External Dimensions of the Emulation Probe Figure 4.8 shows external dimensions of the M3062PT2-EPB. 60.0 15.0 15.0 Figure 4.8 External dimensions of the emulation probe REJ10J0868-0200 Rev.2.00 January 16, 2006 100.0 16.3 10.8 55.0 15.0 4.
  • Page 88: External Dimensions Of The M30800T-Ptc

    M3062PT2-EPB User’s Manual 4.5.2 External Dimensions of the M30800T-PTC Figure 4.9 shows external dimensions of the converter board M30800T-PTC for a 100-pin LCC (included with the M3062PT2- EPB). 40.0 External dimension when connecting the 100-pin LCC socket Figure 4.9 External dimensions of the M30800T-PTC REJ10J0868-0200 Rev.2.00 January 16, 2006 55.0 M30800T-PTC...
  • Page 89: Notes On Using This Product

    M3062PT2-EPB User’s Manual 4.6 Notes on Using This Product Notes on using this product are listed below. When debugging the MCU using he emulator, be careful about the following precautions. Note on the Version of the Emulator Debugger: Be sure to use this product with one of the following emulator debuggers. 1.
  • Page 90 M3062PT2-EPB User’s Manual Note on Clock Supply to the MCU: A clock supplied to the evaluation MCU is selected by the Emulator tab in the Init dialog box of the emulator debugger. (1) When "Internal" is selected: A clock generated by the oscillator circuit board in the PC7501 is supplied. It is continually supplied regardless of the status of the user system clock and that of the user program execution.
  • Page 91 M3062PT2-EPB User’s Manual Note on Access Prohibited Area: You cannot use internally reserved areas. Write signals to the areas will be ignored, and values read will be undefined. Note on Breaks: The area displaying break points in the program window of the emulator debugger shows the following breaks. (1) Address-match break This is a debugging function which breaks a program, using the address-match interrupt function of the MCU, immediately before the system executes an instruction at a specified address.
  • Page 92 M3062PT2-EPB User’s Manual Notes on Internal Flash ROM of the MCU: In single-chip mode and memory expansion modes, this product downloads a user program to the flash ROM of an MCU. By checking "Debug Option" in the MCU tab of the MCU setting dialog box of the emulator debugger, you can disable the operation of the internal flash ROM of the MCU to use the emulation memory of the PC7501.
  • Page 93 M3062PT2-EPB User’s Manual Notes on Debugging in CPU Rewrite Mode: When you debug an M16C/60 Series MCUs in CPU rewrite mode, do not change the block 0 area (FF000h-- FFFFFh) of the flash memory. Otherwise, the emulator will be uncontrollable. If you check "Debug the program using CPU Rewrite Mode"...
  • 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

    M3062PT2-EPB User’s Manual 5.2 When the Emulator Debugger Does Not Start Up Properly (1) When the LEDs of the PC7501 Do Not Display Normally Table 5.1 Errors LEDs show and their checkpoints Error LEDs do not light up. All LEDs remain lit. Target Status POWER LED does not light up.
  • Page 96 M3062PT2-EPB User’s Manual (2) MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup Table 5.2 Checkpoints of errors at debugger startup Error Communication error occurred. Data was not sent to the target. User system cannot be properly built. Emulator’s version is not the same version as the firmware in the target.
  • Page 97 M3062PT2-EPB User’s Manual (3) Errors Occur at Emulator Debugger Startup Table 5.4 Checkpoints of errors at debugger startup Error Target MCU is uncontrollable. REJ10J0868-0200 Rev.2.00 January 16, 2006 Checkpoint (1) Check that the NQPACK etc. mounted on the user system is soldered properly.
  • Page 98: How To Request For Support

    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: (1) Operating environment...
  • Page 99: Maintenance And Guarantee

    M3062PT2-EPB User’s Manual 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

    M3062PT2-EPB User’s Manual (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 M3062PT2-EPB Publication Date: Jan. 16, 2006 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. Rev.2.00...
  • Page 102 M3062PT2-EPB User’s Manual...

This manual is also suitable for:

M3062pt2-epb

Table of Contents