Home
Renesas M34571T2-CPE User's Manual
Contents
1. Figure 2 17 Latch timing of external trace input Instruction NOP instruction NOP instruction Figure 2 18 Latch timing of external trace input REJ10J0972 0100 Rev 1 00 February10 2006 stE amp NESAS Page 38 of 72 M34571T2 CPE User s Manual 2 Setup 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 Check pins TP1 VDD2 TP2 GND TP3 WRST Order d ono sage LX4 IN aa Cp D a Lu a CENESAS MADE IN J APAN M34571T2 CPE COMPACT EMULATOR 1449 sa qagcacaagcaaqaana 26 13 0 99a 0000o ooon op TARGET M34571T2 CPEB REV A AMAT NAINA POWER CLOCH_ fel eye 4 POWER SYSTEM STATUS SAFE PONEH_ SAFEL LED3 POWER_ RESE TL_ get ts ot oe OES RUN aa EDO Figure 2 19 Positions of the check pins IMPORTANT Notes on the Watchdog Timer Function 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 cont
2. 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 Do not use thinner or other solvents because these chemicals can cause the equipment s surface coating to separate 2 When you do not use this product for a long period for safety purposes disconnect the power cable from the power supply 6 3 Guarantee If your product becomes faulty within one year after its purchase while being used under good conditions by observing IMPORTANT and Precautions for Safety described in this user s manual we will repair or replace your faulty product free of charge Note however that if your product s fault is raised by any one of the following causes we will repair it or replace it with new one with extra charge Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadequate user s system or misuse of it Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product is being leased consult the leasing company or the owner 6 4 Repair Provisions 1 Repair with extra charge The products elapsed more than one year after purchase can be repaired with extra charge 2 Replacement with extra charge If your product s fault falls in any of the following categories the fault will be corrected by rep
3. M34571T2 CPE User s Manual 2 Setup 2 2 f 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 _ Problem amp Remedy Blinking OFF POWER crock reser run The emulator system is not working properly Check that power is supplied to the emulator The emulator may be damaged Contact your local distributor A clock is not supplied to the emulator Check that the oscillator circuit board OSC 2 is attached Check that the oscillator or oscillation module on an oscillator circuit board OSC 2 is operating normally The MCU is not controlled properly Check that the MCU is mounted properly Check that the oscillation frequency of the oscillator circuit board OSC 2 is within the MCU specifications The emulator system is not working properly The emulator may be damaged Contact your local distributor IMPORTANT Notes on the Self check Be sure to disconnect the user system before executing the self check Use the preinstalled oscillator circuit board OSC 2 6 MHz to execute the self check If the self check does not result normally excluding target status errors the emulator may be damaged Then contact your local d
4. Because the following ports are configured with port emulation circuits electrical characteristics differ from those of the actual MCU P00 P03 P1O P13 P20 P21 P30 P31 DO D3 C K 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 This only occurs after reset To enable the evaluation MCU to be run in its exclusive mode the pins on this product are processed when reset Although pin processing on this product is turned off after reset the MCU is in the Hi Z state This is why said difference occurs Notes on Port I O Timings Port input timings Port input timings are the same as with the actual MCUs Port output timings Port output timings are different from those of the actual MCUs for the following ports that are configured with port emulation circuits P00 P03 P10 P13 P30 P31 D0 D3 With the actual MCUs changes occur at the beginning of the T3 state of an output instruction With this product changes occur at the beginning of the T2 state of the next output instruction Figure 4 1 shows the port output timing for this product The output timings excluding the indicated above are the same as with the actual MCUs Instruction gt Port output instruction Next instruction Cycle lt m 4 p e F3 a m se T e p gt XIN ro of ft
5. the Init dialog box appears 1 Setting the Init dialog box 1 2 hit Serial No l Shows the currently connected emulators in list form Select serial No the serial No of the emulator you want to be connected Init File Automatically executing a script command Refer To automatically execute a script command when starting up the debugger click the Refer button and specify the TAE E ae script file to be executed Font rixedsys Font Clicking the Refer button brings up a file selection Size 1 dialog box The script file you have selected is displayed in the Init File section of the dialog box shown here If you do M Resume M AutoDownLoad not want to automatically execute a script command delete C Next He the character string displayed in the Init File section of the dialog box Cancel What you specify here is reflected at only startup If you epee specify back again in the Init dialog box after startup whatever you specified has no effect Be sure to restart the emulator debugger Redownloading the load module To download the load module user program again select the AutoDownLoad check box By default it is unselected Restoring the last window state To restart the state of the window in which it was when it was finished previously e g window position and size select the Resume check box flagged by a check mark when selected B
6. Memory Image Downloads only machine language data Symbol Downloads only debug information Reload Reloads the user program Upload Uploads the user program Saves the disassembled result Display after downloading the program The program window has the following two display modes S PD72M F Develop M34282T2 CPE Bin sample SAMPLE HEX File Edit View Environ Debug Option Window Help Source display mode SRC 4 F J Rs Wy HW BM Displays the source file of the user program E Program Window Sample a72 4 Disassemble display mode DIS Displays the di l lt of th View SRC DIS isplays the disassembled result of the user program Line BRK Source 00001 00002 00003 00004 WOP 00005 00006 RAM_CLRO LA 0000 KAM 0 00008 DEY 00009 B RAM_CLRO REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 43 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 2 Executing the program 1 Resetting the user program RESET Resets the program 2 Executing the user program co Executes the program from the current PC position STEP Executes one step from the current PC position OVER Executes one over step from the current PC position RETURN Executes the program up to the high order subroutine 3 Stopping the user program STOP Stops the program 4 Program window screen after the user program has stopped Pro
7. Page 18 of 72 M34571T2 CPE User s Manual 1 Outline 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 Operating temperature 5 to 35 C no dew Storage temperature 10 to 60 C no dew Table 1 8 Operating environment of the host machine IBM PC AT compatibles with USB1 1 OS Windows Me Windows 98 Windows XP Windows 2000 Pentium III 233 MHz or more recommended Memory 128 MB or more recommended Pointing device such as mouse Mouse or any other pointing device usable with the above OS that can be connected to the main body of the host machine Needed to install the emulator debugger or refer to the user s manual Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 19 of 72 M34571T2 CPE 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 65 Check the pack
8. VeorasV S pVeom60V 80 Table 4 5 Electrical characteristics of the 74ALS641A Signal Item Condition Standard values Unit Vor _ L output voltage Vec 4 5V lor 24mA oss os Tv L output current 24 Table 4 6 Electrical characteristics of the 74VHC126 ne Vec 3 0V Ion 4mA Tn Vou H output voltage Veo 4 5V Jor 8mA 3 94 y a aona VeV azma 036 OL i Vec 4 5V Iou 8mA 036 Table 4 7 Electrical characteristics of the 74HC4066 in Standard Mx Ron ONresistor Veo SV f 170 ARon ON resistor differens veas lro Torr Leak current Of Vee 12 0V 100 tz Keak current On output ope Voec120V 2100 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 60 of 72 M34571T2 CPE User s Manual 4 Hardware Specifications Table 4 8 Electrical characteristics of the 74VHC14 Signal Item Condition eae uae Unit Veo 3 0V P2200 H level threshold voltage Vec 4 5V hn i aa Veo 5 5V ee es ee pVeo 3 0V 09 L level threshold voltage Vee 4 5V_ oas o j y pVeo 5 5V S Hysteresis voltage Table 4 9 Electrical characteristics of the 74VHC08 ya ene Veo 3 0V Jo 4mA 0 36 _ LVeo 4 5VJo 8mA 0 36 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 61 of 72 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
9. 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 3 A USB device will be detected and the wizard to install the corresponding device driver will start up Follow the instructions of the wizard and a dialog box for specifying the setup information file inf file will appear In this dialog box specify the musbdrv inf file present in or below the directory in which you installed the M3T PD45M e g c mtool pdxx drivers While you are installing a message may be output indicating that the device driver proper musbdrv sys cannot be found Because musbdrv sys is stored in the same directory as is the musbdrv inf file look into the directory and specify it REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 21 of 72 M34571T2 CPE Users Manual 2 Setup 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 Power supply voltage DC 5 0 V 5 2 A Figures 2 2 and 2 3 show the specifications of the power connector J1 and an applicable plug respectively Electrode Electrode 1 7mm Inside diameter h 4 75mm Figure 2 2 Power connector specifications Figure 2 3 Applicable plug specifications
10. 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 User system l Connect the external cable to connector J4 aia vN gt I Lu O a M34571T2 CPE COMPACT EMULATOR MADE IN J APAN i M34571T2 CPEB REV A Figure 2 15 Connecting the external trace trigger cable 2 10 2 Connecting the External Trace Trigger Cable to the User System Connect the GND TRG and EXTO to EXT3 of the external trace cable to the user system Figure 2 16 shows the pin assignment of the external trace cable Pin No Label Color of IC clip Purpose Black GND White External trigger input _ Yellow Yellow Yellow Yellow External trace input Figure 2 16 Pin assignment of the external trace cable REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 37 of 72 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 2 Setup External trace input is latched in the timing shown in Figure 2 17 and external trigger input is latched in the timing shown in Figure 2 18 Instruction NOP instruction NOP instruction
11. external dimensions of the M34571T2 CPE Ao cage DA LNI 0 Olzdr Siena fe O faa U gt aa Lu O a z 85 0 MADE IN J APAN RENESAS M34571T2 CPE COMPACT EMULATOR 144 ses oe ac aeaoceaeeaa 26 o o o o o o o o o o o o o oo lt TARGET LED3 NUNUIN00NI POMER cd a POWER SYSTEM STATUS SAFE RESET STATUS POWER RUN CLOCK __ ekolo RESETL 7 RUN M34571T2 CPEB REV A Hmm iT Unit mm Figure 4 3 External dimensions of the compact emulator REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 62 of 72 M34571T2 CPE User s Manual 4 Hardware Specifications 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 IMPORTANT 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 Run the self check with the user system not connected Note on Quitting the Emulator Debugger To restart the emulator debugger always shut power to the emulator module off once and then on again Notes on the User System Power Supply Order of Powering On This emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately The voltage of the user syst
12. is attached Check that the oscillator on the oscillator circuit board OSC 2 or the oscillation module is oscillating properly Refer to 2 9 2 Selecting Clock Supply page 35 The MCU cannot be controlled Check that the MCU is properly attached Check that the oscillation frequency of the oscillator circuit board OSC 2 is within the specified range The emulator system is not working properly The emulator may be damaged Contact your local distributor 2 Init Dialog Box Does Not Appear at Debugger Startup Table 5 3 Checkpoints of errors at debugger startup 1 2 Checkpoint Communication error occurred Check the target status LED display If the LED is blinking the emulator did not Data was not sent to the target start up normally See 2 5 5 LED Display When the Emulator Starts Up Normally page 26 Check that the USB cable is connected properly See 2 4 Connecting the Host Machine page 23 USB device driver has been installed before the emulator debugger start up See 2 2 2 Installing the USB Device Driver page 21 Not compact emulator Check that an emulator other than the compact emulator such as PC4701 PC7501 is not connected REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 66 of 72 M34571T2 CPE User s Manual 5 Troubleshooting 3 Program Window of the Debugger Does Not Appear Table 5 4 Checkpoints of errors at debugger startup 2 2 Checkpoint The PD
13. product For details refer to 2 3 Connecting the Power Supply for the Emulator page 22 6 USB Cable Connector J2 This is a USB cable connector for connecting the host machine to this product For details 2 4 Connecting the Host Machine page 23 7 External Trace Cable Connector J4 This is an external trace cable connector when using an external trace function For details 2 10 Connecting the External Trace Trigger Cable page 37 8 MCU Power Supply Voltage Selection Switch SW1 This is a setting for an MCU power supply voltage For details refer to 2 5 1 MCU Power Supply Voltage Selection Switch page 24 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 17 of 72 M34571T2 CPE User s Manual 1 Outline 1 3 Specifications Table 1 6 lists specifications of the M34571T2 CPE Table 1 6 M34571T2 CPE specifications 4571 Group 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 5 0 V Divided by 8 mode Set the MCU power supply voltage selection switch Divided by 4 mode 6 0 MH Z SW1 to 5V Divided by 2 mode Through mode Applicable power supply 3 0 V 5 or 5 0 V 5 The power supply can be selected by a switch on the M34571T2 CPEB Available only from the emulator not from the user system Basic debugging functions Download Software break max 8 points break after execu
14. the target MCU and click OK button For how to use the M3T PD45M refer to the M3T PD45M online manual 2CENESAS Page 20 of 72 M34571T2 CPE Users Manual 2 Setup 2 2 Installing the 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 2 2 1 Installing the Emulator Debugger M3T PD45M From the CD ROM included with your product install the emulator debugger M3T PD45M following the procedure described below 1 Launching the installer From Windows Explorer etc start the setup exe program present in the PD45M W95E folder of the product disc 2 Entering the user information In the user information dialog box enter the user information contractor section contact address and host machine The supplied information will be turned into a format by which user registration will be provided by e mail 3 Selecting components In the component selection dialog box select the components you want to install In this dialog box you can change the directory in which to install 4 Completing the installation A dialog box will be displayed indicating that setup has been completed It means that the installation you made is completed 2 2 2 Installing the USB Device Driver Install the USB device driver following the procedure described
15. 0 2006 Disassemble Display DIS Bus DIS SRC Fowardf Back _Step _Come Range 0103 e Area Break File Cycle 0103 Address 0000 Address Obj code Label Mnemonic 0000 OC MAIN LY 07 0001 000 0002 OBO RAM_CLRO 0 MAIN 0 MAIN B 0002 00 02 F RAM_CLRO 0 MAIN KA 0 MAIN 0002 007 02 f 0 MAIN 0 MAIN 0002 007 02 F gt RAM_CLRO Trace Window BUS DIS SRC Forward Back Step Range 0103 D000 Area Break File Sample a 2 Cycle 0103 Addres Line Now Source 00001 00002 00003 BEA N 00004 00005 00006 RAM_CLRO 00007 00008 00009 RAM_CLRO 00010 00011 1 7 00012 RAM_CLR1 0 00013 0 00014 iii 2rCENESAS 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 Address Shows the status of the address bus Data Shows the status of the data bus Areg Shows the status of the register A Skip When marked by 1 it means a skipped instruction Int When marked by 1 it means an interrupt has occurred So When marked by 1 it means that stack overflow or underflow has occurred 0123 Shows the signal level of external trace cable of EXTO to EXT3 Page 50 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 2 Trace point setup dialog box Opening the trace point setup dialog box Setting the trace point dial
16. 16 PES Ss e eea E ene E ence ee ne ee nee en eT we ee NAE E eee eae eee 18 A OCT Athi EV INOMMMGING Seatetne setsuce ane AEE T E S 19 ID eee ee ec ose ag E EE ee se sen pepe notte T E AIE meee oes eee oes eto A AT 20 2 1 Flowchart of Starting Up the Emulator ccccccccccsseeceeceeeeeeaeeeeeeseeeeeesaeeeeeeseeeeeseeeeesseeseeessseeeesaeeeeesaaeeees 20 2 2 Installing the Emulator D COUQO CN veniseseccatisnandendantatoveundseandestate a A wet 21 2 2 1 Installing the Emulator Debugger M3T PD45M ccccccccseeeeceeeeeeeeeeeseeeeeseeeeseeeesaeeeesseeeeseeeeeseeeeess 21 2 2 2 nstaling Me USB Device Drivel i ccicistrpusstatece sua sievamie di a a a a a 21 2 3 Connecting the Power Supply for the Emulator ccccccececcseeeeeeseeeeeeeaeeeeeseeeeeeeseeeeeesseeeeeseeeessaseeeesaaeeees 22 2 4 Connecting the Host Machine c ccccccccssscecceesececceseeccseseeecsaucecseuseeessageeecsaseeeseaseeessageeeeseuseesssueeesssaneees 23 25 TONNO ONE F OWN e E a A E 24 2 5 1 MCU Power Supply Voltage Selection Switch 0 cccccccccseeeeeeseeeeeesaeeeeeeaeeeeeeseeseeeeeeeeeeseeeeeesaeeeeeeas 24 2 5 2 Checking Connections of the Emulator SyStemM ccccccccseeeeeseeeeeeeaeeeeeeaeeeeeeseaeeeesaeeeeesaeeeeesaeeeeeeas 25 2 9 3 Turning ON OFF the POWE cccecccecceeeeeeeeeeeeeeeeeeeeeeeeeeeeaeeseeeseeeeeeeeeeeeeeaeeeeeesaueeesaeeeesseeseeessaeeeeeeas 25 2 5 4 Power Supply to the User System cccc
17. 20 P21 N channel open drain I O C C MOS output Output Connection to the user system Connected by 2 54 mm pitch 26 pin flat cable 6 0 MHz 4 4 MHz oN z as N 74HC4050 74ALS641 A 74HC4050 74ALS641 A Nch 74VHC126 C MOS 74HC4066 TAVHC08 74HC4066 T4VHC14 N channel open drain REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 54 of 72 M34571T2 CPE User s Manual 4 Hardware Specifications 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 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 Initial values of internal resource data of an MCU at power on With the emulator system the ROM area at power on in initialized to 000h NOP instruction 2 Voltage drop detection circuit Because the operating voltage of this product is fixed to 3V or 5V it cannot evaluate any system using a voltage drop detection circuit 3 Power on reset You can reset this emulator system by the reset command of the emulator debugger M3T PD45M however this emulator system cannot emulate operation at a power on reset Therefore check the operation at a power on reset using an actual MCU 4 RESET output Because an emulation circuit exists in pin RESET systems tha
18. 45M version and the The firmware already installed in the PD45M is older in version than that installed version of firmware installed in the inside the emulator target do not correspond to each Download the latest firmware from the Web and install it securely other REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 67 of 72 M34571T2 CPE User s Manual 5 3 How to Request for Support 5 Troubleshooting 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 Operating voltage V Operating frequency MHz User system Connected Disconnected 2 Product information Target MCU V Emulator 3 Condition The emulator debugger starts up does not start up The error is detected not detected in the self check Frequency of errors always frequency 4 Problem REJ10J0972 0100 Rev 1 00 February 10 2006 ENESAS Page 68 of 72 M34571T2 CPE 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
19. 5535 Source TIME 10us 00002 Now Address Event Status Address Label Al D000 MAIN A2 DODO MAIN Combination Type And Or Ist Al A2 nd Al Timer N tU X OoOo ME Count 2 65535 Source TIME 10us 00002 Now Address Event Status Address Label Al D000 MAIN A2 DODO MAIN Combination Type And Or Sequential le oal s2 ST nd Al Cc A2 CT NS ord F Q Timer NotU oo ME Count 2 65535 Source TIME 10us 00002 2 CENESAS Setting the combinatorial event condition Select a combinatorial condition for Al A2 and T One of the following three combinatorial conditions can be selected AND All of the specified conditions are met OR One of the specified conditions is met Sequential The specified conditions are met sequentially in a specified order When you have finished setting the combinatorial event condition click the Set button setting a break event The following four break conditions can be set You can set two or more break conditions at the same time Break Point The program breaks when a breakpoint is reached Stack Overflow The program breaks when the stack overflow or underflows Trace Event The program breaks when a trace event is met Trace Full The program breaks when it finished writing to the trace memory Timer setup area The following four operation modes of the timer can be specified NotUse The timer is not us
20. CAUTION Notes on Connecting a Power Supply of the Emulator Q The power cable included in this product package is colored red and black Be careful about the polarity of the power supply Connecting to the wrong electrode could destroy internal circuits Do not apply a voltage exceeding the specified voltage of the product 5 0 V 5 because it may cause burn injuries and the failure of internal circuits REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 22 of 72 M34571T2 CPE Users Manual 2 Setup 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 Connect the USB interface cable to connector J2 To host machine lt Me a lt q To emulator power supply Connect the power cable to connector J1 Lu A T N m gt Ta F M MADE IN J APAN ac Oo lt Lu O lt am O REseET L IA M34571T2 CPEB REV A Figure 2 4 Connecting the emulator system REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 23 of 72 M34571T2 CPE Users Manual 2 Setup 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 MCU power supply voltage selection switch an
21. Cp gt ac Lu a RENESAS MADE IN J APAN M34571T2 CPE COMPACT EMULATOR STATUS POWER LED3 UNNT LeD6 YUUUUUUUUL PONERL_ PONERT _ ai Toh aio Gow a SAFE _ AN l CLOCKL_ ei ele qE Nee RESET Ai ofl oe OS RUC LOA M34571T2 CPEB REV A LED 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 As shown in Table 2 2 below set the switch according to the connection to the user system Table 2 2 Setting jumper switches MCU power supply voltage selection switch SW1 Supplied from the emulator The MCU operating voltage is 3 0 V Supplied from the emulator The MCU operating voltage is 5 0 V Z CAUTION Note on Jumper Switch Settings Always shut OFF the emulator before changing the setting of the jumper switches and connecting the cable Otherwise the internal circuit may cause a break REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 24 of 72 M34571T2 CPE Users 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 9 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 c
22. INI fa a ep co Lu ati M34571T2 CPE COMPACT EMULATOR MADE IN J APAN I Figure 2 11 Connecting to a 26 pin 2 54 mm pitch user system CAUTION Notes on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 32 of 72 M34571T2 CPE User s Manual 2 Setup Table 2 5 Connector assignments of the 26 wire normal pitch cable o l a a C CNTRI ee eo ee E DAICNTRO a 3 4 is 23 D2 5 Oo n 5 Kk ee gt Oo 6 6 REEE a 9 DO Oo T7 7 P 2 i8 PBU Ooo 8s OS o 8g S a o 7 o O Oo 9 9 i8 6 PAMTI tot st POMNO P13 P12 OOO E f a VSS O_O O E VSS VDD is connected for the emulator system to monitor power supply of the target and the emulator system does not supply a gt power to the user system XIN and XOUT are not connected XIN is input from oscillator board OSC 2 to the MCU and it is not input from an oscillator circuit on the user system To change a system clock frequency change the circuit of the oscillator board OSC 2 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 33 of 72 M34571T2 CPE User s Manual 2 Setup 2 9 Changing Settings 2 9 1 Changing the Power Supply Voltage to the MCU As shown in Table 2 6 below set t
23. Point Cancel Address Event Set At A2 Trigger Event High Low Pass 00001 Trace Range Before Break C Before Trace C About Trace C After Trace 2 Setting a break event Trace Point Cancel Address Event Set Al A2 Trigger Event High Low Pass 00001 Trace Range Before Break C Before Trace C About Trace C After Trace 3 Timer setup area Trace Point Cancel Address Event Set Al A2 Trigger Event High Low Pass 00001 Trace Range Before Break C Before Trace C About Trace C After Trace REJ10J0972 0100 Rev 1 00 February 10 2006 Now Address Event Status Address Label 1 0000 MAIN A2 0000 MAIN Combination Type And C Or C Sequential Ist AL Cc A2 CT nd Al A2 CT amp None Timer NotU X Mode NotUse Sount 2 65535 Source TIME 10us 00002 Now Address Event Status Address Label Al 0000 MAIN A2 0000 MAIN Combination Type And C Or C Sequential Ist Al CA2 CT nd Al C A2 CT None ord F E Timer Count 65535 Source TIME 1Qus l 00002 Now Address Event Status Address Label Al 0000 MAIN A2 0000 MAIN Combination Type And C Or C Sequential Is Al CA2 CT end Al CA2 CT None ard g P q Timer Mode NotUse i Count 2 65535 Source TIME 10us 00002 2 CENESAS Setting the combinatorial event condition Select a combinator
24. Port output of i actual MCU Port output of this product Figure 4 1 Port output timings As a pitch converter board and other devices are used between the evaluation MCU and the user system Some characteristics are slightly different from those of the actual MCU Therefore be sure to evaluate your system with an evaluation MCU REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 56 of 72 M34571T2 CPE User s Manual 4 Hardware Specifications IMPORTANT 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 described below In case where the MCU was reset during user program run execution program stop and break cannot be performed normally after that During debugging operation be sure to execute the afore mentioned watchdog timer invalid processing Note on Operation in RAM Backup Mode In RAM backup mode this product operates differently from the actual MCUs Although the actual MCU enters RAM backup mode depending on a combination of the EPOF and POF instructions this product is placed in RAM backup mode by only executing the POF instruction The EPOF instruction has no effect on this
25. REJ10J0972 0100 T Everywhere you imagine E a E NI ESAS M34571 12 CPE User s Manual Compact Emulator for 4571 Group Rev 1 00 Feb 10 2006 Renesas Technology WWW FENESAS COM Keep safety first in your circuit designs 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 Remember to give due consideration to safety when making your circuit designs with ap propriate measures such as i placement of substitutive auxiliary circuits ii use of non flammable material or ili prevention against any malfunction or mishap Notes regarding these materials These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp 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 Corp or a third party Renesas Technology Corp assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts pro g
26. age components User registration Install the emulator debugger M3T PD45M Set the MCU power voltage selection switch SW1 Connect the USB interface cable Connect the power supply for the emulator Connect the user system Turning on the power supply l Check the LED display of the emulator Start up the emulator debugger f Set the operating environment of the emulator debugger l Debug a program with various functions of the M3T PD45M Figure 2 1 Flowchart of starting up the emulator REJ10J0972 0100 Rev 1 00 February 10 2006 Refer to 1 1 Package Components page 13 Refer to User Registration page 11 Install it from the included CD ROM Select a power voltage supplied to the target MCU Connect the USB interface cable to the USB interface connector J2 of the emulator and the USB port of the host machine Connect a power supply to the power connector J1 Power supply should be 5 0 V 5 2 A Connect the user system as occasion demands Turn on the power to the emulator and the user system as simultaneously as possible Check that the system status LED and POWER and CLOCK of target status LED are lighting When the user system is not connected the POWER LED does not light up Start up the emulator debugger M3T PD45M When the INIT dialog box of the emulator debugger M3T PD45M is displayed click OK button The INIT dialog box is displayed again then select
27. al and this emulator are copyrighted with all rights reserved by us This user s manual may not be copied duplicated or reproduced in whole or part without prior written consent of us About diagrams The diagrams in this user s manual may not all represent exactly the actual object REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 5 of 72 M34571T2 CPE 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 This symbol represents a warning about safety It is used to arouse caution about a potential A N danger that will possibly inflict an injury on persons To avoid a possible injury or death please be sure to observe the safety message that follows this symbol DANGER indicates an imminently dangerous situation that will cause death or heavy wound A N D ANG ER _ unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING indicates a potentially dangerous situation that will cause death or heavy wound A WARN NG unless it is avoided CAUTION indicate
28. avs tao ig ete vest sei canes eer se Paso es sess eee eaens a nae denny aes sae cee see ate 43 3 3 Hardware Breakpoint Setting WiINGOW cccccccseeeeeeceeeeeeeeeeeeeeseeeeeeseeeeeeseeeeeeseaeeesaeeeeeeseaeeeesaageeessaeeesenaees 47 Fe AGO NOON tweens dace vette ct aeeassbecttete se bane Secu sac ceac here acetussedaue seme teaee E esses saceesete apts 49 3 5 Time ME ASUl SINGIN vcssstesvecerteccdectiecncesetcenscceeisiexte suddscavcoide need etewusucalanunesoiaencdetdvincselasemecolswusesetevecesenlyiectwiannecacte 53 4 Hardware Specifications sassiciursserindinienuseeneiin ein enaa aE EEEE Ea date a aa AE aaa 54 AN War Sb WAG ISS CIN GAMO IS eaei ini T O EET EAO E EE E E 54 4 2 Differences between the Actual MCU and Emulator ccccccccceeceeceeeeeeeeeeeeeeseeeeeesaeeeeeseeeeessaeeeesaeaeeeeeas 55 4 3 Connection DIAGN AUN ss tian cares cess ERE anes atansijan axnangainewien E E EE AE E 59 EE A OMAN MMM TNS OU etc ne cece esc E E belted saeco E ee oedema pet ae E 62 4 4 1 External Dimensions of the Compact Emulator cccccccecccceeececeececaeeeeceeeeeseesesseeesseeeeseeeesseeeeeas 62 4 5 Notes n Using INIS 18 G denne en en en ee ee ee eee ne er eee ae 63 5 Troubleshooting see tc esses ers Ftc sat a eas ces dc deer cere atc cd m cies etd ense dt aa oe seems eased ceca ana cu seeme dmcabesaceeenen decane 65 5 1 Flowchart to Remedy the Troubles ccccccccccseeeeceeeeeeeeeeeseeeeeseeeeeneeeeseeeeseeeseaee
29. be inspected The contents are displayed in order of execution paths Source mode The execution paths of the source program can be MMMM MANNA NN O D O O O ODO O ODO oo oo inspected These modes can be switched over using the respective toolbar buttons The trace window shows the measurement result when a real time trace measurement has finished The trace window remains blank until the real time trace measurement in progress finishes REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 49 of 72 M34571T2 CPE User s Manual 2 Trace window bus display Bus Display BUS Trace Window BUS DIS SRC awara Back Step Come Range 32767 0000 rea Break File Cycle 0026 Address O5F Label Address Data Areg I S 0026 O5F 0EB F 0 0 0 0000 0025 05F8 276 F 1 0 0 0000 0024 W1 O5F6 281 F 0 0 0 0000 0023 O5F 0EB F 0 0 0 0000 0022 O5F8 W6 ae 1 0 0 0000 0021 W1 O5F6 281 F 0 0 Ae 0020 O5F 0EB F 0 0 0 0000 0019 O5F8 276 F 1 0 0 0000 0018 W1 O5F6 281 F 0 0 0 0000 0017 O5F 0EB F 0 0 0 0000 0016 O5F8 276 F 1 0 0 9000 0015 W1 O5F6 281 F 0 0 0 0000 0014 O5F 0EB F 0 0 0 0000 0013 05F8 26 F 1 0 0 0000 0012 W1 O5F6 281 F 0 0 0 0000 0011 O5F 0EB F 0 0 0 9000 0010 O5F8 26 F 1 0 0 o000 0009 W1 O5F6 231 F 0 0 0 0000 0008 O5F 0EB F 0 0 0 0000 v 4 gt WY REJ10J0972 0100 Rev 1 00 February 1
30. be used in an environment with a maximum ambient temperature of 35 C Care should be taken that this temperature is not exceeded REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 7 of 72 M34571T2 CPE User s Manual Precautions for Safety CAUTION 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 Pay attention to the polarities of the power supply If its positive and negative poles are connected in reverse the internal circuit may be broken Do not apply any voltages exceeding the product s rated power supply voltage 5 0 V 5 Extreme voltages may cause a burn due to abnormal heat or cause the internal circuit to break down Cautions to Be Taken for Turning On the Power Turn ON OFF the power of the emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning on the power again after shutting off the power wait about 10 seconds Cautions to Be Taken for Handling This Product Use caution when handling the main unit Be careful not to apply a mechanical shock Do not touch the connector pins of the emulator main unit and the target MCU connector pins di
31. breakpoints can be set Hardware breakpoint eb haf A cA ESSA E A hardware breakpoint can be set or cleared by the hardware break point setting dialog box If the breakpoint you set is a hardware breakpoint the program stops after executing the instruction at the set breakpoint Up to two breakpoints can be set and conditions of an address range or external trigger etc can be also set REJ10J0972 0100 Rev 1 00 February 10 2006 stE amp NESAS Page 45 of 72 M34571T2 CPE 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 EEk sn PD72M F Develop M34282T2 CPE Bin sample 5AMPLE HEX File Edit View Environ Debug Option Window Help 44 gt A E rst sw Hw BM E Proeram Window Sample a72 i View SRC DIS f Line BRK Source a g 00001 ORG 0 0 p 00002 00003 MAIN DE O g 00004 NOP 00005 f 00006 RAM_CLRO LA 0 g 00007 KAM 0 00008 il DEY g 00009 B RAM_CLRO 1 Click the line in the program display area at which you want the program to execute 2 Click the Come button 00 h 05 m 44 s 822 ms 800 us 900 ns Click the line in the program display area at which you want the program to execute 2 After the Come command has finished v PD72M F Deve
32. ccssseecceeeeecceeseecceeneeecseseeeseaeeessegeeeeseeeeseageeessaneeeesssnseeeeas 25 2 5 5 LED Display When the Emulator Starts Up Normally cccccceccceeseeeeeeseeeeeeseeeeeeeeeeeeeseeeeeeseeseeeens 26 2 6 Downloading FHWA Si ccrcearat snc natamacetetanyhenneidendmuutantenuamicieauiuntan E EE aaa balan ENE a EEEE a EEE aE E EEEE 28 2 6 1 When It is Necessary to Download Firmware ccccccseceeeseeeeeeeeeeeeeeeseeeeeseeeeeseueeeseueeeseeeeseeeesenseeens 28 2 6 2 Downloading Firmware in Maintenance MOde cccscccecseeeeeeeeeeseeeeeeeeeeseeeeeseeeeeseueesaeeeesaneeesaneeess 28 Me I px cece iit N ares oir Gee Peet sede levees hyo Sate arid E A AAEE A E E A E 29 2 12 SEIPCHECK Procedur serseri niaren E E AAA E AAEE EEEE RE 29 2 1 2 If an Error is Detected in the Self Check ccccscccccsseeeeceeeeceesseecceeeeecseseecseeeeesedeeeseegseeesssaseeeeas 30 2 8 Connecting the User SyStemM ccccccsssceccceseeecseseeceeuseeeceeseeecseeeeeseuseeessaeeecsaeeeeseueeessageeeeecseeesssaseesssaneees 31 2 8 1 Connecting to a 2 54 mm pitch Dual in line PINS ee ccceceeeeeeeeeeeeeeseeeeeseeseeeeeeeeesseeeeeseeeeeeeas 32 2 9 Changing Settings a ciesicrssctcca cass ce cecunesdaicbinasi deSeaniedaintiondend oeamnss Uasemes Acted ons dedeauadausatnadednomanddeideaawecseeannieeilabusdidaeeendceiees 34 2 9 1 Changing the Power Supply Voltage to the MCU ec ceccccceeeeeeeeeeeeeeseeeeeeseeeeeesaeeeeeeaeeeeeeseaee
33. cuits logical circuits and MCUs When using the emulator 1 This product is a development supporting unit for use in your program development and evaluation stages In mass producing your program you have finished developing be sure to make a judgment on your own risk that it can be put to practical use by performing integration test evaluation or some experiment else 2 Inno event shall Renesas Solutions Corp be liable for any consequence arising from the use of this product 3 Renesas Solutions Corp strives to renovate or provide a workaround for product malfunction at some charge or without charge However this does not necessarily mean that Renesas Solutions Corp guarantees the renovation or the provision under any circumstances 4 This product has been developed by assuming its use for program development and evaluation in laboratories Therefore it does not fall under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan 5 Renesas Solutions Corp cannot predict all possible situations or possible cases of misuse where a potential danger exists Therefore the warnings written in this user s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases Please be sure to use this emulator correctly and safely on your own responsibility 6 This product is not qualified under UL or oth
34. debugger M3T PD45M except for RESET can be executed Exit RAM backup mode by applying key on wakeup input or reset input before executing the commands Note on the MCU Status While the Program is Idle The MCU status while the program is idle show below DI insertion mode DI insertion mode 1s executed while the user program has stopped Clock stop mode Clock stops while the user program has stopped In this status the timer and other internal peripheral functions are stopped However if the internal RAM reference setting Register reference setting step execution etc are performed a clock is supplied Note on a Break Operation When Skipping Instructions In cases when the next instruction is skipped by a skip instruction if a break operation hardware software or forcible break in the skipped instruction is attempted no break occurs If a skip and a break occur at the same time the cause of the break is cleared and the program continues running until the next cause of break occurs Example Ifa break operation is attempted when executing an instruction at address 0002 the intended break is canceled and the program continues running ADDR CODE 0000 RC 0001 SZC 0002 TABP 1 Skipped instruction 0003 TAM 0004 BL0004 The program continues to execute instruction without breaking Note on a Break Operation in a Train of Successive Instructions The program does not break in a train of successive instructions If a break opera
35. ed TimeOut The program loops at a constant frequency breaks when a breakpoint is reached within a specified time again As an operating condition a breakpoint must be reached at least once TimeCount The program breaks when a specified time has elapsed after it started running DelayCount The program breaks when a specified time has elapsed after a breakpoint is reached One of the following two can be specified as the count source for the timer TIME 10us The passage of time if counted using the emulator s timer 10us fixed CYCLE The passage time is counted by using MCU cycle Page 48 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 4 Trace Window 1 Trace window 1 Trace window Windows Opens the trace window Fl Trace Window Trace window BUS DIS SRP Forward Bark Step Come The trace window is used to show the results of real time Range 32767 0000 Area Break File Cycle 0026 Address 05F7 trace measurements It has the following three display Label Address Data Areg l 05F7 OEB ees 05F8 276 O5F6 281 05F7 0EB 05F8 276 O5F6 281 05F7 0EB 05F8 276 O5F6 281 05F7 0EB 05F8 276 O5F6 281 05F7 0EB 05F8 276 05F6 281 05F7 0EB 05F8 276 O5F6 281 O5F OEB Bus mode Bus information per cycle can be inspected The contents are displayed in order of execution paths Disassemble mode The execution paths of the executed instructions can
36. ed When the self check is terminated after turning the power on only the LED2 SAFE lights on as shown in Figures 2 7 and 2 8 When the target status LEDs do not display as shown in Figures 2 7 and 2 8 refer to 5 Troubleshooting page 65 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 26 of 72 M34571T2 CPE User s Manual 2 Setup When the user system NOT connected The POWER LED does not light C on ofr 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 supplied to the user system ON E Figure 2 8 Target status LEDs display when the emulator starts up normally when user system connected IMPORTANT Note on the Target Status CLOCK LED If the LED is not turned on check the following 1 After powering on the emulator before starting up the emulator debugger Make sure that the oscillator circuit board 1s properly installed in the emulator and it is oscillating normally REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 27 of 72 M34571T2 CPE 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 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 Wh
37. eeaas 34 2 9 2 SCICCUING CIOCK SUDDIY cacvcsedectreenducisnwesiniacumaiie todeesadcssudaahesducdate madwesds a Aaa AEN Eaa EEOAE 35 2 10 Connecting the External Trace Trigger Cable ccccccccseccccceeeeeeeseeeeeeeeeeeeeseseeeeseeseeesseseeessaseeeesaeseesaaneees 37 2 10 1 Connecting the External Trace Trigger Cable to the Emulator SyStem cccccseeeeeeeeeeeeeeeeeeeens 37 2 10 2 Connecting the External Trace Trigger Cable to the User SyStem cccccceeeceeeseeeeeeseeeeeseeeeeeens 37 2 10 3 Specifications of the External Trace Trigger Cable cccccccccceeeceeceeeeeeeseeeeeeseeeeeeseeeeeeesaeeeesseeeeeeens 38 2 11 Watchdog Timer Initialization Cycle Check PIn ccccccccccceseeecceeseeeceeseeeceeueeecceaseeessegeeeesasseessnsueeessageees 39 2 11 1 Check Pin WRST TP3 on the Emulator Main Unit 0 0 0 0 eecccccceeceeeeeeeeeeeeeeeesaeeeeeeneeeeeaeeeeesaes 39 2 11 2 Output Waveform of the Check PIN WRST cccceccccseececeeeeceeceseeeeeeee cesses cesseeeesseeeesseeeeseeeeeseeeeas 40 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 9 of 72 M34571T2 CPE User s Manual Contents Page 3 Usage How to Use the Emulator DE DUGGe r cee eccccceccceceeeeeeeeeeeeeeeaeeeesaeeeeeeesaeeeeseaaeeesseaeeeeseeeeeesaaeeeesaeeeeeesaees 41 3 1 Starting Up the Emulator Debugger Init Dialog BOX ce ccceccceeceeeeeeeeeeeeeseeeeesaeeeeeeseaeeeesaeeeeessaaeeeaaees 41 3 2 Program WINGOW occ f
38. em should be as follows 3 0 V 5 or 5 0 V 5 Do not change the voltage of the user system after turning on the power Before powering on your emulator system check that the host machine the emulator the converter board and user system are all connected correctly Next turn on the power to each equipment following the procedure below 1 Turn ON OFF the user system and the emulator as simultaneously as possible 2 When the emulator debugger starts up check the target status LEDs on the emulator to see if this product is ready to operate Is the power supplied Check that target status LED POWER is ON 1 Is the clock supplied Check that target status LED CLOCK is ON 1 When the user system is not connected the target status LED POWER does not light REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 63 of 72 M34571T2 CPE User s Manual 4 Hardware Specifications IMPORTANT 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 No events hardware breaks and trace points can be set in execution cycles of the POF instruction The events set in execution cycles of the POF instruction if any have no effect During RAM backup mode no commands of the emulator
39. en 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 Download the firmware in maintenance mode as explained here following The user system must not be connected when downloading the firmware 1 Connect the USB interface cable to the compact emulator and the host machine 2 Within 2 seconds of activating power to the emulator press the RESET switch on the compact emulator to switch to maintenance mode Switched to maintenance mode the SAFE SYSTEM STATUS LED begins to flash 3 Start up the emulator debugger M3T PD45M When the Init dialog box setup is complete the dialog which urges to download the firmware will appear Download the firmware following messages Required time for downloading the firmware is about 60 seconds IMPORTANT Note on Downloading Firmware Do not shut OFF power while the firmware is being downloaded Doing so the emulator will not start up properly If power is shut OFF by mistake redownload the firmware in maintenance mode REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 28 of 72 M345711T2 CPE User s Manual 2 Setup 2 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 Ifthe user system is connec
40. er safety standards and IEC or other industry standards This fact must be taken into account when taking this product from Japan to some other country REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 4 of 72 M34571T2 CPE Users 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 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 3 Aerospace 4 Nuclear power control 5 Undersea repeater If you are considering the use of this emulator for one of the above purposes please be sure to consult your local distributor About product changes We are constantly making efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or its user s manual may be changed without prior notice About the rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license for patent rights or any other rights belonging to us or third parties 3 This user s manu
41. eseeeesseeeessaeeesseeeeseseesaees 65 5 2 When the Emulator Debugger Does Not Start Up Properly ec cceccccseeeeeeeeeeeeesaeeeeeeseeeeeesaeeeeesaeeeeeenaees 66 5 93 How to Regq est for SUPPO iairaidh anian nan iaa i aa fea aai bau E aa acts dee ence aeai a a ii 68 6 Maintenance and GUAM AIC Sec ne toc de fettcect ere acednsoscctdeatisdiaciencseteconcands sua dsdegeeseasate wudsned wedicsnaiedusatsadeeseereccetecasdenee 69 Sd NI SOW ICONS rel lOM acre cet es cae neice cee tie vet eren cs vmemames acces cee veate cus nsers A A 69 EAEAN E EE NN EE EN EAT EE eet see ante EAN I EE N IEN 69 ESEC EIE E AET T A E E eee E ee een cee eee E 69 oA ROP FOV ON a E E E E E E E E 69 6 5 How to Make Request for Repair ccccceecccceececceseeceeceeeececeeeeeseaeeesecesseeeeseaeessaeeeseeeeseseesseeessaeeesaaeeses 70 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 10 of 72 M34571T2 CPE 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 email the same contents to the following address Your registered information is used for only after sale services and not for any other purposes Without user registration you will not be able to receive maintenance services such as a notification of field changes or trouble information So be sure to carry ou
42. ev 1 00 February 10 2006 RENESAS Page 58 of 72 M34571T2 CPE User s Manual 4 3 Connection Diagram 4 Hardware Specifications 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 Tables 4 4 4 5 4 6 4 7 4 8 and 4 9 show IC electric characteristics of this product for reference purposes Evaluation MCU XIN XOUT RESET M34571G6FP Port emulation Figure 4 2 Connection diagram of the M34571T2 CPE circuit POO P03 P10 P13 P30 P31 DO D3 Pg tora K 74HC4066 foo eS l eee dl gt c a _TAVHCO8 Oscillator cila NC lt circuit o OSC 2 N C p XOUT VDD2 1MQ 7 7 OO I RESET lt fp_t 1 lt h _te Ad RESET circuit I74V C14 74VHC14 455355 REJ10J0972 0100 Rev 1 00 February 10 2006 CENESAS User system Page 59 of 72 M34571T2 CPE User s Manual 4 Hardware Specifications Table 4 4 Electrical characteristics of the 74HC4050 Voo 2 0V iso H level threshold voltage Vcec 4 5V 315 Ve 20V_ o S oso L level threshold voltage
43. ge Low Rising edge 3 Address event setting dialog box Setting an address event You can select one of three conditions and you can also set a pass count select Type Point Range In Range Gut Pont Specified address Range In Specified address range Point 0000 Range Out Outside of specified address range Break Foint Al Fass UUUU1 Cancel REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 47 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 2 Setting the combinatorial event condition 1 Window for setting the combinatorial event condition H W Break Address Event Set Al A2 Trigger Event High Low Pass D0001 Break Mode Break Point M Stack Overflow M Trace Event M Trace Full 2 Setting a break event H W Break Cancel Address Event Set A1 A2 Trigger Event High Low Pass 00001 Break Mode Break Point M Stack Overflow M Trace Event M Trace Full 3 Timer setup area H W Break Cancel Address Event Set at a2 Trigger Event High Low Pass 00001 Break Mode M Break Point M Stack Overflow M Trace Event M Trace Full REJ10J0972 0100 Rev 1 00 February 10 2006 Cancel Now Address Event Status Address Label Al D000 MAIN A2 000 MAIN Combination Type And s oi l A c2 l end C Al A2 CT None ard a G C Sequential Timer NotU Mode NotUse z o ount 2 4
44. gram window screen The program position at which the program has stopped is identified by the yellow background color PD72M F Deve lop M3428212 GPE Bin sample S AMPLE HEX Sele File Edit View Environ Debug Option Window Help R2E1 m Rst sw nw BM A G Program Window Sample a 2 Me x f Line BRK Source f 00021 B RAM_CLR2 00022 f 00023 NOP 00024 NOP 00025 NOP 00026 LOOPS B LOOP 00027 00028 END 00029 lt 00 h 05 m 44 s 822 ms 800 us 900 ns REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 44 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Setting breakpoints 1 Screen after breakpoint setup Breakpoint setup screen There are two types of breakpoints as described below It is T Rsa ee he EE abs mjd HE carp ery Sree necessary to select the breakpoint by the break mode button AE jla mlj The current breakpoint is displayed in the break mode mirae Arts Masaka i We display area BM SW Software break mode S Break mode select button BM HW Hardware break mode Software breakpoint B A software breakpoint can be set or cleared by double clicking the breakpoint display area If the breakpoint you set is a software breakpoint the Break mode display area program stops before executing the instruction at the set Breakpoint display area breakpoint Up to eight
45. he emulator Secure the new oscillator circuit board with the screw Figure 2 12 Replacing oscillator circuit boards CAUTION Note on Replacing the Oscillator Circuit Board When removing the upper cover or replacing the oscillator circuit boards be sure to shut OFF the power supply Otherwise the internal circuit may cause a break REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 35 of 72 M345711T2 CPE User s Manual 2 Setup 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 Use the number of oscillator circuits recommended by the oscillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC gH e n pu S p bJ X1 5 08 mm pitch 2 pin oscillator X2 2 54 mm pitch 2 pin oscillator IC 1 Inverter Unbuffer X3 2 54 mm pitch 3 pin oscillator Figure 2 14 Circuits of the oscillator circuit bare board OSC 2 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 36 of 72 M345711T2 CPE User s Manual 2 Setup 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
46. he switch according to the connection to the user system Table 2 6 Setting switch MCU power supply voltage a D t selection switch SW1 i Supplied from the emulator The MCU operating voltage is 3 V Supplied from the emulator The MCU operating voltage is 5 V CAUTION Note on Jumper Switch Settings Always shut OFF the emulator before changing the setting of the jumper switches and connecting the cable Otherwise the internal circuit may cause a break REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 34 of 72 M34571T2 CPE User s Manual 2 Setup 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 A clock supplied to an MCU can be changed by replacing oscillator circuit boards 2 Replacing Oscillator Circuit Boards Figure 2 12 shows how to replace the oscillator circuit boards NI a g m U O 5 J4 m m ol m N m USB Oscillator circuit board POWER The oscillator circuit board of the emulator is placed as described on the left Unscrew the screw securing the oscillator circuit board Lift off the oscillator circuit board Attach the oscillator circuit board for replacement to the connector of t
47. ial condition for Al A2 and T One of the following three combinatorial conditions can be selected AND All of the specified conditions are met OR One of the specified conditions is met Sequential The specified conditions are met sequentially in a specified order setting a break event The following four break conditions can be set Before break 32K cycles of instruction execution before the user program stopped is recorded Before Trace 32K cycles of instruction execution before the user program stopped is recorded About Trace 32K cycles of instruction execution before and after a trace point condition was met is recorded After Trace 32K cycles of instruction execution after a trace point condition was met is recorded Timer setup area The following four operation modes of the timer can be specified NotUse The timer is not used TimeOut The program breaks when a breakpoint is not reached within a specified time TimeCount The program breaks when a specified time has elapsed after it started running DelayCount The program breaks when a specified time has elapsed after a breakpoint is reached One of the following two can be specified as the count source for the timer TIME 10us The passage of time if counted using the emulator s timer 10us fixed CYCLE The passage time is counted by using MCU cycle Page 52 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emula
48. inuously DWDT WRST In case where no watchdog timer invalid processing as described above is carried out there arise restrictions as described below In case where the MCU was reset during user program run execution program stop and break cannot be performed normally after that During debugging operation be sure to execute the afore mentioned watchdog timer invalid processing REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 39 of 72 M345711T2 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 Instruction WRST instruction Next instruction Figure 2 20 Output waveform of the check pin WRST REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 40 of 72 M34571T2 CPE 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 and how to use the major windows 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 gt gt Renesas gt gt PD45M V xx xx Release x gt gt PD45M When the emulator debugger started up
49. ircuits may be damaged When turning ON the power again after shutting OFF the power wait for about 10 seconds 2 5 4 Power Supply to the User System This emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately The voltage of the user system should be within the range of 3 0 V 5 or 5 0 V 5 Do not change the voltage of the user system after turning on the power REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 25 of 72 M34571T2 CPE Users Manual 2 Setup 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 POWER USB MADE IN J APAN Lu A A N m gt To wr M x E lt l Ww UO lt a FE DWER SYSTEM STATUS g Target status LEDs System 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 If it is not lit shut off the emulator and check the power supply for the emulator is properly connected 2 Target status LEDs Target status LEDs light as shown in Figure 2 7 when the user system is not connected and as shown in Figure 2 8 when a user system is connect
50. istributor REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 30 of 72 M34571T2 CPE User s Manual 2 Setup 2 8 Connecting the User System Figure 2 10 shows the connection of the M34571T2 CPE and the user system 26 wire normal pitch cable 1 For 26 pin DIP FFC 26BSM1 2 26 wire normal pitch cable is included with the product 2 Not included Prepare it separately FFC 26BSM1 is made by Honda Tsushin Kogyo Co Ltd Figure 2 10 Connection of the M34571T2 CPE and user system CAUTION 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 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 31 of 72 M34571T2 CPE User s Manual 2 Setup 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 1 Mount the 26 pole dual in line pins to the user system 2 Attach the 26 wire normal pitch cable included to the J3 connector of the M34571T2 CPE 3 Attach the 26 pole dual in line pins on the user system to the backside of the 26 wire normal pitch cable 0 O zar Or 0 Oo aos ag etXa
51. lacing the entire product instead of repair or you will be advised to purchase new one depending on the severity of the fault Faulty or broken mechanical portions Flaw separation or rust in coated or plated portions Flaw or cracks in plastic portions Faults or breakage caused by improper use or unauthorized repair or modification Heavily damaged electric circuits due to overvoltage overcurrent or shorting of power supply Cracks in the printed circuit board or burnt down patterns Wide range of faults that makes replacement less expensive than repair Unlocatable or unidentified faults REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 69 of 72 M34571T2 CPE 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 5 How to Make Request for Repair If your product is found faulty follow the procedure below to send your product for repair 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 CAUTION Note on Transporting the Product When se
52. lop M34282T2 CPE Bin sample SAMPLE HEX Ef File Edit View Environ Debug Option Window Help Slt l a m 2 rst sw nw Bm Pec Program Window Sample a 2 Line BRK Source 00001 00002 00003 MAIN 00004 0000 RAM_CLRO 00 h 00 m 00 s 000 ms 040 us 100 ns REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 46 of 72 M34571T2 CPE 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 Break Point Clicking this button opens the hardware breakpoint setup dialog box Hardware breakpoint setup dialog box You can use a combination of address event Al or A2 and Now Address Event Status Address Event Address Label Pass Al 0000 MAIN 00001 Set All AQ A2 O000 MAIN 00001 T external trigger event as a hardware break event Trigger Event Combination Type Setting an address event High Low And Or C Sequential 7 iene eee een PE is y selecting or A2 the address event dialog box will be Pass 00001 i ae g e ogl nd Al r A a T ie None displayed Break Mode ard g gt E p M Break Point Timer eee uation Setting an external trigger event Mode j NotUse i M Trace Event Count 2 65535 You can set edges or pass count of external trigger event M Trace Full Source TIME 10us x 00002 High Falling ed
53. mode for the emulator In this user s manual this symbol is used to show active LOW e g RESET REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 12 of 72 M34571T2 CPE 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 M34571T2 CPE package consists of the following items When unpacking it check to see if your M34571T2 CPE contains all of these items Table 1 1 Package components Item M34571T2 CPE Release Notes Japanese CD ROM Emulator debugger M3T PD45M Assembler ASM45 Please keep the M34571T2 CPE s packing box and cushion material in your place for reuse at a later time when sending your product for repair or other purposes Always use these packing box and cushion material when transporting this product If there is any question or doubt about the packaged product contact your local distributor REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 13 of 72 M34571T2 CPE User s Manual 1 Outline 1 2 System Configuration 1 2 1 System Configuration Figure 1 1 shows a configuration of the M34571T2 CPE system Power supply for emulator not included Power supply cable USB interface cable Power supply for user system not included tyel yas Le Figure 1 1 System configuration 1 Compact emulator M34571T2 CPE this
54. nding your product for repair use the packing box and cushion material supplied with this product when delivered to you and specify handling caution for it to be handled as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a bag make sure to use conductive polyvinyl supplied with this product usually a blue bag When you use other bags they may cause a trouble on your product because of static electricity REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 70 of 72 Compact Emulator for 4571 Group M34571T2 CPE User s Manual Publication Date Feb 10 2006 Rev 1 00 Sales Strategic Planning Div Penne ay 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 M345711T2 CPE User s Manual tENESAS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
55. of emulator Not normal Error displayed debugger displayed second Normal See 5 2 2 Init Dialog Box Does Not Appear at Debugger Startup page 66 Program window of emulator debugger diplayed Emulator debugger startup completed Figure 5 1 Flowchart to remedy the troubles REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 65 of 72 M34571T2 CPE User s Manual 5 Troubleshooting 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 Connection to Error Checkpoint the user system System Status POWER LED does Check that the power cable is connected not light up See 2 3 Connecting the Power Supply for the Emulator page 22 Table 5 2 Errors LEDs show and their checkpoints 2 Target Status LED display E E C tion t l o Problem amp Remedy C otod Blinking the user system a aa Check that power Vcc is properly supplied to the user system and ff cet that the user system is properly grounded The emulator system is working properly me ics Target Status POWER LED does not light up when the user system is disconnected The emulator system is not working properly Check that power is supplied to the emulator The emulator may be damaged Contact your local distributor A clock is not supplied to the emulator Check that the oscillator circuit board OSC 2
56. og box 1 Setting the trace point dialog box ceppi i Trace point setup dialog box You can use a combination of address event A1 or A2 and _Cancel Now Address Event Status Address Event Address Label Al D000 MAIN Set Al A2 A2 0000 MAIN external trigger event T as a trace event Trigger Event Combination Type Pan om l High C Low gird ee re Setting an address event Pace 00001 Ist AL CA CT By selecting Al or A2 the address event dialog box will be nd c Al A2 CT amp None displayed ad PAC AZ CT Trace Range Before Break Timer Setting an external trigger event Before Trace Mode NotUse X You can set edges or pass count of external trigger event C About Trace Count 2 65535 C After Trace Source TIME 10us 00002 High Falling edge Low Rising edge 2 Address event setting window in initial state Setting an address event You can select one of three conditions and you can also set Break Point Al a pass count Point Specified address Select Type Point Range In Range Out Range In Specified address range Range Out Outside of specified address range Point 0000 Pass ongli Cancel REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 51 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Setting the combinatorial event condition 1 Window for setting the combinatorial event condition Trace
57. our 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 Related manuals Emulator debugger M3T PD45M User s Manual ASM45 User s Manual REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 3 of 72 M34571T2 CPE Users 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 1 Compact emulator main unit 2 Package converter board for connecting the user system The emulator herein does not include the customer s user system and host machine 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 Be sure to use this emulator correctly according to said purpose of use Please avoid using this emulator for other than its intended purpose of use For those who use this emulator This emulator can only be used by those who have carefully read this user s manual and know how to use it Use of this emulator requires the basic knowledge of electric cir
58. p M4202 TS OCC On eamp FoR Cie det Yew Cpm wi Debe pio edo ek tj s Fl4 m SRE M Display of the time measurement result The time measurement result is displayed in the status bar at Time measurement result display area the bottom of the window COVE e ws Kus E iee EET REJ10J0972 0100 Rev 1 00 February 10 2006 stE amp NESAS Page 53 of 72 M34571T2 CPE 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 M34571T2 CPE Description Applicable MCU 4500 Series 4571 Group Evaluation MCU M34571GDFP mounted in the socket of the emulator Applicable power supply 3 0 V 5 or 5 0 V 5 Available only from the emulator not from the user system Maximum operating frequency 3 0 V Divided by 8 mode Set the MCU power supply voltage selection switch Divided by 4 mode to 3V Divided by 2 mode Through mode 5 0 V Divided by 8 mode Set the MCU power supply voltage selection switch Divided by 4 mode to 5V Divided by 2 mode Through mode Clock supply Main clock Xm Clock mounted on emulator 6MHz preinstalled replacable Port emulation Pin Output type Direction Device POO P03 Input P10 P13 Output P30 P31 Input N channel open drain or D0 D I O A C MOS output o pui P
59. product Table 4 2 shows the operation in RAM backup modes when executing each program Table 4 2 Operation in RAM backup modes when executing each program Program example Actual MCU M34571T2 CPE 1 1 Yes RAM backup mode No RAM backup mode Program example 1 1 POF and EPOF instructions executed RC INY EPOF POF Program example 1 2 Only POF instruction executed RC INY POF Program example 1 3 Only EPOF instruction executed RC INY EPOF REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 57 of 72 M34571T2 CPE User s Manual 4 Hardware Specifications IMPORTANT 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 Modification Modification PC Yes i ORA A Yes et a X Yes et OE E Z Yes et E Yes a a es O A OE Yes Yes I Yes l Yes PA No Yes Yes Wi Yes Yes Yes W2 Yes Yes Yes W3 Yes Yes Yes W5 Yes Yes Yes FRO No Yes Yes FRI No Yes Yes KO Yes Yes Yes Kl Yes Yes S No K2 Yes Yes Vi Yes PUO Yes Yes ee Yes PU2 Yes Yes Yes Yes means that the register can be operated No means that the register cannot be operated Note on Final Evaluation Be sure to evaluate your system with an evaluation MCU REJ10J0972 0100 R
60. product This 1s 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 3 Power supply for emulator This is a power supply for the emulator Supply 5 0 V 45 DC Prepare a power supply separately The power cable is included with this product Note Be aware that there are some AC adapters whose power supply voltage varies rather widely with its load You are recommended to use an AC adapter with a switching power supply or a stabilized power supply 4 User system This is your application system This emulator can be used without the user system REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 14 of 72 M34571T2 CPE User s Manual 1 Outline 5 Power supply for the user system This 1s 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 7 Pitch converter board This is a pitch converter board for connecting to an MCU foot pattern on the user system For details refer to 2 8 Connecting the User System page 31 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 15 of 72 M34571T2 CPE User s Manual 1 Outline 1 2 2 Names and Functions of each part of the Emulator Fig
61. rams and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corp without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corp or an authorized Renesas Technology Corp product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corp assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corp by various means including the Renesas Technology Corp Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Technology Corp assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corp semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesa
62. range Power is supplied to the target MCU ra Power is not supplied to the target MCU Green ON Clock is supplied to the target MCU Clock is not supphed to the target MCU Red oe Target MCU is not e reset Green ON User program 8 being cue REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 16 of 72 M34571T2 CPE User s Manual 1 Outline 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 Meaning o MCU is in a state of POF POF Orange POF Orange ON 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 Table 1 5 shows the functions of the system reset switch depending on the state of the emulator Table 1 5 Definitions of the target status LEDs State of Emulator J Fumin SSS the user s program is halted emulator debugger the user s program is executed waits for a command from the emulator debugger IMPORTANT Notes on a System Reset After pressing the system reset switch restart the emulator debugger M3T PD45M Otherwise the display of emulator debugger and the actual value in the emulator may not match When the emulator debugger does not start up normally even after rebooting turn off the emulator and then turn on again 5 Power Connector J1 This is a connector for connecting the power supply to this
63. rectly Static electricity may damage the internal circuits Do not pull this emulator by the communications interface cable or the flexible cable for connecting the user system And excessive flexing or force may break conductors Caution to Be Taken for System Malfunctions If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET button on the emulator upper panel 2 If normal operation is not restored after step 1 shut OFF the emulator once and then reactivate it REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 8 of 72 M34571T2 CPE User s Manual Contents Contents Page FR rater E E erste caterers nite penta uae nates E A E E E E E 3 NPP eai a APEE EA EE AE E A ENEE ETE E O EE AE E EEA AE A OEA E E 4 POC aUUon TOE ANG aE E E E 6 0617 2 1 cee ne A E E PE E I E E EAN E N N EET N ee T A EE EE N EE A EE ee 9 ISOM FRE TAN a E E E E E E A 11 BMI OVO k E E E ete EE E E E E E E A A EE E dels T T sinredanin 12 T OUUU rea E E E E E 13 lT Packe COMPONENTS tee jaa tones tee eorne E a EE TN 13 1 2 SY SUSI CONT UAT IN a scat cires stem ara E AAE AA aaltiaae EENE AE TE EE R ERES 14 1 2 1 System Configuration cccccseececceesececeeseeecceaeeecsauececseuseessaueeecsaseeecsaeeessageeecseaseeessaueesssageeessaeenenss 14 1 2 2 Names and Functions of each part of the EMUIAatOF cece cecccceeececeeeeeseeeeeeeeeeeaeeceseeeeeseeeeesaeeeees
64. s Technology Corp or an authorized Renesas Technology Corp product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corp is necessary to reprint or reproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corp for further details on these materials or the products contained therein M34571T2 CPE User s Manual Preface Preface The M34571T2 CPE is a compact emulator for the 4571 Group MCUs with the real time trace function This user s manual mainly describes specifications of the M34571T2 CPE compact emulator and how to setup it For details on the following products included with the M34571T2 CPE refer to each product s online manual Emulator debugger M3T PD45M Assembler ASM45 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 y
65. s a potentially dangerous situation that will cause a slight injury or a A CAUTION medium degree injury unless it is avoided C AUTION CAUTION with no safety warning symbols attached indicates a potentially dangerous situation that will cause property damage unless it is avoided IMPO RT ANT This is used in operation procedures or explanatory descriptions to convey exceptional conditions or cautions to the user In addition to the five above the following are also used as appropriate means WARNING or CAUTION JN CAUTION AGAINST AN ELECTRIC SHOCK Example means PROHIBITION ARADR Q pisassemsLy PROHIBITED means A FORCIBLE ACTION aii uNPLuc THE POWER CABLE FROM THE RECEPTACLE REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 6 of 72 M34571T2 CPE 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 If your developing product is transformless not having isolation transformer of AC power this may cause electric shock Also this may give an unrepairable damage to
66. t 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 RENESAS 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 Emulator debugger M3T PD45M This means a software tool which you can control the emulator from a host machine through the USB interface Firmware This means a program stored in the flash ROM of the emulator It analyzes contents of communication with the emulator debugger and controls the emulator M34571T2 CPE This program is downloadable from the emulator debugger to upgrade it etc Host machine This means a personal computer used to control the emulator system Target MCU This means the microcomputer you are going to debug User system This means a user s application system using the microcomputer to be debugged User program This means a user s application program to be debugged Evaluation MCU This means a microcomputer mounted on the emulator which is operated in the special
67. t use RESET output cannot be evaluated 5 Internal pull up transistor control Because this product has an emulation circuit present in ports PO and P1 you cannot use the MCU s internal pullup transistors Therefore the M34571T2 CPE controls on off of external pullup resistors 68kQ by decoding the pullup control register transfer instruction TPUOA and TPU1A 6 Unconnected pins Following pins are not connected to the user system Xin Xout Note on RESET Input A low input to pin RESET from the user system is accepted only when a user program is being executed when the RUN status LED on the emulator s upper panel is lit You cannot use an SRST instruction If it is executed it acts as a NOP instruction Notes on Operating Clock The clock generated on the OSC board only is usable as the operating clock and the clock listed below cannot be used 1 External input clocks on the user system Clock input to the MCU is supplied from the oscillator circuit board OCS 2 in the emulator and cannot be supplied from the oscillator circuit in the user system If the system clock frequency needs to be changed alter the circuit on the oscillator circuit board OCS 2 before use For details refer to Section 2 9 2 Selecting Clock Supply page 35 REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 55 of 72 M34571T2 CPE Users Manual 4 Hardware Specifications IMPORTANT Note on Port Electrical Characteristics
68. ted disconnect it 2 Set the switches as the factory settings to execute the self check see Table 2 3 3 Within 2 seconds of activating power to the emulator press the system reset switch on the emulator upper panel 4 Check the SAFE LED starts flashing and then press the system reset switch again 5 The self check will start If the normal result is displayed in about 10 seconds the self check terminated normally Table 2 3 Switch settings for the self check MCU power supply voltage selection swtich SW1 1 Within 2 seconds of activating power POWER SAFE POWER CLOCK RESET RUN press the reset switch i mh ll LED3 LED4 LED5 LED6 2 Check that the SAFE LED starts POWER SAFE POWER CLOCK RESET blinking then press the system reset rd 17 ff switch again I l l LED2 LED3 LED4 LED5 LED6 Self check starts POWER SAFE POWER CLOCK RESET RUN ps o __ B 3 Target status LEDs start blinking at random intervals gt L F Ittakes 10 seconds at XIN 4 MHz Blinking OFF SAFE LED status Normal Error POWER SAFE POWER CLOCK RESET RUN POWER SAFE POWER CLOCK RESET RUN Li oe Li rot 1 CI W M I EE FFA e _ FAL rt rod rT LED3 LED4 LED5 LED6 LED4 LEDS LED6 SAFE LED is turned off and one or more target status LEDs start blinking according to the error type LED display I I E Blinking Figure 2 9 Self check procedure REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 29 of 72
69. this product and your developing one While developing connect AC power of the product to commercial power through isolation transformer in order to avoid these dangers If other equipment is connected to the same branch circuit care should be taken not to overload the circuit When installing this equipment insure that a reliable ground connection is maintained If you smell a strange odor hear an unusual sound or see smoke coming from this product then disconnect power immediately by unplugging the AC power cable from the outlet Do not use this as it is because of the danger of electric shock and or fire In this case contact your local distributor Before setting up this emulator and connecting it to other devices turn off power or remove a power cable to prevent injury or product damage Warnings to Be Taken for This Product Do not disassemble or modify this product Personal injury due to electric shock may occur if this product is disassembled and modified Disassembling and modifying the product will void your warranty Make sure nothing falls into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Installation Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling water or some other liquid into the product may cause unrepairable damage Warning for Use Environment This equipment is to
70. tion Program execution stop allows free run execution supporting software breaks Memory reference setting Register reference setting Disassemble display Real time trace function Recording cycle 32768 cycles Trace point 2 address points range pass count can be set external trigger point Trace mode Before Break mode Records 32768 cycles before program stops Before Trace mode Records 32768 cycles before event on _ About Trace mode Records 32768 cycles before after event on After Trace mode Records 32768 cycles after event on Hardware break function Hardware break point external trigger point Break mode Address break or trigger break Stack over under flow Trace event Break at end of trace Timer Time measurement Time measurement point 2 address point designation range can be set Resolution 100 ns Measurement interval 8 types Count source Emulator timer or MCU cycle CO coverage Connection to user system For 26 pin 2 54 mm pitch DIP see 2 8 Connecting the User 26 wire normal pitch cable included System on page 31 DC 5 0 V 5 2 A externally supplied Prepare a power supply separately USB USB 1 1 full speed mini B standard connector Available to connect the host machine that supports USB 2 0 With the USB interface not all hardware such as host machine USB devices USB hub combination will work and guaranteed REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS
71. tion hardware software or forcible break is attempted in a train of successive instructions the intended break occurs in an instruction at which the successive instructions ended An example is shown below Example Ifa break operation is attempted while executing the instructions at addresses 0000 0003 the break occurs at address 0004 ADDR CODE 0000 LAO 0001 LAT 0002 LA2 Successive instructions 0003 LA3 0004 NOP lt A break occurs at this address REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 64 of 72 M34571T2 CPE 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 com en tools Turning on emulator Upper panel LED Not normal of emulator See 5 2 1 When the LEDs of the M34571T2 CPE Do Not Normal Display Normally page 66 Not normal Error displayed Init dialog box of emulator debugger displayed first 1 Check the operating environment etc of the emulator Normal debugger See the user s manual of the emulator debugger 2 Reinstall the emulator debugger Init dialog box
72. tor Debugger 3 5 Time Measurement 1 Trace window 1 Setting time measurement points Debug Measurement Point 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 1 From Go to Break From when the program starts running to when it stops 2 From Go to MP End From when the program starts running to when the end of Measurement Point Eo eem eter ier E measurement point passed KOJCE T ME 3 From Go to Trace Event From when the program starts running to when a trace event is met MP Start 0000 MP End 0000 4 From Trace Event to MP End From where trace event is met to when the measurement end point passed Cancel 5 From Trace Event to Break From when a trace event is met to when execution of the program finished 6 From MP Start to MP End From when the measurement start point passed to when the measurement end point passed 7 From MP Start to Trace Event From when the measurement start point passed to when a trace even is met 8 From MP Start to Break From when the measurement start point passed to when execution of the program finished Furthermore one of the following two can be specified as the count source for the timer TIME 100ns The passage of time is counted using the emulator s timer 100ns fixed CYCLE The passage time is counted by using MCU cycle Se POE I Develo
73. ure 1 2 shows the names of the LEDs on the upper panel of the emulator Check pins TP1 VDD2 POF status LED TP2 GND JP1 JP2 Y WRST ot MCU power supply voltage selection switch Not used for this system System reset switch always open ae External trace cable connector R USB a J2 USB interface connector POWER J1 Power connector Lu A x N H m Te wT mM a ie H lt w H lt a e STATUS TARGET STATUS sare SAFE LED2 M34571T2 CPEB REV A System status LEDs J3 Connector for user system LED1 Emulator power POWER LED2 Emulator status SAFE Target status LEDs LED3 User system power POWER LED4 Clock oscillation CLOCK LED5 MCU RESET status RESET LED6 Program execution RUN Figure 1 2 Names of the LEDs on the upper panel of the M34571T2 CPE 1 System Status LEDs The system status LEDs indicate the emulator main unit s operating status etc Table 1 2 lists the definition of the system status LEDs Table 1 2 Definitions of the system status LEDs Power is supplied to the emulator 2r Power is not supplied to the emulator Green ON Emulator system has started normally 2 Target Status LEDs The target status LEDs indicate the target MCU s power supply and operating status Table 1 3 lists the definition of each target status LED Table 1 3 Definitions of the target status LEDs O
74. y default it is selected REJ10J0972 0100 Rev 1 00 February 10 2006 RENESAS Page 41 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 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 Specifying the MCU file Mado 716 Specify the MCU to be debugged Mads 1G4 nit Fle Mada 7160 PEGER Toa Ta fs Pinjo i ry ee a E l Zi a Boils Syse size 14 Mesime Be Bon ar Wea Ge OK Cancel_ REJ10J0972 0100 Rev 1 00 February 10 2006 stE amp NESAS Page 42 of 72 M34571T2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 2 Program Window 1 Downloading a program 1 Initial screen of the program window 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 position of the program counter It automatically opens when the emulator starts up The program counter position is identified by the yellow background color Here you can execute the program up to the cursor position and set or clear software breakpoints With the emulator system the ROM area at power on in initialized to 000h NOP instruction 2 Downloading the program Menu Menu item Function File Download Downloads the user program Load Module Downloads machine language data and debug information
Download Pdf Manuals
Related Search
Related Contents
121602-0383-E1 Sélection: Filtre à air, système d Betriebsanleitung TwinRam 35 Serie HI TR4 Januar 2010 Presseinformation Trendnet 2-Port Gigabit Module Surface Pro用 USB3.0ハブ取扱説明書 LITEMAX DLF/DLH0868 Sunlight Readable 8.4” LED B WHEEL MANUAL - Charlie Srl EDITAL - Banco do Brasil Funcionamiento y mantenimiento de la consola P80 Copyright © All rights reserved.
Failed to retrieve file