Renesas M16C/6N User Manual
Renesas M16C/6N User Manual

Renesas M16C/6N User Manual

Emulation probe for m16c/6n group m16c/6n4, 6n5, 6nk, 6nl, 6nm, 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 M16C/6N

  • 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 M306NKT-EPB User’s Manual Emulation Probe for M16C/6N Group M16C/6N4, 6N5, 6NK, 6NL, 6NM, 6NN Rev.2.00 2006.10...
  • Page 4 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 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

    Purpose of use of the emulator: This emulator is a device to support the development of a system that uses the M16C Family M16C/60 Series M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN of Renesas 16-bit single-chip MCUs. It provides support for system development in both software and hardware.
  • Page 7 M306NKT-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 8: Precautions For Safety

    M306NKT-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 9 M306NKT-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 10 M306NKT-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 11: Table Of Contents

    M306NKT-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...20 2.
  • Page 12 M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) ...47 3.1 Starting Up the Emulator Debugger ...47 3.1.1 INIT Dialog Box ...47 3.1.2 MCU Setting Dialog Box ...53 3.1.3 Checking Connections of the Emulator System...56 3.2 Editor (Source) Window...57 3.3 Program Execution ...58 3.3 Hardware Breakpoint Setting Window...62 3.5 Trace Window...66...
  • 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. regist_tool@renesas.com REJ10J0519-0200 Rev.2.00 Oct. 16, 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 to be controlled from the host machine via an interface. Furthermore, it permits a range of operations from editing a project to building and debugging it to be performed within the same application.
  • Page 15: Outline

    M306NKT-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 M306NKT-EPB package consists of the following items. When unpacking it, check to see if your M306NKT-EPB contains all of these items.
  • Page 16: Other Tool Products Required For Development

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

    (4) Host machine Figure 1.1 System configuration (1) Emulation probe M306NKT-EPB (this product) This is an emulation probe for the M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN and contains an evaluation MCU. (2) Pitch converter board M30800T-PTC (included) This is a pitch converter board for connecting to 100-pin 0.65mm pitch LCC socket IC61-1004-051 on the user system. For details, refer to "2.9 Connecting the User System"...
  • Page 18: Names And Functions Of The Pc7501 Upper Panel Leds

    M306NKT-EPB User’s Manual 1.3.2 Names and Functions of the PC7501 Upper Panel LEDs Figure 1.2 shows the names of the LEDs on the upper panel of the emulator. System status LEDs Figure 1.2 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 19 M306NKT-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 20: Specifications

    Hardware break function Execution time measurement function Time between program start and stop C0 coverage External trigger input/event output REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN Single-chip mode Memory expansion mode Microprocessor mode 24MHz (when using PLL) 3.0--5.5V...
  • Page 21 M306NKT-EPB User’s Manual Table 1.6 Specifications of the M306NKT-EPB (2/2) Host machine interface Power supply to emulator Operating temperature Storage temperature Power supply to emulation probe Connection to user system (see 2.9 "Connecting the User System" on page 31) *1 Available to connect the host machine that supports USB 2.0. With the USB interface, not all hardware (such as host machine, USB devices, USB hub) combination will work and guaranteed.
  • Page 22: Operating Environment

    M306NKT-EPB User’s Manual 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 Storage temperature Table 1.8 Operating environment of the host machine Item Host machine Memory...
  • Page 23: Setup

    M306NKT-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 24: 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 25: Connecting The Host Machine

    M306NKT-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 26: Connecting The Pc7501

    M306NKT-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 Note on Connecting the PC7501: Always shut OFF power before connecting the emulation probe. Otherwise, internal circuits may be damaged. Notes on 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 27: Connecting The Power Supply For The Emulator

    M306NKT-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 the AC adapter to the PC7501. (3) Connect the AC power cable to the AC adapter.
  • Page 28: Turning On The Power

    M306NKT-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 29: Led Display When The Emulator Starts Up Normally

    M306NKT-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 30: Downloading Firmware

    M306NKT-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. (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 31: Self-Check

    M306NKT-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 ERRORs 1 to 4, because the target status LEDs will change depending on errors, check the system status LEDs.
  • Page 32: If An Error Is Detected In The Self-Check

    M306NKT-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 33: Connecting The User System

    M306NKT-EPB User’s Manual 2.9 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.7 and 2.8, respectively. 0.65mm pitch M3T - FLX100- T (not included) M3T - F160- 100NRB LCC socket...
  • Page 34 M306NKT-EPB User’s Manual M3T - F160 - 100NSD 100-pin LQFP (not included) Figure 2.8 Connecting the user system according to user system (for M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN) Note on Connecting the User System: Take care not to attach a converter board in a wrong direction. It may cause a fatal damage to the emulator and user system.
  • Page 35: Connecting To A 100-Pin Lcc Socket

    M306NKT-EPB User’s Manual 2.9.1 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 M306NKT-EPB. (2) Attach the M30800T-PTC to the 100-pin LCC socket.
  • Page 36: Connecting To A 100-Pin 0.65Mm Pitch Foot Pattern (Part 1)

    M306NKT-EPB User’s Manual 2.9.2 Connecting to a 100-pin 0.65mm Pitch Foot Pattern (Part 1) Here following is a procedure of connecting to a 100-pin 0.65mm 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 37: Connecting To A 100-Pin 0.65Mm Pitch Foot Pattern (Part 2)

    M306NKT-EPB User’s Manual 2.9.3 Connecting to a 100-pin 0.65mm Pitch Foot Pattern (Part 2) Here following is a procedure of connecting to a 100-pin 0.65mm 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 38: Connecting To A 100-Pin 0.65Mm Pitch Foot Pattern (Part 3)

    M306NKT-EPB User’s Manual 2.9.4 Connecting to a 100-pin 0.65mm Pitch Foot Pattern (Part 3) Here following is a procedure of connecting to a 100-pin 0.65mm 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 39: Connecting To A 100-Pin 0.5Mm Pitch Foot Pattern (Part 1)

    M306NKT-EPB User’s Manual 2.9.5 Connecting to a 100-pin 0.5mm Pitch Foot Pattern (Part 1) Here following is a procedure of connecting to a 100-pin 0.5mm 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 40: Connecting To A 100-Pin 0.5Mm Pitch Foot Pattern (Part 2)

    M306NKT-EPB User’s Manual 2.9.6 Connecting to a 100-pin 0.5mm pitch Foot Pattern (Part 2) Here following is a procedure of connecting to a 100-pin 0.5mm 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 41: Connecting To A 128-Pin 0.5Mm Pitch Foot Pattern

    M306NKT-EPB User’s Manual 2.9.7 Connecting to a 128-pin 0.5mm pitch Foot Pattern Here following is a procedure of connecting to a 128-pin 0.5mm 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 42: Switch Settings

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

    M306NKT-EPB User’s Manual 2.10.2 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.17 shows the positions of the pullup resistors. Component side of the M306NKT-EPBM ↑...
  • Page 44: Selecting Clock Supply

    M306NKT-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.2 shows the clocks and their initial settings. Table 2.2 Clock supply to the MCU Display of Clock...
  • Page 45 M306NKT-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.18). Figure 2.18 Removing the upper cover REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 Page 43 of 104...
  • Page 46 M306NKT-EPB User’s Manual 2. Replace the oscillator circuit board (see Figure 2.19). Oscillator circuit board Figure 2.19 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 M306NKT-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.20 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

    M306NKT-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.22 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)

    M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 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.
  • Page 50 M306NKT-EPB User’s Manual (1) MCU tab 1. Specifying the MCU file REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the MCU file Specify the MCU file for the target MCU. (1) Click the “Refer…” Button. (2) ”Select MCU File”...
  • Page 51 M306NKT-EPB User’s Manual 2. Specifying the communication interface REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the communication interface (LPT) - For selecting the LPT communication, click the radio button “LPT” of the MCU tab. - For the Type area, specify LPT interface communication mode to be used.
  • Page 52 M306NKT-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 REJ10J0519-0200 Rev.2.00 Oct. 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 53 M306NKT-EPB User’s Manual (2) Debugging Information tab REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the compiler and the object format Specify the compiler you are using and the format of the object file output by the compiler.
  • Page 54 M306NKT-EPB User’s Manual (3) Emulator tab (4) Script tab When the tab settings of (1) to (4) have been finished, click “OK”. REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the target clock Specify the clock sources supplied to the MCU (main clock and sub clock).
  • Page 55: Mcu Setting Dialog Box

    M306NKT-EPB User’s Manual 3.1.2 MCU Setting Dialog Box MCU setting dialog box sets the information of the user system. It will be displayed after closing the Init dialog box. (1) MCU tab 1. MCU Setting Notes on Selecting a Processor Mode: When setting single-chip mode or memory expansion mode, the level of pin CNVSS of the MCU status should be "L".
  • Page 56 M306NKT-EPB User’s Manual 2. Debug Option 3. MCU Status Notes on Selecting a Processor Mode: The MCU status is shown in “MCU Status” of the MCU setting 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 57 M306NKT-EPB User’s Manual (2) MAP tab (3) Flash Clear tab When the tab settings of (1) to (3) have been finished, click “OK”. REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the emulation memory allocation Sets the memory area assigned to the emulation memory by 4KB.
  • Page 58: Checking Connections Of The Emulator System

    M306NKT-EPB User’s Manual 3.1.3 Checking Connections of the Emulator System REJ10J0519-0200 Rev.2.00 Oct. 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 have finished setting up the Init dialog box and the MCU Setting dialog box, you will see a message “Connected”...
  • Page 59: Editor (Source) Window

    M306NKT-EPB User’s Manual 3.2 Editor (Source) Window Downloading the program to be debugged. (1) Downloading from the work space window (2) Showing the program REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Downloading the program Download the object program you want to debug.
  • Page 60: Program Execution

    M306NKT-EPB User’s Manual 3.3 Program Execution (1) Program execution REJ10J0519-0200 Rev.2.00 Oct. 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 the program executing each statement (including those in functions).
  • Page 61 M306NKT-EPB User’s Manual (2) Setting address match breakpoints 1. Setting and executing address match breakpoint 2. Execution completed with address match break REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Program execution with address match breakpoint An address match breakpoint can be set by selecting “Enable the Address Match Interrupt Break Function”...
  • Page 62 M306NKT-EPB User’s Manual (3) Setting software breakpoints 1. Setting and executing software breakpoint 2. Execution completed with software break REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Program execution with software breakpoint - A software breakpoint can be set or cleared by double-clicking the software breakpoint display area in the editor (source) window (A red circle is displayed at the setting line).
  • Page 63 M306NKT-EPB User’s Manual (4) Executing up to the cursor position (Come command) 1. Specifying the Come command 2. After the Come command has finished REJ10J0519-0200 Rev.2.00 Oct. 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 64: Hardware Breakpoint Setting Window

    M306NKT-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 breakpoint setting window 3. Opening the break event setting dialog box REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Hardware breakpoint Clicking this button opens the hardware breakpoint setup dialog box.
  • Page 65 M306NKT-EPB User’s Manual (2) When FETCH is selected 1. Window for setting addresses REJ10J0519-0200 Rev.2.00 Oct. 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 66 M306NKT-EPB User’s Manual (3) When DATA ACCESS is selected 1. Window for setting the address 2. Window for setting data REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Setting the address Set in the Address tab. You can set eight conditions, e.g., a specified address, a specified address range, etc.
  • Page 67 M306NKT-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 68: Trace Window

    M306NKT-EPB User’s Manual 3.5 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 display REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Trace Clicking this button opens the trace window.
  • Page 69 M306NKT-EPB User’s Manual 3. Trace window (Bus information display) 4. Trace window (Disassemble display) 5. Trace window (Source display) 6. Trace window (Data access display) REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Explanation of the trace window (bus information display) The following explains the displayed contents, from left to right.
  • Page 70 M306NKT-EPB User’s Manual (2) Suspending and resuming trace measurement 1. Suspending trace measurement 2. Resuming trace measurement REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 3. Usage (How to Use the Emulator Debugger) Stop Click this toolbar button to suspend the trace measurement in progress.
  • Page 71 M306NKT-EPB User’s Manual (3) Trace point setup window 1. Trace point setup window 2. Setting the trace write condition 3. Realtime trace Write Condition dialog box REJ10J0519-0200 Rev.2.00 Oct. 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 72: Ram Monitor Window

    M306NKT-EPB User’s Manual 3.6 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 73: Hardware Specifications

    Evaluation MCU Applicable MCU mode Max. ROM/RAM capacity Operating frequency Power supply voltage REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN M306NMFJGP (two pieces) ROM: 512KB + 4KB, RAM: 31KB Single-chip mode Memory expansion mode Microprocessor mode 1.
  • Page 74: Access Timing

    M306NKT-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 (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 75 M306NKT-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) REJ10J0519-0200 Rev.2.00 Oct.
  • Page 76 M306NKT-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 77 M306NKT-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.2 Memory expansion mode and microprocessor mode (2 wait, accessing external area, using multiplex bus) REJ10J0519-0200 Rev.2.00 Oct.
  • Page 78 M306NKT-EPB 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 Data input setup time tsu(DB-RD) RDY# input setup time tsu(RDY-BCLK) HOLD# input setup time tsu(HOLD-BCLK) Data input hold time th(RD-DB)
  • Page 79: Operation Timing Of Memory Expansion Mode And Microprocessor Mode (Vcc1=3V)

    M306NKT-EPB 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 Address output delay time td(BCLK-AD)
  • Page 80 M306NKT-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)
  • Page 81 M306NKT-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 82 M306NKT-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) REJ10J0519-0200 Rev.2.00 Oct.
  • Page 83 M306NKT-EPB User’s Manual (3) Timing Requirements Table 4.7 and Figure 4.6 show timing requirements in memory expansion mode and microprocessor mode. Table 4.7 Timing requirements Symbol Data input setup time tsu(DB-RD) RDY# input setup time tsu(RDY-BCLK) HOLD# input setup time tsu(HOLD-BCLK) Data input hold time th(RD-DB)
  • Page 84: Differences Between The Actual Mcu And Emulator

    M306NKT-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 85 M306NKT-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. 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 emulator-dedicated mode.
  • Page 86 M306NKT-EPB User’s Manual Notes on Pullup Control: 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 (51kΩ) as necessary. The initial value of pullup control register 1 PUR1 of this product is different from that of an actual MCU. When a Vcc level is input to pin CNVss, the value of an actual MCU is “02h”...
  • Page 87: Connection Diagrams

    M306NKT-EPB User’s Manual 4.4 Connection Diagrams Figure 4.7 shows a connection diagram of the M306NKT-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 88 M306NKT-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 89: External Dimensions

    M306NKT-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 M306NKT-EPB. 60.0 15.0 15.0 Figure 4.8 External dimensions of the emulation probe REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 100.0 16.3 10.8 55.0 15.0 4.
  • Page 90: External Dimensions Of The M30800T-Ptc

    M306NKT-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 M306NKT- EPB). 40.0 [External dimension when connecting 100-pin LCC socket] Pattern wiring *2 Figure 4.9 External dimensions of the M30800T-PTC REJ10J0519-0200 Rev.2.00 Oct.
  • Page 91: External Dimensions Of The Converter Board M3T-F160-100Nrb

    M306NKT-EPB 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 QFP M3T-...
  • Page 92: External Dimensions Of The Converter Board M3T-F160-128Nrd

    M306NKT-EPB 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 REJ10J0519-0200 Rev.2.00 Oct.
  • Page 93: Notes On Using This Product

    M306NKT-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 94 M306NKT-EPB User’s Manual Note on Display of MCU Status: "MCU status" you can refer to in the MCU tab of the MCU Setting dialog box of the emulator debugger shows pin levels of the user system. Make sure that proper pin levels are specified according to the mode you use. (1) When single-chip mode is used: CNVss: Low (2) When memory expansion mode 16-bit data bus width is used:...
  • Page 95 M306NKT-EPB User’s Manual Note on the Watchdog Function: If the reset circuit of the user system has a watchdog timer, disable it when using the emulator. Note on Protect Register: The protect is not canceled when bit 2 of protect register PRCR (PRC2), which enables writing into the ports P7 and P9 direction registers and the SI/Oi control register, is changed with the below procedure.
  • Page 96 M306NKT-EPB User’s Manual Note on Power Supply to the User System: Pins Vcc1 and Vcc2 are connected to the user system to observe the voltage. Therefore, the power is not supplied to the user system from the emulator, design your system so that the user system is powered separately. (1) The voltage of the user system should be within the operating range of the evaluation MCU.
  • Page 97 M306NKT-EPB User’s Manual Notes on Debugging in CPU Rewrite Mode: When you debug an M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN MCUs in CPU rewrite mode, do not change the block 0 area (FF000h--FFFFFh) of the flash memory. Otherwise, the emulator will be uncontrollable.
  • Page 98: 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 99: When The Emulator Debugger Does Not Start Up Properly

    M306NKT-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 100 M306NKT-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 ERROR 16005: Communication error occurred. Data was not sent to the target. ERROR 16207: User system cannot be properly built. ERROR 16211: PD30F’s version is not the same version as the firmware in the target.
  • Page 101 M306NKT-EPB User’s Manual (3) Errors Occur at Emulator Debugger Startup Table 5.3 Checkpoints of errors at debugger startup Error ERROR 16224: Target MCU is uncontrollable. Execute the RESET command. REJ10J0519-0200 Rev.2.00 Oct. 16, 2006 Checkpoint (1) Check that the NQPACK etc. mounted on the user system is soldered properly.
  • 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

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

    M306NKT-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 105 M306NKT-EPB Publication Date: Oct. 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 106 M306NKT-EPB User’s Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10J0519-0200(T)

This manual is also suitable for:

M16c/6nlM16c/6nnM16c/6n4M16c/6n5M306nkt-epb

Table of Contents