REJ10J0326-0400(T) M306NKT3-RPD-E User’s Manual Emulation Pod for M16C/6N Group M16C/6N4, 6N5, 6NK, 6NL, 6NM and 6NN Rev.4.00 Sep.
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.
M306NKT3-RPD-E User’s Manual Preface Preface The M306NKT3-RPD-E is an emulation pod for the M16C/6N Group M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN of 16-bit MCUs. It is used with a PC4701 emulator (excluding the PC4700L and PC4701L). This user's manual mainly describes specifications of the M306NKT3-RPD-E emulation pod and how to setup it.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E User’s Manual Precautions for Safety 警告警告 WARNING 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. Do not touch the plug of the AC power cable when your hands are wet. This may cause electric shock. This product is connected signal ground with frame ground.
M306NKT3-RPD-E User’s Manual Precautions for Safety CAUTION 注意注意 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. When turning ON the power again after shutting OFF the power, wait about 10 seconds.
M306NKT3-RPD-E User’s Manual Contents Contents Page Preface......................................................................................................................................................................... 3 Related manuals .......................................................................................................................................................... 3 Important.................................................................................................
M306NKT3-RPD-E User’s Manual Contents Page 3. Usage (How to Use the Emulator Debugger) ........................................................................................................ 50 3.1. Making an MCU File .......................................................................................................................... 50 3.2 Setting the Work Area......................................................................................................................... 51 3.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E User’s Manual Terminology Terminology Some specific words used in this user's manual are defined as follows: Emulator main unit (Hereafter PC4701) This means a generic name for emulators for M16C, 7700, 740 Families. Take note of the fact that the M306NKT3-RPD-E (this product) does not support the PC4701L and PC4700L emulators. For details on specific models of PC4701, visit the Renesas Tools Homepage at http://www.renesas.com/en/tools.
M306NKT3-RPD-E User’s Manual 1. Outline 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. Table 1.
M306NKT3-RPD-E User’s Manual 1. Outline 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. Table 1.2 Other tool products required for development Product Emulator main unit Pitch converter board Emulator debugger M16C/6N4 M16C/6N5 100-pin 0.
M306NKT3-RPD-E User’s Manual 1. Outline 1.3 System Configuration 1.3.1 System Configuration Figure 1.1 shows a configuration of the PC4701 system. (6 ) Host machine Interface cable (5 ) Emulator main unit Host machine (2) Flexible cable connecting PC4701 (1 ) Emulation pod (3 ) Flexible cable connecting user system (4 ) Package converter board for connecting user system (7 ) User system Figure 1.
M306NKT3-RPD-E User’s Manual 1. Outline 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. Target status LEDs STATUS OF TARGET POWER POWER SAFE CLOCK ERROR RESET System status LEDs STATUS OF SYSTEM RUN HALT RESET HIGH PERFORMANCE EMULATOR Figure 1.
M306NKT3-RPD-E User’s Manual 1. Outline (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 Meaning ON Power is supplied to the user system. POWER OFF Power is not supplied to the user system. ON Target MCU clock is supplied. CLOCK OFF Target MCU clock is not supplied.
M306NKT3-RPD-E User’s Manual 1. Outline 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 Description M16C/6N Group Applicable MCU M16C/6N4, M16C/6N5, M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN Single-chip mode Memory expansion mode Usable MCU mode Microprocessor mode Maximum operating frequency 16MHz Applicable power supply 3.0 to 5.
M306NKT3-RPD-E User’s Manual 1. Outline Table 1.6 M306NKT3-RPD-E specifications (2/2) Item Description Power supply to emulator AC: 100 to 120V, AC: 200 to 240V (50/60Hz) Power supply to emulation pod Supplied from the PC4701 Overseas standards U.S. EMI standards (FCC part 15 Class A) CE marking (1998 Class A, EN55024: 1998) Connecting the user system 100-pin 0.65mm-pitch LCC (1) M30800T-PTC (included) see “2.
M306NKT3-RPD-E 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).
M306NKT3-RPD-E User’s Manual 2. Setup 2.2 Installing the Emulator Debugger (M16C PC4701 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 PC4701 Emulator Debugger following the procedure described below. 2.2.
M306NKT3-RPD-E User’s Manual 2. Setup 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.
M306NKT3-RPD-E User’s Manual 2. Setup 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. 2.4.1 Connecting the Cable to the PC4701 Figure 2.2 shows how to connect the PC4701 and FLX120-RPD. Emulator main unit PC4701 side connector of FLX120-RPD UPSIDE should be face up .
M306NKT3-RPD-E User’s Manual 2. Setup 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 FLX120-RPD (Secure with the screws) Figure 2.3 Connecting the FLX120-RPD to the emulation pod CAUTION 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.
M306NKT3-RPD-E User’s Manual 2. Setup 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. Turn OFF the power of the emulator and user system as simultaneously as possible.
M306NKT3-RPD-E User’s Manual 2. Setup 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. STATUS OF TARGET POWER POWER SAFE CLOCK ERROR RESET STATUS OF SYSTEM This does not light when the user system is not connected. RUN : On HALT : Off RESET HIGH PERFORMANCE EMULATOR LED display when the emulator starts up normally Figure 2.
M306NKT3-RPD-E User’s Manual 2. Setup 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.
M306NKT3-RPD-E User’s Manual 2. Setup 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.
M306NKT3-RPD-E User’s Manual BYTE L OPEN H SW1 2. Setup VCC1>VCC2 = VCC2 JP2 VDDIO 4M JP1 (factory-settings) VCC1 SW5 (factory-settings) A18_SEL P87 Xcin P87/Xcin (factory-settings) 1M SW4 P86/XC OP P86/Xcout (factory-settings) (factory-settings) OP Xout SW3 Xout SW2 L OPEN H CNVss (factory-settings) (factory-settings) M30620T3-PRT board Figure 2.7 Switch settings for the self-check (factory-settings) 2.7.
M306NKT3-RPD-E User’s Manual 2. Setup 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. Tip of emulation pod probe 100-pin 0.65mm pitch 0.
M306NKT3-RPD-E User’s Manual 2. Setup Tip of emulation pod 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-F160-128NRD 128-pin LQFP (not included) Figure 2.9 Connecting the user system (for M16C/6NK, M16C/6NL, M16C/6NM and M16C/6NN) CAUTION Note on Connecting the User System: Take care not to attach the converter board in a wrong direction.
M306NKT3-RPD-E User’s Manual 2. Setup 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. (2) Attach the M30800T-PTC to the 100-pin LCC socket.
M306NKT3-RPD-E User’s Manual 2. Setup 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. (1) Attach the NQPACK100RB included with the M3T-F160-100NRB to the user system.
M306NKT3-RPD-E User’s Manual 2. Setup 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. (1) Attach the M3T- DIRECT100S to the user system. (2) Attach the M3T-100LCC-DMS to the M3T-DIRECT100S.
M306NKT3-RPD-E User’s Manual 2. Setup 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. (1) Attach the M3T-DUMMY100S to the user system. (2) Attach the M3T-100LCC-DMS to the M3T-DUMMY100S.
M306NKT3-RPD-E User’s Manual 2. Setup 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. (1) Attach the NQPACK100SD included with the M3T-F160-100NSD to the user system.
M306NKT3-RPD-E User’s Manual 2. Setup 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. (1) (2) (3) (4) Attach the TQPACK100SD to the user system. Attach the TQSOCKET100SDG to the TQPACK100SD. Attach the M3T-100LCC-QSD to the TQSOCKET100SDG.
M306NKT3-RPD-E User’s Manual 2. Setup 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.
M306NKT3-RPD-E User’s Manual 2. Setup 2.9 Changing Settings This chapter describes how to set the inside of the emulator. 2.9.1 Removing/Attaching the Upper Cover (1) 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). (2) Attaching the upper cover To close the upper cover, attach the upper cover and secure the four screws of both sides of this product. Figure 2.
M306NKT3-RPD-E User’s Manual 2. Setup 2.9.2 Each Setting Figure 2.18 shows the positions of each part of the M306NKT3-RPD-E.
M306NKT3-RPD-E User’s Manual 2. Setup 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 Description Internal oscillator circuit of emulation pod (OSC-3: 16.
M306NKT3-RPD-E User’s Manual 2. Setup (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. (1) Unscrew the screw securing the oscillator circuit board. (2) Lift off the oscillator circuit board. (3) Insert the connector of a new oscillator circuit board to the connector of the main board. (4) Secure the new oscillator circuit board with the screw. Figure 2.
M306NKT3-RPD-E User’s Manual 2. Setup (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. Figure 2.21 shows the circuitry of the OSC-2 oscillator circuit board (bare board).
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 XIN. And pin XOUT should be open. Choose "External" in the emulator debugger to use this clock. Figure 2.
M306NKT3-RPD-E User’s Manual 2. Setup 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. For the positions of the switches, see Figure 2.18. Table 2.
M306NKT3-RPD-E User’s Manual 2. Setup Table 2.4 Switch settings of the M306NKT3-RPD-E (2) Signal Switch Setting Description Xout OP Xout SW3 Xout SW3 Does not connect pin Xout of the MCU to the user system. (factory-settings) SW3 P86/Xcout P86/XC OP Xout OP Xout Connects pin Xout of the MCU to the user system. Connects pin P86/Xcout of the MCU to the user system to use it as port P86 or Xcout.
M306NKT3-RPD-E User’s Manual 2. Setup 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 Setting A18_SEL 4M Description 1M Always use this setting. JP1 JP1 (factory-settings) A18_SEL 4M A18_SEL 1M Do not use this setting. VCC1>VCC2 VCC2 Always use this setting. VCC1>VCC2 (factory-settings) = Do not use this setting.
M306NKT3-RPD-E User’s Manual 2. Setup 2.9.
M306NKT3-RPD-E User’s Manual 2. Setup 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. Figure 2.18 shows where they are installed and Figure 2.25 shows their connection.
M306NKT3-RPD-E 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 M16C PC4701 emulator debugger from the High-performance Embedded Workshop and how to use the main windows. 3.1. Making an MCU File It is necessary to make an MCU file to use this product with the emulator debugger. According to the MCU you use, change the contents of the MCU file. Make the MCU file named “M306NKT3.MCU” etc.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 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.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 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. Select “SessionM16C_PC4701_Emulator” 3.3.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 2) Specifying the communication interface Specifying the communication communication) interface (Parallel - In case where the parallel communication is set up, click the radio button “Parallel” of MCU tab. - For the host area, only IBM-PC/AT can be designated. - Set the I/O address value that was set up with the special interface board PCA4202G02 to the I/O address area. - Input the I/O address in hexadecimal.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) Specifying the communication) communication interface (LPT - For selecting the LPT communication, click the radio button “LPT” of the MCU tab. - For the Type area, specify the LPT interface communication mode to be used. - Specify the I/O address of the parallel port at the I/O address area. - For BIOS setup, the following addresses are available.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 4) Specifying the clock frequency Specifying the clock frequency Specify the target MCU operation clock and clock dividing ratio. - Specify the operation clock and clock dividing ratio. - In case where no value was set up in the area in which the operation clock is Specified, the unit operates with the reference clock (16MHz) inside the emulator (PC4701) as time measurement resource.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) Work area tab 1) Specifying the firmware Specifying the firmware file For the radio button of the firmware group box, be sure to click “Default”. Specifying the work area Specifies the top address which is used as a work area at the start address area of the work area group box. - For details on specifying the work area, refer to “3.2 Setting the Work Area” (page 51).
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) (6) Script tab Automatically executing a script command To automatically execute a script command when starting up the debugger, click the “Refer...” button and specify the script file to be executed. Clicking the “Refer...” button brings up a file selection dialog box. The script file you have selected is displayed in the Init File: section of the dialog box shown here.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.3.2 Checking Connections of the Emulator System Check to see that the emulator debugger has been connected correctly to the emulator. 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.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.4 Downloading Program Download the user 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 module” from the “Debug” menu for the same effect.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.5 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 resetting 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.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Software break 1) Setting the software break point Execution setup procedure with software break: (1) 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. (In this case, the red circle is displayed on the setting line as shown in the window on the left.) (2) Click the execution button.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) 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 editor (source) window 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.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 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 Hardware Break Point Clicking this button opens the hardware break point setup dialog box.
M306NKT3-RPD-E 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. REJ10J0326-0400 Rev.4.00 Sep.
M306NKT3-RPD-E 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 Sets the address by “Address” tab. You can set eight conditions, e.g., a specified address, a specified address range, etc. 2) Window for setting data Setting data Sets the address by “Data” tab. You can set eight conditions, e.g., specified data, specified data range, etc. Setting the access condition You can set three conditions, e.g.
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 3.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 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 Trace window Clicking this button opens the trace window. 2) Trace window Trace window The trace window is used to show the results of real-time trace measurements. It has the following four display modes. Mixed mode also can be displayed. - Bus mode Bus information per cycle can be inspected.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 3) Trace Window (Bus mode display) Explanation of the trace window (bus display) Shows the status of the address bus. - Address Shows the status of the address bus. - Data Shows the status of the data bus. - BUS Shows the width of the external data bus. In the present emulator, “16b” for 16-bit wide bus and “8b” for 8-bit wide bus are displayed. - BIU Shows the status between the BIU (Bus Interface Unit) and memory or I/O.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Suspending and resuming trace measurement 1) Suspending trace measurement Suspend 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. REJ10J0326-0400 Rev.4.00 Sep.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) Trace points setup window 1) Trace points setup window Trace Points 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 32K cycles of instruction execution before the user program stopped is recorded.
M306NKT3-RPD-E User’s Manual 3. Usage (How to Use the Emulator Debugger) 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. (1) RAM monitor window 1) RAM monitor window RAM monitor Clicking this button opens the RAM monitor window.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E User’s Manual 4.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E User’s Manual 4.
M306NKT3-RPD-E 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 Actual MCU [ns] Min. Max.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E User’s Manual 4.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E User’s Manual 4.
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications (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 Actual MCU [ns] Min. Max.
M306NKT3-RPD-E 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: Operations of the emulator system differ from those of actual MCUs as listed below. (1) Reset condition Set the time for rising (0.2 Vcc to 0.8 Vcc) and falling (0.8 Vcc to 0.
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications IMPORTANT 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).
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications IMPORTANT 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.
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications 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. Tables 4.9 to 4.11 show IC electric characteristics of this product for reference purposes.
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications Table 4.9 Electrical characteristics of the 74HC4066 Symbol RON ΔRON IOFF IIZ Item Condition ON resistor ON resistor difference Leak current (Off) Leak current (On, output: open) Vcc=4.5V Vcc=4.5V Vcc=12.0V Vcc=12.0V Min. - Standard values Standard Max. 96 170 10 ±100 ±100 Unit Ω nA Table 4.
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. 40 . 0 11.0 10 . 5 33.0 11.0 189.0 437.0 193 .0 3.0 3.0 140.0 52.0 Unit: mm Figure 4.8 External dimensions of the emulation pod REJ10J0326-0400 Rev.4.00 Sep.
M306NKT3-RPD-E 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 M306NKT3-RPD-E). 55.0 13.5 M30800 T-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 16.3 Unit : mm 4-R0.25 19.9 19.2 Pattern wiring *2 18.85 19.90 26.10 24.5 16.1 12.35 0.35 12.8 13.8 21.
M306NKT3-RPD-E 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 0.35 50 100 23.2 19.8 CN2 CN1 40.0 81 40a 51 40b 40a 40b 80 31 ●1 30 IC1 1a MADE IN JAPAN 1b 1a 1b M3T-F160-100NRB REV.A 16.5 5.3 0.65 13.8 17.2 Unit: mm Figure 4.
M306NKT3-RPD-E 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 40a 0.25 64 23.1 1a 1b 1a 1b 1 38 MADE IN JAPAN 19.1 CN2 39 CN2 CN1 CN1 128 40.0 103 40b 40a 40b M3T-F160-128NRD REV.A 102 65 21.8 16.5 5.3 0.5 13.1 17.1 Unit: mm Figure 4.
M306NKT3-RPD-E 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: Be sure to use this product with one of the following emulator debuggers. 1. M16C PC4701 Emulator Debugger 2. M3T-PD30 V8.
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications IMPORTANT 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. In memory expansion or microprocessor mode, specify a work area other than the areas listed below.
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications IMPORTANT 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. Using areas like this is a cause of user program crashes and destabilized emulator control.
M306NKT3-RPD-E User’s Manual 4. Hardware Specifications IMPORTANT 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. The instruction at the preset address will not be executed.
M306NKT3-RPD-E 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 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. http://www.renesas.
M306NKT3-RPD-E User’s Manual 5. Troubleshooting 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 Connection to Error the user system LEDs do not light up. - All LEDs remain lit. - The "POWER" LED of "STATUS OF TARGET" does not light up. Connected Disconnected The "CLOCK" LED of "STATUS OF TARGET" does not light up. Connected The "RESET" LED of "STATUS OF TARGET" does not go out.
M306NKT3-RPD-E User’s Manual 5. Troubleshooting (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 Checkpoint ERROR 16005: (1) Check the connection between the PC4701 and host machine. Can't connect with the target. See the PC4701 User's Manual. (2) Check that the PC4701 is powered on. See the PC4701 User's Manual.
M306NKT3-RPD-E User’s Manual 5. Troubleshooting (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 Checkpoint ERROR 16005: (1) Check the connection between the PC4701 and host machine. Can't connect with the target. See the PC4701 User's Manual. (2) Check that the PC4701 is powered on. See the PC4701 User's Manual.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E 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.
M306NKT3-RPD-E User’s Manual 6. Maintenance and Guarantee 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.
Emulation Pod for M16C/6N Group M16C/6N4, 6N5, 6NK, 6NL, 6NM and 6NN M306NKT3-RPD-E User’s Manual Publication Date: Sep. 01, 2006 Published by: Edited by: Rev.4.00 Sales Strategic Planning Div. Renesas Technology Corp . Microcomputer Tool Development Department Renesas Solutions Corp. © 2006. Renesas Technology Corp. and Renesas Solutions Corp., All rights reserved. Printed in Japan.
M306NKT3-RPD-E User's Manual