Home

Renesas M30850T2-EPB Switch User Manual

image

Contents

1. RENESAS MADE IN JAPAN h j M30850T2 EPBM REV B Swi SW3 ON l E GiNvconTPs6 Nc vss A Vss g E AVss AVcc V C1 C20 C1 Vref AVss bypass capacitor A C2 AVcc AVss bypass capacitor is N Figure 2 21 Foot pattern for the A D conversion bypass capacitor IMPORTANT Note on the A D Converter Because a converter board and other devices are used between the evaluation MCU and the user system the A D converter operates differently from an actual MCU Make the final evaluation of the A D converter using an actual MCU REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 45 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Usage Emulator Debugger This chapter describes how to start up the emulator debugger and how to use the major windows taking the M3T PD308F as an example The following can apply to the M32C PC7501 emulator debugger 3 1 Starting Up the Emulator Debugger Init Dialog Box To launch the emulator debugger click the Start menu of Windows and then select Program P gt gt RENESAS TOOLS gt gt PD308F V xx xx Release x gt gt PD308F When the emulator debugg
2. 3 Within 2 seconds of activating power to the emulator press the system reset switch on the emulator front panel to switch the emulator to maintenance mode 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 20 seconds the self check terminated normally Table 2 1 Switch settings at self check VDDIO switch JP 1 VCC1 2 side POWER SAFE ERROR WARNING SYSTEM TARGET STATUS STATUS Maintenance mode started ERROR 1 SAFE and ERROR flash ERROR 2 SAFE flashes and ERROR lights ERROR 3 SAFE and ERROR light alternately ERROR 4 SAFE goes out and ERROR lights Figure 2 6 Self check procedure REJ10J1005 0200 Rev 2 00 April 1 2007 POWER SAFE ERROR WARNING SYSTEM TARGET STATUS STATUS POWER SAFE ERROR WARNING SYSTEM TARGET STATUS STATUS Emulation probe and firmware do not match POWER SAFE ERROR WARNING SYSTEM TARGET STATUS STATUS POWER SAFE ERROR WARNING SYSTEM TARGET STATUS STATUS POWER SAFE ERROR WARNING SYSTEM TARGET STATUS STATUS Emulation probe status error 2rCENESAS When the firmware does not support the emulation probe When the emulation probe is not connected properly When the PC7501 system is not working properly When a clock is not supplied to the emulation probe
3. For more information about user registration please email to the following address Text format for user registration C Program Files Renesas Hew Support For user registration regist_tool renesas com REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 11 of 98 M30850T2 EPB User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follows Emulator system This means an emulator system built around the PC7501 emulator The PC7501 emulator system is configured with an emulator main unit emulation probe host machine and emulator debugger Emulator main unit Hereafter PC7501 This means an emulator main unit for M16C Family MCUs Emulation probe This means the emulation probe this product for the M32C 80 84 85 86 and 8A Groups MCU MCU board M30850T2 EPBM The MCU board M30850T2 EPBM with an evaluation MCU Emulator debugger M32C PC7501 emulator debugger or M3T PD308F This means a software tool to control the PC7501 emulator and this product and enable debugging Firmware This is a program that analyzes contents of communication with the emulator debugger and controls the emulator hardware This program is installed in the flash memory in the emulator main unit This program is downloadable from the emulator debugger to upgrade the firmware or to support other MCUs Host machine This means a personal computer used to control the emulator main unit and emulation probe Sof
4. _________________p CN Vss BYTE Connected to the inside of the emulator Figure 4 1 Connection diagram 1 2 REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS User system Page 79 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications AP150 _ AP154 ay wis a ops AP156 8 yi XC QC AP157 a 11 XD QD 10 74HC4066 74HC4066 Figure 4 2 Connection diagram 2 2 Table 4 2 Electrical characteristics of the 74HC4066 Symbol ien Standard values Unit foNresitor ee l ou 45 7 100 2 10 ARon ON resistor difference 45 e Switch input leak curenr 10 e REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 80 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications 4 4 External Dimensions 4 4 1 External Dimensions of the Emulation Probe Figure 4 3 shows external dimensions of the M30850T2 EPB connected with the M30800T PTC and LCC socket ee Lt a l 0 8 aa A 15 0 55 0 Unit mm Figure 4 3 External dimensions of the emulation probe REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 81 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications 4 4 2 External Dimensions of the M30800T PTC Figure 4 4 shows external dimensions of the converter board M30800T PTC for a 100 pin LCC 80 5 Pr Soooooogooooooo coccoeocowboosococcce Unit mm Figure 4 4 External dimensions of the M30800T PTC 4 4 3 External Dimensions of
5. 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 Repairs not covered by warranty The products elapsed more than one year after purchase are not covered by warranty 2 Replacement not covered by warranty If your product s fault falls in any of the following categories the fault will be corrected by replacing 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 i
6. ro dba come save gap Lood nerotalt Range 262143 00000 Area Break File Cycle 00027 Address F8012E Time 00 04 45 326 168 Label Address Data BUS BHE BIU R W CPU OPC OPR ON B T Q T 76543210 h m s ms us F8012E CEAB 16b 0 CPU OO000000 00 04 452326 168 F8012E CEA 16b CPU 00000000 00 04 45 326 168 F80130 0400 16b CPU 00000000 00 04 45 326 168 progress F80130 0400 16b CPU Oo000000 00 04 452326 168 F80132 D2E6 16b CPU OO000000 00 04 45 326 168 F80132 D2E6 16b CPU 00000000 00 04 45 326 168 F80134 0400 16b CPU OO000000 00 04 452326 168 000400 0000 16b CPU 00000000 00 04 45 326 168 F80136 EDIJA 16b OO000000 00 04 452326 168 000400 0001 16b OO000000 00 04 45 326 168 000400 0001 16b OO0ONOOO 00 04 45 326 168 F80138 0012 16b 00000000 00 04 45 326 168 F8013A B104 16b OO0ONOOO 00 04 45 326 168 F80124 DEDE 16b OO0ONOOO 00 04 45 326 168 F80126 DEDE 16b 00000000 00 04 45 326 168 F80128 DEDE 16b OOOONOOO 00 04 45 326 168 F8012A DEDE 16b OO0OOOOO 00 04 45 326 168 F8012C DEDE 16b 00000000 00 04 45 326 169 F8012C DEDE 16b 0000000 00 04 45 326 169 F8012E CEA 16b Oo000000 00 04 45 326 169 F8012E CEA 16b 00000000 00 04 45 326 169 F80130 0400 16b 00000000 00 04 45 326 169 F80130 0400 16b Oo000000 00 04 45 326 169 F80132 D2E6 16b 00000000 00 04 45 326 169 F80132 D2E6 16b OO000000 00 04 45 326 169 F80134 0400 16b OO000000 00 04 45 326 169 000400 0001 16b OO0ONOOO 00 04 45 326 169 F
7. S W HW Addr Load Reload trace measurements It has the following four display Fei Trace Window modes Brac weeus weMix W ois E Source cone Bus mode Range 262143 00000 Area Break File Cycle 262139 Address F80038 Time 00 00 00 780 416 Bus information per cycle can be inspecte d The contents Label Address Data BUS BHE BIU R W RWT CPU OPC OPR QN f 262139 MAIN F80038 3BB8 16b 0 OC R 0 CUO 1 2 are displayed in order of execution paths 262138 F80034 3001 16b 0 F R Q ol 262137 F8003C 0018 16b 0 F R 0 CU 2 0 4 Disassemble data access mixed mode 262136 CNT 003001 1010 16b 0 RB R 0 CPU 0 2 2 262135 F8003E 5830 16b 0 F R O0 4 The executed instruction and the content of the accessed 262134 F80040 3002 16b 0 F R 0 CPU 1 0 5 262133 LOOPCNT 003000 1000 16b 1 RB R O CUD 2 3 data can be inspected together Contents are displayed in 465192 r Borat T ih 0 F R 0 CPU 1 0 4 WORKRAM_END 003002 0000 16b 0 RW R 0 CPU 0 2 2 i 262130 003004 2910 16b 0 RU R 0 2 ON IER Or EREC onan ran F80044 10E8 18b 0 F R 0 U2 0 2 Disassemble mode F80046 1794 16b 0 F R 0 3 960197 Fenods OFAC 16b 0 F R O cU 0 4 The execution paths of the executed instructions can be 262126 F80044 7BC8 16b 0 F R 0 CPU 1 0 5 inspected The contents are displayed in order of FRITDR FennNke QRAR IRR A NC R PIL 1 A
8. demo demo x30 File Edit View Environment Debug Option BasicWindows OptionalWindows Help JAHR Hi Ad Lo Reload 1 Click the line in the program display area at which you Program Window demo a30 Eh view E Source By Mix Vo Line BRK Source 00079 RIL 0H 000801 if ROH 0H do want the program to execute 2 Click the Come button AND B 0FH ROL AND B 0F0H R1H OR B R1H ROL MOV B ROL A0 Bj ROL ROL J003 i ADD L 01H A0 AQ A0 RIL 4RIL LPT ECP 00 h 00 m 00 sec 683 msec 432 usec MCU STOP 4 2 After the Come command has finished Xe PD3O08F C demo demo x30 M e x Fie Edit view Environment Debug Option BasicWindows OptionalWindows Help 2 2 7 d 2j ejes g Go Come Step Over Return Stop Break Reset Sf Hi Ad Lo Reload EF Program Window demo a30 Pile Es Ep view E Source By Mix Voi Line BRK Source 00079 RIL 0H if ROH OH do AND B 0FH ROL MOY B RIL RIH AND B 0F0H R1H OR B RIH ROL MOY B ROL LAO ROL ROL AQ 440 RIL 4RIL LPT ECP 00 h 00 m 00 sec 000 msec 000 usec MCU STOP 4s REJ10J1005 0200 Rev 2 00 April 1 2007 RENESAS Page 61 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 4 Hardware Breakpoint Setting Window 1 Breakpoint setup dialog box 1 Opening the hardware bre
9. 1 2007 2rCENESAS Page 18 of 98 M30850T2 EPB User s Manual 2 Setup 2 Setup This chapter describes the preparation for using this product the procedure for starting up the emulator and how to change settings 2 1 Flowchart of Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2 1 For details refer to each section hereafter And when the emulator does not start up normally refer to 5 Troubleshooting page 90 Check the package components y User registration y Install the M32C PC7501 Emulator Debugger or M3T PD308F y Connect the host machine MA Connect the power supply for the emulator MA Connect the user system MA Turning on the power supply MA Check the LED display of the emulator MA Start up the emulator debugger MA Set the operating environment of the emulator debugger y Debug a program with various functions of the emulator debugger Figure 2 1 Flowchart of starting up the emulator REJ10J1005 0200 Rev 2 00 April 1 2007 Refer to 1 1 Package Components page 13 Refer to User Registration page 11 Install the M32C PC7501 Emulator Debugger or M3T PD308F for this product Connect the PC7501 to the host machine with the LPT parallel interface cable USB interface cable or LAN interface cable Set the interface selection switch on the panel of the PC7501 to the using interface Connect a powe
10. 2 After starting the emulator debugger after setting the Init dialog box Check the oscillation circuit set in the Init dialog box oscillates normally REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 25 of 98 M30850T2 EPB User s Manual 2 Setup 2 Downloading Firmware 2 7 1 When It is Necessary to Download Firmware It is necessary to download the firmware when 1 you use this product for the first time 2 the firmware has been upgraded 3 the emulator debugger has been upgraded 4 you use this product with a PC7501 which was used with other emulation probe before If downloading firmware is not completed in the cases below redownload the firmware When the power is unexpectedly shut down during a download from the emulator debugger When a communications interface cable is unexpectedly pulled out 2 7 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 Set the interface select switch on the rear panel of the PC7501 to the LPT side and connect the LPT parallel interface cable to the PC7501 and the host machine 2 Within 2 seconds of activating power to the emulator press the RESET switch on the PC7501 upper panel to switch to maintenance mode Switched to maintenance mode the SAFE SYSTEM STATUS LED begins to flash 3 Start up the emulator debugger When the Init dialog box
11. 3 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 2 Figure 2 10 shows how to connect the emulation probe to a 100 pin 0 65mm pitch foot pattern on the user system with the M3T DIRECTIOOS not included and here following is its procedure For details on the M3T 1O00LCC DMS and M3T DIRECT 100S refer to each user s manual 1 Attach the M3T DIRECT100S to the user system 2 Attach the M3T 100LCC DMS to the M3T DIRECT100S 3 Attach the M30800T PTC to the M30850T2 EPB 4 Attach the M30800T PTC to the M3T 100LCC DMS M3T FLX160 EPB M30850T2 EPB CN2 side M30800T PTC M3T 100LCC DMS not included ES M3T DIRECT100S not included 100 pin 0 65mm pitch 1 PRQP0100JB A foot pattern f Ss ws ty ZB Uy tty S tty LS LY SS SN D d NS Py L ty SS ty AIS Ue SS 4 No 1 pin User system Figure 2 10 Connecting to a 100 pin 0 65mm pitch foot pattern 2 3 A CAUTION Notes 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 The small connectors of the M3T 1O0LCC DMS and M3T DIRECT100S are guaranteed for only 20 insertion removal iterations The small connectors of the M30850T2 EPB and M30800T PTC are guaranteed for only 50 insertion removal iterations REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 32 of 98 M30850T2 EPB User s Manual 2 Setup 2 9 4 Connecting to a 100
12. 72 REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 9 of 98 M30850T2 EPB User s Manual Contents Page 4 Hardware Specifications cc ccccsccceccecessscesseeeeeceeecccceeseeeeeeeeseccosenaceceesacesenseeeeesccceseseeeecessecccseeeeeeessesceessereeensssees 75 4 1 Target MCU Specifications ccccccccessseeceecesescceeeeeeeececcoesseneeeeesceccesseneeeeesseccessenecesseccoscssenseeeensssecssenseress 75 4 2 Differences between the Actual MCU and EMmulat0r ccccccecccceceseeceeeeaeeeeceeeeeeeeeeeeeeseeeeeeessaaseeeesasaaseees 76 43 CONNECCION DIAG ANS oo cttcnceccttotict ception E E AEE E RE 79 A kE KENII DIMEN ON ee E E T A A 81 4 4 1 External Dimensions of the Emulation Probe ccccecccccseeeeeeeeeeeseeeeeeeneeeeeeseeeeeeeseeeeeeseaeeesseneeeeeas 81 4 4 2 External Dimensions of the MS0800T PTC saannnannnnannnnnnnnnnnnnnnnnnnnsnnnnnnnnnnnnrnnnnnrnsnnrrennnrennnrrennrrnnnnerene 82 4 4 3 External Dimensions of the M3T F160 100NRB ccc cccccceececeeeeeceeeecee cesses eesseeesseeeeseeeesaeeeees 82 4 4 4 External Dimensions of the M3T F160 100NSD cece eecccccseceeeeeeeeeseeeeceseeceeseaeeeesseeeeesseaeeeeees 83 4 4 5 External Dimensions of the M3T FLX 144NSD 0 00 0 eccccceeeccecceeeeeeeeeeeeeseeeeceeaeceeseeeeeesseaeeesseaeeeeeas 83 AS NGOS ON Using TNS ProduCh corey ismee n T E E A cade ncenasaac 84 Oe MOUNES HOOI eeen eR A E E E A T E E E E E 90 5 1 Flowchart to
13. Remedy the Troubles cccccccccccseeeeeeceeeseceeeceeeeeeeeeeseeseeeeseeaeeeeeeseaeeeeesseaeeeeesseaeeeeeessageeeees 90 5 2 When the Emulator Debugger Does Not Start Up Properly cc ccececcecsseseeeeeeeeeeeeeseeeeeeeeesseaeeeeeeeneaeeeees 91 5 3 HOw t0 REQUEST TOP SUDDO sicsccccoasasiusgecnecunssawedeesvhieiesduonseivosabaidandennscseetionsuquanstuskndeeened N OAE 94 6 Maintenance ANd GUALAaNtee sricsiiirnarninic ninani aaa a aaia aa a a aaa aaa aaa 95 BoP USEF TACOS AO i E E E E E E E 95 o2 MAMONI O e A E E E E 95 SLETI e A A E ee E E A ee E 95 CA Rpa PTO IONS eer E E T 95 6 5 How to Make Request for Repair ccccccsesececseeeeecseeeeceeeseeeeeeueeessaueeeeeeaseeessaueessaeeeesaeeeesaeueeesseeeessnaaeess 96 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 10 of 98 M30850T2 EPB User s Manual User Registration User Registration Customer Registration Sheet is included with this manual fill it in and FAX it to your local distributor or email the same contents to the following address If you register it by email you can use a text format for user registration created when installing the software in the following folder 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 out the user registration
14. VCONT 32 768 kHz Do not set to VCONT bee SOn Ai Pin P87 is disconnected Connects pin P86 of the MCU to the user system P86 NC VSS Factory setting SW3 P86 Does not connect pin P86 of the MCU Do not set to VSS Connects pin P86 to the VSS in the emulation probe Does not connect pin XOUT of the MCU NC XOUT SW4 XOUT Factory setting Connects pin XOUT of the MCU to the user system NC XOUT Be careful about the direction when connecting REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 37 of 98 M30850T2 EPB User s Manual 2 Setup 2 Setting SW5 on the M30850T2 EPBM Table 2 3 lists the examples of setting the switch SW5 It is necessary to change the setting if using the analog input port selection function of the A D converter Setting the SW5 enables to set each analog input pin for selecting an analog input port When selecting ANOO to ANO7 or AN20 to AN27 for the analog input port select bits bit 2 and bit 1 of 0394h set the pins used for A D conversion to ON the pins not used to OFF Table 2 3 Switch settings of the M30850T2 EPBM SWS Analog input port Setting This is the setting when not using the analog input port selection function When using this product with the conditions below use this setting When not using the J analog input po
15. When the emulation probe is not working properly Page 27 of 98 M30850T2 EPB User s Manual 2 Setup 2 8 2 If an Error is Detected in the Self check If the self check does not result normally ERROR 1 to ERROR 4 in Figure 2 6 check the following 1 Recheck the connection of the emulation probe and PC7501 2 Redownload the proper firmware IMPORTANT Note on the Self check If the self check does not result normally excluding user system errors the emulation probe may be damaged Then contact your local distributor REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 28 of 98 M30850T2 EPB User s Manual 2 Setup 2 9 Connecting the User System There are eight ways available to connect the emulation probe to user systems as shown in Figure 2 7 Emulation probe GEE 144 pin 0 5mm pitch 0 5mm pitch 0 65mm pitch 4 M30800T PTC not included o a ad not included arrn lt gt NOE M3T FLX100 R not included not included lt S o M3T F160 100NRB LCC socket M3T DIRECT100S M3T DUMMY100S M3T F160 100NSD M3T FLX 144NSD 100 pin QFP 100 pin LCC 100 pin QFP 100 pin QFP 100 pin LQFP 144 pin LQFP not included not included not included not included not included not included Noi pin 1 These items are available in one package Figure 2 7 Connection of the M30850T2 EPB and user system A CAUTION Note on Connecting the User S
16. are using Specifying the method for storing debug Cancel Help I Next Hi eaten There are two methods for storing debug information on memory method where data is held in memory and an on demand method where data is held in a temporary file On Memory This method helps to speed up processing if your computer has sufficient memory On Demand This method helps to reduce the amount of memory needed To use this method select the On Demand check box 3 Reset tab 1 Resetting the target after downloading Resetting the target after downloading Specify whether or not to reset the target immediately after MOU Debugging hformation Peset Emulator Resume downloading the user program After Download Do Reset On tm Resets the target default Do Not Reset Does not reset the target The option you have specified here remains effective the next time you start up Cancel Help Next Hide REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 50 of 98 M30850T2 EPB User s Manual 4 Emulator tab 1 Specifying the target clock MCU Debueeing Information Reset Emulator i Resume Glock Wain Internal f External i Generated 30 0 MHz Sub Internal ff External Cable Select f Thput from External Trigger i Output Events Cancel Help Next Hide REJ10J1005 0200 Rev 2 00 April 1 2007 x 2rCENESAS 3 Usage How to Use the Emulator Debugger Spe
17. direction register or the function select register A3 is set 3 Setting 1 PRC2 from the dump window or script window during user program execution Note on Memory Access When setting memory expansion mode as a processor mode it may be changed to memory expansion mode temporarily before the user program itself changes from single chip mode to memory expansion mode Take due consideration on this phenomenon in the following cases 1 Immediately before executing the program after setting a software break 2 Immediately after stopping the program when a software break is set Note on Voltage Detect Circuit As the power voltage cannot be changed after powering on the user system the voltage detect circuit voltage down detect interrupt and hardware reset 2 cannot be used with this product Note on Page Mode Control Function When using the page mode control function for a ROM less version of the M32C 84 Group in a cycle for an area excluding the emulation memory written in word the following emulator function does not operate normally Real time RAM monitor Event detection Real time trace display This precaution only needs to be observed when using an emulator and do not apply for the actual MCU REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 88 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications IMPORTANT Notes on A D Conversion When setting the register below to use the analog input
18. event occurred to when the specified Start event became nonexistent Cancel Sy A range of cycles from when the specified Start event occurred to when the specified End event occurred REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 71 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 6 RAM Monitor Window 1 RAM monitor window 1 RAM monitor window RAM Monitor Window Opening the RAM monitor window RAM monitor window Up Down H Base l E Sam Clear i 1Byte H 2Bytes mn 4Bytes Hex DDec B 8m This window shows changes of memory contents while the Label Register lle Leese o A g oa user program is executed This is accomplished by using the real time RAM monitor function and the memory contents corresponding to the RAM monitor area are displayed in dump form The memory contents displayed here are updated at given intervals by default every 100 ms during user program execution 000160 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 72 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 RAM monitor area setting window 1 Opening RAM monitor area setting window FRAM Monitor Window 000010 a ala Base Teel Srl Clicking this toolbar button opens the RAM monitor area setting window 000160 2 RAM monitor area setting window in initial state RAM Monitor Area Se
19. high humidity Make sure that the product does not get wet Spilling NS water or some other liquid into the product may cause unrepairable damage Warning for Use Environment This equipment is to be used in an environment with a maximum ambient temperature of 35 C Care should be taken that this temperature is not exceeded REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 7 of 98 M30850T2 EPB User s Manual Precautions for Safety Cautions to Be Taken for Turning On the Power i Turn ON the power of the emulator and user system as simultaneously as possible Turn OFF the power of the emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning ON the power again after shutting OFF the power wait about 10 seconds 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 Static electricity may damage the internal circuits Do not pull this product by the flexible cable for connecting to the emulator main unit and emulation probe The cable may cause a break Do not flex the flexible cable for connecting to the emulator main unit and emulation probe excessively The cable may cause a break Do n
20. not included on page 29 For 100 pin 0 5mm pitch LQFP PLQP100KB A previously 100P6Q A M3T F160 100NSD not included For 100 pin 0 65mm pitch QFP PRQPO100JB A previously 1OOP6S A 1 M3T F160 100NRB not included 2 M30800T PTC not included M3T 100LCC DMS not included M3T DUMMY 100S not included 3 M30800T PTC not included M3T 100LCC DMS not included M3T DIRECTIOOS not included For 100 pin LCC socket M30800T PTC not included IC61 1004 051 not included 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 1 5 Operating Environment Be sure to use this emulator with the operating environmental of the emulator and host machine listed in Tables 1 7 and 1 8 Table 1 7 Operating environmental conditions Operating temperature 5 to 35 C no dew 10 to 60 C no dew Table 1 8 Operating environment of the host machine IBM PC AT compatibles OS Windows 98 Windows Me Windows XP Windows 2000 Pentium HI 600 MHz or more recommended 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 Windows is either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries REJ10J1005 0200 Rev 2 00 April
21. 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 WARNING unless it is avoided C AUTI ON CAUTION indicates a potentially dangerous situation that will cause a slight injury or a 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 IM P O 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 ane A N CAUTION AGAINST AN ELECTRIC SHOCK means PROHIBITION Q vIsasseMBLy PROHIBITED Example means A FORCIBLE ACTION E unrLuG THE POWER CABLE FROM THE RECEPTACLE REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 6 of 98 M30850T2 EPB User s Manual Precautions for Safety 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 sign
22. pin 0 65mm pitch Foot Pattern Part 3 Figure 2 11 shows how to connect the emulation probe to a 100 pin 0 65mm pitch foot pattern on the user system with the M3T DUMMY 100S not included and here following is its procedure For details on the M3T 100LCC DMS and M3T DUMMY 100S refer to each user s manual 1 Attach the M3T DUMMY 100S to the user system 2 Attach the M3T 100LCC DMS to the M3T DUMMY100S 3 Attach the M30800T PTC to the M30850T2 EPB 4 Attach the M30800T PTC to the M3T 100LCC DMS M3T FLX160 EPB M30850T2 EPB CN2 side M30800T PTC M3T 100LCC DMS not included On board evaluation M3T DUMMY100S not included 100 pin 0 65mm pitch PRQP0100JB A foot pattern User system Figure 2 11 Connecting to a 100 pin 0 65mm pitch foot pattern 3 3 A CAUTION Notes 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 The small connectors of the M3T 100LCC DMS and M3T DUMMY1I0OS are guaranteed for only 20 insertion removal iterations The small connectors of the M30850T2 EPB and M30800T PTC are guaranteed for only 50 insertion removal iterations REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 33 of 98 M30850T2 EPB User s Manual 2 Setup 2 9 5 Connecting to a 100 pin 0 5mm pitch Foot Pattern Figure 2 12 shows how to connect the emulation probe to a 100 pin 0 5mm pitch foot pattern on the user
23. 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 SYSTEM STATUS SYSTEM STATUS C POWER Q clock C RESET Q RUN O WARNING TARGET STATUS C POWER C clock C RESET C RUN O WARNING TARGET STATUS C POWER clock RESET C RUN O WARNING SYSTEM TARGET STATUS STATUS Maintenance mode started SAFE O O CLOCK ERROR O RESET RUN C WARNING SYSTEM TARGET STATUS STATUS Download terminated Figure 2 5 Downloading firmware in maintenance mode Note on Downloading Firmware SAFE O O CLOCK ERROR O O RESET O RUN O WARNING SYSTEM TARGET STATUS STATUS Downloading firmware started O ON OFF Flashing IMPORTANT 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 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 26 of 98 M30850T2 EPB User s Manual 2 Setup 2 8 Self check 2 8 1 Self check Procedure To run the emulator self check do so as explained here below While the self check is in progress LEDs will change as shown in Figure 2 6 1 If the user system is connected disconnect it 2 Set the switches as the factory settings to execute the self check see Table 2 1
24. the MCU tab of the Init dialog box When not using an address match interrupt select the check box When you use address match breaks if a low reset is input during a user program execution a debug monitor program about 100 cycles is executed after a reset is released Take note that it has effects on the user program execution time and the result of a trace REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 85 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications IMPORTANT Notes on EMEM Dialog Box Observe the following when setting up EMEM dialog box of the emulator debugger 1 Debug Monitor Bank Address When FO is specified 64 KB of area starting from FOOOOOh are allocated for use by the debug monitor The 64 KB allocated for the debug monitor cannot be used The below areas cannot be set for the debug monitor 1 MCU internal resources ROM RAM SFR area 2 Multiplex area 3 Interrupt vector area It is not possible to view or set the content of the specified area Even on the memory window or in the reverse assemble area of the program source windows the content of this area is not displayed correctly though it can be displayed 2 Processor Mode Set a processor mode for the target MCU To set single chip mode or memory expansion mode pin CNVSS used with MCU status must be L MCU status indicates pin level of the user system To set microprocessor mode pin CNVSS used with MCU sta
25. 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 manual 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 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 5 of 98 M30850T2 EPB User s Manual Precautions for Safety Precautions for Safety Definitions of Signal Words In both the user s manual and on the product itself several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons or damage to your properties This chapter describes the precautions which should be taken in order to use this product safely and properly Be sure to read this chapter before using this product 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 D ANG E R unless it is avoided However there are no instances
26. 00 April 1 2007 2rCENESAS Page 13 of 98 M30850T2 EPB User s Manual 1 Outline 1 3 System Configuration 1 3 1 System Configuration Figure 1 1 shows a configuration of the M30850T2 EPB system 1 Emulation probe Emulator M30850T2 EPB PC7501 gt IOV GE ae HY i Tessas tis T 2 Converter board M30800T PTC Host machine Figure 1 1 System configuration 1 Emulation probe M30850T2 EPB this product This emulation probe contains an evaluation MCU 2 Converter board M30800T PTC included This is a converter board for connecting to the user system for 100 pin 0 65mm pitch LCC socket For details refer to 2 9 Connecting the User System page 29 REJ10J1005 0200 Rev 2 00 April 1 2007 RENESAS Page 14 of 98 M30850T2 EPB Users Manual 1 Outline 1 3 2 Names and Functions of the PC7501 Upper Panel LEDs Figure 1 2 shows the names of the LEDs on the upper panel of the emulator System status LEDs Target status LEDs Figure 1 2 Names of the LEDs on the upper panel of the PC7501 1 System Status LEDs The system status LEDs indicate the emulator PC7501 s power supply firmware operating status etc Table 1 3 lists the definition of each system status LED Table 1 3 Definitions of the system status LEDs POWER Emulator system power supply is turned ON Emulator system power supply is turned OFF SAFE ON Emulator system is operating normally ssstsi isS Emulator system is operatin
27. 00 FETCH addr 000000 B4 OO0000 FETCH taddr 000000 Bh QOOU00 FETCH taddr 000000 Be OOOU00 FETCH addr 000000 BY OO0000 FETCH faddr OO0000 events in the same way as for the hardware breakpoints lIONOOOOO8 Combination PID AND Detail Enable Detail Trace Area Write Condition Break Total Detar Reset Dave Load Set Close REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 70 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Specifying a trace range Specifying a trace range You can specify a trace range for the trace event ES Trace Point Setting Window Event Status PASS E CONDITION m 1 Bl 000000 FETCH adde cooood 256K cycles of instruction execution before the user Ol 1 82 000000 FETCH adde 00000 propranistopped 1srecorded O 1 B3 000000 FETCH addr 000000 ee O 1 B4 000000 FETCH addr 000000 256K cycles of instruction execution before a trace point O 1 BS 000000 FETCH addr 000000 condition was met is recorded O 1 B 000000 FETCH addr 000000 A Doui l O 1 67 000000 FETCH addr 000000 128K cycles of instruction execution before and after a E A der eke ee ee trace point condition was met is recorded After PID 256K cycles of instruction execution after a trace point AND Detail Enable Detail condition was met is recorded Full Trace Are
28. 2 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 4 Opening the break event setting dialog box Specifying the event type Click to select the event type you want to set 4 Set Event Status FETCH Detects an instruction prefetch DATA ACCESS Range faddr Address Detects a memory access Address 1 ponon dddress 2 poon r BIT SYMBOL I Function Detects a bit access Source File INTERRUPT UACTIOF a Detects an interrupt occurrence or interrupt termination TRIGGER ACCESS FETCH ADDRESS 000000 Detects a signal from the external trace signal input CONDITION taddr 000000 cable 2 When FETCH is selected 1 Window for setting addresses Al Set Event Status Setting the address You can set eight conditions e g a specified address a Event Type specified address range etc When you have finished setting Fetch the address click OK Setting Range addr Address Address 1 fooooo0 r Address 2 ponon 7 Function Source File Function r ACCESS FETCH ADDRESS 000000 CONDITION taddr 000000 Cancel REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 63 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 When DATA ACCESS is selected 1 Window for setting the address Setting the address 41 Set Evert status You can
29. 65mm pitch foot pattern on the user system with the M3T F160 1OONRB not included and here following is its procedure For details on the M3T F160 10ONRB refer to its user s manual 1 Mount the NQPACKI100RB included with M3T F160 1OONRB on the user system 2 Attach the YQOPACKIOORB included with the M3T F160 1OONRB to the NQPACKIOORB and secure them with YQ GUIDEs 3 Attach the CN2 side of the M3T F160 1O0ONRB to the J4 side of the M30850T3 CPE 4 Attach the M3T F160 100NRB to the YQPACK100RB M3T FLX160 EPB M30850T2 EPB CN2 side M3T F160 100NRB not included On board evaluation amp HQPACK100RB168 YQ GUIDE x4 not included YQPACK100RB NQPACK100RB FLASH MCU etc These corners are not round 100 pin 0 65mm pitch PRQP0100JB A foot pattern These four items are available in one package User system Figure 2 9 Connecting to a 100 pin 0 65mm pitch foot pattern 1 3 A CAUTION Notes 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 The small connectors of the M3T F160 1OONRB are guaranteed for only 50 insertion removal iterations The small connectors of the M30850T2 EPB and M30800T PTC are guaranteed for only 50 insertion removal iterations REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 31 of 98 M30850T2 EPB User s Manual 2 Setup 2 9
30. 80136 EDIJA 16b OOOONOOO 00 04 45 326 169 Click this toolbar button to resume the trace measurement in a O CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU CPU a a A m A s E a a E s E s E a A s E s E e A e TMI TDI NI TN i NNNNA TNN DENDTNI NINI TN DDDIDI DIDI DDDDDDDD D DDI DIDID e n aaa aa a a E E E E E E E E E E E Pore ee ee eee 1 OK I OM I OM Hee ee ee IrrmoovooocoooocCCC 1 KHOI mot nmooooooo PSAP NNUN NUNDU TPN APNA L amp E WDwIPwWP X 1 1 1 i 2 2 1 1 II III I II III I I I I E REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 69 of 98 M30850T2 EPB Users Manual 3 Usage How to Use the Emulator Debugger 3 Trace point setup dialog box 1 Opening the trace point setup dialog box Trace Point IRange Area File Cycle Address Time p f g Cycle Label Address Data BUS BHE BIU R W RWT CPU OPC OPR ON B T G T 76543210 oh m s ms us Clicking this toolbar button opens the trace point setting window 2 Trace Point Setting Window in initial state Trace Point Setting Window in initial state Be sure to enable the trace point function in the Init dialog r Trace Point Setting Window Event Status F ADDRE ACCE CONDITION s box before you set up in this window Here you can set B1 OO0000 FETGH addr 000000 BY OOO000 FETCH addr 000000 B3 OQOOU
31. Break Function Self Check 278h Debug the program using the Watchdog Timer Debue the program using the GPU Rewrite Mode OK Cancel Help Next Hide REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 46 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 Specifying the communication interface LAN communication Specifying the communication interface LAN communication For selecting the LAN communication click the radio MeL l Debuee ine Information Reset Emulator Resume MCO m30850_a mcu Refer button LAN of the MCU tab Specify the IP address of the emulator at the IP address area Specify the IP address by e LPT Seneeenenee IF Address fi T2 o0z Aa Target a period Specify the port number at the Port area ales 7500 I Self Check Resource W Enable the Address Match Interrupt Break Function C USB one byte of decimal number separating each four bytes with Debug the program using the Watchdog Timer Debug the program using the GFU Rewrite Mode Cancel Help Next Hide 4 Specifying the communication interface USB communication Specifying the communication interface Se O x BD xl USB communication MELU i i Debugging Information Reset Emulator Resume For selecting the USB communication click the radio MOU m3050 _a mcu Peier button USB of the MCU tab The emulators
32. If using a CPU clock of 30 MHz or more when the voltage of VCC1 is higher then that of VCC2 set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1 when reading this area This precaution only needs to be observed when using an emulator and do not apply for the actual MCU Note on Intelligent I O Resistor Access If using a CPU clock of 30 MHz or more when the voltage of VCC1 is higher then that of VCC2 set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1 when reading this area This precaution only needs to be observed when using an emulator and do not apply for the actual MCU REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 76 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications IMPORTANT Note on Differences between the Actual MCU and Emulator Operations of the emulator system differ from those of actual MCUs as listed below 1 Reset condition 2 Initial values of internal resource data of an MCU at power on 3 Interrupt stack pointer ISP after a reset is released 4 Capacities of the internal memories ROM and RAM The MCU whose RAM size is 24 KB 400h 63FFh is mounted on this product The internal flash memory is automatically allocated to FOOOh FFFFh and F80000h FFFFFFh in the single chip mode and memory expansion mode 5 Oscillator circuit Make note of the fact that in the oscillator circuit where a resonator is connected between p
33. J10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 89 of 98 M30850T2 EPB User s Manual 5 Troubleshooting 5 Troubleshooting This chapter describes how to troubleshoot when this product does not work properly 5 1 Flowchart to Remedy the Troubles Figure 5 1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger starts up Check this while the user system is disconnected For the latest FAQs visit the Renesas Tools Homepage Turning on emulator Front panel LED of emulator Normal Init dialog box of emulator debugger displayed Normal EMEM dialog box of emulator debugger Normal Program window of emulator debugger displayed Normal Vv http www renesas com tools Not normal l 1 Check connection of the power supply cable See 2 5 Connecting the Power Supply for the Emulator page 23 2 Check that the power is properly supplied to the user system See 2 6 Turning ON the Power page 24 Not normal Error displayed 1 Check the operating environment etc of the emulator debugger See the users manual of the emulator debugger 2 Reinstall the emulator debugger Not normal Error displayed l See 5 2 2 EMEM Dialog Box Does Not Appear at Debugger Startup page 92 Error displayed l See 5 2 3 Errors Occur at Debugger S
34. M30850T2 EPB contains all of these items Table 1 1 Package components l l Please keep the M30850T2 EPB 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 Tf there is any question or doubt about the packaged product contact your local distributor For purchasing the IC61 1004 051 or for technical information contact Yamaichi Electronics Co Ltd 1 2 Other Tool Products Required for Development To bring forward programs development on the M32C 80 84 85 86 and 8A Group MCUs the products listed below are necessary in addition to those contained package above Get them separately Table 1 2 Other tool products required for development Product name PC7501 Emulator debugger M32C PC7501 Emulator Debugger M3T PD308F V 3 20 Release 1 SO 144 pin 0 5mm pitch LQFP M3T FLX 144NSD 14P6Q A Required ding to the foot patt l equired according to the foot pattern 100 pin 0 5mm pitch LQFP M3T F160 100NSD f th 100P6Q A of the user system see 2 9 Connecting the User System 100 pin 0 65mm pitch grp M3T 1001CC DMS M3T DUMMY 100S S lt 0 E y 100P6S A M3T 100LCC DMS M3T DIRECT100S M3T 100LCC DMS M3T FLX 100NRB To purchase these products contact your local distributor ae Oo D _ al D gt O Q REJ10J1005 0200 Rev 2
35. M30850T2 EPBM O RENESAS m E o O E D0 MADE IN JAPAN E Oo LS AOU Figure 2 14 Positions of the switches EE E SWin po M2 a avec Ugo i AVSS EX INT XCIN VCONT P86 10 k 7 NC VSS REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS M30850T2 EPBM REV B Page 36 of 98 M30850T2 EPB User s Manual 2 Setup 1 Setting JP1 SW1 to SW4 on the M30850T2 EPBM Table 2 2 shows the settings of JP1 SW1 to SW4 on the M30850T2 EPBM Table 2 2 Switch settings of the M30850T2 EPBM JP1 SW1 to SW4 Switch Setting JP1 VDDIO SW1 Factory setting YL 3 0 V lt VCCI VCC2 lt 5 5 V Factory setting a E a 4 8 V lt VCCI lt 5 2 V and 3 3 V lt VCC2 lt VCCI VCC1 gt 2 Connects pins AVCC and A VSS of the MCU to the user system AVCCG AVSS EXT INT Connects pin AVCC of the MCU to the internal power supply of the Woar Mm emulator and connects pin AVSS to the GND in the emulator Connects pin P87 of the MCU to the user system P87 XCIN VCONT Factory setting SW2 P87 Connects pin P87 of the MCU to the sub clock oscillator circuit P87 XCIN
36. REJ10J1005 0200 T Everywhere you imagine g gE NESAS M30850 2 EPB User s Manual Emulation Probe for M32C 80 84 85 86 and 8A Groups Rev 2 00 Apr 01 2007 Renesas Technology WWW Fenesas com Keep safety first in your circuit designs 1 Renesas Technology Corp puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage 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 iii prevention against any malfunction or mishap Notes regarding these materials 1 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 2 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 3 All information contained in these materials including product da
37. TCH fadd 000000 000000 FETCH addr 000000 000000 FETCH addr 000000 000000 FETCH addr 0000A 000000 FETCH faddr PID K Detail 0 Enable Detail Reset Dave Load set Close 2rCENESAS 3 Usage How to Use the Emulator Debugger Setting the combinatorial event condition There are following four conditions that you can choose for the combinatorial events AND The program breaks when all of the specified events occur AND Same Time The program breaks when the specified events occur at the same time OR The program breaks when one of the specified events occurs STATE TRANSITION The program breaks when the state transition diagram goes into the break state For each event a pass count number of passing is specifiable 1 255 When AND same time is specified for Combination you can not specify the pass count fixed to one When you have finished setting the combinatorial event condition click the Set button Page 66 of 98 M30850T2 EPB Users Manual 3 Usage How to Use the Emulator Debugger 3 5 Trace Window 1 Trace window 1 Trace window Optional Windows Opens the trace window Trace window The trace window is used to show the results of real time e PD308F C demo demo x30 File Edit Yiew Environment Debug Option BasicWindows OptionalWindows Help z 5 7 d n eja ee S amp Go Come Step Over Return Stop Break Reset
38. V and 3 3V lt VCC2 lt VCCI 32MHz When the JP1 of the M30850T2 EPBM is set to VCC1 gt VCC2 the voltage of VCC2 on the user system should be 3 3 V or more REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 75 of 98 M30850T2 EPB 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 Notes on Power Supply to the User System Pin Vcc of the emulator is connected to the user system to observe the voltage of 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 following 1 When JP1 of the M3085T2 EPBM is set as VCC 2 3 0 V lt VCC1 VCC2 lt 5 5 V 2 When JP1 of the M3085T2 EPBM is set as VCC gt 2 48V lt VCCI lt 5 2V 3 3 V lt VCC2 lt VCCI Do not change the voltage of the user system after turning on the power Notes on Using This Product When the Voltage of VCC1 is Higher than That of VCC2 If using this product when the voltage of VCCI is higher than that of VCC2 set the JP1 of the M30850T2 EPBM to VCC1 gt 2 For the switch JP1 of the M3085T2 EPBM refer to 2 10 Setting Switches page 38 If using this product when the voltage of VCCI is higher than that of VCC2 the CPU clock must be 24 MHz or less
39. a Write Condition l l 256K cycles of instruction execution after a trace began is Break hi Total Detail recorded Reset DAYE Load Set Close Combination 4 Setting the trace write condition Setting the trace write condition You can specify a condition for the cycles to be written into P Trace Point Setti g Wind Event status the trace memory 2 CONDITION B1 000000 FETCH addr 000000 Total B2 000000 FETCH addr 000000 All cycles are written into memory B3 000000 FETCH addr 000000 B4 000000 FETCH addr 000000 BS 000000 FETCH addr 000000 E6 000000 FETCH addr 000000 67 000000 FETCH addr 000000 y Combination PID AND Detail Enable Leis Trace Area Write Condition IE k r Fick Detail BP l 7 When you have finished setting the trace write condition Reset Save Load Set Close click this button The Realtime trace Write Condition dialog Pick up Only the cycles in which the specified condition was met are written into memory Exclude Only the cycles in which the specified condition was not F 1 Tj 1 Cc 1 Cj 1 O 1 O 1 O 1 met are written into memory box shown below will appear Realtime trace Write Condition x setting l Write mode we TE Js Smem Start End Only the cycle in which the specified Start event occurred M L A range of cycles from when the specified Start
40. akpoint setup dialog box Hardware Break Point Clicking this button opens the hardware breakpoint setup dialog box 2 lza EJE S S ie J Go Gone Step Over Return Stop Break Reset 2 Hardware Break Point Setting Window in initial state H W_breakpoint Setting Window _in_ initial a A E a A Cee TEE eee state CONDITION Select the Enable H W Break check box and this break 41 OO0000 FETGH addr 000000 42 OO0000 FETGH addr 000000 43 000000 FETGH addr 000000 breakpoints 44 OO0000 FETCH addr 000000 45 000000 FETGH addr 000000 46 OO0000 FETCH addr 000000 4 000000 FETGH addr 000000 A8 OO0000 FETGH addr OO0000 IH W Break Point Setting Window function will be enabled allowing you to set hardware OOOOOOOE Combination PID AND r Detail P Enable Detail l Reset SAVE Load set Close 3 Opening the break event setting dialog box T H W Break Point Setting Window Setting Break Event Click the event line at which you want set a break event CONDITION OOO000 faddr OOO000 OOO000 faddr OOO000 OOO000 faddr OOO000 OOO000 faddr OOO000 OOO000 faddr OOO000 agaaga faddr 00000 OOO000 faddr OOO000 OOO000 faddr OOO000 OOOOOOO8 Combination PID AND r Detail Enable Detail l Reset Save Load Set Close REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 6
41. al 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 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 N Do not set this product in water or areas of
42. apter is always active while connecting the AC power cable Check if the power is supplied by the LED of AC adapter REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 23 of 98 M30850T2 EPB User s Manual 2 Setup 2 6 Turning ON the Power 2 6 1 Checking the Connections of the Emulator System Before turning the power ON check the connection of the interface cable with host machine PC7501 emulation probe and user system 2 6 2 Turning ON OFF the Power Turn ON the power of the emulator and user system as simultaneously as possible Turn OFF the power of the emulator and user system as simultaneously as possible 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 for about 10 seconds IMPORTANT Notes on Power Supply The emulator s pin Vcc is connected to the user system in order to monitor user system voltage For this reason the emulator cannot supply power to the user system Therefore provide the user system with a separate power supply from that of the emulator Keep user system power supply voltage within the MCU s specified range 3 0 to 5 5 V Do not change user system power supply voltage after power has been activated 2 6 3 Power Supply to the User System This emulator cannot supply the power to the user system therefore design your system so that the
43. area setting dialog box Changing the RAM monitor display area La Register 0 1 2 3 4 5 6 7 8 9 A B C D E FASCI You can change the manner in which the RAM monitor area 000500 E you have set in the above dialog box is displayed Up Shows the blocks at the preceding addresses Down Shows the blocks at the following addresses The background colors of the data display and the code display sections change with the access attribute as described below 000650 Green Addresses accessed for read Red Addresses accessed for write White Addresses not accessed The background colors can be changed as necessary REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 74 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications 4 Hardware Specifications This chapter describes specifications of this product 4 1 Target MCU Specifications Table 4 1 lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the M30850T2 EPB Applicable MCU M32C 80 84 85 86 and 8A Groups Applicable MCU mode Single chip mode memory expansion mode microprocessor mode Maxi ROM RAM capacity 1 Internal flash ROM 512 KB 4KB OFOOOh OFFFFh F8O0000h FFFFFFh 2 Internal RAM 24 KB 00400h 063FFh Operating voltage frequency VCC1I VCC2 4 2 5 5 V 32 MHz VCC1 VCC2 3 0 5 5 V 24 MHz Dual power supply specification 4 8V lt VCCI lt 5 2
44. ations of the M30850T2 EPB Table 1 5 M30850T2 EPB specifications 1 2 Applicable MCUs M32C 80 84 85 86 and 8A Groups Evaluation MCU M30855FHGP ROM size 512 KB 4 KB RAM size 24 KB Usable mode Single chip mode Memory expansion mode Microprocessor mode Maximum operating frequency VCCI VCC2 4 2 to 5 5 V 32 MHz VCCI VCC2 3 0 to 5 5 V 24 MHz Dual power supply specification 4 8V lt VCCI lt 5 2V and 3 3V lt VCC2 lt VCCI 32MHz Applicable power supply 3 0 5 5 V Download Software break max 64 points Program execution stop allows free run execution supporting software breaks Memory reference setting reference setting C variables run time execution Register reference setting Basic debugging functions Disassemble display C level debugging etc 256K cycle bus information recordable Bus external trigger time stamp 5 trace modes supported Break Before About After Full Can be recorded ON OFF by events Real time RAM monitor function 4 096 bytes 256 bytes x16 Data last access result Hardware break function 8 points Execution address bus detection interrupt external trigger signal Execution time measurement function Time between program start and stop Maximum minimum average execution time and pass count of specified four zones Count clock Equal to MCU Clock or 16 MHz CO coverage 8 192 KB 256 KB x 32 blocks External trigger input event output Exte
45. ay execution paths Source mode The execution paths of the source program can be inspected Ready LPT ECP 00h 00 m 00 sec 796 msec 801 usec MCU STOP BREAK Forced Us 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 REJ10J1005 0200 Rev 2 00 April 1 2007 RENESAS Page 67 of 98 M30850T2 EPB Users Manual 3 Usage How to Use the Emulator Debugger 2 Trace window bus display Explanation of the trace window bus display Bus display lox BS Trac w BUS eEMix WDis B Source qmror d Back W Step Ecom Range 65535 00000 Area Break File Cycle 00036 Address F801E0 Time Label _Address Data BUS BHE BIU R W RWT CPU OPC OPR la F801E2 ESFC 16b 0 F 0 C F801E4 FEF 16b F 003360 0000 16b RW F801E6 F3BB 16b F 003360 0001 16b WH 003362 0000 16b Ri F801E8 FFFC 16b F 003362 0001 16b WH F801DA F693 16b QC F801DC FEFA 16b F The following explains the displayed contents from left to right Address Shows the status of the address bus Data Shows the status of the data bus BUS Shows the width of the external data bus In the present emulator only 16b for 16 bits wide bus is displayed BHE Shows the status 0 or 1 of the BHE Byte High Enable signal If
46. ayed correctly though it can be displayed The below bank addresses cannot be set for the debug monitor 1 MCU internal resources ROM RAM and SFR areas 2 Multiplex areas 3 Interrupt vector area REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 55 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Emulation Memory Allocation as Expansion Area Emulation Memory Allocation as Expansion Emenee x Area Status Emulation Memory Flash Glear When selecting the memory expansion mode and microprocessor mode it is possible to allocate the emulation Debue Monitor Bank Address F memory at the expansion area for debugging max 4 areas Internal ROM Ares FOOO FFFF F80000 FFFFFF is In this dialog box set the memory allocation at the area for debugging and specify the mapping information Emulation Memory Allocation Bank Leneth Map Specify the bank address of the area to be allocated for Grea 1 fio j256KB DSE expansion as a hexadecimal number Area 2 feo h ME INTERNAL For example specifying CO allocates the bank from address COOOOOh Area i Jed i Me INTERNAL Specifying area size Length Grea 4 feo i ME INTE RNAL Specify the size of the specified expansion area 256 KB or 1 MB When 256 KB is specified for Length 00 04 08 and FC by 4 banks can be specified for Bank Cancel Help Next Hide When 1 MB is sp
47. cifying the target clock Specify the clock sources supplied to the MCU main clock and sub clock Select the appropriate clock sources according to the clock used by your target MCU Internal default Emulator PC7501 s internal clock External User system clock Generated Clock created in PC7501 The option you have specified here remains effective the next time you start up Selecting the event output trigger input cable Select input output of the event output trigger input cable of the PC7501 Input from External Trigger default Inputs the external trigger from the cable Output Events Outputs events from the cable The option you have specified here is reflected at only startup However if you reset the option in the Init dialog box after starting up it is not effective reboot the PD308F Input from External Trigger is set at startup the previous setting becomes null Page 51 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 5 Resume tab 1 Automatically executing a script command Automatically executing a script command To automatically execute a script command when starting up the debugger click the Refer button and specify the Init File Spicy script file to be executed Clicking the Refer button brings up a file selection w Re be Resume dialog box The script file you have selected is displayed in I AutoDownLoad the In
48. cillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC X1 5 08mm pitch 2 pin oscillator X2 2 54mm pitch 2 pin oscillator IC1 Inverter Unbuffer X3 2 54mm pitch 3 pin oscillator Figure 2 18 Circuit of the oscillator board OSC 2 bare board REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 43 of 98 M30850T2 EPB User s Manual 2 Setup 2 Using the Oscillator Circuit on the User System To operate this product with an oscillator circuit of the user system input the oscillator output at 50 duty within the operating range of the evaluation MCU into pin Xy as shown in Figure 2 21 Pin Xour should be open Choose External in the emulator debugger to use this clock Evaluation MCU Oscillator Oscillation output circuit Figure 2 19 External oscillator circuit In the oscillator circuit shown in Figure 2 22 where a resonator is connected between pins Xm and Xovur oscillation does not occur because a converter board is used between the evaluation MCU and the user system It is same for Xcy and XcouT Evaluation MCU Figure 2 20 Circuit in which oscillation does not occur 3 Using the Internal Oscillator Circuit The dedicated circuit in the PC7501 can generate any arbitrary frequency specified by the emulator debugger and it is supplied as a main clock It does not depend on either the oscillator circuit board in the PC7501 or the oscillator circuit on the user system If you wa
49. connected by USB cable are shown at Serial No area Select the serial LPT LAN f USB No of the emulator you are going to connect serial No i HMO05 Target Self Check Resource JV Enable the Address Match Interrupt Break Function Debue the program using the Watchdog Timer Debue the program using the GPU Rewrite Mode Cancel Help F Next Hide REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 47 of 98 M30850T2 EPB User s Manual 5 Using or not using the address match break function MOU m30850_a mcu f LPT Type Target 3 VO Address Self Check Resource WwW Enable the Address Match Interrupt Break Function Debug the program using the Watchdog Timer Debue the program uzing the GPU Rewrite Mode OK Cancel Help Next Hide 6 Using or not using the watchdog function MoL Debugging Information Reset Emulator Resume MCU ma30850_a mcu i LPT Type LO Address orah 2 Self Check Resource W Enable Address Match Interrupt Break Function ebue the program using the Watchdog Timer Debue the program using the GPU Rewrite Mode OK Cancel Help Wext Hide 3 Usage How to Use the Emulator Debugger Using or not using the address match break function Specify whether or not to use the address match break function To use the address match break function default sele
50. ct the check box marked by a check mark when selected In this case the address match interrupt is used by the emulator and cannot be used in the user program When not using the address match break function deselect the check box check mark cleared In this case the address match interrupt can be used in the user program This option can be selected or deselected only when you are starting up the emulator debugger Using or not using the watchdog function Specify whether or not to debug the program which uses the watchdog function When debugging the user system which uses the watchdog function select the check box IMPORTANT Notes on selection of whether or not to use the watchdog timer If the check box Debug the program using the Watchdog Timer is selected while the user program remains idle the emulator is performing refresh processing by writing to the watchdog timer start register within the emulator control program Therefore the watchdog timer starts after the user program has stopped To use the watchdog timer to debug the user program select this check box If this check box is unselected the emulator may run out of control after the user program has stopped To debug a user system that does not use the watchdog timer do not select this check box If this check box is selected the watchdog timer starts after the user program has stopped so that if the user program is reexecute
51. cuting the user program GO Executes the program from the current PC position STEP Ub 4 2F d ft fh e tele i i Go Come Step Over Return Break Reset SAN HAW Addr Single steps the program stepping subroutines OVER Single steps the program skipping over subroutines RETURN Executes the program up to the high order subroutine 3 Stopping the user program STOP Stops the program i 3 Em We a Go ome Sten SAN Hai Addr 4 Program window screen after the user program has stopped Program window screen EF Program Window Exe c The program position at which the program has stopped is Buia By Nise W Dis identified by the yellow background color Line BRE Source C0035 Int ent OOUS6 volatile int 1 0 DIET OO0S8 fort ent 0 cnt loont ent OO0S9 UUs OOO O04 NEE 4 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 59 of 98 M30850T2 EPB User s Manual 3 Setting breakpoints 1 Screen after breakpoint setup E3 Program Window Exec Et Wiew ERK SOL Poe Line gogg OU005 OU006 OOOO OU008 JOJA OUD A UOOT I i 3 OOO ij 4 4 Breakpoint display area REJ10J1005 0200 Rev 2 00 April 1 2007 Source Ey Mix V Dis p Dis Asse mblef void Func_Exel void 2rCENESAS 3 Usage How to Use the Emulator Debugger B
52. d the watchdog timer underflows generating a watchdog timer interrupt or a reset REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 48 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 7 Using or not using the CPU rewrite mode Using or not using CPU rewrite mode Specify whether or not to debug in CPU rewrite mode To debug the user system that uses CPU rewrite mode select MOU m30850_a mcu n the check box This option can be selected or deselected only when you are starting up the emulator debugger f LPT Type EGF TARE ETE When debugging in CPU rewrite mode is enabled the following functions cannot be used FO Address 378h M Settheck g Setting the address match breakpoint C LAN Supplementary explanation Resource Jw Enable the Address Ma Hl Debug thet gram WINE the Watchdog Timer Execution of COME in the internal ROM area Fnterrupt Break Function Software breakpoint setting in the internal ROM area 4Cebue the program using the GPU Rewrite Mode OK Cancel Help Next Hide 8 Executing the self check Executing the self check x SS UU za Enable this function when you want the emulator to be self checked at startup Be sure to select the check box only MOU madga mou when you want the emulator to be self checked at startup This function may be enabled in the following cases f LPT i LAN C USE Wh
53. e For those who use this emulator This emulator can only be used by those who have carefully read the user s manual and know how to use it Use of this emulator requires the basic knowledge of electric circuits 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 thi
54. e to read these notes before using this product IMPORTANT Notes on Downloading Firmware Before using this product for the first time it is necessary to download the dedicated firmware control software built into the PC7501 Please note that to do this it is necessary to start up the PC7501 in maintenance mode For firmware download procedures see 2 7 Downloading Firmware page 26 Once the firmware has been downloaded the product can be used by simply turning on the power Do not shut off the power while downloading the firmware If this happens the product will not start up properly If power is shut off unexpectedly redownload the firmware Except when a target status error occurs if the self check is not completed successfully there may be trouble with the product In such case contact your sales representative Perform the self check while not connecting the user system Note on Quitting the Emulator Debugger To restart the emulator debugger after it ends always shut power to the emulator module off once and then on again Notes on Clock Supply to an MCU Clock can be supplied to the evaluation MCU in one of the following three ways This is determined by emulator debugger clock selection 1 When Internal is selected The clock generated by the oscillation circuit in the PC7501 is supplied to the evaluation MCU The clock is continually supplied to the evaluation MCU regardless of user system clock sta
55. ea are externally accessible MCU internal resources are automatically selected as SFR and RAM areas regardless of settings When No Use is selected or nothing is selected in Map the specified area is allocated to an external area The difference between these cases and selecting EXTERNAL is a download speed only REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 56 of 98 M30850T2 EPB User s Manual 3 Flash Clear tab 1 Setting to clear the MCU s internal flash ROM Statue Emulation Memory Flash Clear Flash ROM Block OOFOOG Feuuou FSOO00 FE000 FF0000 S K R K a a e FADOOO FBOOOO FCOOOO FOOOOO OOF FFF FSF FFF FOF FFF FAFFFF FEFFFF FGFFFF FOFFFF FEFFFF FF7FFF bal Clear All The selected blocks are over written inot erace on download OK Cancel Help Next Hide REJ10J1005 0200 Rev 2 00 April 1 2007 CENESAS 3 Usage How to Use the Emulator Debugger Setting to clear the MCU s internal flash ROM Specify whether or not you want the MCU s internal flash ROM to be cleared when downloading the user program or data When cleared the content of the flash ROM is initialized to OxFF The MCU s internal flash ROM is listed in block units Any block which has had its check box selected is not cleared when downloading The memory content of this block remains intact unless overwritten by downloading Any b
56. ebugger Table 2 4 lists the factory settings of each clock supply Table 2 4 Clock supply to the MCU and default settings Display of emulator debugger Default setting teina Internal oscillator circuit Yes OSC 3 or OSC 2 Main Xw Xour Extemal Oscillator of user system o cemes a 1 0 to 32 0 MHz cece ee mt Sub Xcin Xcout 32 768 kHz Oscillator of user system Yes IMPORTANT Notes on Changing the Clock Supply The clock supply can be set by the Init dialog box when starting up the emulator debugger or inputting CLK command on the script window For XCIN XCOUT it is necessary to set switches in the emulator For details refer to 2 10 1 Setting Switches of Emulation Probe page 38 1 Using an Internal Oscillator Circuit Board 1 Kinds of Oscillator Circuit Boards The PC7501 comes with an oscillator circuit board OSC 3 30 MHz And an oscillator circuit board OSC 3 32 MHz and an oscillator circuit board OSC 2 bare board are included with this product If you use the internal oscillator circuit board OSC 3 32 MHz or OSC 2 of the PC7501 as a main clock choose Internal in the emulator debugger after replacing oscillator circuit boards to change a clock supplied to an MCU REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 40 of 98 M30850T2 EPB User s Manual 2 Setup 2 Replacing an Oscillator Circuit Board Remove the four screws of both sides of this product and lift off the upper co
57. ecified for Length 00 10 20 and FO by 16 banks can be specified for Bank Specifying area map Map Setting bank address Bank Specify the mapping information INTERNAL or EXTERNAL When not using the specified area select No Use Internal This bank is allocated as an internal area emulation memory External This bank is allocated as an external area external resource on user system IMPORTANT Notes on Using Emulation Memory for Expansion When single chip mode or memory expansion mode is set as a processor mode internal ROM area is automatically allocated to the internal flash ROM Therefore it is not necessary to deliberately specify emulation memory as expansion area in order to allocate the internal ROM area The 4MB memory mounted in the product can be allocated out Set memory allocation so that the total of the 4 length values does not exceed the emulation memory size 4 MB However the emulation memory is 3 25 MB in Memory expansion mode Be careful that the specified areas do not overlap one another Do not set the following areas for memory allocation of the MCU Set these areas referring the specifications of the MCU 1 Area allocated for multiplex bus 2 Unusable area Memory in the emulator is automatically selected as reset vector area regardless of settings Except for the SFR RAM ROM and internally reserved areas all areas other than the set ar
58. eeeeeeeeeeessaaageees 25 2 1 Downloading FINTIWAN Cai cscs carctersieandctdinaceusadieds uawtenddvalincaidstuevavesiiadaatacbas tudedeberesdacdedendinieatantven subbed cdeubieeandwebin 26 2 7 1 When It is Necessary to Download Firmware ccccccccccseeeeeeecaeeseeeeeeaeeseeeeeseeeseeeeeseaeeeeeeesaeeeeeeeeaas 26 2 7 2 Downloading Firmware in Maintenance MOde cccccccccsssseeeeeceeeeeceecueeeceeeeseeaseeeeessaeeeeeesaaeseeeeeegs 26 DO SOS Clk EEEE A TA VEE A E EEEE TANE A EA AE EEEE TE EE 27 2 8 1 Self chHECK PrOCOCUIe cccccccccccceeessseceeceeaeesseeeeeeeeeeaaeeseeeeeeeeeseeauseeceeeeeseeeaaseceeeeesseuegageeeeeesessaagasess 27 2 8 2 If an Error is Detected in the Self CheCK ccecccccccceccceeeseeeceeeeeeeeeseeeceeeeeseeeeseeceeeeeseeseeeeeeeeesessaaaaeees 28 2 9 Connecting the User SyYSt M ccccccccssseseccceeececeeeeeeeeeeeeseeeeeseceeeesseueeaseeceeeeessaeeaseeeeeeesseesuseeeeeessssuaaeaeeseeees 29 2 9 1 Connecting to a 100 pin LOGO SOCK Cl occiscuninn a E O 30 2 9 2 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 1 cccccsseeseeeeeeeeeeseeseeeeeeeeeaaaeeeeeeeees 31 2 9 3 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 2 0 0 ceeccceeecsseeeeeeeeeeeeeeesseeeeeeeeesaaees 32 2 9 4 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 3 i cececeecceseeeeeeeseeeeeeesseeeseeeeeaaees 33 2 9 5 Connecting to a 100 pin 0 5mm pitch Foot Pattern 00 eccccccccsseeeeeeeeeee
59. eeeeseeeeeeeeeeaaeaeseeeeeseesaaeeaees 34 2 9 6 Connecting to a 144 pin 0 5mm pitch Foot Pattern 2 0 cccccccsseeeeeeeeeeeeeeeseeeeeeeeeeseeesseeeeeeeeeeeaaaees 35 ZNO SEUNG SWITCNES sccccssietcccssesende AE E A E E E E E 36 2 10 1 Setting Switches of Emulation Probe ccccceeecccccesseeeecceeeeeeeeceeeseeeeeeaaeeeeesaeaueeeeesaeaueeeeesauaageeeeseaas 36 2 10 2 Selecting Clock Supply ccccccccseeeeecceeeeeseseeeeeeeeeeeaaeeeeeeeeeeesesseesseeceeeeesseeeeeeeeeeessueaaseeeeeeeeessaaaassss 40 2 10 3 A D Conversion Bypass Capacitors ccccccccsceeeeccceeecceeesseecceeeeesaeeaeeeeeeeesseeeaeeeeeeeeseeseaseeeeeeseessaegeses 45 3 Usage Emulator De DUGG er ccccccssssecececeeeececcceaeeceeecsaeeeeeessauseeeescsaaseeeeessaaeeeessaaseeeeessaeaaeeeeessaageeeeessuageeeessags 46 3 1 Starting Up the Emulator Debugger Init Dialog BOX cceeeccccccasseeeeeeceeeseeeeeeaeeeesseeaaesesssaaaseeeeessaaeeeess 46 3 2 Starting Up the Emulator Debugger EMEM Dialog BOX cccccccsseeeeeeeeeeeeeeeeeeeeeeeeeesaaaaseeeeeeeeesaaaeneeeeeees 53 ca Fr OCGA VV NCO WY sess ctrpuranstir ty entire Goran eran ancora oma resreosneuniesta pins sa tduntvatnat mai Saree damteaidiainntingnts T 58 3 4 Hardware Breakpoint Setting WINKOW ccccccccsssssececeeeeeeseeeseceeeeeessseeeeeeeeeessueeseeeeeeeesssaeaeeeeeeessssaaeeeeeeees 62 WC VV AO WY A E EE E TEE EA A cesses A E A E P N E E E 67 2G RAM MONOT WINGOW sserrep ETE TEN aT
60. en you are using the emulator you have just Type EGF Target purchased When you fail to download the firmware LVO Address 2378h M Ei check y When you successfully download the firmware but fail Resource J Enable the Address Match Interrupt Break Function to start up the emulator E Debug the program UZinNg the Watchdog Timer When you want to confirm whether the emulator is Debug the program using the GPU Rewrite Mode operating normally because for example the MCU runs out of control or something is wrong with the trace OK Cancel Help F Next Hide results This function can be enabled only when you are starting up the emulator debugger REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 49 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Debugging Information tab 1 Specifying the compiler used and the object format lt lt z Specifying the compiler used and the object format ELET CELE ee TTET PEELE Leer MOU Cebuegine Information Reset Emulator Resume Specify the compiler you are using and the format of the Ee mallet oe object file output by the compiler Object Format IEEE 695 Compiler Select the compiler you are using On Demand By default the C compiler from Renesas is selected Directorstor Temporary Files Object Format CaWwINDOWS temp PE Select the format of the object file that is output by the compiler you
61. er started up the Init dialog box appears 1 MCU tab 1 Specifying the MCU file Specifying the MCU file Click the Refer button MCU Debugging Information Reset Emulator Resume i A file selection dialog box will be displayed so select the MEO m3050 _a mcu l ee desired MCU file The MCU file is stored in the directory in which you installed the M3T PD308F t LPT C LAN Example c mtool PD308F mcufiles Type JECP Target The MCU file contains the information specific to the Resource The MCU file you have selected is displayed in the MCU M Enable the Address Match Interrupt Break Function section of the MCU tab Debug the program using the Watchdog Timer Debue the program using the GPU Rewrite Mode OK Cancel Help Next Hide 2 Specifying the communication interface LPT communication Specifying the communication interface Imit OOOO OO x LPT communication MeL Debugging Information Reset Emulator Resume o For selecting the LPT communication click the radio button MEU m30850_a mcu a LPT of the MCU tab Specify the using LPT communication mode at the Type area Specify the I O i LPT C LAN address of the parallel port at the I O address area For BIOS Type EGP Target setup the following addresses are available LO Address 78h 378h Resource J Enable the Address Match Interrupt
62. g When you use other bags they may cause a trouble on your product because of static electricity REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 96 of 98 Emulation Probe for M32C 80 84 85 86 and 8A Groups M308501T2 EPB User s Manual Publication Date Apr 01 2007 Rev 2 00 l Sales Strategic Planning Div Published by Renesas Technology Corp Microcomputer Tool Development Department Edited by Renesas Solutions Corp 2007 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan M30850T2 EPB User s Manual CENESAS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
63. g is being performed the evaluation MCU keeps running so as to control the emulator so the function such as timer is operated Take note that when the user program is not being executed including when run time debugging is being performed a peripheral I O interruption is not accepted Notes on Access Prohibited Area The emulator control register OO0020h O0003Fh in the SFR is read and write protected When this register is accessed emulator control cannot be utilized With this product address FFFFFFh cannot be read or written in correctly Note on DMA Transfer With this product the user program is stopped with a loop program to a specific address Therefore if a DMA request is generated by a timer or other source while the user program is stopped DMA transfer is executed However make note of the fact that DMA transfer while the program is stopped may not be performed correctly Also note that the below registers have been changed to generate DMA transfer as explained here even when the user program is stopped 1 DMAO transfer count register DCTO 2 DMAI transfer count register DCT1 3 DMAO memory address register DMAO 4 DMAI memory address register DMA1 5 DMA2 transfer count register DCT2 RO 6 DMAS3 transfer count register DCT3 R1 7 DMA2 memory address register DMA2 AQ 8 DMA3 memory address register DMA3 A1 Note on DMAC II Transfer Completion Interrupts You can use DMAC II transfer comple
64. g normally Flashing Special mode maintenance mode for downloading firmware The emulator system does not operate except for downloading firmware and the self check OFF Emulator system isnot operating normally sss Emulator system is not operating normally ERROR ON Emulator is not operating normally Flashing Downloading firmware OFF Emulator is operating normally REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 15 of 98 M30850T2 EPB User s Manual 1 Outline 2 Target Status LEDs The target status LEDs indicate the target MCU s operating status and target board s power supply Table 1 4 lists the definition of each target status LED Table 1 4 Definitions of the target status LEDs POWER Power is supplied to the target MCU Power is not supplied to the target MCU CLOCK Target MCU clock is oscillating Target MCU clock is not oscillating RESET ON Target MCU is being reset OFF Target MCU is not being reset PN fox User program is being executed User program has been halted WARNING ON Target MCU internal clock is not oscillating Target MCU internal clock is oscillating A CAUTION Caution for Target Status POWER LED If your MCU has two or more power supply terminals VCC you need to supply power to all the terminals REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 16 of 98 M30850T2 EPB User s Manual 1 Outline 1 4 Specifications Tables 1 5 and 1 6 list the specific
65. ill be turned into a form of user registration sheet by e mail 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 Completing the installation A dialog box will be displayed indicating that setup has been completed It means that the installation you made is completed REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 20 of 98 M30850T2 EPB User s Manual 2 Setup 2 3 Connecting the Host Machine When connecting the emulator PC7501 to a host machine you can choose your desired interface from LPT parallel interface USB interface and LAN interface Use the interface selection switch on the emulator PC7501 s rear panel to specify your desired interface Figure 2 2 shows the outline to connect each interface cable LPT parallel interface Host machine LPT parallel interface cable USB interface C U USB interface cable Host machine Emulator PC7501 iach te Loa 4 10BASE T cable Separately available The LAN interface cable is not included EENH O NHNNHHNNNHHHHHHNN Emulator PC7501 Get 10BASE T cable separately To connect the emulator PC7501 directly to the host machine use a cross cable Figure 2 2 Outline for interface cable connections REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 21 of 98 M30850T2 EPB User s Manual 2 Setup 2 4 Connecting the PC7501 Figu
66. ing the emulator REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 86 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications IMPORTANT Notes on Debugging in CPU Rewrite Mode To debug a program in CPU rewrite mode select the check box Debug the program using the CPU Rewrite Mode in the MCU tab of the Init dialog box When you do not debug a program in CPU rewrite mode clear the check box When you debug a program in CPU rewrite mode the block 0 area FFFOOOh FFFFFFh must not be rewritten Otherwise the emulator will be out of control When debugging in CPU rewrite mode is enabled you cannot use the following functions 1 Setting an address match breakpoint 2 Setting a software breakpoint to the internal ROM area 3 Executing COME to the internal ROM area Do not use the following functions to the rewrite control program area from setting CPU rewrite mode select bit to releasing it If any of these are used malfunctions may occur e g The emulator cannot shift to CPU rewrite mode or contents of ROM cannot be read out properly 1 Single stepping 2 Setting a software breakpoint 3 Setting a hardware breakpoint 4 Executing COME When CPU rewrite program is allocated to the expansion emulation memory the program may run out of control For the CPU rewrite program use an internal RAM area or external resource on the use system These precautions only need to be observed when using an emula
67. ins Xy and Xout oscillation does not occur because a converter board and other devices are used between the evaluation MCU and the user system It is same for a sub clock oscillator X yy and Xcour For notes on when using the oscillator circuit on the user system refer to 2 Using the Oscillator Circuit on the User System page 46 6 A D conversion As a converter board and other devices are used between the evaluation MCU and the user system some characteristics are slightly different from those of an actual MCU 7 Port P15 As one of I O ports P15 is connected to the user system through the analog switch circuit electric characteristics slightly differ from those of an actual MCU 8 When the SW4 is set to XOUT in stop mode a clock is output from the XOUT pin Note on RESET Input A low input to pin RESET from the user system is accepted only when a user program is being executed only while the RUN status LED on the emulator s upper panel is lit Note on RDY Input Be sure to input L to pin RDY of the user system during the user program executing when the RUN status LED on the PC7501 s upper panel is lit Inputting L to pin RDY during the user program stopping may cause a malfunction of the emulator Note on HOLD Input Be sure to input L to pin HOLD of the user system during the user program executing when the RUN status LED on the PC7501 s upper panel is lit Inputting L to pin HOLD during the use
68. it File section of the dialog box shown here If you do not want to automatically execute a script command delete the character string displayed in the Init File section of the dialog box What you specify here is reflected at only startup If you specify back again in the Init dialog box after startup Cancel Help I Next Hide whatever you specified has no effect Be sure to restart the emulator debugger 2 Restoring the last window state Restoring the last window state it eee gi To restore the window state window position and window hit File RETEr size in which you last closed the debugger select the Resume check box This check box is by default selected mM sume Downloading the load module again p futeDownLoad To download the load module user program again select the AutoDownLoad check box This check box is by default deselected Cancel Help I Next Hide REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 52 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 2 Starting Up the Emulator Debugger EMEM Dialog Box 1 Status tab 1 Specifying the processor mode Specifying the processor mode Select the appropriate processor mode that suits your Status Emulation Memory Flash Clear system Processor Mode Single chip M Mode poner Expansion Bit Memory Expansion 16 Bit Microprocess
69. ith the M3T FLX 144NSD not included and here following is its procedure For details on the M3T FLX 144NSD refer to its user s manual 1 Attach the NQPACK144SD included with the M3T FLX 144NSD to the user system 2 Attach the YQOPACK144SD included with the M3T FLX 144NSD to the NQPACK144SD 3 Insert the YQ GUIDEs included with the YQPACK144SD to the YQPACK144SD 4 Attach the M3T FLX 144NSD to the YQPACK144SD 5 Attach the M30850T2 EPB to the M3T FLX 144SD M3T FLX160 EPB M30850T2 EPB CN2 side M3T FLX 144NSD not included On board evaluation F HQPACK144SD YQ GUIDE x4 not included YQPACK144SD lt L gt FLASH MCU etc These corners are not round 144 pin 0 5mm pitch PLQP0144KA A foot pattern These four items are available in one package User system Figure 2 13 Connecting to a 144 pin 0 5mm pitch foot pattern A CAUTION Notes 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 The small connectors of the M30850T2 EPB and M3T FLX 144NSD are guaranteed for only 50 insertion removal iterations REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 35 of 98 M30850T2 EPB User s Manual 2 10 Setting Switches 2 10 1 Setting Switches of Emulation Probe 2 Setup Set the switches of the emulation probe according to the condition Figure 2 14 shows the positions of the switches of the
70. lock which has had its check box deselected is cleared when downloading Click the Select All button and all blocks will be selected marked by a check mark so that none of the blocks is cleared when downloading Click the Clear All button and all blocks will be deselected check marks removed so that all of them are cleared when downloading The option you have specified here remains effective the next time you start up Page 57 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 3 Program Window 1 Downloading the program 1 Initial screen of the program window Initial screen of the program window Eh View aoe me Vo o cear The program window is a window that always shows the content of the source file corresponding to the current Address Obj code Mnemonic F80000 F80001 F80002 _F80003 F80004 F80005 F80006 F8000 F80008 os F80009 Because the present emulator uses the MCU s internal flash F80004 ROM the initial value for the ROM area data at the time of al purchase is FFh position of the program counter It automatically opens aaoi 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 set or clear software breakpoints and line assemble the source file 2 Downloading the program Men
71. mproper 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 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 95 of 98 M30850T2 EPB User s Manual 6 Maintenance and Guarantee 3 Expiration of the repair period When a period of one year elapses after the model was dropped from production repairing products of the model may become impossible 4 Transportation fees at sending your product for repair Please send your product to us for repair at your expense 6 5 How to Make Request 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 Note on Transporting the Product When sending 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 ba
72. nt to debug programs without the user system or change a frequency temporarily you can check its operation before preparing an oscillator If you want to use the internal oscillator circuit of the PC7501 as a main clock choose Generated in the emulator debugger and specify a frequency you like to use for this clock supplied to an MCU Although you can change a frequency between 1 0 and 99 9 MHz by 0 1 MHz for the PC7501 do not specify a value exceeding the maximum input frequency of the Xw of the MCU IMPORTANT Notes on Internal Oscillator Circuit The internal generator circuit is equipped for temporary debugging purposes Temperature characteristics of frequencies are not guaranteed Be sure to evaluate your system with an oscillator or oscillator module whose frequency is same as that of the internal oscillator circuit internal clock for final evaluation purposes REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 44 of 98 M30850T2 EPB User s Manual 2 Setup 2 10 3 A D Conversion Bypass Capacitors There is a foot pattern on the M30850T2 EPBM board for mounting bypass capacitors for the A D conversion circuit Mount applicable bypass capacitors as occasion demands Figure 2 21 shows where they are installed
73. or 6 Bit Microprocessor 16 Bit MCU Status CAs BYTE Cancel Help Next Hide IMPORTANT Notes on Selecting a Processor Mode When setting single chip mode or memory expansion mode the level of pin CNVSS of the MCU status should be L The MCU status shows the pin level of the user system When setting microprocessor mode the level of pin CNVSS of the MCU status should be H When setting memory expansion mode or microprocessor mode pins RDY and HOLD of the user system should be H When the user system is not connected all modes are available REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 53 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Referring to the MCU Status Processor Mode Memory Expansion 16 Bit MCU Status OAs BYTE HMI ROY HOLD Eee Nie anio ga a ge T T T Referring to the MCU Status al 7 J It shows the status of each MCU pin Check it to see if the MCU status matches the selected processor mode If a slider of any pin is at the center it means that the pin status is indeterminate Cancel Help IT Next Hide IMPORTANT Notes on Selecting a Processor Mode The MCU status is shown in MCU Status of the EMEM dialog box Check that it is matching the specified processor mode Check that the RDY and HOLD are H level If they are L level as the MCU enters a wait
74. ored in the instruction queue buffer The display range is 0 to 8 B T Shows the level of the trigger signal for break event EXTIN7 pin of external trace signal input cable purple Q T Shows the level of the trigger signal for trace event EXTIN6 pin of external trace signal input cable blue 76543210 Shows the level of external trace signal input cable EXTINO to EXTIN7 h m s ms us Shows the elapsed time after starting the user program Source display RRE 3 Trac W EBUS wEMix WDis B Source Sw Forw 4 Back Step Wome Range 65535 00000 Area Break File Exec Cycle 00036 Address F801E0 Time Address Source F801D int ent F801D6 volatile int i 0 F801D8 forl ent 0 cnt lt loopent ent F801E0 gt gt F801E0 gt gt j F801E8 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 68 of 98 M30850T2 EPB Users Manual 3 Usage How to Use the Emulator Debugger 2 Suspending and resuming trace measurement 1 Suspending trace measurement _ LiL lox S Source bea Fite come Stop Range Area File Cycle Address Time p Cycle Label Address Data BUS BHE BIU R W RWT CPU OPC OPR ON B T Q T 76543210 oh m s ms us Click this toolbar button to suspend the trace measurement in progress 2 Resuming trace measurement Re Start WETr meus Emi Voi Source
75. ot use inch size screws for this equipment The screws used in this equipment are all ISO meter size type screws When replacing screws use same type screws as equipped before 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 switch on the emulator upper panel 2 If normal operation is not restored after step 1 shut OFF power to the emulator once and then reactivate it REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 8 of 98 M30850T2 EPB User s Manual Contents Contents Page FCIAC S E EE E aan diauinewan grakesunpuaiavvaad seas E ETA EE EE E A E E E 3 IDON A ae A A E E tomes E A E E E E E 4 Pre aane Or o e E E AEE E EAE 6 GONO aea E EE E E EE T ee eee 9 I SEF COIS WO aee A E E E T 11 leana eers iae E E E E E E E 12 oE E MINS pec E E E E E E se see E E E E E E E E E 13 1 1 Package Components ccccccccccecesesseseceeeecceaeeseeeeeeeeeeeeseseeeeeeeseseesseeeeeesesseesseeeeesesseaeeseeseeeessssaaaeeeeeeeeesaaas 13 1 2 Other Tool Products Required for Development ccceeeeecccceececeeeeeeeceeseeeeeseceeeeeeseeaeseeeeeeeessaaeeeseeeeeeeaaas 13 159 DY SLM OMI UIE ANN tie beset E tose aca ase E EA E comnts ad Gage EEA E A E 14 1 921 System GOMMOULAMON nene sqateiaannseoeed aecemecemeceuuesannetamedocamecunesenncssd ia deumesconcdadseseeats 14 1 3 2 Names and Functions of the PC7501 Uppe
76. page 36 The RESET LED of STATUS Connected Check that the reset pin of the user system is pulled up OF TARGET does not go out REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 91 of 98 M30850T2 EPB User s Manual 5 Troubleshooting 2 EMEM Dialog Box Does Not Appear at Debugger Startup Table 5 2 Checkpoints of errors at debugger startup Checkpoint Communication error occurred Check all emulator debugger settings interface cable settings and Data was not sent to the target switches on the rear of the PC7501 match See the user s manuals of PC7501 and emulator debugger User system cannot be properly built 1 Download the proper firmware See 2 7 Downloading Firmware page 26 2 Recheck the connection between the PC7501 and this product See 2 4 Connecting the PC7501 page 22 M3T PD308F version is not the same version as Download the proper firmware the firmware in the target See 2 7 Downloading Firmware page 26 Target MCU is in the reset state 1 Check the reset pin of the user system is pulled up 2 Check the reset pin of the user system has changed from L to H level Target MCU cannot be reset 1 Check pin NMI is held high 2 If in memory expansion mode or microprocessor mode check pins RDY and HOLD are held high 3 If the reset circuit of the user system has a watchdog timer disable the watchdog timer 4 Check that power is properly supplied to the user system and tha
77. pins Set the analog input pins to ON With this setting set the direction registers of ports P153 to P157 to input Pins P150 to P152 can be used for I O port ISTxDO ISCLKO __ and ISRxDO ADOO to ADO2 unused OFF AD20 to AD22 unused OFF When using ANO3 to ANOS5 and AN25 to AN27 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 38 of 98 M30850T2 EPB User s Manual 2 Setup IMPORTANT Notes on Switch JP1 If using this product when the voltage of VCCI is higher than that of VCC2 set the JP1 of the M30850T2 EPBM to VCC1 gt 2 When the JP1 of the M30850T2 EPBM is set to VCC1 gt 2 the voltage of VCC2 on the user system should be 3 3 V or more If using a CPU clock frequency of 30 MHz or more when the voltage of VCCI is higher than that of VCC2 set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1 when reading this area This precaution only needs to be observed when using an emulator and does not apply for the actual MCU IMPORTANT Notes on Switch SW5 When using this product in memory expansion mode or microprocessor mode be sure to set the all SW5 to ON When setting the register below to use the analog input port selection function you need to set the direction register of port P15 for a pin that performs A D conversion to input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A DO control
78. port selection function you need to set the direction register of port P15 for a pin that performs A D conversion to input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A DO control register 2 address 394h b2 bl l 0 ANOO to ANO7 1 0 AN20 to AN27 Also when the PO and P2 groups are selected for A D input port P15 cannot be used as an I O port When setting the register above port P15 cannot be used as an I O port even if A D conversion is halting For the switch SW5 refer to 2 10 1 Setting Switches of Emulation Probe page 38 When setting the register below to use multi port sweep mode you need to set the direction register of port P15 for a pin that performs A D conversion to input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A DO control register 4 address 392h b3 b2 1 0 ANO to AN7 ANOO to ANO7 1 0 ANO to AN7 AN20 to AN27 Also when the PO and P2 groups are used for multi port sweep mode port P15 cannot be used as an I O port When setting the register above port P15 cannot be used as an I O port even if A D conversion is halting Because a converter board and other devices are used between the evaluation MCU and the user system the A D converter operates differently from an actual MCU Make the final evaluation of the A D converter using an actual MCU RE
79. r Panel LEDS ce cceececeeecseeeeeeeeeeeeeeeeseeeeeeeeenaaees 15 TA Opec NE 116 eee ne ee eee ene ee ne eee ee ee eee ere 17 to Operating TIVINOMIM NC Mi sessies TE e EATE aE T 18 PE E E ae a ese Sec O E E EE E E EE E A E E ete PE E E E EE E E E E E SEE E E 19 2 1 Flowchart of Starting Up the Emulator cccccecccecccceeeeeeseeeeeeeeeeseeeeseceeeeeseeeaeeeeeeeessseeaeeeeeeeeesesssaaaeeeeeeees 19 2 2 Installing the Emulator Debugger cccccecccceccssseceeecseeeeeeeecaesseeeeeeeeaseeeessuaeceeeseauseceeseseaeeeeeeessegeeeeeessaeeeees 20 2 3 Connecting the Host M aC MING sccccce sasscacceduends5 suvexeacedeocosssseased ondeacaieoeeeavacdsnvacaeendvasdasdeesveededsecdeasadaseeeedeeuasneveees 21 2A Connecting the PG 7501 rissani anen aai iaaii ii 22 2 5 Connecting the Power Supply for the EmMUlat T s usssrinssnriienti ninie n aa 23 2 6 T rming ON the POW CF ssesccdcccadencedacatcsnsdinccaveusiieduceiecedacteian exgnusteaudedenceciquedaastcebasenneuensseenentcesdsessnesssinwenccossiuas 24 2 6 1 Checking the Connections of the Emulator SYSte M ccccccccceeeeseeeeeeeeeeeeeeeesseeeeeeeesseaseeeesaeeeeeeeeeas 24 2 0 2 TUMING ON OFF ME F OW CN sorne oeni a i EE R EEA EE EAE 24 2 6 3 Power Supply to the User System cccccccsseseseceeeeeeeeeseeeeeeeeeeeeeeseeeeeeeeseeeeeeeeeeeeseeaseeeeeeeseesssaaagesss 24 2 6 4 LED Display When the Emulator Starts Up Normally cccccccsssssseeeeeeeeeeeeeseeeeeesseae
80. r program stopping may cause a malfunction of the emulator Note on NMI Input A low input to pin NMI from the user system is accepted only when a user program is being executed only while the RUN status LED on the emulator s upper panel is lit REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 77 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications IMPORTANT Notes on Reset Vector Area For a reset vector area memory of the emulator is always selected regardless of the setting of the EMEM dialog box Therefore when setting a microprocessor mode to use a ROM of the user system etc as an area including a reset vector area set a reset vector using a dump window etc A reset vector area can be changed only when a program is stopped Notes on Stack Area With this product a maximum 20 bytes of the user stack is consumed as a work area Therefore ensure the 20 byte maximum capacity used by the user program as the user stack area If the user stack does not have enough area do not use areas which cannot be used as stack SFR area RAM area which stores data or ROM area as work area Using areas like this is a cause of user program crashes and destabilized emulator control With this product the interrupt stack pointer ISP is set to 00500h and used as stack area after the reset is released Notes on Maskable Interrupts Even if a user program is not being executed including when run time debuggin
81. r supply for the emulator 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 CLOCK RESET and WARNING of target status LED are lighting When the user system is not connected the POWER LED does not light up Start the emulator debugger Set the INIT dialog box and EMEM dialog box of the emulator debugger For how to use the emulator debugger refer to the emulator debugger s online manual 2rCENESAS Page 19 of 98 M30850T2 EPB User s 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 Install the emulator debugger M32C PC7501 Emulator Debugger or M3T PD308F following the procedure described below 1 2 3 4 5 Downloading the emulator debugger as occasion demands Download the emulator debugger from the URL below free of charge http download renesas com eng mpumcu upgrades in_circuit_emulators pc7501 index html Launching the installer Start the setup exe program Entering the user information In the user information dialog box enter the user information contractor section contact address and host machine The supplied information w
82. re 2 3 shows how to connect the PC7501 and the emulation probe M3T FLX160 EPB M30850T2 EPB Note Connect the PCA7501EPBA board side to the M3T FLX160 EPB Figure 2 3 Connecting the PC7501 and emulation probe A CAUTION Cautions for Connecting the PC7501 When connecting the emulation probe be sure to hold the both sides of the emulation probe horizontally and insert it directly Connect the PCA7501EPBA board to the M3T FLX160 EPB Always shut OFF power before connecting the emulation probe Otherwise internal circuits may be damaged REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 22 of 98 M30850T2 EPB User s Manual 2 Setup 2 5 Connecting the Power Supply for the Emulator The power is supplied from AC adapter to the emulator PC7501 Here following explains how to connect the AC adapter 1 Turn OFF the power to the PC7501 2 Connect the DC cable of AC adapter to the PC7501 3 Connect the AC power cable to the AC adapter 4 Connect the AC power cable to the receptacle Cautions for AC Adapter i Use only the AC adapter included in PC7501 package The included AC adapter is for PC7501 Do not use it for other product Before installing this equipment or connecting it to other equipment disconnect the AC power cable from its outlet to prevent injury or accident The DC plug on the included AC adapter has the below polarity The included AC adapter has no power supply switch The AC ad
83. reakpoint setup screen There are three types of breakpoints as described below Address match breakpoint A This breakpoint can be set only when you chose to use the address match break function on the MCU tab of the Init dialog box A breakpoint can be set or cleared by double clicking in the breakpoint display area Up to eight breakpoints can be set When this limit is exceeded software breakpoints are set The address match break causes the program to stop before executing the address at which a breakpoint is set Software breakpoint B A software breakpoint can be set or cleared by double clicking the breakpoint display area This is rewritten to a break instruction therefore because of rewriting flash ROM program execution starts with a delay of several seconds after setting ROM area If the breakpoint you set is a software breakpoint the program stops before executing the instruction at the set breakpoint Hardware breakpoint H A hardware breakpoint can be set or cleared by right clicking the breakpoint display area If the breakpoint you set is a hardware breakpoint the program stops after executing the instruction at the set breakpoint after several cycles Page 60 of 98 M30850T2 EPB Users 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 Xe PD308F C
84. register 2 address 394h b2 bl 1 0 ANOO to ANO7 1 1 AN20 to AN27 Also when the PO group and P2 group are selected for A D input port P15 cannot be used as an I O port When setting the register above port P15 cannot be used as an I O port even if A D conversion is halting When using the A D converter in multi port sweep mode be sure to set the all SW5 to ON When setting the register below to use multi port sweep mode you need to set the direction register of port P15 for a pin that performs A D conversion to input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A DO control register 4 address 392h b3 b2 1 0 ANO to AN7 ANOO to ANO7 1 1 ANOto AN7 AN20 to AN27 Also when the PO group and P2 group are used for multi port sweep mode port P15 cannot be used as an I O port When setting the register above port P15 cannot be used as an I O port even if A D conversion is halting Because a converter board and other devices are used between the evaluation MCU and the user system the A D converter operates differently from an actual MCU Make the final evaluation of the A D converter using an actual MCU REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 39 of 98 M30850T2 EPB User s Manual 2 Setup 2 10 2 Selecting Clock Supply You can choose a clock supplied to the evaluation MCU by the Emulator tab in the Init dialog box of the emulator d
85. rnal trigger input MCU dependent voltage CMOS level x8 or event output break x1 event x7 Expansion emulation memory et Maximum operating frequency 32 MHz 10 1 0 Specifiable areas Area size Contiguous 256 KB range or contiguous MB range mixed setting of 256 KB range and 1 MB range is available Emulation memory size Specifiable bank For area size 256 KB XOh X4h X8h XCh banks e g 20 bank 64 bank A8 bank EC bank etc Real time trace function For area size 1 MB XOh hank e g 20 bank 40 bank 80 bank AO bank etc Notes on Using This Product When the JP1 of the M30850T2 EPBM is set to VCC1 gt VCC2 the voltage of VCC2 on the user system should be 3 3 V or more If using a CPU clock of 30 MHz or more when the voltage of VCC1 is higher then that of VCC2 set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1 when reading this area These precautions only need to be observed when using an emulator and do not apply for the actual MCU REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 17 of 98 M30850T2 EPB User s Manual 1 Outline Table 1 6 M30850T2 EPB specifications 2 2 Host machine interface LPT parallel ECP EPP Byte compatibility and Nibble compatibility modes USB USB 1 1 full speed LAN 1OBASE T Connection to user system For 144 pin 0 5mm pitch LQFP PLQP0144KA A previously 144P6Q A see 2 9 Connecting the User System M3T FLX 144NSD
86. rt selection function When using the memory expansion mode When using the microprocessor mode When using the multi port sweep mode When selecting ANO to AN7 for analog input port select bits When selecting AN150 to AN157 for analog input port select bits This is a setting when using the analog input port selection function and using AN23 to AN27 for analog input pins When using AN23 to Set the analog input pins to ON AN27 With this setting set the direction registers of ports P153 to P157 to input Pins P150 to P152 can be used for I O port ISTxDO ISCLKO and ISRxDO event et fused ON This is a setting when using the analog input port selection function and using AN20 to AN27 for analog input pins AD ON 0 When using AN20 to Set the analog input pins to ON AN27 With this setting set the direction registers of ports P150 to P157 to input Pins P150 to P157 cannot be used for I O port ISTxD0O ISCLKO and ISRxD0 This is a setting when using the analog input port selection function and using AN04 to ANO7 for analog input pins When using AN04 to Set the analog input pins to ON ANO7 With this setting set the direction registers of ports P154 to P157 to input Pins P150 to P153 can be used for I O port ISTxDO ISCLKO and ISRxDO ADO3 to ADO5 used ON AD25 to AD27 used ON This is a setting when using the analog input port selection function and using ANO3 to ANO5 and AN25 to AN27 for analog input
87. s 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 other 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 REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 4 of 98 M30850T2 EPB User s Manual Important Usage restrictions This emulator has been developed as a means of supporting system development by users Therefore do not use it as a device used for equipment embedded applications 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
88. set eight conditions e g a specified address a Event Type o specified address range etc Address Data Setting Range addr Address Address 1 000000 Address 2 pomo Function source File r Function ACCESS READ ADORESS O00000 CONDITION taddr 000000 Cancel 2 Window for setting data Setting data You can set eight conditions e g a specified data a 41 Set Event status Event Type E specified data range etc Address Data Setting p o Cinta Datel setting the access condition Seat ooo COC Data 2 io You can set three conditions e g read write and read write When you have finished setting the data and Access READ JEE access condition click OK ACCESS READ ADDRESS 000000 CONDITION taddr OO0000 data 0000 Cancel REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 64 of 98 M30850T2 EPB User s Manual 3 Example Data Settings Event setting for even address word access MOV W_ RO 512h RO 0203h Cycle 00059 _ 000512 0203 4655 amp High order and low order data effective Event setting for odd address word access MOV W_ RO 519h RO 0203h Cycle Label Address Data BUS BHE BIU Label Address Data BUS BHE BIU R W RWT CPU 00026 00025 Odd address high order data effective 000519 0302 46b 0 000514 0302 16b Even addre
89. setting REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 93 of 98 M30850T2 EPB User s Manual 5 Troubleshooting 5 3 How to Request for Support After checking the items in 5 Troubleshooting fill in the text file which 1s 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 V Operating frequency _____ MHB Operating voltage S O Clock supply to the MCU Internal oscillator External oscillator 2 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 3 Problem REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 94 of 98 M30850T2 EPB User s Manual 6 Maintenance and Guarantee 6 Maintenance and Guarantee This chapter describes how to maintenance repair provisions and how to request for repair 6 1 User Registration When you purchase our product be sure register as a user For user registration refer to User registration page 11 of this user s manual 6 2 Maintenance 1 If dust or dirt collects on any equipment of your emulation system wipe it off with a dry soft cloth Do not use thinner or other solvents because these chemicals can cause the equipment s surface coating to separate
90. ss low order data effective Event setting for even address byte access MOV B ROL 516h ROL 03h Cycle Label Address Data BUS BHE BIU 00033 000516 0503 46b Low order data effective Event setting for odd address byte access MOV B ROL 515h ROL 03h Cycle _Label Address Data BUS BHE BIU R W RWT CPU 00046 000515 0315 16b 0 High order data effective REJ10J1005 0200 Rev 2 00 April 1 2007 0 RW 2rCENESAS 3 Usage How to Use the Emulator Debugger Setting a break event Al Address 1 Data 1 MASK Access 000512 0203 PPE WRITE Setting a break event using 2 events Al Address Data 1 MASK Access 000519 0300 Data 1 0002 WRITE A2 Address 1 00051A FFOO MASK OOFF Access WRITE Set the combinatorial events to AND Setting a break event Al Address Data 1 MASK Access 000516 0003 OOFF WRITE Setting a break event Al Address 1 Data 1 MASK Access 000515 0300 FFOO WRITE Page 65 of 98 M30850T2 EPB User s Manual 4 Setting the combinatorial event condition 1 Window for setting the combinatorial event condition i HW Break Point Setting Window f f Enable HW Break Pass E z 3 l OOOOOOOE Combination AAD REJ10J1005 0200 Rev 2 00 April 1 2007 D x ONDITION Ou o000 000 000000 FETCH taddr 000000 000000 FE
91. status and the emulator debugger cannot receive the signal from the MCU an error is displayed REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 54 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Emulation Memory tab 1 Setting the Bank Address of the Debug Monitor a Setting the Bank Address of the Debug Emenee Monitor Status Emulation Memory Flash Clear The debug monitor uses contiguous 64 KB as a work area of l the emulator Specify the bank address of the debug Debug Monitor Bank Address Fo monitor Internal ROM Area Food FFFF F80000 FFFFFF is e g If FO is specified 64 KB area from DOOOOOH address l is used by the debug monitor Emulation Memory Allocation y 8 Bank Length Map fread fio fa5skB INTERNAL Automatically Allocating the Emulation areaz fo ime INTERNAL Memory of the Internal ROM When selecting the single chip mode or memory expansion Arean eo fi MB x INTE RNAL z mode an emulation memory is automatically allocated to an rea 4 feo hme gt INTERNAL internal ROM area The automatically allocated addresses of the internal ROM are shown here Cancel Hep 1 Next Hide IMPORTANT Notes on Setting a Debug Monitor Bank Address It is not possible to view or set the content of the specified area Even on the memory window or in the reverse assemble area of the program source windows the content of this area is not displ
92. system with the M3T F160 1OONSD not included and here following is its procedure For details on the M3T F160 1OONSD refer to its user s manual 1 Mount the NQPACK100SD included with the M3T F160 1OONSD to the user system 2 Attach the YQPACK100SD included with the M3T F160 100NSD to the NQPACKI100SD 3 Insert the YQ GUIDEs included with the YQPACK100SD to the YQPACK100SD 4 Attach the M3T F160 100NSD to the YQPACKI100SD 5 Attach the M30850T2 EPB to the M3T F160 100NSD M3T FLX160 EPB M30850T2 EPB CN2 side M3T F160 100NSD not included On board evaluation HQPACK100SD YQ GUIDE x4 not included YQPACK100SD FLASH MCU etc These corners are not round NQPACK100SD ND 100 pin 0 5mm pitch PLQP100KB A foot pattern These four items are available in one package User system Figure 2 12 Connecting to a 100 pin 0 5mm pitch foot pattern A CAUTION Notes on Connecting the User System The small connectors of the M30850T2 EPB and M3T FI60 IOONSD are guaranteed for only 50 Q Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator insertion removal iterations REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 34 of 98 M30850T2 EPB User s Manual 2 Setup 2 9 6 Connecting to a 144 pin 0 5mm pitch Foot Pattern Figure 2 13 shows how to connect the emulation probe to a 144 pin 0 5mm pitch foot pattern on the user system w
93. t stake Please contact Renesas 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 6 The prior written approval of Renesas Technology Corp is necessary to reprint or reproduce in whole or in part these materials 7 lf 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 8 Please contact Renesas Technology Corp for further details on these materials or the products contained therein M30850T2 EPB User s Manual Preface Preface The M30850T2 EPB is an emulation probe for M32C 80 84 85 86 and 8A Group MCUs The M30850T2 EPB is used by connecting to the PC7501 emulator main unit This user s manual mainly describes specifications of the M30850T2 EPB emulation probe and how to setup it For details on the emulator main unit and emulator debugger which are used with the M30850T2 EPB refer to each product s user s manual All the components of this product are shown in 1 1 Package components page 13 If
94. t the user system is properly grounded 5 The program may be uncontrollable in areas where memory is not allocated Recheck the map setting Target is in HOLD state 1 The MCU is either in stop mode or wait mode Either reset the MCU or cancel the mode with an interrupt See MCU specifications 2 The program may be uncontrollable in areas where memory is not allocated Recheck the map setting Target clock is stopped 1 When the clock is supplied from an external oscillator check that the oscillator circuit in the user system 1s oscillating properly 2 Check the switches in the emulation probe are correctly set See 2 10 1 Setting Switches of Emulation Probe page 36 Target MCU is not receiving power Check that power is properly supplied to the user system and that the user system is properly grounded REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 92 of 98 M30850T2 EPB User s Manual 5 Troubleshooting 3 Errors Occur at Debugger Startup Table 5 3 Checkpoints of errors at debugger startup Checkpoint Target MCU is uncontrollable 1 Check that the NQPACK etc mounted on the user system is soldered properly 2 Check that the connector is installed properly to the user system 3 Check pin NMI is held high 4 If in memory expansion mode or microprocessor mode check pins RDY and HOLD are held high 5 The program may be uncontrollable in areas where memory is not allocated Recheck the map
95. ta diagrams charts pro grams 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 hitp www renesas com 4 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 5 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 a
96. tartup page 93 Emulator debugger startup completed Figure 5 1 Flowchart to remedy the troubles REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 90 of 98 M30850T2 EPB User s Manual 5 Troubleshooting 5 2 When the Emulator Debugger Does Not Start Up Properly 1 When the LEDs of the PC7501 Do Not Display Normally Table 5 1 Errors LEDs show and their checkpoints the user system LEDs do not light up Check that the power cable is connected See 2 5 Connecting the Power Supply for the Emulator page 23 and the user s manual of the PC7501 All LEDs remain lit Recheck the connection between the PC7501 and this product See 2 4 Connecting the PC7501 page 22 The POWER LED of STATUS Connected Check that power Vcc is properly supplied to the user system and OF TARGET does not light up that the user system is properly grounded The CLOCK LED of STATUS Not connected 1 Check that both the main and sub clocks of the emulator OF TARGET does not light up debugger are not set to EXT See the CLK command of the emulator debugger 2 Check the oscillation circuit in the emulator is oscillating See 2 10 2 Selecting Clock Supply page 40 Connected 1 When the clock is supplied from an external oscillator check that the oscillator circuit in the user system is oscillating properly 2 Check the switches in the emulation probe is properly set See 2 10 1 Setting Switches of Emulation Probe
97. the M3T F160 100NRB Figure 4 5 shows external dimensions of the converter board M3T F160 100NRB for a 100 pin QFP PRQPO100JB A 00 00 O s O 1 1 M3T F160 100NRB REV A MADE IN JAPAN Unit mm Figure 4 5 External dimensions of the M3T F160 100NRB REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 82 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications 4 4 4 External Dimensions of the M3T F160 100NSD Figure 4 6 shows external dimensions of the converter board M3T F160 100NSD for a 100 pin LQFP PLQP0O100KB A 2 JE 5 a A 16 2 21 5 Figure 4 6 External dimensions of the M3T F160 100NSD 4 4 5 External Dimensions of the M3T FLX 144NSD Figure 4 7 shows external dimensions of the converter board M3T FLX 144NSD for a 144 pin LQFP PLQP0144KA A EL zE O u X14 LEW oirr LE ss sith gf o VAJH aSNYYL Figure 4 7 External dimensions of the M3T FLX 144NSD REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 83 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications 4 5 Notes on Using This Product Notes on using this product are listed below Be sur
98. there is any question or doubt about this product contact your local distributor The related manuals for using this product are listed below You can download the latest manuals from the Renesas Tools homepage http www renesas com tools Related manuals Accessory Tools Emulator main unit Emulator debugger C compiler Assembler Integrated development environment High performance Embedded Workshop User s Manual REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 3 of 98 M30850T2 EPB User s Manual Important Important Before using this product be sure to read this user s manual carefully Keep this user s manual and refer to this when you have questions about this product Emulator The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp 1 PC7501 main unit 2 Emulation probe 3 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 M16C Family M32C 80 Series M32C 80 84 85 86 and 8A Groups of Renesas 16 32 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 us
99. this signal 0 the odd address data is valid BIU Shows the status between the BIU Bus Interface Unit and oo oo Cc CoCo om DB E D D E D D a a O ODO O D oO OO OO memory or I O Disassemble display trac W BUS Mix V dis Source wrorw d Back Range 65535 00000 Area Break File Cycle 00042 Address F801DA Time Address Obj code Label Mnemonic F801DA O3F6FAFE CMP W 6HLFB J 2HLFB F801DE BA09 JGE F801E8H F801E0 ESF Fy ADD W 1H 4HLFB F801E3 ADD W 1H 2HLFB F801E6 JMP B F801DAH F801DA CMP W 6HLFBJ 2HLFB F801DE JGE F801E8H F801E0 ADD W 1H 4HLFB J F801E3 ADD W 1H 2HLFB F801E6 JMP B F801DAH Symbol Status No change WAIT Executing the wait instruction RBML Read bytes ML on F Fetch QC Discontinuous fetch Read words ML on Interrupt acknowledge cycle Read bytes Write bytes Read bytes by DMA Write bytes by DMA RW Read words WW Write words DRW Read words by DMA DWW Write words by DMA R W Shows the status of the data bus Displayed as R for Read W for Write and for no access RWT This is the signal to indicate a valid bus cycle When valid RWT 0 The Address Data and the BIU signals are effective when this signal is 0 CPU Shows the status between the CPU and BIU Bus Interface Unit OPC Shows the op code size in the read data OPR Shows the code size except op code QN Shows the byte count st
100. tion interrupts during program execution only Do not generate DMAC II transfer completion interrupts when you use any function but program execution Note on Final Evaluation Be sure to evaluate your system with an evaluation MCU Before starting mask production evaluate your system and make final confirmation with a CS Commercial Sample version MCU REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 78 of 98 M30850T2 EPB User s Manual 4 3 Connection Diagrams 4 Hardware Specifications Figures 4 1 and 4 2 show the connection diagrams of the M30850T2 EPB These connection diagrams mainly show the interface section The signals not shown in Figures 4 1 and 4 2 connect the evaluation MCU and the user system directly The circuits not connected to the user system such as the emulator s control system are omitted Table 4 2 shows IC electric characteristics of this product for reference purposes IC15 ve gt _VCONT y yc cin O O CPU Emulate poe EL SW2 mov Xodi VCONT I O xGN X NC O p87 2 gt I P87 Xcin Vcont IC1 P87 Xcin Vcont 14 n vss x X NC SW3 1 VSS NC P86 Xcout H NOX a P86 gt lt P86 Xcout I O Emulate MCU vegs 143 SW1 O AVcc sq AVecc AVcc O f C2 AVss L140 5 Jo AVSS lt AVss C1 gt J GND Vref 142 gt lt V ref Vcc R17 RIS 100k Pg5 NMI 24 gt P85 NMI Ke NC 1O K NC NC sc R14 Vcc 100k r RESET Rig Qye 100k P55 RDY Vcc 100k P57 HOLD J XIN
101. tor and do not apply for the actual MCU Note on Software Break A software break generates a break interruption by forcibly inserting a BRK instruction 08h instead of an instruction code Therefore when referencing the result of a trace in bus mode O8h is displayed for the instruction fetch address where a software break is set Notes on Service Life of the MCU s Internal Flash ROM With the M30850T2 EPB programs are downloaded to the MCU s flash ROM when debugging in single chip mode or memory expansion mode Because the number of write erase cycles of this ROM is limited the ROM must be replaced when at the end of its service life If the following errors occur frequently during program download replace the emulation probe or request for repair 1 Flash ROM erase error occurred ERROR 16258 2 Flash ROM verify error occurred ERROR 16259 To purchase the product for replacement or request for repair contact your local distributor REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 87 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications IMPORTANT Note on Protect Resistor A protect is not canceled when protect register bit 2 PRC2 which enables writing in the port P9 direction register and the function select register A3 is changed with the below procedure 1 Step execution of an instruction setting 1 PRC2 2 Setting a break point from an instruction setting 1 PRC2 to where the port P9
102. tting Window in initial state By default the monitor area is set to 000400h through ARAM Monitor Area Setting Window Current Assigned Area Orea SOOaUU DUAF F Remove Remove All View 0007FFh To change it click the line you want to set OO0400 4 12 blocks 3072 bytes are available 1 block 256 bytes gt ave Load Close REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 73 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 3 RAM monitor area setting dialog box Specifying the start address You can set the start address of the RAM area to be net RRAM Area monitored Size 4 3 blocks Specifying the size Area 000400 OOU FF _ You can set the size to be monitored by specifying the Cancel number of blocks from the start address One block is 256 bytes in size 4 RAM monitor area setting dialog box when RAM monitor area is changed from 400h to 1 block ARAM Monitor Area Setting Window Specifying the start address You can set the start address of the RAM area to be Current Assigned frea monitored To add a RAM monitor area click the Add Area button The RAM Monitor Area Setting Window will be OOO400 OO04FF Beene displayed Remove il View OO0400 1 gt 16 blacks 3840 bytes are available 1 block 256 bytes DAYE Load Close 5 RAM monitor
103. tus and user program execution status 2 When External is selected The clock oscillating on the user system is supplied to the evaluation MCU Clock supply to the evaluation MCU depends on oscillation status oscillate off of the user system 3 When Generate is selected A clock generated by the dedicated circuit in the PC7501 is supplied to the evaluation MCU The clock is continually supplied to the evaluation MCU regardless of user system clock status and user program execution status When operating this product with a sub clock be sure to set the SW2 and SW3 to XCIN and NC respectively REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 84 of 98 M30850T2 EPB User s Manual 4 Hardware Specifications IMPORTANT Notes on Using the CPU Clock at Less than 16 MHz To use the CPU clock at less than 16 MHz execute the command shown below in the Script Window after starting the emulator debugger M3T PD308F Command _settimeout 300 Once this command is executed it remains effective the next time you start the emulator debugger M3T PD308F Therefore you do not need to execute this command again When you use the CPU clock at less than 1 MHz contact your local distributor Notes on Address Match Interrupt Do not single step an address where an address match interrupt occurs When using an address match interrupt do not select the check box of Enable the Address Match Interrupt Break Function in
104. tus must be H To set memory expansion mode or microprocessor mode pins RDY and HOLD used with MCU status must be H When the user system is not connected all modes are available 3 Emulation Memory Allocation The memory mounted in the PC7501 can be allocated out When single chip mode or memory expansion mode is set as a processor mode ROM area is automatically allocated to the internal Flash ROM of an MCU Therefore it is not necessary to deliberately specify the emulation memory as expansion area in order to allocate the ROM area Except for the SFR RAM ROM and internally reserved areas all areas other than the set area are externally accessible MCU internal resources are automatically selected for SFR RAM and ROM areas regardless of settings Be careful that the specified areas do not overlap one another Set memory allocation so that the total of the 4 length values does not exceed the emulation memory size 4 MB Do not set a multiplex bus area and unusable areas for memory allocation Emulator main unit s memory is automatically selected as a reset vector area regardless of settings Notes on Watchdog Function When using the watchdog function select the check box of Debug the program using the Watchdog Timer in the MCU tab of the Init dialog box When not using the watchdog function clear the check box If the reset circuit of the user system has a watchdog timer disable it when us
105. tware break A software break is a function to break the program before the system executes an instruction at the specified address The instruction at the preset address will not be executed Hardware break A hardware break is a function to break the program when the system detects a write read of data to from memory or a leading trailing edge of the signal entered from the external trace cable The former break function is called address break and the latter break function is called trigger break While the instruction at the address where the software break is set is not executed a hardware break is performed after the specified instruction is executed Target MCU This means the MCU you are going to debug User system This means a user s application system using the microcomputer to be debugged Target program This means the program you are going to debug Evaluation MCU This means the MCU mounted on the emulation probe which is operated in the specific mode for tools In this user s manual this symbol is used to show active Low e g RESET Reset signal REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 12 of 98 M30850T2 EPB 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 M30850T2 EPB package consists of the following items When unpacking it check to see if your
106. u Menu item Function File Download Downloads the user program Load Module Downloads machine language data and debug information Memory Image Downloads only machine language data Symbol Downloads only debug information Rom Data Downloads machine language data additionally Reload Reloads the user program Upload Uploads the user program Saves the disassembled result Display after downloading the program 3 The program window has the following three displa EF Program Window ncrt0 a30 9 Ma amp 8 play Ed View Source By Mix V Dis Source display mode x fe BPE Qo rce reseed es aea file of the user program The source OO Disassemble display mode i G a mo h HOH l lah Displays the disassembled result of the user program 00119 mov b 00h 04h ete o aa UOT ZU 3 Mow b HU F U4h s set p Displays the source file of the user program along with pii mov b HOOK Jah the disassembled result for that part of the program ice lac BOUSUR tle O28 Ide stack_top sp jset stack 001274 lde data_SE_top sb set g REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 58 of 98 M30850T2 EPB User s Manual 3 Usage How to Use the Emulator Debugger 2 Program execution 1 Resetting the user program RESET Resets the program 2 3 2 2 2 my Re ae Go Come Step Over Return Stop Break Reset S W Hw Addr 2 Exe
107. user system is powered separately The voltage of the user system should be within the following And do not change the voltage after activating the system 1 When JP1 of the M30850T2 EPBM is set as VCC1 2 3 0 V lt VCCI VCC2 lt 5 5 V 2 When JP1 of the M30850T2 EPBM is set as VCC1 gt 2 48V lt VCCI lt 5 2 V 3 3 V lt VCC2 lt VCCI REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 24 of 98 M30850T2 EPB User s Manual 2 Setup 2 6 4 LED Display When the Emulator Starts Up Normally Figure 2 4 shows upper panel LED lighting status when the emulator started up properly Check it when starting up the emulator system If this LED does not light check the power supply voltage of the user system Check to make sure that power is supplied to all the power pins When the user system is not connected this LED does not light YSTEM TARGET a status Flashing Figure 2 4 LED display when the power turned on PC7501 IMPORTANT Note on Memory Expansion and Microprocessor Modes To use memory expansion or microprocessor mode be sure to set pins RDY HOLD and NMI so that they are not active at start up Otherwise the emulator system will not start up correctly Note on CLOCK LED If CLOCK LED does not turn on check the following 1 Immediately after starting PC7501 before starting the emulator debugger Check if the oscillation circuit within the PC7501 emulator main unit oscillates normally
108. ver see Figure 2 15 Figure 2 15 Removing the upper cover REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 41 of 98 M30850T2 EPB User s Manual 2 Setup Unscrew the screw of the oscillator circuit board of the PC7501 and replace it see Figure 2 16 The oscillator circuit board of the PC7501 is in the lower right corner of the Oscillator circuit board board ls Unscrew the screw securing the oscillator circuit board Lift off the oscillator circuit board Attach another oscillator circuit board to the connector Secure the new oscillator circuit board with the screw Figure 2 16 Replacing oscillator circuit boards Reinstall the upper cover once removed and secure the four screws of the PC7501 A CAUTION When Removing the Upper Cover Always shut OFF power when removing the upper cover or changing the oscillator circuit board Otherwise the internal circuit may be damaged REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 42 of 98 M30850T2 EPB User s Manual 2 Setup 3 Using the 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 17 shows an external view of the OSC 2 oscillator circuit bare board and the connector pin locations Figure 2 18 shows the circuitry of the oscillator circuit bare board OSC 2 Use the number of oscillator circuits recommended by the os
109. ystem Q Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator NQPACK YQPACK YQSOCKET YQ GUIDE HQPACK TQPACK and TQSOCKET are trademarks of Tokyo Eletech Corporation REJ10J1005 0200 Rev 2 00 April 1 2007 2CENESAS Page 29 of 98 M30850T2 EPB User s Manual 2 Setup 2 9 1 Connecting to a 100 pin LCC Socket When connecting the emulation probe to a 100 pin LCC socket Yamaichi Electronics Co Ltd IC61 1004 051 etc on the user system following the procedure below 1 Attach the CN2 side of the M30850T2 EPB to the CN2 side of the M30800T PTC 2 Attach the M30800T PTC to the 100 pin LCC socket M3T FLX160 EPB M30850T2 EPB CN2 side M30800T PTC 100 pin LCC socket No 1 pin User system Figure 2 8 Connecting to a 100 pin LCC socket A CAUTION Notes 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 The small connectors of the M30850T2 EPB and M30800T PTC are guaranteed for only 50 insertion removal iterations For purchasing the IC61 1004 051 or for technical information contact Yamaichi Electronics Co Ltd REJ10J1005 0200 Rev 2 00 April 1 2007 2rCENESAS Page 30 of 98 M30850T2 EPB User s Manual 2 Setup 2 9 2 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 1 Figure 2 9 shows how to connect the emulation probe to a 100 pin 0

Download Pdf Manuals

image

Related Search

Related Contents

使用上の注意はカタログー取扱説明書をお読みください。  PCG-VX71P - Sony Europe  Mode d`emploi - r. stahl home  Parte del contenido de este manual puede diferir del teléfono  

Copyright © All rights reserved.
Failed to retrieve file