Summary of Contents for Renesas Compact Emulator M34571T2-CPE
Page 1
On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
Page 2
Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific”...
Page 3
M34571T2-CPE User’s Manual Compact Emulator for 4571 Group Rev.1.00 2006.02...
Page 4
6. The prior written approval of Renesas Technology Corp. is necessary to reprint or reproduce in whole or in part these materials. 7. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination.
All the components of this product are shown in "1.1 Package Components" (page 13). If there is any question or doubt about this product, contact your local distributor. The related manuals for using this product are listed below. You can download the latest manuals from the Renesas Tools homepage (http://www.renesas.com/en/tools).
Purpose of use of the emulator: This emulator is a device to support the development of a system that uses the 4500 Series 4571 Group of Renesas 4-bit single- chip MCUs. It provides support for system development in both software and hardware.
Page 7
M34571T2-CPE User’s Manual Usage restrictions: This emulator has been developed as a means of supporting system development by users. Therefore, do not use it as a device used for equipment-embedded applications. Also, do not use it for developing the systems or equipment used for the following purposes either: (1) Transportation and vehicular (2) Medical (equipment where human life is concerned)
M34571T2-CPE User’s Manual Precautions for Safety Definitions of Signal Words In both the user’s manual and on the product itself, several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons, or damage to your properties. This chapter describes the precautions which should be taken in order to use this product safely and properly.
Page 9
M34571T2-CPE User’s Manual Warnings for AC Power Supply: If the attached AC power cable does not fit the receptacle, do not alter the AC power cable and do not plug it forcibly. Failure to comply may cause electric shock and/or fire. Use an AC power cable which complies with the safety standard of the country.
Page 10
M34571T2-CPE User’s Manual Notes on Connecting the Power Supply of the Emulator: Do not use any power cable other than the one that is included with the product. The power cable included with the product has its positive and negative poles color-coded by red and black, respectively.
M34571T2-CPE User’s Manual Contents Preface...3 Important...4 Precautions for Safety ...6 Contents...9 User Registration ...11 Terminology ...12 1. Outline...13 1.1 Package Components ...13 1.2 System Configuration ...14 1.2.1 System Configuration ...14 1.2.2 Names and Functions of each part of the Emulator...16 1.3 Specifications ...18 1.4 Operating Environment ...19 2.
Page 12
M34571T2-CPE User’s Manual 3. Usage (How to Use the Emulator Debugger) ...41 3.1 Starting Up the Emulator Debugger (Init Dialog Box) ...41 3.2 Program Window ...43 3.3 Hardware Breakpoint Setting Window...47 3.4 Trace Window...49 3.5 Time Measurement...53 4. Hardware Specifications ...54 4.1 Target MCU Specifications...54 4.2 Differences between the Actual MCU and Emulator...55 4.3 Connection Diagram...59...
So be sure to carry out the user registration. For more information about user registration, please email to the following address. regist_tool@renesas.com REJ10J0972-0100 Rev.1.00 February 10, 2006 Page 11 of 72...
M34571T2-CPE User’s Manual Terminology Terminology Some specific words used in this user’s manual are defined as follows: Emulator M34571T2-CPE This means the compact emulator (this product) for 4571 Group MCUs. Emulator system This means an emulator system built around the M34571T2-CPE emulator. The M34571T2-CPE emulator system is configured with an emulator main unit M34571T2-CPE, emulator debugger M3T-PD45M and host machine.
M34571T2-CPE User’s Manual 1. Outline This chapter describes the package components, the system configuration and the preparation for using this product for the first time. 1.1 Package Components The M34571T2-CPE package consists of the following items. When unpacking it, check to see if your M34571T2-CPE contains all of these items.
Host machine (not included) Figure 1.1 System configuration (1) Compact emulator M34571T2-CPE (this product) This is a compact emulator for the 4571 Group with the real-time trace functions (hereafter, emulator). (2) USB interface cable (included) This is an interface cable for the host machine and the emulator.
Page 17
M34571T2-CPE User’s Manual (5) Power supply for the user system This is a power supply for the user system. As this emulator cannot supply the power to the user system, supply the power to the user system separately from the emulator. (6) Host machine This is a personal computer for controlling the emulator.
M34571T2-CPE User’s Manual 1.2.2 Names and Functions of each part of the Emulator Figure 1.2 shows the names of the LEDs on the upper panel of the emulator. System reset switch J2: USB interface connector J1: Power connector System status LEDs LED1: Emulator power (POWER) LED2: Emulator status (SAFE) Figure 1.2 Names of the LEDs on the upper panel of the M34571T2-CPE...
Page 19
M34571T2-CPE User’s Manual (3) POF Status LED This LED shows whether the MCU is in a state of POF Table 1.4 Definitions of the target status LEDs Name Color Status MCU is in a state of POF Orange MCU is not in a state of POF, but normal. (4) System Reset Switch By pressing the system reset switch, you can initialize the emulator system.
M34571T2-CPE User’s Manual 1.3 Specifications Table 1.6 lists specifications of the M34571T2-CPE. Table 1.6 M34571T2-CPE specifications Applicable MCUs 4571 Group Evaluation MCU M34571GDFP (mounted in the socket of the emulator) Maximum operating frequency 3.0 V Set the MCU power supply voltage selection switch (SW1) to 3V.
M34571T2-CPE User’s Manual 1.4 Operating Environment Be sure to use thins emulator with the operating environmental of the emulator and host machine listed in Tables 1.7 and 1.8. Table 1.7 Operating environmental conditions Item Operating temperature Storage temperature Table 1.8 Operating environment of the host machine Item Host machine Memory...
M34571T2-CPE User’s Manual 2. Setup This chapter describes the preparation for using this product, the procedure for starting up the emulator and how to change settings. 2.1 Flowchart of Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2.1. For details, refer to each section hereafter. And, when the emulator does not start up normally, refer to “5.
2.2.2 Installing the USB Device Driver Install the USB device driver following the procedure described below. (1) Connect the host machine and the compact emulator M34571T2-CPE with the USB cable. (2) Turn on the power to the compact emulator M34571T2-CPE.
M34571T2-CPE User’s Manual 2.3 Connecting the Power Supply for the Emulator Connect the power supply for the emulator to the power connector (J1). The specification of the power supply for the emulator is listed in Table 2.1. Table 2.1 Specification of power supply of the emulator DC 5.0 V±5%/2 A Power supply voltage Figures 2.2 and 2.3 show the specifications of the power connector (J1) and an applicable plug, respectively.
M34571T2-CPE User’s Manual 2.4 Connecting the Host Machine Connect the emulator and the host machine with the USB interface cable. Connect the USB interface cable (included) to the USB interface connector (J2) and the USB port of the host machine (see Figure 2.4).
M34571T2-CPE User’s Manual 2.5 Turning ON the Power 2.5.1 MCU Power Supply Voltage Selection Switch Set the MCU power supply source selection switch of the emulator according to conditions of use. 5.0V E X T 3.3V Figure 2.5 Jumper switch locations of the emulator These are the jumper switches to select power supply to the MCU and its power voltage.
M34571T2-CPE User’s Manual 2. Setup 2.5.2 Checking Connections of the Emulator System Before turning the power ON, check the connection of the interface cable to the host machine, emulator, and user system. 2.5.3 Turning ON/OFF the Power Turn ON/OFF the power of the emulator and user system as simultaneously as possible. Do not leave either the emulator or user system powered on, because of leakage current the internal circuits may be damaged.
M34571T2-CPE User’s Manual 2.5.5 LED Display When the Emulator Starts Up Normally After the emulator starts up, check the status of the LEDs to see whether the emulator operation is enabled or not. Figure 2.6 shows the positions of the emulator status LEDs. Figure 2.6 Positions of the system status LEDs and target status LEDs (1) System status LEDs Check that the LED1 and LED2 of the system status LEDs are lit immediately after the power is activated.
Page 29
M34571T2-CPE User’s Manual When the user system NOT connected: The POWER LED does not light. : ON : OFF Figure 2.7 Target status LEDs display when the emulator starts up normally (when user system not connected) When the user system connected: If the POWER LED does not light, shut off the system and check the setting of the jumper switches and if the power is properly...
M34571T2-CPE User’s Manual 2.6 Downloading Firmware 2.6.1 When It is Necessary to Download Firmware It is necessary to download the firmware when: (1) the firmware has been upgraded (2) the emulator debugger M3T-PD45M has been upgraded If downloading firmware is not completed in the cases below, redownload the firmware. - When the power is unexpectedly shut down during a download from the emulator debugger - When a communications interface cable is unexpectedly pulled out 2.6.2 Downloading Firmware in Maintenance Mode...
M34571T2-CPE User’s Manual 2.7 Self-check 2.7.1 Self-check Procedure To run the self-check of the emulator, do so as explained here below. While the self-check is in progress, the LEDs will change as shown in Figure 2.9. (1) If the user system is connected, disconnect it. (2) Set the switches as the factory-settings to execute the self-check (see Table 2.3).
M34571T2-CPE User’s Manual 2.7.2 If an Error is Detected in the Self-check Table 2.4 lists how to remedy the troubles if the target status LED display is abnormal in the self-check. When an error is detected, shut off the emulator and the user system and follow the steps in the Table 2.4. Table 2.4 Error display in the self-check and how to remedy it LED display Blinking...
M34571T2-CPE User’s Manual 2.8 Connecting the User System Figure 2.10 shows the connection of the M34571T2-CPE and the user system. For 26-pin DIP Figure 2.10 Connection of the M34571T2-CPE and user system Note on Connecting the User System: Take care not to attach the converter board in a wrong direction. It may cause a fatal damage to the emulator and user system.
M34571T2-CPE User’s Manual 2.8.1 Connecting to a 2.54-mm-pitch Dual in-line Pins Here following is a procedure of connecting 2.54-mm-pitch 26-pole dual in-line pins using a 26-wire normal-pitch cable (included with the M34571T2-CPE). Table 2.5 lists the connector assignment of the 26-wire normal-pitch cable and Figure 2.11 shows the pin assignment of the 26-wire normal-pitch cable.
Page 35
M34571T2-CPE User’s Manual Table 2.5 Connector assignments of the 26-wire normal-pitch cable Connector pin MCU pin No. - * VDD is connected for the emulator system to monitor power supply of the target, and the emulator system does not supply power to the user system * XIN and XOUT are not connected.
M34571T2-CPE User’s Manual 2.9 Changing Settings 2.9.1 Changing the Power Supply Voltage to the MCU As shown in Table 2.6 below, set the switch according to the connection to the user system. Table 2.6 Setting switch MCU power supply voltage selection switch (SW1) Note on Jumper Switch Settings: Always shut OFF the emulator before changing the setting of the jumper switches, and connecting the cable.
M34571T2-CPE User’s Manual 2.9.2 Selecting Clock Supply This product always uses the internal oscillator circuit as a clock supply to the evaluation MCU. 1. Kinds of Oscillator Boards The M34571T2-CPE comes with an oscillator circuit board OSC-2 (6 MHz). And an oscillator circuit bare board OSC-2 is included with this product.
Page 38
M34571T2-CPE User’s Manual 3. Using the Internal Oscillator Circuit Bare Board To use this product at a frequency you like, build a desired oscillator circuit on the included OSC-2 oscillator circuit bare board. Figure 2.13 shows an external view of the OSC-2 oscillator circuit bare board and the connector pin locations. Figure 2.14 shows the circuitry of the oscillator circuit bare board OSC-2.
M34571T2-CPE User’s Manual 2.10 Connecting the External Trace/Trigger Cable Using the external trace/trigger cable enables record/reference a hardware break by the external trigger, and changes of an external signal level in the trace window 2.10.1 Connecting the External Trace/Trigger Cable to the Emulator System Connect the external trace/trigger cable to the connector J4 of the emulator Figure 2.15 Connecting the external trace/trigger cable 2.10.2 Connecting the External Trace/Trigger Cable to the User System...
M34571T2-CPE User’s Manual 2.10.3 Specifications of the External Trace/Trigger Cable Voltage input characteristics of external trace input and external trigger input are as follows. Table 2.7 Input characteristics of the external trace cable Item Symbol Input voltage “H” level input voltage “L”...
M34571T2-CPE User’s Manual 2.11 Watchdog Timer Initialization Cycle Check Pin The watchdog time cannot be used with this emulator system. The watchdog timer initialization cycle can be verified by observing the waveform at the check pin (WRST) of the emulator. 2.11.1 Check Pin WRST (TP3) on the Emulator Main Unit Figure 2.19 shows the positions of the check pins WRST (TP3) and GND (TP2).
M34571T2-CPE User’s Manual 2. Setup 2.11.2 Output Waveform of the Check Pin WRST A waveform similar to the one shown in Figure 2.20 is output when executing the WRST instruction hat initializes the watchdog timer. By observing a period in which the check pin (WRST) is goes high, it is possible to know when the watchdog timer is initialized.
3.1 Starting Up the Emulator Debugger (Init Dialog Box) To launch the emulator debugger, click the Start menu of Windows and then select Programs (P) >> [Renesas] >> [PD45M V.xx.xx Release x] >> [PD45M]. When the emulator debugger started up, the Init dialog box appears.
Page 44
M34571T2-CPE User’s Manual (2) Setting the Init dialog box (2/2) By pressing [OK] after setting the Init dialog box (1/2), the following Init dialog box will be displayed. REJ10J0972-0100 Rev.1.00 February 10, 2006 3. Usage (How to Use the Emulator Debugger) Specifying the MCU file Specify the MCU to be debugged.
M34571T2-CPE User’s Manual 3.2 Program Window (1) Downloading a program 1. Initial screen of the program window 2. Downloading the program Menu Menu item File Download Load Module... Memory Image... Symbol... Reload... Upload... Save Disasm... REJ10J0972-0100 Rev.1.00 February 10, 2006 Initial screen of the program window The program window is a window that always shows the content of the source file corresponding to the current...
Page 46
M34571T2-CPE User’s Manual (2) Executing the program 1. Resetting the user program 2. Executing the user program 3. Stopping the user program 4. Program window screen after the user program has stopped REJ10J0972-0100 Rev.1.00 February 10, 2006 3. Usage (How to Use the Emulator Debugger) RESET Resets the program.
Page 47
M34571T2-CPE User’s Manual (3) Setting breakpoints 1. Screen after breakpoint setup REJ10J0972-0100 Rev.1.00 February 10, 2006 3. Usage (How to Use the Emulator Debugger) Breakpoint setup screen There are two types of breakpoints as described below. It is necessary to select the breakpoint by the break mode button. The current breakpoint is displayed in the break mode display area.
Page 48
M34571T2-CPE User’s Manual (4) Executing up to the cursor position (Come command) 1. Specifying the Come command Click the line in the program display area at which you want the program to execute. 2. After the Come command has finished REJ10J0972-0100 Rev.1.00 February 10, 2006 3.
M34571T2-CPE User’s Manual 3.3 Hardware Breakpoint Setting Window (1) Breakpoint setup dialog box 1. Opening the hardware breakpoint setup dialog box 2. Hardware Break Point Setting Window in initial state 3. Address event setting dialog box REJ10J0972-0100 Rev.1.00 February 10, 2006 3.
Page 50
M34571T2-CPE User’s Manual (2) Setting the combinatorial event condition 1. Window for setting the combinatorial event condition 2. Setting a break event 3. Timer setup area REJ10J0972-0100 Rev.1.00 February 10, 2006 3. Usage (How to Use the Emulator Debugger) Setting the combinatorial event condition Select a combinatorial condition for A1, A2, and T.
M34571T2-CPE User’s Manual 3.4 Trace Window (1) Trace window 1. Trace window Menu Menu item Windows Trace Window REJ10J0972-0100 Rev.1.00 February 10, 2006 Function Opens the trace window. Trace window The trace window is used to show the results of real-time trace measurements.
Page 52
M34571T2-CPE User’s Manual 2. Trace window (bus display) Bus Display (BUS) Disassemble Display (DIS) Source Display (SRC) REJ10J0972-0100 Rev.1.00 February 10, 2006 3. Usage (How to Use the Emulator Debugger) Explanation of the trace window (bus display) The following explains the displayed contents, from left to right.
Page 53
M34571T2-CPE User’s Manual (2) Trace point setup dialog box Opening the trace point setup dialog box Menu Menu item Debug Trace Point 1. Setting the trace point dialog box 2. Address event setting window in initial state REJ10J0972-0100 Rev.1.00 February 10, 2006 Function Setting the trace point dialog box Trace point setup dialog box...
Page 54
M34571T2-CPE User’s Manual (3) Setting the combinatorial event condition 1. Window for setting the combinatorial event condition 2. Setting a break event 3. Timer setup area REJ10J0972-0100 Rev.1.00 February 10, 2006 3. Usage (How to Use the Emulator Debugger) Setting the combinatorial event condition Select a combinatorial condition for A1, A2, and T.
M34571T2-CPE User’s Manual 3.5 Time Measurement (1) Trace window 1. Setting time measurement points Menu Menu item Debug Measurement Point REJ10J0972-0100 Rev.1.00 February 10, 2006 3. Usage (How to Use the Emulator Debugger) Function Sets up the time measurement points dialog box. Setting time measurement points A time measurement range can be specified by selecting one of the following eight time intervals.
M34571T2-CPE User’s Manual 4. Hardware Specifications This chapter describes specifications of this product. 4.1 Target MCU Specifications Table 4.1 lists the specifications of target MCUs which can be debugged with this product. Table 4.1 Specifications of target MCUs for the M34571T2-CPE Item Applicable MCU Evaluation MCU...
M34571T2-CPE User’s Manual 4.2 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below. When debugging the MCU using this product, be careful about the following precautions. Note on Differences between the Actual MCU and Emulator: Operations of the emulator system differ from those of actual MCUs as listed below.
Page 58
M34571T2-CPE User’s Manual Note on Port Electrical Characteristics: Because the following ports are configured with port emulation circuits, electrical characteristics differ from those of the actual MCU. - P00--P03 - P10--P13 - P20--P21 - P30--P31 - D0--D3 - RESET# For more details, refer to “4.3 Connection Diagram” (page 59). The K, P20 and P21 pins, if pulled high in the user system, momentarily output a low after reset.
Page 59
M34571T2-CPE User’s Manual Note on Watchdog Timer: In this emulator system, the watchdog timer function must be invalid during debugging operation; it is, therefore, necessary to invalidate the watchdog timer by prefixing the following two instructions to the user program continuously: DWDT WRST In case where no watchdog timer invalid processing as described above is carried out, there arise restrictions as...
Page 60
M34571T2-CPE User’s Manual Note on Register Operation: Tables 4.3 lists the registers that can be operated from the M3T-PD45M. The "Yes" in the table means that the register can be operated; the "No" means that the register can not be operated. Table 4.3 Registers that can be operated when debugging 4571Group MCUs Register Reference...
M34571T2-CPE User’s Manual 4.3 Connection Diagram Figure 4.2 shows a part of the connection diagram of the M34571T2-CPE. 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.2 connect the evaluation MCU and the user system directly.
Page 62
M34571T2-CPE User’s Manual Table 4.4 Electrical characteristics of the 74HC4050 Signal Item “H” level threshold voltage “L” level threshold voltage Table 4.5 Electrical characteristics of the 74ALS641A Signal Item “L” output voltage “L” output current Table 4.6 Electrical characteristics of the 74VHC126 Signal Item “H”...
Page 63
M34571T2-CPE User’s Manual Table 4.8 Electrical characteristics of the 74VHC14 Signal Item “H” level threshold voltage “L” level threshold voltage Hysteresis voltage Table 4.9 Electrical characteristics of the 74VHC08 Signal Item “H” output voltage “L” output voltage REJ10J0972-0100 Rev.1.00 February 10, 2006 Standard values Condition Min.
M34571T2-CPE User’s Manual 4. Hardware Specifications 4.4 External Dimensions 4.4.1 External Dimensions of the Compact Emulator Figure 4.3 shows external dimensions of the M34571T2-CPE. 120.0 .3V5 L E D L E D M34571T2-CPEB REV.A Unit: mm Figure 4.3 External dimensions of the compact emulator REJ10J0972-0100 Rev.1.00 February 10, 2006 Page 62 of 72...
M34571T2-CPE User’s Manual 4.5 Notes on Using This Product Notes on using this product are listed below. When debugging the MCU using this product, be careful about the following precautions. Notes on the Self-check: If the self-check does not result normally (excluding target status errors), the emulator may be damaged. Then contact your local distributor.
Page 66
M34571T2-CPE User’s Manual Note on the RAM Backup Mode: Although this emulator allows you to execute a program using POF instructions, execution of such programs is subject to the following limitations: The POF instruction cannot be stepped and over-stepped. Therefore, do not attempt to step and step-over the POF instruction.
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.
M34571T2-CPE User’s Manual 5.2 When the Emulator Debugger Does Not Start Up Properly (1) When the LEDs of the M34571T2-CPE Do Not Display Normally Table 5.1 Errors LEDs show and their checkpoints 1 Error System Status POWER LED does not light up. Table 5.2 Errors LEDs show and their checkpoints 2 Target Status LED display Blinking...
Page 69
M34571T2-CPE User’s Manual (3) Program Window of the Debugger Does Not Appear Table 5.4 Checkpoints of errors at debugger startup (2/2) Error The PD45M version and the version of firmware installed in the target do not correspond to each other. REJ10J0972-0100 Rev.1.00 February 10, 2006 The firmware already installed in the PD45M is older in version than that installed inside the emulator.
5.3 How to Request for Support After checking the items in "5 Troubleshooting", fill in the text file which is downloaded from the following URL, then send the information to your local distributor. http://tool-support.renesas.com/eng/toolnews/registration/support.txt For prompt response, please specify the following information: (1) Operating environment...
M34571T2-CPE User’s Manual 6. Maintenance and Guarantee This chapter describes how to maintenance, repair provisions and how to request for repair. 6.1 User Registration When you purchase our product, be sure register as a user. For user registration, refer to “User registration” (page 11) of this user's manual.
M34571T2-CPE User’s Manual (3) Expiration of the repair period When a period of one year elapses after the model was dropped from production, repairing products of the model may become impossible. (4) Transportation fees at sending your product for repair Please send your product to us for repair at your expense.
Need help?
Do you have a question about the Compact Emulator M34571T2-CPE and is the answer not in the manual?
Questions and answers