Renesas M306K9T2-CPE User Manual
Renesas M306K9T2-CPE User Manual

Renesas M306K9T2-CPE User Manual

Compact emulator with real-time trace functions for m306k9
Table of Contents

Advertisement

Quick Links

M306K9T2-CPE
Compact Emulator with Real-time Trace Functions for M306K9
User's Manual
Rev. 1.00
May 1, 2003
REJ10J0042-0100Z

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Renesas M306K9T2-CPE

  • Page 1 M306K9T2-CPE Compact Emulator with Real-time Trace Functions for M306K9 User's Manual Rev. 1.00 May 1, 2003 REJ10J0042-0100Z...
  • Page 2 Notes regarding these materials • 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.
  • Page 3 The M306K9T2-CPE is a compact emulator with the real-time trace functions for the M16C/6K Group M306K9 of 16-bit microcomputers. This user's manual mainly describes specifications of the M306K9T2-CPE and how to set up and operate it. For details on emulator debugger M3T-PD30M, C compiler M3T-NC30WA (entry version) and integrated development environment TM, refer to each product's user's manual.
  • Page 4 • Emulator This means the M306K9T2-CPE (this product). • Emulator system This means an emulator system built around the M306K9T2-CPE emulator. The M306K9T2-CPE emulator system is configured with an emulator, host machine and emulator debugger. • Host machine This means a personal computer used to control the emulator.
  • Page 5: Table Of Contents

    Contents Chapter 1. Precautions for Safety ................... 7 1.1 Safety Symbols and Meanings ................8 Chapter 2. Usage ........................15 2.1 Name of Each Part ....................16 (1) System Configuration ................16 (2) Name of Each Part of the Emulator ............17 2.2 Starting Up the Emulator ..................
  • Page 6 Chapter 5. Troubleshooting ....................43 5.1 Troubleshooting Until the Emulator Starts Up ........... 44 (1) Troubleshooting When the Emulator Starts Up ........45 (2) Troubleshooting When Emulator Debugger PD30M Starts Up ....46 5.2 Troubleshooting When Using Emulator Debugger PD30M ....... 47 5.3 If Emulator Operation is Abnormal ..............
  • Page 7: Chapter 1. Precautions For Safety

    Chapter 1. Precautions for Safety This chapter describes precautions for using this product safely and properly. For precautions for the emulator debugger, refer to user's manual included with your product. 1.1 Safety Symbols and Meanings ..................... 8 Warning for Handling This Product ................9 WARNING Warning for Installation ....................
  • Page 8: Safety Symbols And Meanings

    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.
  • Page 9: Warning For Installation

    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.
  • Page 10: Important

    IMPORTANT Notes on Differences between the Actual MCU and Emulator: • Operations of the emulator differs from those of flash version MCUs as listed below. (1) Reset condition Set the time for starting up (0.2 to 0.8 Vcc) 1 µs or less. (2) Data values of ROM areas at power-on When power is turned on, the ROM areas of the emulator are defaulted to 04h.
  • Page 11: Note On Mcu Functions That Cannot Be Used With This Emulator

    IMPORTANT Note on MCU Functions That Cannot Be Used with This Emulator: • The following MCU features cannot be used with this emulator. (1) Debugging cannot be done with this emulator in neither memory expansion nor microproces- sor mode. M306K9 MCUs are specifically designed for use in single-chip mode. •...
  • Page 12: Note On Restrictions In Using The Emulator (1/2)

    IMPORTANT Note on Restrictions in Using the Emulator (1/2): • The following restrictions apply to this emulator. (1) Debug command execution when the BCLK is stopped When the BCLK is stopped, debug commands (break, dump, single-step, forced stop, etc.) cannot be executed. The BCLK can stop in the following cases. •...
  • Page 13: Note On Restrictions In Using The Emulator (2/2)

    IMPORTANT Note on Restrictions in Using the Emulator (2/2): • The following restrictions apply to this emulator. (11) DMA transfer With this product, the program is stopped with a loop program to a specific address. Therefore, if a DMA request is generated while the program is stopped, DMA transfer is executed. However, make note that DMA transfer while the program is stopped may not be performed correctly.
  • Page 14 MEMO ( 14 / 56 )
  • Page 15: Chapter 2. Usage

    Chapter 2. Usage This chapter describes how to operate this product. 2.1 Name of Each Part ........................16 2.2 Starting Up the Emulator ......................19 2.3 Emulator Initial Settings ......................20 2.4 Connecting the Emulator System ....................22 2.5 Connecting the Target System (As Occasion Demands) ............23 2.6 Turning On the Power ........................
  • Page 16: Name Of Each Part

    Host machine USB interface cable (not included) Figure 2.1 System configuration (1) Emulator M306K9T2-CPE (included) This is a compact emulator for the M16C/6K Group M306K9 of 16-bit microcomputers with the real-time trace functions (hereafter, emulator). (2) USB interface cable (included) This is an interface cable for the host machine and the emulator.
  • Page 17: Name Of Each Part Of The Emulator

    LED6: Program execution (RUN) COMPACT EMULATOR MADE Figure 2.2 Name of each part of the emulator (upper side of the M306K9T2-CPE) (1) System status LEDs The system status LEDs indicate the emulator main unit's power supply. Table 2.1 lists the definition of system status LED.
  • Page 18 (3) System reset switch By pressing the system reset switch, you can initialize the emulator system. Table 2.3 shows the functions of the system reset switch depending on the state of the emulator. Table 2.3 Functions of the system reset switch State of Emulator Function Initializes the emulator and waits for a command from the...
  • Page 19: Starting Up The Emulator

    2.2 Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2.3. For details, refer to each section hereafter. And, when the emulator does not start up normally, refer to "Chapter 5. Troubleshooting" (page 43). Set the switch according to the connection to the Set the MCU power supply source target system.
  • Page 20: Emulator Initial Settings

    2.3 Emulator Initial Settings Set the MCU power supply selection jumpers and the function selection switch of the emulator according to conditions of use. LED1 POWER SAFE LED2 JP1: MCU power supply source selection jumper (Factory-setting: INT) LED3 POWER CLOCK RESET LED6 COMPACT EMULATOR...
  • Page 21: Function Selection Switches

    (2) Function Selection Switches According to the usage, set these switches as described in Table 2.5 below. Table 2.5 Setting function selection switches Signal Switch Setting Description Connects pin P87/X of the MCU to the target system (uses pin P87/XCIN as P87). XCIN Factory-setting P87/XCIN...
  • Page 22: Connecting The Emulator System

    2.4 Connecting the Emulator System How to connect the emulator system is described hereafter. To emulator power supply To host machine Connect the power cable to connector J1. Connect the USB interface cable to connector J2. LED1 POWER SAFE LED2 LED3 POWER CLOCK...
  • Page 23: Connecting The Target System (As Occasion Demands)

    2.5 Connecting the Target System (As Occasion Demands) To connect the target system you need a pitch converter board (not included) shown in Figure 2.8. Be sure to align the position of No. 1 pin to connect it. M306K9T2-CPE connector (bottom) 144-pin 0.4-mm-pitch...
  • Page 24: Connecting To A 144-Pin 0.4-Mm-Pitch Foot Pattern

    (2) Attach the YQPACK144SE included with the M3T-FLX-144NSE to the NQPACK144SE. (3) Insert the YQ-GUIDE's included with this product to the YQPACK144SE. (4) Attach the M306K9T2-CPE to the M3T-FLX-144NSE. (5) Attach the M3T-FLX-144NSE to the YQPACK144SE. Figure 2.9 Connecting to a 144-pin 0.4-mm-pitch foot pattern...
  • Page 25: Turning On The Power

    2.6 Turning On the Power (1) Checking the Connection of the Emulator System Before turning the power ON, check the connection of the host machine and the emulator main unit. (2) Turning On the Power Power ON the target system and the emulator main unit as simultaneously as possible. CAUTION Notes on Power Supply: •...
  • Page 26: Led Display When The Emulator Starts Up Normally

    (3) 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. LED1 POWER System status LED SAFE LED2 LED3 POWER CLOCK Target status LED RESET LED6...
  • Page 27: Starting Up Emulator Debugger Pd30M

    To start up the emulator debugger, follow the steps below. Click the Start button of Windows. And select Program (P) -> [RENESAS-TOOLS] -> [PD30M V.2.00 Release 1] -> [PD30M]. 2.8 Setting the Operating Environment of Emulator Debugger PD30M After starting up PD30M, as the Init dialog box will open, set as shown in Figure 2.13. For details on the Init dialog box, refer to the user's manual of PD30M.
  • Page 28 MEMO ( 28 / 56 )
  • Page 29: Chapter 3. Changing The Settings

    Chapter 3. Changing the Settings This chapter describes how to change the setting of this product. 3.1 Using the Emulator without the Target System ................. 30 3.2 Using the Emulator with the Target System................30 3.3 Selecting a Clock Supplied to an MCU ..................31 3.4 Mounting A-D Conversion Bypass Capacitors ................
  • Page 30: Using The Emulator Without The Target System

    Chapter 3. Changing the Settings 3.1 Using the Emulator without the Target System How to use the emulator without the target system is shown below. (1) Set the "MCU power supply source selection jumper" to INT side (see page 20). The target MCU operates with 3.3 V of power supply voltage supplied from the emulator.
  • Page 31: Selecting A Clock Supplied To An Mcu

    3.3 Selecting a Clock Supplied to an MCU There are two ways to supply a clock to the MCU, using the oscillator circuit of the emulator or using the oscillator circuit on the target system. Table 3.1 lists the factory-settings of each clock supply. Table 3.1 Clock supply to the MCU Clock Description...
  • Page 32: Using The Oscillator Circuit On The Target System

    (2) Using the Oscillator Circuit on the Target System To operate the compact emulator with the oscillator circuit on the target system, construct the oscillator circuit as shown in Figure 3.1 in the target system and input the oscillator output at 50% duty (within the operating range of the evaluation MCU) into pin X .
  • Page 33: Changing The Internal Oscillator Circuit Of The Emulator

    (3) Changing the Internal Oscillator Circuit of the Emulator An oscillator circuit board for 16 MHz (OSC-3) is mounted on this product. To use this product at a frequency other than 16 MHz, build the desired oscillator circuit on the included OSC-2 oscillator circuit board (bare board) and replace the board installed in this product when shipped from the factory.
  • Page 34: Replacing Oscillator Circuit Boards

    (4) Replacing Oscillator Circuit Boards Figure 3.5 shows how to replace the oscillator circuit boards. L E D 1 POWER S A F E L E D 2 Oscillator circuit board L E D 3 POWER CLOCK RESET L E D 6 COMPACT EMULATOR MADE (1) Unscrew the screw securing the oscillator cir-...
  • Page 35: Mounting A-D Conversion Bypass Capacitors

    3.4 Mounting A-D Conversion Bypass Capacitors There is a foot pattern on the M306K9T-EPBM board for mounting bypass capacitors for the A-D conversion circuit near the MCU. Mount suitable bypass capacitors as occasion demands. Figure 3.6 shows where they are installed and the configuration of this product. M306K9T-EPBM REV.A XCIN...
  • Page 36 MEMO ( 36 / 56 )
  • Page 37: Chapter 4. Specifications

    Chapter 4. Specifications This chapter describes specifications of this product. 4.1 Specifications ..........................38 4.2 Memory Map ..........................39 4.3 Connection Diagram ........................40 4.4 Emulator External Dimensions....................41 ( 37 / 56 )
  • Page 38: Specifications

    Chapter 4. Specifications 4.1 Specifications Table 4.1 lists specifications of the M306K9T2-CPE. Table 4.1 Specifications of the M306K9T2-CPE Applicable MCUs M16C/6K Group M306K9 Usable mode Single-chip mode Evaluation MCU M30622SAFP, M306K9F0LFP Emulation memory For internal RAM area: 5 KB For internal ROM area: 128 KB...
  • Page 39: Memory Map

    4.2 Memory Map Figure 4.1 shows memory maps when using the emulator. For the memory map of the actual MCU, refer to the user's manual of your MCU. Make note of the fact that the memory map of the actual MCU differ from that of the emulator. Do not access to the area noted "Do Not Access"...
  • Page 40: Connection Diagram

    4.3 Connection Diagram Figure 4.2 shows the connection diagram of M306K9T2-CPE. This connection diagram mainly shows the interface section, and the circuits which are not connected to the target system such as the emulator's control system are omitted. 3.3V M306K9...
  • Page 41: Emulator External Dimensions

    4.4 Emulator External Dimensions Figure 4.3 shows external dimensions of the emulator. 85.0 10.0 LED1 POWER SAFE LED2 60.0 23.0 LED3 POWER CLOCK RESET 10.0 LED6 COMPACT EMULATOR MADE 41.0 22.0 16.5 [When used with M3T-FLX-144NSE] 16.0 23.0 16.0 Unit: mm 15.0 55.0 15.0...
  • Page 42 MEMO ( 42 / 56 )
  • Page 43: Chapter 5. Troubleshooting

    Chapter 5. Troubleshooting This chapter describes how to troubleshoot when this product does not work properly. 5.1 Troubleshooting Until the Emulator Starts Up ................44 5.2 Troubleshooting When Using Emulator Debugger PD30M ............47 5.3 If Emulator Operation is Abnormal .................... 48 5.4 How to Request for Support .......................
  • Page 44: Troubleshooting Until The Emulator Starts Up

    Chapter 5. Troubleshooting 5.1 Troubleshooting Until the Emulator Starts Up Figure 5.1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger starts up. Self-check sequence when the emulator starts up Troubleshooting until the emulator starts up The self-check starts automatically after powering on the emulator...
  • Page 45: Troubleshooting When The Emulator Starts Up

    (1) Troubleshooting When the Emulator Starts Up Tables 5.1 and 5.2 list how to remedy the troubles when the target status LEDs of the emulator shows abnormal after powering on the emulator. When an error is detected, shut off the emulator and the target system and follow the steps in Tables 5.1 and 5.2.
  • Page 46: Troubleshooting When Emulator Debugger Pd30M Starts Up

    Table 5.2 Error display and how to remedy it when starting up the emulator (2/2) LED display Connection to Problem & remedy : Blinking : OFF the target system POWER CLOCK RESET The emulator system does not work properly. - The emulator may be damaged. Contact your local distributor.
  • Page 47: Troubleshooting When Using Emulator Debugger Pd30M

    5.2 Troubleshooting When Using Emulator Debugger PD30M When PD30M has started up normally, however, errors occurred while using it, remedy the troubles referring Table 5.4. Table 5.4 Error message and how to remedy it when using PD30M Connection to Error message Remedy the target system - If the external clock supply is selected, check...
  • Page 48: If Emulator Operation Is Abnormal

    5.3 If Emulator Operation is Abnormal The self-check is a function to check the memory etc. mounted in the emulator. The self-check is executed when the emulator starts up, and detailed check is executed by following the procedure below. Set the switches as shown in Table 5.5 below to execute the self-check. Be sure to disconnect the target system.
  • Page 49: If An Error Is Detected In The Self-Check

    (2) If an Error is Detected in the Self-check Table 5.6 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 target system and follow the steps in the Table 5.6.
  • Page 50: How To Request For Support

    5.4 How to Request for Support After checking the items in "Chapter 5 Troubleshooting", 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 For prompt response, please specify the following information: (1) Operating environment •...
  • Page 51: Chapter 6. Maintenance And Guarantee

    Chapter 6. Maintenance and Guarantee This chapter describes how to maintenance, repair provisions and how to request for repair. 6.1 Maintenance ..........................52 6.2 Guarantee ............................ 52 6.3 Repair Provisions........................52 6.4 How to Request for Repair ......................53 ( 51 / 56 )
  • Page 52: Maintenance

    Chapter 6. Maintenance and Warranty 6.1 Maintenance If dust or dirt collects on any equipment of your emulation system, wipe it off with a dry soft cloth. Do not use thinner or other solvents because these chemicals can cause the equipment's surface coating to separate.
  • Page 53: How To Request For Repair

    Distributor After checking the contents of fault, the distributor should please send the faulty product along with the Repair Request Sheet to Renesas Solutions Corp. Renesas Solutions When the faulty product is repaired, it will be returned to the customer at the earliest convenience.
  • Page 54 MEMO ( 54 / 56 )
  • Page 55 M306K9T2-CPE User's Manual Rev. 1.00 May 1, 2003 REJ10J0042-0100Z COPYRIGHT ©2003 RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED...

Table of Contents