Renesas Emulation Pod M306N4T3-RPD-E User Manual
Renesas Emulation Pod M306N4T3-RPD-E User Manual

Renesas Emulation Pod M306N4T3-RPD-E User Manual

Emulation pod for m16c/6n group m16c/6n4, 6n5
Table of Contents

Advertisement

Quick Links

M306N4T3-RPD-E
Emulation Pod for M16C/6N Group M16C/6N4, 6N5
User's Manual
Rev. 2.00
July 1, 2003
REJ10J0110-0200Z

Advertisement

Table of Contents
loading

Summary of Contents for Renesas Emulation Pod M306N4T3-RPD-E

  • Page 1 M306N4T3-RPD-E Emulation Pod for M16C/6N Group M16C/6N4, 6N5 User's Manual Rev. 2.00 July 1, 2003 REJ10J0110-0200Z...
  • Page 2 • These materials are intended as a reference to assist our customers in the selection of the Renesas Technology product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corporation, Renesas Solutions Corporation or a third party.
  • Page 3: Precautions For Safety

    Preface The M306N4T3-RPD-E is an emulation pod for the M16C/6N Group M16C/6N4, 6N5 of 16-bit MCUs. It is used with a PC4701 emulator. This user's manual mainly describes specifications of the M306N4T3-RPD-E emulation pod and how to setup it. For details on the following products, which are used with the M306N4T3-RPD-E, refer to each product's user's manual.
  • Page 4: Table Of Contents

    Contents Chapter 1. Precautions for Safety ... 9 1.1 Safety Symbols and Meanings ... 10 WARNINGS Warning for Installation ... 11 Warnings for Use Environment ... 11 CAUTIONS Caution to Be Taken for Modifying This Product ... 11 Cautions to Be Taken for Handling This Product ... 11 Cautions to Be Taken for Turning On the Power ...
  • Page 5 (3) Changing the Internal Oscillator Circuit of the Emulation Pod ... 32 (4) Replacing Oscillator Circuit Boards ... 33 3.4 Switch Settings ... 34 (1) Toggle Switches SW1 to SW5 on the M30620T3-PRT Board (MCU-dependent 1) ... 34 (2) Jumper Switches JP1 and JP2 on the M30620T3-PRT Board (MCU-dependent 1) ... 36 3.5 Installing and Removing Pullup Resistors ...
  • Page 6 Chapter 5. Specifications ... 53 5.1 Specifications ... 54 5.2 Operation Timing in Memory Expansion and Microprocessor Modes (5 V) ... 55 (1) Separate Bus Timing ... 55 (2) Multiplex Bus Timing ... 57 (3) Timing Requirements ... 59 5.3 Connection Diagram ... 60 5.4 External Dimensions ...
  • Page 7 This means a generic name for emulators for M16C, 7700, 740 Families. Take note of the fact that the M306N4T3-RPD-E (this product) does not support the PC4701L and PC4700L emulators. For details on specific models of PC4701, visit the Renesas Tool Homepage at http://www.renesas.com/ en/tools Emulation pod This means M306N4T3-RPD-E (this product).
  • Page 8 MEMO ( 8 / 76 )
  • Page 9: Chapter 1. Precautions For Safety

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

    Chapter 1. Precautions for Safety In both the user's manual and on the product itself, several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons, or damage to your properties. This chapter describes the precautions which should be taken in order to use this product safely and properly.
  • Page 11: Warning For Installation

    Warning for Installation: • Do not set this product in water or areas of high humidity. Make sure that the main unit does not get wet. Spilling water or some other liquid into the main unit can cause an unrepairable damage. Warnings for Use Environment: •...
  • Page 12: Important

    • If the emulator malfunctions because of interference like external noise, do the following to remedy the trouble. (1) Press the system reset switch on the emulator front panel. (2) If normal operation is not restored after step (1), shut OFF power to the emulator once and then reactivate it.
  • Page 13: Note On Clock Supply To The Mcu

    Note on Clock Supply to the MCU: • Clock can be supplied to the evaluation MCU in one of the following two ways. This is determined by emulator debugger clock selection. (1) When Internal is selected: A clock generated by the oscillation circuit in the emulation pod is supplied to the evaluation MCU.
  • Page 14: Note On Stack Area

    Note on Stack Area: • With this product, a maximum 7 bytes of the user stack is consumed. Therefore, ensure the +7 bytes maximum capacity used by the user program as the user stack area. If the user stack does not have enough area, do not use areas which cannot be used as stack (SFR area, RAM area which stores data, or ROM area) as a work area.
  • Page 15: Note On Operation When Not Executing The User Program

    Note on Operation When Not Executing the User Program: • With this product, bit 7 of processor mode register 1 (wait bit PM17) is forcibly set to "1" (with wait) when the user program is not executed (e.g. when the program is stopped or when run-time debugging is being performed).
  • Page 16: Notes On Software And Hardware Breaks

    Notes on Software and Hardware Breaks: • The software break is a debugging function which breaks a program immediately before the system executes an instruction at a specified address. The instruction at the preset address will not be executed. • The hardware break is a debugging function which breaks a program by setting the detection of an execution of an instruction at a specified address as a break event.
  • Page 17: Note On Reading Internal Resources Of The Mcu

    LED lights up to alarm. When this LED lights, there is a possibility of wrong access to address 00000h, therefore check the program. This LED is turned off by the system reset switch of the emulator main unit. IMPORTANT...
  • Page 18: Note On Differences Between The Actual Mcu And Emulator

    Note on Differences Between the Actual MCU and Emulator: • Operation of the emulator differs from that of the actual MCU as listed below. (1) Reset condition Set the time for starting up (0.2 Vcc to 0.8 Vcc) 1 µs or less. (2) Initial values of MCU's internal resources at power-on (3) Internal memories (ROM and RAM) capacities etc.
  • Page 19: Note On Debugging Operations After Releasing A Reset From The Target

    Note on Debugging Operations After Releasing a Reset from the Target: • Do not execute debugging operations such as setting a software or hardware break, runtime debugging after releasing a reset from the target system until an interrupt stack pointer (ISP) is set in the user program.
  • Page 20 MEMO ( 20 / 76 )
  • Page 21: Chapter 2. Preparation

    This chapter describes the package components, the system configuration and the preparation for using this product for the first time. 2.1 Package Components ... 22 2.2 Other Tool Products Required for Development ... 22 2.3 Name of Each Part ... 23 (1) System Configuration ...
  • Page 22: Package Components

    Chapter 2. Preparation 2.1 Package Components The M306N4T3-RPD-E package consists of the following items. When unpacking, check to see if your M306N4T3-RPD-E contains all of these items. Table 2.1 Package components M306N4T3-RPD-E emulation pod main unit FLX120-RPD flexible cable for connecting PC4701 M3T-F160T3-PRB converter board for M3T-FLX160C (preinstalled) M30800T-PTC converter board for 100-pin 0.65-mm-pitch LCC IC61-1004-051 100-pin 0.65-mm-pitch LCC socket (made by Yamaichi Electronics Co., Ltd.)
  • Page 23: Name Of Each Part

    2.3 Name of Each Part (1) System Configuration Host machine Figure 2.1 System configuration (1) to (4) in Figure 2.1 are included with this product package. (1) Emulation pod main unit M306N4T3-RPD-E This emulation pod contains an evaluation MCU, emulation memory and circuits to feature the debug functions.
  • Page 24: Inside Of The Emulation Pod

    (2) Inside of the Emulation Pod (3) Common board Figure 2.2 Internal view of the emulation pod (1) MCU-dependent board 1 This is a board for port emulation. (2) MCU-dependent board 2 This is a board with the evaluation MCU. (3) Common board This is a board controlling the interface with the PC4701 and evaluation MCU.
  • Page 25: When Using This Product For The First Time

    2.4 When Using This Product for the First Time (1) Making the MCU File It is necessary to make an MCU file to use this product with the emulator debugger M3T-PD30. According to the MCU you use, change the contents of the MCU file. Make the MCU file following the description below using a text editor and store it in the "mcufiles"...
  • Page 26: Downloading Firmware

    Connect the PC4701 and this product. Within 2 seconds of turning the power ON, press the system reset switch of the PC4701 and check it is in maintenance mode. Download the firmware using the emulator debugger.
  • Page 27: Chapter 3. Setting Up

    This chapter describes switch settings required for using this product and how to connect this product to the PC4701 and the target system. 3.1 Removing and Closing the Upper Cover ... 28 3.2 Each Setting ... 29 3.3 Selecting Clock Supply and Replacing Oscillator Circuit Boards ... 30 (1) Clock Supply to the MCU ...
  • Page 28: Removing And Closing The Upper Cover

    Figure 3.1 Removing the upper cover When Removing and Closing the Upper Cover: CAUTION • Always shut OFF power before opening the upper cover to change the switch settings. • Do not touch the connector pins of the PC4701 and the target MCU connector pins.
  • Page 29: Each Setting

    3.2 Each Setting Figure 3.2 shows the positions of the following parts. (1) Oscillator circuit board (2) Switches (3) Pullup resistors (4) A-D conversion bypass capacitor MCU-dependent board 2 (4) A-D conversion bypass capacitor (M3062PT3-PRTM board) MCU-dependent board 1 (M30620T3-PRT board) M30620T3-RPDC board (common) (1) Oscillator circuit board (3) Socket for installing pullup resistors...
  • Page 30: Selecting Clock Supply And Replacing Oscillator Circuit Boards

    IMPORTANT • For pins X , it is necessary to set the switches in the emulation pod. For COUT details, refer to "3.4 Switch Settings" (page 34). ( 30 / 76 ) Display of emulator debugger Default setting Internal External...
  • Page 31: Using The Oscillator Circuit On The Target System

    (2) Using the Oscillator Circuit on the Target System To operate this product with an external clock, construct the oscillator circuit as shown in Figure 3.3 in the target system and input the oscillator output at 50% duty (within the operating range of the evaluation MCU) into pin Xin.
  • Page 32: Changing The Internal Oscillator Circuit Of The Emulation Pod

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

    (4) Replacing Oscillator Circuit Boards Figure 3.7 shows how to replace the oscillator circuit boards. For the position of the oscillator circuit board, see Figure 3.2. Figure 3.7 Replacing oscillator circuit boards (1) Unscrew the screw securing the oscillator circuit board. (2) Lift off the oscillator circuit board.
  • Page 34: Switch Settings

    Table 3.4 lists how to set jumper switches JP1 and JP2, and Table 3.5 lists how to set jumper switch JP1 on the M3062PT3-PRTM (MCU-dependent board 2). (1) Toggle Switches SW1 to SW5 on the M30620T3-PRT Board (MCU-dependent 1) Table 3.2 Switch settings of the M306N4T3-RPD-E (1/4)
  • Page 35 Note on Switch Settings: • Always shut OFF power before changing switch settings. Note on BYTE and CNVss Switch Settings: • Switch settings of the BYTE and CNVss are for debugging without the target system connected. Setting Does not connect pin Xout of the MCU to the target system.
  • Page 36: Jumper Switches Jp1 And Jp2 On The M30620T3-Prt Board (Mcu-Dependent 1)

    (2) Jumper Switches JP1 and JP2 on the M30620T3-PRT Board (MCU-dependent 1) Table 3.4 Switch settings of the M306N4T3-RPD-E (3/4) Signal Switch A18_SEL VDDIO Note on Switch Settings: • Always shut OFF power before changing switch settings. Setting Use this setting. (Factory-setting) Do not use this setting. (Factory-setting) Use this setting.
  • Page 37: Installing And Removing Pullup Resistors

    3.5 Installing and Removing Pullup Resistors In this product, you cannot control pullup for ports P0 to P5 by pullup control registers (pullup control register read/write are possible). Mounting a pullup resistor inside this product allows pullup control. Mount the 51kΩ resistor array supplied with this product to the port for which pullup control is required.
  • Page 38: A-D Conversion Bypass Capacitors

    3.6 A-D Conversion Bypass Capacitors The M306N4T3-RPD-E has the M3062PT3-PRTM board which has a foot pattern for installing A- D conversion bypass capacitors near the MCU and premounted 0.1µF capacitors. Mount suitable bypass capacitors as occasion demands. Figure 3.2 shows where they are installed and Figure 3.9 shows their connection diagrams.
  • Page 39: Connecting The Pc4701

    3.7 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 FLX120-RPD to the cable connector of the PC4701, then secure the FLX120-RPD with screws. (1) Connecting the Cable to the PC4701 Figure 3.10 shows how to connect the PC4701 and FLX120-RPD Figure 3.10 Connecting the Cable to the PC4701...
  • Page 40: Connecting The Cable To The Emulation Pod

    (2) Connecting the Cable to the Emulation Pod Figure 3.11 shows how to connect the FLX120-RPD and the emulation pod. Emulation pod Figure 3.11 Connecting the Cable to the Emulation Pod When Connecting the Cable: • Always shut OFF power before connecting the cable. Otherwise, the internal circuits may be damaged.
  • Page 41: Connecting The Target System

    3.8 Connecting the Target System There are several ways available to connect the emulation pod to target systems as shown in Figure 3.12. Emulation pod probe 100-pin 0.65-mm-pitch M30800T-PTC (included) M3T-100LCC-DMS (not included) M3T-FLX100-T M3T-FLX100-R (not included) (not included) LCC socket M3T-DIRECT100S M3T-DUMMY100S M3T-FLX-100NRB...
  • Page 42: Connecting To A 100-Pin Lcc Socket

    (1) Connecting to a 100-pin LCC Socket To connect the M30800T-PTC (included) to the 100-pin LCC socket (IC61-1004-051 by Yamaichi Electronics Co., Ltd.) on the target system, following the procedure below. (1) Attach the CN2 side of the M30800T-PTC to the tip (CN2 side) of the pitch converter board connected to the emulation pod probe.
  • Page 43: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 1)

    (2) Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 1) Here follows how to connect the emulation pod probe to a 100-pin 0.65-mm-pitch foot pattern on the target system with 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. (1) Mount the M3T-DIRECT100S to the target system.
  • Page 44: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 2)

    (3) Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 2) Here follows how to connect the emulation pod probe to a 100-pin 0.65-mm-pitch foot pattern on the target system with 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. (1) Mount the M3T-DUMMY100S to the target system.
  • Page 45: Connecting To A 100-Pin 0.65-Mm-Pitch Foot Pattern (Part 3)

    (4) Connecting to a 100-pin 0.65-mm-pitch Foot Pattern (Part 3) Here follows how to connect the emulation pod probe to a 100-pin 0.65-mm-pitch foot pattern on the target system with the M3T-FLX-100NRB (not included). For details on the M3T-100LCC-DMS (not included) and M3T-FLX-100NRB (not included), refer to each user's manual. (1) Mount the NQPACK100RB to the target system.
  • Page 46 MEMO ( 46 / 76 )
  • Page 47: Chapter 4. Usage

    This chapter describes from turning on the power of this product to starting up the emulator debugger. 4.1 Turning On the Power ... 48 (1) Checking Connections of the Emulator System ... 48 (2) Turning On the Power... 48 (3) LED Display When the PC4701 Starts Up Normally... 49 4.2 Downloading Firmware ...
  • Page 48: Turning On The Power

    Chapter 4. Usage 4.1 Turning On the Power (1) Checking Connections of the Emulator System Before turning the power ON, check the connections of the PC4701, emulation pod, converter board and target system. (2) Turning On the Power • Turn on the power of the emulator and target system as simultaneously as possible. •...
  • Page 49: Led Display When The Pc4701 Starts Up Normally

    (3) LED Display When the PC4701 Starts Up Normally After the emulator starts up, check the status of the LEDs on the front panel to see whether emulation pod operation is enabled or not. Figure 4.1 shows front panel LED lighting status when the emulator is turned ON.
  • Page 50: Downloading Firmware

    The target system must not be connected when downloading the firmware. (1) Within 2 seconds of activating power to the emulator, press the system reset switch on the emulator front panel to switch the emulator to maintenance mode. Then the system status SAFE LED will start blinking.
  • Page 51: Self-Check

    (1) Set the switches in the emulation pod to the factory settings as shown in Figure 4.3. (2) If the target system is connected, disconnect it. (3) Within 2 seconds of activating power to the emulator, press the system reset switch on the emulator front panel to switch the emulator to maintenance mode.
  • Page 52 Figure 4.4 Self-check procedure ( 52 / 76 )
  • Page 53: Chapter 5. Specifications

    Chapter 5. Specifications This chapter describes specifications of this product. 5.1 Specifications ... 54 5.2 Operation Timing in Memory Expansion and Microprocessor Modes (5 V) ... 55 (1) Separate Bus Timing ... 55 (2) Multiplex Bus Timing ... 57 (3) Timing Requirements ... 59 5.3 Connection Diagram ...
  • Page 54: Specifications

    Chapter 5. Specifications 5.1 Specifications Table 5.1 lists the specifications of the M306N4T3-RPD-E. Table 5.1 Specifications of the M306N4T3-RPD-E Emulators Applicable MCU Evaluation MCU Usable mode Emulation memory Maximum operating frequency Clock supply Operating voltage Operating temperature Storage temperature Power supply to emulation pod Connection to target system Refer to "3.8 Connecting the Target System"...
  • Page 55: Operation Timing In Memory Expansion And Microprocessor Modes (5 V)

    5.2 Operation Timing in Memory Expansion and Microprocessor Modes (5 V) (1) Separate Bus Timing Table 5.2 and Figure 5.1 show the bus timing in memory expansion and microprocessor modes (3- wait, accessing external area). Table 5.2 Memory expansion and microprocessor modes (3-wait, accessing external area) Symbol td(BCLK-AD) th(BCLK-AD)
  • Page 56 Vcc1 = Vcc2 = 5 V Read Write Figure 5.1 Memory expansion and microprocessor modes (3-wait, accessing external area) ( 56 / 76 )
  • Page 57: Multiplex Bus Timing

    (2) Multiplex Bus Timing Table 5.3 and Figure 5.2 show the bus timing in memory expansion and microprocessor modes (2- wait, accessing external area, using multiplex bus). Table 5.3 Memory expansion and microprocessor modes (2-wait, accessing external area, using multiplex bus) Symbol td(BCLK-AD) Address output delay time...
  • Page 58 Vcc1 = Vcc2 = 5 V Read Write Figure 5.2 Memory expansion and microprocessor modes (2-wait, accessing external area, using multiplex bus) ( 58 / 76 )
  • Page 59: Timing Requirements

    (3) Timing Requirements Table 5.4 and Figure 5.3 show the timing requirements. Table 5.4 Timing requirements Symbol tsu(DB-RD) Data input setup time tsu(RDY-BCLK) RDY* input setup time tsu(HOLD-BCLK) HOLD* input setup time th(RD-DB) Data input hold time th(BCLK-RDY) RDY* input hold time th(BCLK-HOLD) HOLD* input hold time td(BCLK-HLDA)
  • Page 60: Connection Diagram

    5.3 Connection Diagram Figure 5.4 shows a connection diagram of the M306N4T3-RPD-E. This connection diagram mainly shows the interface section. The circuits not connected to the target system such as the emulator's control system are omitted. The signals not shown in Figure 5.4 connect the evaluation MCU and the target system directly.
  • Page 61 Table 5.5 Electrical characteristics of the 74HC4066 Symbol Item ON resistor ON resistor difference Leak current (Off) Leak current (On, output: open) Table 5.6 Electrical characteristics of the 7WH125 Symbol Item "H" level input voltage "L" level input voltage "H" level output voltage "L"...
  • Page 62: External Dimensions

    5.4 External Dimensions (1) External Dimensions of the Emulation Pod Figure 5.5 shows external dimensions of the M306N4T3-RPD-E. Unit: mm Figure 5.5 External dimensions of the emulation pod ( 62 / 76 )
  • Page 63: External Dimensions Of The Converter Board M30800T-Ptc

    (2) External Dimensions of the Converter Board M30800T-PTC Figure 5.6 shows external dimensions of the converter board M30800T-PTC (included) for a 100- pin LCC and a sample foot pattern for 100-pin 0.65-mm-pitch (100P6S-A). When connected to a 100-pin LCC socket Figure 5.6 External dimensions of the converter board M30800T-PTC and a sample foot pattern *1.
  • Page 64 MEMO ( 64 / 76 )
  • Page 65: Chapter 6. Troubleshooting

    Chapter 6. Troubleshooting This chapter describes how to troubleshoot when this product does not work properly. 6.1 Flowchart to Remedy the Troubles ... 66 6.2 When the Emulator Debugger Does Not Start Up Properly ... 67 (1) When the LED Display of the PC4701 is Abnormal ... 67 (2) Program Window is Not Displayed at Debugger Startup (Target Connected)...
  • Page 66: Flowchart To Remedy The Troubles

    Figure 6.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 target system is disconnected. For the latest FAQs visit the Renesas Tool Homepage. http://www.renesas.com/eng/products/mpumcu/toolhp/faq/m16c/m16c_e.htm...
  • Page 67: When The Emulator Debugger Does Not Start Up Properly

    6.2 When the Emulator Debugger Does Not Start Up Properly (1) When the LED Display of the PC4701 is Abnormal Table 6.1 LED's abnormal display and its checkpoints Error LEDs do not light up. All LEDs remain lit. The "POWER" LED of "STATUS OF TARGET"...
  • Page 68: Program Window Is Not Displayed At Debugger Startup (Target Connected)

    (2) Program Window is Not Displayed at Debugger Startup (Target Connected) Table 6.2 Checkpoints of errors when starting up the emulator debugger (target connected) Error ERROR 16005: Can't connect with the target. ERROR 16211: The version of PD30 and the firmware on the target are not same.
  • Page 69: Program Window Is Not Displayed At Debugger Startup (Target Not Connected)

    (4) Check that the descriptions in the MCU file are correct. See "2.4 (1) Making the MCU File" (page 25). (1) Check that switch settings in the emulation pod are correct. See "3.4 Switch Settings" (page 34). (2) Check that the oscillation circuit of the emulation pod is oscillating properly.
  • Page 70 MEMO ( 70 / 76 )
  • Page 71: Chapter 7. Maintenance And Guarantee

    Chapter 7. Maintenance and Guarantee This chapter describes how to maintenance, repair provisions and how to request for repair. 7.1 Maintenance... 72 7.2 Guarantee ... 72 7.3 Repair Provisions ... 72 7.4 How to Request for Repair ... 73 ( 71 / 76 )
  • Page 72: Maintenance

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

    After checking the contents of fault, the distributor should please send the faulty product along with the Repair Request Sheet to Renesas Solutions Corp. When the faulty product is repaired, it will be returned to the customer at the earliest convenience.
  • Page 74 MEMO...
  • Page 75 M306N4T3-RPD-E User's Manual Rev. 2.00 July 1, 2003 REJ10J0110-0200Z COPYRIGHT ©2003 RENESAS TECHNOLOGY CORPORATION AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED...

Table of Contents