Renesas Single-Chip Microcomputer M306NKT3 User Manual
Renesas Single-Chip Microcomputer M306NKT3 User Manual

Renesas Single-Chip Microcomputer M306NKT3 User Manual

Emulation pod for m16c/6n group m16c/6n4, 6n5, 6nk, 6nl, 6nm and 6nn
Table of Contents

Advertisement

Quick Links

To our customers,
st
On April 1
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
Old Company Name in Catalogs and Other Documents
Renesas Electronics website:
http://www.renesas.com
st
April 1
, 2010
Renesas Electronics Corporation

Advertisement

Table of Contents
loading

Summary of Contents for Renesas Single-Chip Microcomputer M306NKT3

  • Page 1 On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
  • Page 2 Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific”...
  • Page 3 M306NKT3-RPD-E User’s Manual Emulation Pod for M16C/6N Group M16C/6N4, 6N5, 6NK, 6NL, 6NM and 6NN Rev.4.00 2006.09...
  • Page 4 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 5: 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 6: 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 7 M306NKT3-RPD-E 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 8: Precautions For Safety

    M306NKT3-RPD-E 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 9 M306NKT3-RPD-E 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 10 M306NKT3-RPD-E User’s Manual Cautions to Be Taken for Turning On the Power: Turn ON the power of the emulator and user system as simultaneously as possible. Turn 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 11: Table Of Contents

    M306NKT3-RPD-E User’s Manual Contents Preface... 3 Related manuals ... 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 ...
  • Page 12 M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) ... 50 3.1. Making an MCU File ... 50 3.2 Setting the Work Area... 51 3.3 Starting Up the Emulator Debugger... 52 3.3.1 Init Dialog Box... 52 3.3.2 Checking Connections of the Emulator System ... 58 3.4 Downloading Program ...
  • Page 13: 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. For user registration regist_tool@renesas.com REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 Page 11 of 104...
  • Page 14: Terminology

    Renesas integrated development environment High-performance Embedded Workshop This tool provides powerful support for the development of embedded applications for Renesas microcomputers. It has an emulator debugger function allowing for the emulator PC4701 and emulation pod to be controlled from the host machine via an interface.
  • Page 15: Outline

    M306NKT3-RPD-E User’s Manual 1. Outline This chapter describes the package components, the system configuration and the preparation for using this product for the first time. 1.1 Package Components The M306NKT3-RPD-E package consists of the following items. When unpacking it, check to see if your M306NKT3-RPD-E contains all of these items.
  • Page 16: Other Tool Products Required For Development

    M306NKT3-RPD-E User’s Manual 1.2 Other Tool Products Required for Development To bring forward programs development on the M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN, the products listed below are necessary in addition to those contained package above. Get them separately.
  • Page 17: System Configuration

    M306NKT3-RPD-E User’s Manual 1.3 System Configuration 1.3.1 System Configuration Figure 1.1 shows a configuration of the PC4701 system. (6 ) Host machine Host machine Figure 1.1 System configuration (1) Emulation pod M306NKT3-RPD-E (this product) Emulation pod for the M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN. This emulation pod contains an evaluation MCU.
  • Page 18: Names And Functions Of The Pc4701 Front Panel Leds

    M306NKT3-RPD-E User’s Manual 1.3.2 Names and Functions of the PC4701 Front Panel LEDs Figure 1.2 shows the names of the LEDs on the front panel of the emulator. System status LEDs Figure 1.2 Names of the LEDs on the front panel of the PC4701 (1) System Status LEDs The system status LEDs indicate the emulator PC4701's power supply, firmware operating status, etc.
  • Page 19 M306NKT3-RPD-E User’s Manual (2) Target Status LEDs The target status LEDs indicate the target MCU's operating status and target board's power supply. Table 1.4 lists the definition of each target status LED. Table 1.4 Definitions of the target status LEDs Name Status Power is supplied to the user system.
  • Page 20: Specifications

    M306NKT3-RPD-E User’s Manual 1.4 Specifications Tables 1.5 and 1.6 list the specifications of the M306NKT3-RPD-E. Table 1.5 M306NKT3-RPD-E specifications (1/2) Item Applicable MCU Usable MCU mode Maximum operating frequency Applicable power supply Emulation Memory Clock supply Basic debugging functions Real-time trace function Real-time RAM monitor function Hardware break function Execution time measurement function...
  • Page 21: Operating Environment

    M306NKT3-RPD-E User’s Manual Table 1.6 M306NKT3-RPD-E specifications (2/2) Item Power supply to emulator Power supply to emulation pod Overseas standards Connecting the user system see “2.8 Connecting the User System” (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 22: Setup

    M306NKT3-RPD-E 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 23: Installing The Emulator Debugger (M16C Pc4701 Emulator Debugger)

    2.2.1 Installing the Emulator Debugger (1) Downloading the M16C PC4701 Emulator Debugger (as occasion demands) Download the latest M16C PC4701 Emulator Debugger from the URL below (free of charge). http://download.renesas.com/eng/mpumcu/upgrades/in_circuit_emulators/m16c/index.html (2) Launching the installer Start the “setup.exe” program. (3) Entering the user information In the “user information”...
  • Page 24: Connecting The Host Machine

    M306NKT3-RPD-E User’s Manual 2.3 Connecting the Host Machine When connecting the emulator PC4701 to a host machine, interface varies depending on the PC4701 used. Figure 2.1 shows the outline to connect each interface cable. For details on interface, refer to each PC4701 user’s manual used. Table 2.1 Operating environment of the host machine PC4701 Interface...
  • Page 25: Connecting The Pc4701

    M306NKT3-RPD-E User’s Manual 2.4 Connecting the PC4701 To connect the emulation pod to the PC4701, use the FLX120-RPD 120-pin flexible cable included with this product package. Connect the PC4701 side connector of the FLX120-RPD to the cable connector of the PC4701, then secure with screws the FLX120-RPD.
  • Page 26: Connecting The Flx120-Rpd To The Emulation Pod

    M306NKT3-RPD-E User’s Manual 2.4.2 Connecting the FLX120-RPD to the Emulation Pod Figure 2.3 shows how to connect the FLX120-RPD and the emulation pod. Emulation pod Figure 2.3 Connecting the FLX120-RPD to the emulation pod Note on Connecting the Cable: Always shut OFF power before connecting the emulation pod and the FLX120-RPD. Otherwise, the internal circuits may be damaged.
  • Page 27: Turning On The Power

    M306NKT3-RPD-E User’s Manual 2.5 Turning ON the Power 2.5.1 Checking the Connections of the Emulator System Before turning the power ON, check the connection of the interface cable with host machine, PC4701, emulation pod, and user system. 2.5.2 Turning ON/OFF the Power Turn ON the power of the emulator and user system as simultaneously as possible.
  • Page 28: Led Display When The Emulator Starts Up Normally

    M306NKT3-RPD-E User’s Manual 2.5.3 LED Display When the Emulator Starts Up Normally Figure 2.4 shows front panel LED lighting status when the emulator started up properly. Check it when starting up the emulator system. PERFORMANCE LED display when the emulator starts up normally Figure 2.4 LED display when the power turned on Note on the Target Status POWER LED: If the MCU has two or more Vcc terminals, the LED does not light unless power is supplied to all the...
  • Page 29: Downloading Firmware

    M306NKT3-RPD-E User’s Manual 2.6 Downloading Firmware 2.6.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. (1) When you use this product for the first time (2) When the firmware has been upgraded (3) When the emulator debugger has been upgraded...
  • Page 30: Self-Check

    M306NKT3-RPD-E User’s Manual 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.6. (1) If the user system is connected, disconnect it. (2) Set the switches in the emulation pod to the factory settings as shown in Figure 2.7.
  • Page 31: If An Error Is Detected In The Self-Check

    M306NKT3-RPD-E User’s Manual (factory-settings) (factory-settings) Figure 2.7 Switch settings for the self-check (factory-settings) 2.7.2 If an Error is Detected in the Self-check If the self-check does not result normally, check the following. (1) Whether the emulation pod and PC4701 are connected properly (2) Whether the proper firmware has been downloaded (3) Whether the switch settings of this product are the factory-settings Notes on Self-check:...
  • Page 32: Connecting The User System

    M306NKT3-RPD-E User’s Manual 2.8 Connecting the User System Connect the emulation pod to the user system for M16C/6N4 or M16C/6N5. and for M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN as shown in Figures 2.8 and 2.9, respectively. 0.65mm pitch M3T-FLX100-T (not included ) M3T-F160-100NRB LCCソケット...
  • Page 33 M306NKT3-RPD-E User’s Manual M3T-F160-100NSD 100-pin LQFP (not included) Figure 2.9 Connecting the user system (for M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN) Note on Connecting the User System: Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulation pod.
  • Page 34: Connecting To A 100-Pin Lcc Socket

    M306NKT3-RPD-E User’s Manual 2.8.1 Connecting to a 100-pin LCC socket Figure 2.10 shows how to connect a 100-pin LCC socket (IC61-1004-051 of Yamaichi Electronics Co., Ltd.) on the user system to the M30800T-PTC (included). (1) Attach the CN2 side of the M30800T-PTC to the CN2 side of the package converter board connected to the emulation pod probe.
  • Page 35: Connecting To A 100-Pin 0.65Mm Pitch Foot Pattern (Part 1)

    M306NKT3-RPD-E User’s Manual 2.8.2 Connecting to a 100-pin 0.65mm pitch Foot Pattern (Part 1) Figure 2.11 shows how to connect a 100-pin 0.65mm pitch foot pattern on the user system to the M3T-F160-100NRB (not included), and here following is its procedure. For details on the M3T-F160-100NRB (not included), refer to its user's manual.
  • Page 36: Connecting To A 100-Pin 0.65Mm Pitch Foot Pattern (Part 2)

    M306NKT3-RPD-E User’s Manual 2.8.3 Connecting to a 100-pin 0.65mm pitch Foot Pattern (Part 2) Figure 2.11 shows how to connect a 100-pin 0.65mm pitch foot pattern on the user system to the M3T-DIRECT100S (not included), and here following is its procedure. For details on the M3T-100LCC-DMS (not included) and M3T- DIRECT100S (not included), refer to each user's manual.
  • Page 37: Connecting To A 100-Pin 0.65Mm Pitch Foot Pattern (Part 3)

    M306NKT3-RPD-E User’s Manual 2.8.4 Connecting to a 100-pin 0.65mm pitch Foot Pattern (Part 3) Figure 2.13 shows how to connect a 100-pin 0.65mm pitch foot pattern on the user system to the M3T-DUMMY100S (not included), and here following is its procedure. For details on the M3T-100LCC-DMS (not included) and M3T-DUMMY100S (not included), refer to each user's manual.
  • Page 38: Connecting To A 100-Pin 0.5Mm Pitch Foot Pattern (Part 1)

    M306NKT3-RPD-E User’s Manual 2.8.5 Connecting to a 100-pin 0.5mm pitch Foot Pattern (Part 1) Figure 2.14 shows how to connect a 100-pin 0.5mm pitch foot pattern on the user system to the M3T-F160-100NSD (not included), and here following is its procedure. For details on the M3T-F160-100NSD (not included), refer to its user's manual.
  • Page 39: Connecting To A 100-Pin 0.5Mm Pitch Foot Pattern (Part 2)

    M306NKT3-RPD-E User’s Manual 2.8.6 Connecting to a 100-pin 0.5mm pitch Foot Pattern (Part 2) Figure 2.15 shows how to connect a 100-pin 0.5mm pitch foot pattern on the user system to the M3T-100LCC-QSD (not included), and here following is its procedure. For details on the M3T-100LCC-QSD (not included), refer to its user's manual.
  • Page 40: Connecting To A 128-Pin 0.5Mm Pitch Foot Pattern

    M306NKT3-RPD-E User’s Manual 2.8.7 Connecting to a 128-pin 0.5mm pitch Foot Pattern Figure 2.16 shows how to connect a 128-pin 0.5mm pitch foot pattern on the user system to the M3T-F160-128NRD (not included), and here following is its procedure. 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: Changing Settings

    M306NKT3-RPD-E User’s Manual 2.9 Changing Settings This chapter describes how to set the inside of the emulator. 2.9.1 Removing/Attaching the Upper Cover Removing the upper cover To open the upper cover, remove the four screws of both sides of the M306NKT3-RPD-E and lift off the upper cover (see Figure 2.17).
  • Page 42: Each Setting

    M306NKT3-RPD-E User’s Manual 2.9.2 Each Setting Figure 2.18 shows the positions of each part of the M306NKT3-RPD-E. (1) Position of oscillator circuit board (2) Position of switches (3) Position of socket for mounting network resister for pullup (4) Position of bypass capacitor for A/D converter (4) Bypass capacitor for A/D converter Common board (M30620T3-RPDC)
  • Page 43: Selecting Clock Supply

    M306NKT3-RPD-E User’s Manual 2.9.3 Selecting Clock Supply (1) Clock Supply to the MCU 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.2 lists the factory-settings of each clock supply when you install the emulator debugger. Table 2.2 Clock Supply to the MCU Clock Display of emulator debugger...
  • Page 44 M306NKT3-RPD-E User’s Manual (3) Replacing Oscillator Circuit Boards Figure 2.19 shows how to replace the oscillator circuit boards. For the position of the oscillator circuit board, see Figure 2.18. Figure 2.19 Replacing oscillator circuit boards Note on Replacing the Oscillator Circuit Board: Always shut OFF power when replacing oscillator circuit board.
  • Page 45 M306NKT3-RPD-E User’s Manual (4) Using the Internal Oscillator Circuit of the Emulation Pod To use the emulation pod at a desired frequency, build the desired oscillator circuit on the included OSC-2 oscillator circuit board (bare board). Figure 2.20 shows an external view of the OSC-2 oscillator circuit board (bare board) and where connector pins are located.
  • Page 46 M306NKT3-RPD-E User’s Manual 2. Setup (5) 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.22 in the user system and input the oscillator output at 50% duty (within the operating range of the evaluation MCU) into pin X .
  • Page 47: Switch Settings

    M306NKT3-RPD-E User’s Manual 2.9.4 Switch Settings Here follows explanations of the switches of the emulation pod. Set the switches according to the user system. Tables 2.3 and 2.4 list how to set toggle switches SW1 to SW5 of the M30620T3-PRT board (MCU-dependent board 1). Table 2.5 lists how to set jumper switches JP1 and JP2.
  • Page 48 M306NKT3-RPD-E User’s Manual Table 2.4 Switch settings of the M306NKT3-RPD-E (2) Signal Switch Xout P86/Xcout P87/Xcin Note on Switch Settings: Always shut OFF power before changing switch setting. Note on BYTE and CNVss Switch Settings: Switch settings of the BYTE and CNVss are for debugging without the user system connected. REJ10J0326-0400 Rev.4.00 Sep.
  • Page 49: Jumper Switches Jp1 And Jp2 On He M30620T3-Prt (Mcu-Dependent Board 1)

    M306NKT3-RPD-E User’s Manual 2.9.5 Jumper Switches JP1 and JP2 on he M30620T3-PRT (MCU-dependent board 1) Table 2.5 Switch settings of the M306NKT3-RPD-E (3) Signal Switch A18_SEL VDDIO Note on Switch Settings: Always shut OFF power before changing switch setting. REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 Setting Always use this setting.
  • Page 50: Installing And Removing Network Resistors For Pullup

    M306NKT3-RPD-E User’s Manual 2.9.6 Installing and Removing Network Resistors for Pullup In this product, you cannot control pullup for ports P0 to P5 by pullup control registers (pullup control register read/write are possible). A socket for installing the network resistor for pullup is mounted in this product. Mount the 51kΩ network resistor supplied with this product to the port for which pullup control is required.
  • Page 51: Bypass Capacitors For A/D Converter

    M306NKT3-RPD-E User’s Manual 2.9.7 Bypass Capacitors for A/D Converter The M306NKT3-RPD-E has the M3062PT3-PRTM (MCU-dependent board 2) board which has a foot pattern for installing bypass capacitors for A/D converter near the MCU and premounted 0.1μF capacitors. Mount suitable bypass capacitors as occasion demands.
  • Page 52: Usage (How To Use The Emulator Debugger)

    "mcufiles" folder in the directory where the emulator debugger is installed. The emulator debugger has been installed in the following directory by default. - When using the M16C PC4701 emulator debugger on the High-performance Embedded Workshop C:\Program Files\Renesas\Hew\Tools\Renesas\DebugComp\Platform\PDTarget\PD30\McuFiles - When using the M3T-PD30 C:\mtool\PD30\McuFiles The MCU file contains information such as, SFR area, internal RAM area, internal ROM area, firmware file name.
  • Page 53: Setting The Work Area

    M306NKT3-RPD-E User’s Manual 3.2 Setting the Work Area With this product, the emulator uses 54 bytes as a work area in emulation memory. Therefore, according to the memory mapping of the MCU you use, specify the work area addresses. In single-chip mode, set the work area address at 10000h. In memory expansion or microprocessor mode, the areas listed below cannot be used as a work area, specify a work area other than the areas listed below.
  • Page 54: Starting Up The Emulator Debugger

    M306NKT3-RPD-E User’s Manual 3.3 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. You will have as many sessions created as the number of targets you selected when creating a project, so select the session that corresponds to the target to be connected from the drop-down list.
  • Page 55 M306NKT3-RPD-E User’s Manual 2) Specifying the communication interface Cancel Help Cancel Help Cancel Help REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the communication interface (Parallel communication) - In case where the parallel communication is set up, click the radio button “Parallel”...
  • Page 56 M306NKT3-RPD-E User’s Manual Cancel Help Cancel Help 3) Executing the self-check Cancel Help REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Specifying communication communication) - For selecting the LPT communication, click the radio button “LPT” of the MCU tab.
  • Page 57 M306NKT3-RPD-E User’s Manual 4) Specifying the clock frequency Cancel Help (2) Debugging Information tab Cancel Help REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the clock frequency Specify the target MCU operation clock and clock dividing ratio. - Specify the operation clock and clock dividing ratio.
  • Page 58 M306NKT3-RPD-E User’s Manual (3) Work area tab 1) Specifying the firmware (4) Memory space expansion tab Cancel Help (5) Clock tab Cancel Help REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the firmware file For the radio button of the firmware group box, be sure to click “Default”.
  • Page 59 M306NKT3-RPD-E User’s Manual (6) Script tab Cancel When the tab settings (1) to (6) above are completed, click OK button. REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Automatically executing a script command To automatically execute a script command when starting up the debugger, click the “Refer...”...
  • Page 60: Checking Connections Of The Emulator System

    M306NKT3-RPD-E User’s Manual 3.3.2 Checking Connections of the Emulator System Check to see that the emulator debugger has been connected correctly to the emulator. REJ10J0326-0400 Rev.4.00 Sep. 01, 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 have finished setting up the Init dialog box and the MCU Setting dialog box, you will see a message “Connected”...
  • Page 61: Downloading Program

    M306NKT3-RPD-E User’s Manual 3.4 Downloading Program Download the user program to be debugged. 1) Downloading from the work space window 2) Showing the source program REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Downloading the program Download the object program you want to debug.
  • Page 62: Program Execution

    M306NKT3-RPD-E User’s Manual 3.5 Program execution (1) Program execution REJ10J0326-0400 Rev.4.00 Sep. 01, 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 resetting the target MCU. Step In Single-steps the program executing each statement (including those in functions).
  • Page 63 M306NKT3-RPD-E User’s Manual (2) Software break 1) Setting the software break point 2) Execution completed with software break REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Execution setup procedure with software break: By double-clicking the break point setting line on the software break point setting column in the editor (source) window, the break point can be set up and released.
  • Page 64 M306NKT3-RPD-E User’s Manual (3) Executing up to the cursor position (Come command) 1) Specifying the Come command 2) After the Come command has finished REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Setup procedure for executing COME command (1) Click the line in the editor (source) window at which you want the program to execute.
  • Page 65: Hardware Break

    M306NKT3-RPD-E User’s Manual 3.6 Hardware Break Hardware break is set by event condition such as FETCH or DATA ACCESS, etc. The program stops after executing the instruction at the set breakpoint (after several cycles). (1) Break event setup dialog box 1) Opening the hardware break point setup dialog box 2) H/W Break Points Setting Window 3) Break event setting dialog box...
  • Page 66 M306NKT3-RPD-E User’s Manual (2) When FETCH is selected 1) Window for setting addresses REJ10J0326-0400 Rev.4.00 Sep. 01, 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 67 M306NKT3-RPD-E User’s Manual (3) When DATA ACCESS is selected 1) Window for setting the address 2) Window for setting data REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Setting the address Sets the address by “Address” tab. You can set eight conditions, e.g., a specified address, a specified address range, etc.
  • Page 68 M306NKT3-RPD-E 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 byte accesses to the even-addresses STE.B R0L,[A1A0](R0L=E5h,A1=0000h,A0=20E2h) Low-order data effective...
  • Page 69: Trace Window

    M306NKT3-RPD-E User’s Manual 3.7 Trace Window The trace window is used to show the results of real-time trace measurements. (1) Trace window 1) Opening the trace window 2) Trace window REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Trace window Clicking this button opens the trace window.
  • Page 70 M306NKT3-RPD-E User’s Manual 3) Trace Window (Bus mode display) 4) Trace Window (Disassemble mode display) 5) Trace Window (Source mode display) 6) Trace Window (Data access mode display) REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Explanation of the trace window (bus display) Shows the status of the address bus.
  • Page 71 M306NKT3-RPD-E User’s Manual (2) Suspending and resuming trace measurement 1) Suspending trace measurement 2) Resuming trace measurement REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Suspend Click this toolbar button to suspend the trace measurement in progress. Re-Start Click this toolbar button to resume the trace measurement in progress.
  • Page 72 M306NKT3-RPD-E User’s Manual (3) Trace points setup window 1) Trace points setup window 2) Setting the trace write condition 3) Realtime trace Write Condition dialog box REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 3. Usage (How to Use the Emulator Debugger) Trace Points Setting Window in initial state Clicking this toolbar button opens the trace point setting window.
  • Page 73: Ram Monitor Window

    M306NKT3-RPD-E User’s Manual 3.8 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 PC4701 system is provided with the 1K-byte RAM monitoring area, which can be arranged in the 1K-byte space from any continuous address.
  • Page 74: Hardware Specifications

    M306NKT3-RPD-E User’s Manual 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 M306NKT3-RPD-E Item Applicable MCU Applicable MCU mode...
  • Page 75: Access Timing

    M306NKT3-RPD-E 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 (Vcc=5V) and 4.2.2 (Vcc=3V) describe the access timing using this product. 4.2.1 Operation Timing of Memory Expansion Mode and Microprocessor Mode (Vcc=5V) (1) Separate Bus Timing Table 4.2 and Figure 4.1 show the bus timing in memory expansion mode and microprocessor mode (3 wait, accessing external area).
  • Page 76 M306NKT3-RPD-E 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.1 Memory expansion mode and microprocessor mode (3 wait, accessing external area) REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 tac2(RD-DB) td(BCLK-DB) td(DB-WR)
  • Page 77 M306NKT3-RPD-E 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 78 M306NKT3-RPD-E 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.2 Memory expansion mode and microprocessor mode (2 wait, accessing external area, using multiplex bus) REJ10J0326-0400 Rev.4.00 Sep.
  • Page 79 M306NKT3-RPD-E User’s Manual (3) Timing Requirements Table 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 80: Operation Timing Of Memory Expansion Mode And Microprocessor Mode (Vcc=3V)

    M306NKT3-RPD-E User’s Manual 4.2.2 Operation Timing of Memory Expansion Mode and Microprocessor Mode (Vcc=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 81 M306NKT3-RPD-E 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) WRL, WRH Hi-Z Figure 4.4 Memory expansion mode and microprocessor mode (3 wait, accessing external area) REJ10J0326-0400 Rev.4.00 Sep. 01, 2006 tac2(RD-DB) td(BCLK-WR) td(BCLK-DB)
  • Page 82 M306NKT3-RPD-E 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 83 M306NKT3-RPD-E User’s Manual Read timing tcyc BCLK td(BCLK-CS) td(AD-ALE) th(ALE-AD) /DBi td(BCLK- 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) REJ10J0326-0400 Rev.4.00 Sep.
  • Page 84 M306NKT3-RPD-E 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 85: Differences Between The Actual Mcu And Emulator

    M306NKT3-RPD-E 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 86 M306NKT3-RPD-E User’s Manual Note on RESET# Input: A low input from the user system to pin RESET# is accepted only while a user program is being executed (only while the RUN status LED on the PC4701's front panel is lit). Note on NMI# Input: A low input from the user system to pin NMI# is accepted only while a user program is being executed (only while the RUN status LED on the PC4701's front panel is lit).
  • Page 87 M306NKT3-RPD-E User’s Manual Notes on Setting "1" to Protect Bit 2 (PRC2) in Division by 2 Mode: Under the following conditions, even if you enable the PRC2 bit, writing to the register protected by the PRC2 bit (PD7, PD9, S3C, S4C, S5C and S6C registers) cannot be done properly. (1) Between when stop mode is released and when a hardware reset is executed (2) Between when low power dissipation mode is enabled and when a hardware reset is executed Therefore, if the condition (1) or (2) applies, when you enable the PRC2 bit and write to the register protected...
  • Page 88: Connection Diagram

    M306NKT3-RPD-E User’s Manual 4.4 Connection Diagram Figure 4.7 shows a connection diagram of the M306NKT3-RPD-E. This connection diagram mainly shows the interface section. The circuits not connected to the user system such as the emulator's control system are omitted. The signals not shown in Figure 4.7 connect the evaluation MCU and the user system directly.
  • Page 89 M306NKT3-RPD-E User’s Manual Table 4.9 Electrical characteristics of the 74HC4066 Symbol Item ON resistor ΔR ON resistor difference Leak current (Off) Leak current (On, output: open) Table 4.10 Electrical characteristics of the 7WH125 Symbol Item High level input voltage Low level input voltage High level output voltage Low level output voltage Leak current (Tristate)
  • Page 90: External Dimensions

    M306NKT3-RPD-E User’s Manual 4. Hardware Specifications 4.5 External Dimensions 4.5.1 External Dimensions of the Emulation Pod Figure 4.8 shows external dimensions of the M306NKT3-RPD-E. 4 0 . 0 11.0 1 0 . 5 33.0 11.0 189.0 437.0 193 .0 140.0 52.0 Unit: mm Figure 4.8 External dimensions of the emulation pod...
  • Page 91: External Dimensions Of The M30800T-Ptc

    M306NKT3-RPD-E 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 M306NKT3-RPD-E). 40.0 [External dimension when connecting Pattern wiring *2 Figure 4.9 External dimensions of the M30800T-PTC REJ10J0326-0400 Rev.4.00 Sep.
  • Page 92: External Dimensions Of The Converter Board M3T-F160-100Nrb

    M306NKT3-RPD-E User’s Manual 4.5.3 External Dimensions of the Converter Board M3T-F160-100NRB Figure 4.10 shows external dimensions and a sample foot pattern of the converter board for a 100-pin 0.65mm pitch QFP M3T-F160-100NRB (not included). 55.0 ●1 M3T-F160-100NRB REV.A MADE IN JAPAN Figure 4.10 External dimensions and a sample foot pattern of the M3T-F160-100NRB 4.5.4 External Dimensions of the Converter Board M3T-F160-100NSD Figure 4.11 shows external dimensions and a sample foot pattern of the converter board for a 100-pin 0.5mm pitch LQFP...
  • Page 93: External Dimensions Of The Converter Board M3T-F160-128Nrd

    M306NKT3-RPD-E User’s Manual 4.5.5 External Dimensions of the Converter Board M3T-F160-128NRD Figure 4.12 shows external dimensions and a sample foot pattern of the converter board for a 128-pin 0.5mm pitch LQFP M3T-F160-128NRD (not included). 55.0 M3T-F160-128NRD REV.A MADE IN JAPAN Figure 4.12 External dimensions and a sample foot pattern of the M3T-F160-128NRD REJ10J0326-0400 Rev.4.00 Sep.
  • Page 94: Notes On Using This Product

    M306NKT3-RPD-E 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 95 M306NKT3-RPD-E User’s Manual Notes on Setting the Work Area When Starting Up the Emulator Debugger: With this product, the emulator uses 54 bytes as a work area in emulation memory. Therefore, according to the memory mapping of the MCU you use, specify the work area addresses. In single-chip mode, set the work area address at 10000h.
  • Page 96 M306NKT3-RPD-E User’s Manual Note on Stack Area: With this product, a maximum 7 bytes of the user stack is consumed. Therefore, ensure the +7 bytes maximum capacity used by the user program as the user stack area. If the user stack does not have enough area, do not use areas which cannot be used as stack (SFR area, RAM area which stores data, or ROM area) as a work area.
  • Page 97 M306NKT3-RPD-E User’s Manual Note on Breaks: The area displaying break points in the program window of the emulator debugger shows the following breaks. (1) Software break This is a debugging function which generates a BRK interruption by changing an instruction at a specified address to a BRK instruction (00h) to break a program immediately before the system executes an instruction at a specified address.
  • Page 98: Troubleshooting

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

    M306NKT3-RPD-E User’s Manual 5.2 When the Emulator Debugger Does Not Start Up Properly (1) When the LED Display of the PC4701 is Abnormal Table 5.1 LED's abnormal display and its checkpoints Error LEDs do not light up. All LEDs remain lit. The "POWER"...
  • Page 100 M306NKT3-RPD-E User’s Manual (2) Program Window is Not Displayed at Debugger Startup (User System Connected) Table 5.2 Checkpoints of errors when starting up the emulator debugger (user system connected) Error ERROR 16005: Can't connect with the target. ERROR 16211: The version of the emulator and the firmware on the target are not same.
  • Page 101 M306NKT3-RPD-E User’s Manual (3) Program Window is Not Displayed at Debugger Startup (User System Not Connected) Table 5.3 Checkpoints of errors when starting up the emulator debugger (user system not connected) Error ERROR 16005: Can't connect with the target. ERROR 16211: The version of the emulator and the firmware on the target are not same.
  • Page 102: 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 103: Maintenance And Guarantee

    M306NKT3-RPD-E 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 104: How To Make Request For Repair

    M306NKT3-RPD-E User’s Manual 6.5 How to Make Request for Repair If your product is found faulty, fill in the Repair Request Sheet included with this product, then send it along with this product for repair to your local distributor. Make sure that information in the Repair Request Sheet is written in as much detail as possible to facilitate repair.
  • Page 105 M306NKT3-RPD-E User’s Manual Publication Date: Sep. 01, 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.4.00...
  • Page 106 M306NKT3-RPD-E User’s Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10J0326-0400(T)

This manual is also suitable for:

M306nkt3-rpd-e

Table of Contents