REJ10J0519-0200(T) M306NKT-EPB User’s Manual Emulation Probe for M16C/6N Group M16C/6N4, 6N5, 6NK, 6NL, 6NM, 6NN Rev.2.00 Oct.
Keep safety first in your circuit designs! 1. Renesas Technology Corp. puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage.
M306NKT-EPB User’s Manual Preface Preface The M306NKT-EPB is an emulation probe for The M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN. The M306NKT-EPB is used by connecting to the PC7501 emulator main unit. This user's manual mainly describes specifications of the M306NKT-EPB emulation probe and how to setup it. For details on the emulator main unit and emulator debugger which are used with the M306NKT-EPB, refer to each product's user's manual.
M306NKT-EPB User’s manual Important Important Before using this product, be sure to read this user’s manual carefully. Keep this user’s manual, and refer to this when you have questions about this product. Emulator: The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp.
M306NKT-EPB User’s manual Important Usage restrictions: This emulator has been developed as a means of supporting system development by users. Therefore, do not use it as a device used for equipment-embedded applications.
M306NKT-EPB User’s Manual Precautions for safety Precautions for Safety Definitions of Signal Words In both the user’s manual and on the product itself, several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons, or damage to your properties. This chapter describes the precautions which should be taken in order to use this product safely and properly. Be sure to read this chapter before using this product.
M306NKT-EPB User’s Manual Precautions for safety WARNING Warnings for AC Power Supply: z 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. z Use an AC power cable which complies with the safety standard of the country. z Do not touch the plug of the AC power cable when your hands are wet. This may cause electric shock. z This product is connected signal ground with frame ground.
M306NKT-EPB User’s Manual Precautions for safety CAUTION Cautions to Be Taken for Turning On the Power: z Turn ON/OFF the power of the emulator and user system as simultaneously as possible. z Do not leave either the emulator or user system powered on, because of leakage current the internal circuits may be damaged. z When turning on the power again after shutting off the power, wait about 10 seconds. Cautions to Be Taken for Handling This Product: z Use caution when handling the main unit.
M306NKT-EPB User’s Manual Contents Contents Page Preface..........................................................................................................................................................................3 Important.......................................................................................................................................................................4 Precautions for Safety .................................................................................
M306NKT-EPB User’s Manual Contents Page 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.
M306NKT-EPB User’s Manual User Registration User Registration When you have purchased the emulator presented in this user's manual, please be sure to register it. As the H/W Tool Customer Registration Sheet is included with this manual, fill it in and FAX it to your local distributor or email the same contents to the following address. If you register it by email, you can use a text format for user registration created when installing the software in the following folder.
M306NKT-EPB User’s Manual Terminology Terminology Some specific words used in this user's manual are defined as follows: Emulator system This means an emulator system built around the PC7501 emulator. The PC7501 emulator system is configured with an emulator main unit, emulation probe, host machine and the integrated development environment High-performance Embedded Workshop. Emulator main unit (Hereafter PC7501) This means an emulator main unit for M16C Family.
M306NKT-EPB User’s Manual 1. Outline 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. Table 1.1 Package components Item Quantity M306NKT-EPB emulation probe 1 M30800T-PTC (pre-mounted) converter board for 100-pin 0.
M306NKT-EPB User’s Manual 1. Outline 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. Converter boards Table 1.2 Other tool products required for development Product Product name Emulator main unit PC7501 Emulator debugger M16C R8C PC7501 Emulator debugger M3T-PD30F 100-pin 0.
M306NKT-EPB User’s Manual 1. Outline 1.3 System Configuration 1.3.1 System Configuration Figure 1.1 shows a configuration of the M306NKT-EPB system. Host machine interface (LPT, USB or LAN) (4) Host machine (3) Emulator PC7501 (1) Emulation probe M306NKT-EPB (2) Converter board M30800T–PTC (5) User system Figure 1.
M306NKT-EPB User’s Manual 1. Outline 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 Target 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. Table 1.3 lists the definition of each system status LED. Table 1.
M306NKT-EPB User’s Manual 1. Outline (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 Meaning POWER ON Power is supplied to the user system. OFF Power is not supplied to the user system. CLOCK ON Clock is supplied to the target MCU. OFF Clock is not supplied to the target MCU.
M306NKT-EPB User’s Manual 1. Outline 1.4 Specifications Tables 1.5 and 1.6 list the specifications of the M306NKT-EPB. Table 1.5 Specifications of the M306NKT-EPB (1/2) Applicable MCU M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN Applicable MCU mode Single-chip mode Memory expansion mode Microprocessor mode Maximum operating frequency 24MHz (when using PLL) Applicable power supply 3.0--5.
M306NKT-EPB User’s Manual 1. Outline Table 1.6 Specifications of the M306NKT-EPB (2/2) Host machine interface - LPT parallel (ECP, EPP, Byte/compatibility and Nibble/compatibility modes) - USB (USB 1.
M306NKT-EPB User’s Manual 1. Outline 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 Description 5 to 35°C (no dew) -10 to 60°C (no dew) Table 1.
M306NKT-EPB User’s Manual 2. Setup 2. Setup This chapter describes the preparation for using this product, the procedure for starting up the emulator and how to change settings. 2.1 Flowchart of Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2.1. For details, refer to each section hereafter. And, when the emulator does not start up normally, refer to “5. Troubleshooting” (page 96). Check the package components. Refer to “1.1 Package Components” (page 13).
M306NKT-EPB User’s Manual 2. Setup 2.2 Installing the Emulator Debugger (M16C R8C PC7501 Emulator Debugger) If the OS used in your host machine is Windows XP or 2000, this installation must be executed by a user with administrator rights. Be aware that users without administrator rights cannot complete the installation. Install the M16C R8C PC7501 emulator debugger following the procedure described below. 2.2.
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. Figure 2.2 shows the outline to connect each interface cable. Figure 2.2 Outline for interface cable connections REJ10J0519-0200 Rev.2.00 Oct.
M306NKT-EPB User’s Manual 2. Setup 2.4 Connecting the PC7501 Figure 2.3 shows how to connect the PC7501 and the emulation probe. M3T-FLX160-EPB M306NKT-EPB Figure 2.3 Connecting the PC7501 and emulation probe CAUTION Note on Connecting the PC7501: z Always shut OFF power before connecting the emulation probe. Otherwise, internal circuits may be damaged.
M306NKT-EPB User’s Manual 2. Setup 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) (2) (3) (4) Turn OFF the power to the PC7501. Connect the DC cable of the AC adapter to the PC7501. Connect the AC power cable to the AC adapter. Connect the AC power cable to the outlet. CAUTION Cautions for AC Adapter: z Use only the AC adapter included in PC7501 package.
M306NKT-EPB User’s Manual 2. Setup 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. Turn OFF the power of the emulator and user system as simultaneously as possible.
M306NKT-EPB User’s Manual 2. Setup 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. - If this LED does not light, check the voltage of the user system. - Check that the power is supplied to all the power terminals. - When the user system is not connected, this LED does not light.
M306NKT-EPB User’s Manual 2. Setup 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.
M306NKT-EPB User’s Manual 2. Setup 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. (1) (2) (3) (4) (5) If the user system is connected, disconnect it.
M306NKT-EPB User’s Manual 2. Setup 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. IMPORTANT Note on the Self-check: z Perform the self-check while not connecting the user system. z If the self-check does not result normally (excluding user system errors), the emulation probe may be damaged.
M306NKT-EPB User’s Manual 2. Setup 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. Emulation probe 100-pin 0.65mm pitch 0.
M306NKT-EPB User’s Manual 2. Setup Emulation probe 100-pin 0.5mm pitch 128-pin 0.5mm pitch M30800T - PTC (included) M3T - F160 - 100NSD 100-pin LQFP (not included) M3T -100LCC-QSD 100-pin LQFP (not included) M3T - F 160- 128 NRD 128-pin LQFP (not included) ●: No. 1 pin Figure 2.8 Connecting the user system according to user system (for M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN) CAUTION Note on Connecting the User System: z Take care not to attach a converter board in a wrong direction.
M306NKT-EPB User’s Manual 2. Setup 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. M3T-FLX160-EPB M306NKT-EPB CN2 side (1) (2) M30800T-PTC 100-pin LCC socket No. 1 pin User system Figure 2.
M306NKT-EPB User’s Manual 2. Setup 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-F160100NRB (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.
M306NKT-EPB User’s Manual 2. Setup 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 M3TDIRECT100S (not included). For details on the M3T-100LCC-DMS (not included) and M3T-DIRECT100S (not included), refer to each user's manual. (1) (2) (3) (4) Attach the M3T-DIRECT100S to the user system. Attach the M3T-100LCC-DMS to the M3T-DIRECT100S.
M306NKT-EPB User’s Manual 2. Setup 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 M3TDUMMY100S (not included). For details on the M3T-100LCC-DMS (not included) and M3T-DUMMY100S (not included), refer to each user's manual. (1) (2) (3) (4) Attach the M3T-DUMMY100S to the user system. Attach the M3T-100LCC-DMS to the M3T-DUMMY100S.
M306NKT-EPB User’s Manual 2. Setup 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-F160100NSD (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.
M306NKT-EPB User’s Manual 2. Setup 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-100LCCQSD (not included). For details on the M3T-100LCC-QSD (not included), refer to its user's manual. (1) (2) (3) (4) (5) Attach the TQPACK100SD to the user system. Attach the TQSOCKET100SDG included with the M3T-100LCC-QSD to the TQPACK100SD. Attach the M3T-100LCC-QSD to the TQSOCKET100SDG.
M306NKT-EPB User’s Manual 2. Setup 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-F160128NRD (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. (2) Attach the YQPACK128RD included with the M3T-F160-128NRD to the NQPACK128RD and secure it with the YQGUIDE's.
M306NKT-EPB User’s Manual 2. Setup 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. Component side of the M306NKT-EPBM 6NK VREF -AVSS bypass capacitor V REF AV SS C2 AVCC-AVSS bypass capacitor AVCC AV SS C1 Figure 2.
M306NKT-EPB User’s Manual 2. Setup 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 6NK ↑ Positions to install pullup resistor arrays Figure 2.17 Positions of the pullup resistors Table 2.
M306NKT-EPB User’s Manual 2. Setup 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 emulator debugger Description Internal oscillator circuit board (OSC-3 or OSC-2) Oscillator circuit on the user system Internal generator circuit (1.0--16.0MHz) Internal oscillator circuit (32.
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.
M306NKT-EPB User’s Manual 2. Setup 2. Replace the oscillator circuit board (see Figure 2.19). Oscillator circuit board The Figure on the left shows the position of the oscillator circuit board. Unscrew the screw securing the oscillator circuit board. Lift off the oscillator circuit board. Attach another oscillator circuit board to the connector. Secure it with the screw. Figure 2.19 Replacing the oscillator circuit board 3. Reinstall the upper cover and secure the four screws of the PC7501.
M306NKT-EPB User’s Manual 2. Setup (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. Figure 2.21 shows the circuitry of the oscillator circuit bare board OSC-2. Use the number of oscillator circuits recommended by the oscillator manufacturer.
M306NKT-EPB User’s Manual 2. Setup 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 XIN. And pin XOUT should be open. Choose "External" in the emulator debugger to use this clock. Figure 2.
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. The session can be changed by the drop down list of the tool bar shown below.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (1) MCU tab 1. Specifying the MCU file Specifying the MCU file Specify the MCU file for the target MCU. (1) Click the “Refer…” Button. (2) ”Select MCU File” dialog box will be displayed. Select “M16C6NK.MCU”. - The MCU file contains the information specific to the target MCU. - The specified MCU file is displayed at the MCU area field of the MCU tab. REJ10J0519-0200 Rev.2.00 Oct.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 2. Specifying the communication interface 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. When you use the emulator debugger for the first time, select “AUTO”. - Specify the I/O address of the parallel port at the I/O address area.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3. Executing the self-check Executing the self-check Enable this function when you want the emulator to be self-checked at startup. Be sure to select the check box only when you want the emulator to be self-checked at startup. This function may be enabled in the following cases: - When you are using the emulator you have just installed. - When you successfully download the firmware, but fail to start up the emulator.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Debugging Information tab Specifying the compiler and the object format Specify the compiler you are using and the format of the object file output by the compiler. To alter this setting, use the dialog box that is brought up by selecting “Debug” and then “Debug Settings...” from the menu.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) Emulator tab Specifying the target clock Specify the clock sources supplied to the MCU (main clock and sub clock). Select the appropriate clock sources according to the clock used by your target MCU. - Internal (default) Emulator PC7501’s internal clock - External User system clock - Generated Clock created in PC7501 The option you have specified here remains effective the next time you start up.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 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 Specifying the processor mode Select the appropriate processor mode that suits your system. Specifying the bus width When specifying memory expansion mode or microprocessor mode, select “16-bit” or “8-bit” for “External Data Bus Width”.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 2. Debug Option Setting the debug option Check the box when not downloading the program to the internal flash ROM of the MCU. If this box is checked, the working efficiency (downloading, software break, etc.) will be improved because the program is downloaded in the emulation memory in the PC7501. However, maximum operating frequency is 10MHz. The box is unchecked by default. 3.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) MAP tab Specifying the emulation memory allocation Sets the memory area assigned to the emulation memory by 4KB. Up to four areas can be set. An area set to “INTERNAL” will be allocated to the emulation memory by selecting the check box. An unchecked area or an unset area will be allocated to external area. Not allocated area is regarded as external area. The setting is effective only in the CS3#, CS2#, CS1# and CS0#.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.1.3 Checking Connections of the Emulator System 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” displayed on the “Debug” tab of the Output window. REJ10J0519-0200 Rev.2.00 Oct.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.2 Editor (Source) Window Downloading the program to be debugged. (1) Downloading from the work space window Downloading the program Download the object program you want to debug. Select Download from “xxx.x30” of “Download module”. Or you can select “Download” from the “Debug” menu for the same effect.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.3 Program Execution (1) Program execution CPU reset Resets the target MCU. Go 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). Step Over Single-steps the program executing each function call as one step.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Setting address match breakpoints 1. Setting and executing address match breakpoint Program execution with address match breakpoint An address match breakpoint can be set by selecting “Enable the Address Match Interrupt Break Function” in Init dialog box of the MCU tab.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) Setting software breakpoints 1. Setting and executing software breakpoint 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). - Click the execution button. 2.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (4) Executing up to the cursor position (Come command) 1. Specifying the Come command Setup procedure for executing COME command (1) Click the line in the program display area at which you want the program to execute. (2) Click the Come button 2. After the Come command has finished The cursor stops in the position where the come command was executed. The statement specified with the come command is not executed. REJ10J0519-0200 Rev.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.3 Hardware Breakpoint Setting Window (1) Breakpoint setup dialog box 1. Opening the hardware breakpoint setup dialog box Hardware breakpoint Clicking this button opens the hardware breakpoint setup dialog box. 2. Hardware breakpoint setting window H/W Break Point Setting window in initial state Select the “Enable H/W Break” check box, and this break function will be enabled, allowing you to set hardware breakpoints.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) When FETCH is selected 1. Window for setting addresses Setting the address You can set eight conditions, e.g., a specified address, a specified address range, etc. When you have finished setting the address, click OK. REJ10J0519-0200 Rev.2.00 Oct.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) When DATA ACCESS is selected 1. Window for setting the address Setting the address Set in the Address tab. You can set eight conditions, e.g., a specified address, a specified address range, etc. After finishing the setting the address, set the data. 2. Window for setting data Setting data Set in the Data tab. You can set eight conditions, e.g., a specified data, a specified data range, etc.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 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 a break event A1 Address 1 Data 1 MASK Access : 0020E8 : 5423 : FFFF : WRITE Setting a break event (using 2 events) Setting events for wordwise accesses to the odd-addresses STE.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 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 Trace Clicking this button opens the trace window. 2. Trace window display Trace window The trace window is used to show the results of real-time trace measurements. It has the following four display modes. And mixed mode can be displayed. - Bus mode Bus information per cycle can be inspected.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3. Trace window (Bus information display) Explanation of the trace window (bus information display) The following explains the displayed contents, from left to right. - Address Shows the status of the address bus. - Data Shows the status of the data bus. - BUS Shows the width of the internal data bus. “16b” for 16 bits bus wide bus and “8b” for 8 bits bus wide bus are displayed.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Suspending and resuming trace measurement 1. Suspending trace measurement Stop Click this toolbar button to suspend the trace measurement in progress. 2. Resuming trace measurement Re-Start Click this toolbar button to resume the trace measurement in progress. REJ10J0519-0200 Rev.2.00 Oct.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) Trace point setup window 1. Trace point setup window Trace Point Setting Window in initial state Clicking this toolbar button opens the trace point setting window. You can set events in the same way as for the hardware breakpoints. Specifying a trace range You can specify a trace range for the trace event. - Break 256K cycles of instruction execution before the user program stopped is recorded.
M306NKT-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 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. (1) RAM monitor window 1.
M306NKT-EPB User’s Manual 4. Hardware Specifications 4. Hardware Specifications This chapter describes specifications of this product. 4.1 Target MCU Specifications Table 4.1 lists the specifications of target MCUs which can be debugged with this product. Table 4.1 Specifications of target MCUs for the M306NKT-EPB Item Applicable MCU Evaluation MCU Applicable MCU mode Max. ROM/RAM capacity Operating frequency Power supply voltage REJ10J0519-0200 Rev.2.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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). Table 4.
M306NKT-EPB User’s Manual 4.
M306NKT-EPB User’s Manual 4. Hardware Specifications (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) Actual MCU This product Symbol Item [ns] [ns] Min. Max. Min. Max.
M306NKT-EPB User’s Manual 4.
M306NKT-EPB User’s Manual 4. Hardware Specifications (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) tsu(RDY-BCLK) tsu(HOLD-BCLK) th(RD-DB) th(BCLK-RDY) th(BCLK-HOLD) td(BCLK-HLDA) Actual MCU [ns] Min. Max.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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) Actual MCU Symbol Item [ns] Min. Max.
M306NKT-EPB User’s Manual 4.
M306NKT-EPB User’s Manual 4. Hardware Specifications (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) Actual MCU This product Symbol Item [ns] [ns] Min. Max. Min. Max.
M306NKT-EPB User’s Manual 4.
M306NKT-EPB User’s Manual 4. Hardware Specifications (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 Actual MCU [ns] Min. Max.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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. IMPORTANT Note on Differences between the Actual MCU and Emulator: z Operations of the emulator system differ from those of actual MCUs as listed below. (1) Reset condition Set the time for starting up (0.2Vcc to 0.8Vcc) 1 μs or less.
M306NKT-EPB User’s Manual 4. Hardware Specifications IMPORTANT Note on Voltage Detect Circuit: z 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: z 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.
M306NKT-EPB User’s Manual 4. Hardware Specifications IMPORTANT Notes on Pullup Control: z 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. z The initial value of pullup control register 1 PUR1 of this product is different from that of an actual MCU.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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.
M306NKT-EPB User’s Manual 4. Hardware Specifications Table 4.8 Electrical characteristics of the 74HC4066 Symbol RON ΔRON IOFF IIZ Item ON resistor ON resistor difference Leak current (Off) Leak current (On, output: open) Condition Vcc=4.5V Vcc=4.5V Vcc=12.0V Vcc=12.0V Min. - Standard values Standard Max. 96 170 10 ±100 ±100 Min. 2.0 -0.5 Standard values Standard Max. 5.5 0.8 Unit Ω nA Table 4.
M306NKT-EPB User’s Manual 4. Hardware Specifications 4.5 External Dimensions 4.5.1 External Dimensions of the Emulation Probe Figure 4.8 shows external dimensions of the M306NKT-EPB. 100.0 6NK 10.0 9.5 60.0 21.0 9.5 10.0 34.3 5.5 16.3 10.8 15.0 15.0 55.0 15.0 Unit: mm Figure 4.8 External dimensions of the emulation probe REJ10J0519-0200 Rev.2.00 Oct.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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 M306NKTEPB). 55.0 13.5 M30800T-PTC 80 81 50 100 31 CN2 CN1 40.0 51 1 30 MAD E I N JAPAN 13.5 [External dimension when connecting 100-pin LCC socket] 10.8 27.6 18.85 19.90 26.10 0.35 24.5 16.1 12.35 0.65 *1 When using the AXS4003M295C made by Matsushita Electric Works, Ltd.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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 21.8 40a 51 40b 0.35 50 100 18.6 13.8 CN2 CN1 40.0 40a 40b 80 81 31 ●1 IC1 30 MADE IN JAPAN 1a 1b 1a 1b M3T-F160-100NRB REV.A 5.3 0.65 16.5 19.8 24.6 Unit: mm Figure 4.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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 21.8 17.1 39 13.1 CN2 128 CN2 CN1 CN1 64 40.0 0.25 103 1 40a 40b 40a 40b M3T-F160-128NRD REV.A 102 65 38 1a 1b 1a 1b MADE IN JAPAN 16.5 5.3 0.5 19.1 23.1 Unit: mm Figure 4.
M306NKT-EPB User’s Manual 4. Hardware Specifications 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. IMPORTANT Note on the Version of the Emulator Debugger: z Be sure to use this product with one of the following emulator debuggers. 1. M16C R8C PC7501 Emulator debugger V.1.01 Release 00 or later 2. M3T-PD30F V.2.
M306NKT-EPB User’s Manual 4. Hardware Specifications IMPORTANT Note on Display of MCU Status: z "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.
M306NKT-EPB User’s Manual 4. Hardware Specifications IMPORTANT Note on the Watchdog Function: z If the reset circuit of the user system has a watchdog timer, disable it when using the emulator. Note on Protect Register: z 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.
M306NKT-EPB User’s Manual 4. Hardware Specifications IMPORTANT Note on Power Supply to the User System: z 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. (2) Do not change the voltage of the user system after turning on the power.
M306NKT-EPB User’s Manual 4. Hardware Specifications IMPORTANT Notes on Debugging in CPU Rewrite Mode: z 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. z If you check "Debug the program using CPU Rewrite Mode" in the MCU tab of the Init dialog box of the emulator debugger, you cannot use the following functions.
M306NKT-EPB User’s Manual 5. Troubleshooting 5. Troubleshooting This chapter describes how to troubleshoot when this product does not work properly. 5.1 Flowchart to Remedy the Troubles 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. http://www.renesas.
M306NKT-EPB User’s Manual 5. Troubleshooting 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 LEDs do not light up. Connection to the user system - All LEDs remain lit. - Error Checkpoint Check that the power cable is connected. See "2.5 Connecting the Power Supply for the Emulator" (page 25) and the user's manual of the PC7501. Recheck the connection between the PC7501 and this product.
M306NKT-EPB User’s Manual 5. Troubleshooting (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. Checkpoint Check all emulator debugger settings, interface cable settings and switches on the rear of the PC7501 match. See the user's manuals of PC7501 and emulator debugger. ERROR 16207: User system cannot be properly built.
M306NKT-EPB User’s Manual 5. Troubleshooting (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. (2) Check that the connector is installed properly to the user system.
M306NKT-EPB User’s Manual 5. Troubleshooting 5.3 How to Request for Support After checking the items in "5 Troubleshooting", fill in the text file which is downloaded from the following URL, then send the information to your local distributor. http://tool-support.renesas.com/eng/toolnews/registration/support.
M306NKT-EPB User’s Manual 6. Maintenance and Guarantee 6. Maintenance and Guarantee This chapter describes how to maintenance, repair provisions and how to request for repair. 6.1 User Registration When you purchase our product, be sure register as a user. For user registration, refer to “User registration” (page 11) of this user's manual. 6.2 Maintenance (1) If dust or dirt collects on any equipment of your emulation system, wipe it off with a dry soft cloth.
M306NKT-EPB User’s Manual 6. Maintenance and Guarantee (3) Expiration of the repair period When a period of one year elapses after the model was dropped from production, repairing products of the model may become impossible. (4) Transportation fees at sending your product for repair Please send your product to us for repair at your expense. 6.
Emulation Probe for M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM, M16C/6NN User’s Manual M306NKT-EPB Publication Date: Oct. 16, 2006 Rev.2.00 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Microcomputer Tool Development Department Renesas Solutions Corp. © 2006. Renesas Technology Corp. and Renesas Solutions Corp., All rights reserved. Printed in Japan.
M306NKT-EPB User’s Manual