Home

R0E521000CPE00 User`s Manual

image

Contents

1. 1 Ifthe user system is connected disconnect it 2 Set the jumpers as the factory settings to execute the self check see Table 2 6 3 Within 2 seconds of activating power to the emulator press the system reset switch on the emulator upper panel 4 Check the SAFE LED starts flashing and then press the system reset switch again 5 The self check will start If the normal result is displayed in about 20 seconds the self check terminated normally Table 2 6 Jumper settings for the self check Jumper Setting MCU power supply source selection jumper JP1 INT MCU power supply voltage selection jumper JP2 5V POWER jumper INT RESET pin pullup jumper UP rowen clock RESET aw pown swe pi C in eur cnt power m m 9 LED3 LED4 LED5 LED6 LED1 LED2 POWER CLOCK RESET RUN POWER SAFE E E inking then oe Baer eek TEE 9 switch again LED3 LED4 LED5 LED6 LED1 LED2 ll eee POWER CLOCK RESET RUN POWER SAFE AES tbl e ek E 3 Target status LEDs start blinking at random intervals Soot TIT TIT rri LED3 LED4 LED5 LED6 SAFE LED status ON LED1 LED2 It takes 20 seconds at XIN 20MHz Blinking OFF Normal Error POWER CLOCK RESET RUN POWER SAFE POWER CLOCK RESET RUN POWER SAFE por ut e di LED3 LED4 LEDS LEDS LED1 LED2 LED3 LED4 LEDS LEDS LED1 LED2 SAFE LED is t
2. REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 30 of 92 7PENESAS ROE521000CPEO0 User s Manual 2 6 Connecting to the Host Machine Connect the emulator and the host machine with the USB interface cable 2 Setup Connect the USB interface cable included to the USB interface connector J2 and the USB port of the host machine see Figure 2 13 To emulator power sani Connect the power cable to connector J1 CAN Ya POWER SYSTEM SAFE STATUS COMPACT EMULATOR ROE521000CPE00 0000 bamm YY POWER USB OV i To host machine Connect the USB interface cable to connector J2 Figure 2 13 Connecting to the emulator system REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 31 of 92 2eENESAS ROE521000CPE00 User s Manual 2 Setup 2 7 Turning ON the Power 2 7 1 Checking Connections of the Emulator System Before turning the power ON check the connection of the interface cable to the host machine emulator and user system 2 7 2 Power Supply to the User System This emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately This product consumes max 500 mA of electrical current from the user system Please consider the capacity of the power supply of the user system The voltage of the user system should be 2 7 V lt VCC lt 5 5 V when the POWER selection ju
3. Evaluation MCU XIN XOUT Figure 2 8 Circuit which is not be usable with the emulator REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 28 of 92 7PENESAS ROE521000CPEO00 User s Manual 2 Setup 2 3 5 A D Conversion Bypass Capacitors There is a foot pattern on the ROES21000EPBMO board for mounting bypass capacitors for an A D conversion circuit near the MCU Mount suitable bypass capacitors as occasion demands Figure 2 9 shows where they are installed and the configuration of this product Component side of the ROE521000EPBMO ROE521000EPBMO RENESAS 0000000000 0000000000 0000000000 0000000000 J gt 0000000000 0000000000 0000000000 0000000000 0000000 133 1 AAA ATTA IC8 R5E2E000FP TOTO TAO ACT 45 88 y AT Ou DOWN VREF AVss bypass capacitor VREF AVss O Olc ROE521000EPBMO A Vcc AVss bypass capacitor Avcc AVss lO O c2 Figure 2 9 Foot pattern for A D conversion bypass capacitors and the configuration of this product 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 that of an actual MCU Make the final evaluation of the A D converter with an actual MCU REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 29 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 4 Attachin
4. 3 26c3 Main iein sd linia ai Handed aati niin aiid 88 6 2 MAINTENANCE isora ekan niade aaa aa aAA a e aaa a aiea Aa E AEEA EELEE 88 LE EUU e E E EE E E E EE E E E E E 88 6 4 Repair PROVISIONS wiidsuccted excuse culetacectecgs sacae aaa aaaea aaia REA Aa A aE Na aAa anevada aada aa a 88 6 5 How to Make Request for Repair ccccceeeceesneceeeeeeeeeeeeeeaeceeaaecaeeeseaeeseaaeseeeseaaesseaaesgeeeseaeesaeseenaeeseneesaas 89 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 11 of 92 5 2ENESAS ROE521000CPEO0 User s Manual User Registration User Registration When you install debugger software a text file for user registration is created on your PC Fill it in and email it to your local distributor If you have replaced an emulator main unit or emulation probe rewrite an emulator name and serial number in the text file you filled in earlier to register your new hardware products 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 For more information about user registration please contact your local distributor REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 12 of 92 2eENESAS ROE521000CPE00 User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follow
5. MCU Setting dialog box of emulator debugger See 5 2 2 MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup page 85 Setting MCU dialog box Error displayed Connected of the Output window displayed See 5 2 3 Errors Occur at Emulator Debugger Startup page 86 Emulator debugger startup completed Figure 5 1 Flowchart to remedy the troubles REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 84 of 92 2eENESAS ROE521000CPEO00 User s Manual 5 Troubleshooting 5 2 When the Emulator Debugger Does Not Start Up Properly 5 2 1 When the LEDs of the Emulator Do Not Display Normally Table 5 1 Errors LEDs show and their checkpoints Error Connection to the user system Checkpoint LEDs do not light up Check that the power cable is connected See 2 5 Connecting a Power Supply page 30 Target Status POWER LED does not light up Connected Check that power is properly supplied to the user system and that the user system is properly grounded Target Status CLOCK LED does not light up Not connected 1 Check that both the main and sub clocks of the emulator debugger are not set to EXT See the CLK command of the emulator debugger 2 Check that the oscillator circuit board is properly installed in the emulator and is oscillating See 2 3 4 Selecting Clock Supply page 25 Connected When the clock is supplied from an external
6. 4 Shows the blocks at the following addresses Shows the blocks at the preceding addresses 2 RAM Monitor Area Setting window RAM Monitor Area Setting i Current Assigned Area Start Add 000400 O blocks 0 bytes are available lt 1 block 256 bytes gt RAM Monitor Area Setting Window By default the monitor area is set to 000400h through 0007FFh It is possible to add delete and change the RAM monitor area You can change the start address size number of blocks of the RAM monitor area by selecting the desired RAM monitor area from the list To add a RAM monitor area click the Add button The RAM Monitor Area Setting Window will be displayed View Close Save Load i 3 RAM monitor area setting dialog box Set RRAM Area Size Area Specifying the start address You can set the start address of the RAM area to be monitored 000500 0005FF You can set the size to be monitored by specifying the number of blocks from the start address One block is 256 bytes in size Cancel REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 68 of 92 RENESAS ROE521000CPEO00 User s Manual 4 Hardware Specifications 4 Hardware Specifications This chapter describes the specifications of this product 4 1 Target MCU Specifications Table 4 1 lists the specifications of targe
7. By NQPACK052SB Lee a y 52 pin 0 65mm pitch LQFP _ PLQP0052JA A foot pattern No 1 pin These items are included with the ROE521258CFJ00 package Figure 2 24 Connecting to a 52 pin 0 65mm pitch LQFP foot pattern A CAUTION Note on Connecting to the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROE521000CPEO00 and ROES21258CFJOO are guaranteed for only 50 insertion removal iterations The connectors of the ROES21258CFJOO and YQPACKO052SB are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 42 of 92 2RENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 6 Connecting to a 64 pin 0 8mm pitch LQFP Foot Pattern Figure 2 25 shows a procedure of connecting to a 64 pin 0 8mm pitch LQFP foot pattern on the user system using the ROE5212BACFGO00 included with the ROES212BACPEO00 For details on the ROE5212BACFGO0 refer to its user s manual 1 Mount the NQPACK064SA160 included with the ROES212BACFGO00 to the user system 2 Attach the YQPACKO064SA included with the ROES212BACFG00 to the NQPACK064SA160 and secure it with the YQ GUIDE s 3 Attach the ROES212BACFGO00 to the J3 and J4 of the ROES21000CPEOO 4 Attach the ROES212BACFG00 to the YQPACKO64SA On board evaluati
8. Notes on the Self check Be sure to disconnect the user system before executing the self check Use the preinstalled oscillator circuit board OSC 3 20 MHz to execute the self check If the self check does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 36 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 Connecting to the User System Figure 2 19 shows the connection of the ROE521000CPEO00 and the user system Compact emulator ROE521000CPE00 Converter board sab ROES21134CFG00 aio a on 0 8mm pitch ROE521276CFGO00 0 65mm pitch Converter board 1 778mm pitch Converter board 0 5mm pitch Converter board ROE5212L4CFG00 LSSOP_ ROE521174CSJ00 spr 1 ROE521174CDB00 Lore _ ROE521237CFKO00 fy i t i EES 7 YS GUIDE x2 2 4 1 YQ GUIDE x4 4 it YQPACK032SA 1 Se f YSPACK20BG 2 amp YQPACKO48SD 4 D y hi L y NQPACK032SA 1 oS NSPACK20BG 2 Sc PM 6 10P 3 Bate NQPACKO048SD 4 oS 32 pin 20 pin 20 pin 48 pin 0 8mm pitch 0 65mm pitch 1 778mm pitch 0 5mm pitch LQFP LSSOP SDIP LQFP I I I 1 52 pin 64 pin 64 pin 80 pin 0 65mm pitch Converter board 0 8mm pitch Converter board 0 5mm pitch Converter board 0 5mm pit
9. eccceseeeeeeeeeeeeeeeeeeeeeeaeeeeeeeeseaeeeseaeeneneeeeaees 33 2 8 SEM CHECK nonien ia N A dnd eee a a a aa aaa a a SATa 35 2 8 1 Self check PrOoCOCUre vccccais ccctesscacsecashoccdeanaanectsdecseseiacsseabidnessedhacaceateanenedesanaccanetacdcaclasacdeditaceessianaadeattuns 35 2 8 2 If an Error is Detected in the Self CheCK cecccecceececeeeeeeceeeeeeeeeeaeeeeaeeseeeeseaeeesaaeseeeeeesaeeseaeeeeaeeesaees 36 2 9 Connecting to the User SYStOM cccccceeceeceeeeeeeeeeeeeeeeeaeeeeaaeeeeeeeseaeeecaaeeeeaeeseeaeeeeaaeseeaeeseeeeseeeessaeeseeeseneee 37 2 9 1 Connecting to a 32 pin 0 8mm pitch LQFP Foot Pattern ccecccccseseeeseeceeeeeseeeeeeeseeeeesssaeeseeeeeees 38 2 9 2 Connecting to a 20 pin 0 65mm pitch LSSOP Foot Pattern 0 ccccceeeececeeeeeeeeeeeeeeeseeeeeeaeeseneeeeaees 39 2 9 3 Connecting to a 20 pin 1 778mm pitch SDIP Foot Pattern cccceceeececeee cesses ceeeeeseeeeseaeeseeeeeaees 40 2 9 4 Connecting to a 48 pin 0 5mm pitch LQFP Foot Patternn cceccccceseeeeseeceeeeeeeeeeeeeseeeeeeseaeeseneeeeaes 41 2 9 5 Connecting to a 52 pin 0 65mm pitch LQFP Foot Pattern cccccececeeececeeeeeeeeeeeeeeeeseaeeeseaeeseeeeeaees 42 2 9 6 Connecting to a 64 pin 0 8mm pitch LQFP Foot Pattern cceeccccceseeeeeeeeeeeeeeeeeeeeeeseeeeesseaeeseneeesees 43 2 9 7 Connecting to a 64 pin 0 5mm pitch LQFP Foot Pattern sesssessesseesseessrnssrnssrnssrnssrnssrnsssnnsnnssnnnnnn 44 2 9 8 Connecting to an 80 pin 0
10. included with the ROES521258CPE00 For 64 pin 0 8mm pitch LQFP PLQP0064GA A ROES212BACFG00 included with the ROES212BACPEO00 For 64 pin 0 5mm pitch LQFP PLQP0064KB A ROE5212BACFK00 included with the ROES212BACPE10 For 80 pin 0 5mm pitch LQFP PLQPOO080KB A ROE5212DACFK00 included with the ROES212DACPEO00 1 If using this product when the voltage is less than 2 7V the JP1 of the ROES21000EPBMO should be set to EXT For details refer to 2 3 3 Setting the POWER Selection Jumper page 24 2 The hardware break function and trace point settings of the realtime trace function cannot be used at the same time REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 18 of 92 7PENESAS ROE521000CPEO0 User s Manual 1 Outline Table 1 6 ROE521000CPEOO specifications 2 Power supply for emulator DC5 0V 45 2A externally supplied Prepare a power supply which complies with CE marking requirements separately Host machine interface USB USB 1 1 full speed mini B standard connector 3 If using this product when the voltage is less than 2 7V the JP1 of the ROES21000EPBMO should be set to EXT 1 4 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 Item Description Operating temperature 5 to 35 C no dew Storage temperatur
11. 1 Starting up the debugger while the user system s power supply is turned off as well as downloading a program and referencing or altering memory contents 2 Starting program execution by causing the program to run from an idle state with the MCU in a reset state while the user system s power supply is turned off and then executing the program from a reset vector read phase when the user system is powered up Furthermore if the CPU clock is supplied by an on chip oscillator the following user system power on off operations can also be performed 3 Turning the user system s power supply off during program execution and stopping the user program by causing the program to stop from the RUN state while the power supply is turned off the MCU in a reset state 4 Turning the user system s power supply on or off while the user program is running or idle Note however that since the reset pin is controlled from the emulator side the high going transitions of the VCC and RESET pins for user system power on occur with different timing the power on reset function of the MCU cannot be debugged A CAUTION Note on Setting the POWER Selection Jumper The user system s power supply can be turned on off only when the POWER selection jumper is set to the EXT side If an attempt is made to turn the user system s power supply on or off while the jumper is set to the INT side the internal circuit of the emulator or the user system may
12. Full 64K cycles of instruction execution after a trace began is recorded REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 65 of 92 7PENESAS ROE521000CPEO00 User s Manual 3 Setting trace write conditions 3 Usage How to Use the Emulator Debugger i Trace Points Event Status PASS E ADDRE ACCE CONDITION O 1 Bi 000000 FETCH addr 000000 OO 1 B2 000000 FETCH addr 000000 Combination PID OR v Detail J Enable Detail Trace Area Write Condition Break 1 z Setting trace write conditions You can specify a condition for the cycles to be written into the trace memory Total All cycles are written into memory 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 met are written into memory When you have selected Pick up or Exclude for the trace write condition click this button The Realtime trace Write Condition dialog box shown below will appear r Setting Mode JE Start End Oe O81 082 082 Cancel Write mode S Only the cycle in which the specified Start event occurred ee ng A range of cycles from when the specified Start event occurred to when the specified Start event became nonexistent i
13. RENESAS POWER USB SYSTEM System status LEDs STATUS LED1 Emulator power POWER LED2 Emulator startup SAFE System reset switch JP2 MCU power supply voltage Selection Jumper COMPACT EMULATOR factory setting 5 0V ROE521000CPE00 JP1 MCU power supply source selection jumper factory setting INT Target status LEDs LED3 User system power POWER TARGET LED4 Clock oscillation CLOCK STATUS LEDS MCU RESET pin RESET Lj C LED6 Program execution RUN Ss m RIT MADE IN JAPAN COMPACT EMULATOR Figure 1 2 Names of the LEDs on the upper panel of the ROE521000CPE00 1 System Status LEDs The system status LEDs indicate the emulator s power supply and operating status etc Table 1 2 lists the definition of each system status LED Table 1 2 Definitions of the system status LEDs Name Number Color Status Meaning POWER LED1 Orange ON Power is supplied to the emulator OFF Power is not supplied to the emulator SAFE LED2 Green ON Emulator system has started normally OFF Emulator system has not started normally 2 Target Status LEDs The target status LEDs indicate the target MCU s operating status and power supply Table 1 3 lists the definition of each target status LED Table 1 3 Definitions of the target status LEDs Name Number Color Status Meaning POWER LED3 Orange ON Power is supplied to the target MCU OFF
14. a gS A range of cycles from when the specified Start event occurred to when the specified End event occurred REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 66 of 92 7PENESAS ROE521000CPEO0 User s Manual 3 6 RAM Monitor Window 3 Usage How to Use the Emulator Debugger This function makes it possible to make reference to the changes in memory contents without impairing the real time performance for user program execution The compact emulator system is provided with the 1K byte RAM monitoring area which can be arranged in the 1K byte space from any continuous address or can be divided into four blocks in terms of 256 bytes 1 RAM monitor window 1 Opening the RAM monitor window s e e _1 RAM monitor Clicking this button opens the RAM monitor window Or you can select RAM Monitor R from CPU C of View VY menu for the same effect 2 RAM monitor display area At BSA nme e 040 8 2 a de de t a _101ms Label Register 0 40 4D E F ASCII 0003E0 0003F0 000400 SB S8 A8 BS FF 9A A8 BF C9 CB 6E 48 FE 000410 DI 3A BF 86 39 30 25 CB 43 BI D 000420 DC 34 7B CF 84 CO B 53 00 9 FB 000430 _ 000440 Z 51 42 ED AF 9A 1D 8F FO 08 10 DF J 0 CA FC F3 OF 08 58 B2 BF 64 A0 CB 000470 B 82 15 43 14 03 4E A9 84 02 FF 000480 USF 32 7B C4 11 19 3E ED 47 95 49 C5 000430 92 8D E2 10 15 C9 BF 9
15. and block 1 rewrite disabled bit FMR16 The functions associated with bit 5 FMR15 and bit 6 FMR16 of Flash Memory Control Register 1 FMR1 at address 001B5h cannot be used When writing to FMR15 and FMR16 always be sure to write a 0 These bits read as 0 when read out Note on Final Evaluation Be sure to evaluate your system with an actual MCU REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 71 of 92 2eENESAS ROE521000CPEO00 User s Manual 4 Hardware Specifications 4 3 Connection Diagrams 4 3 1 Connection diagrams of ROE521000CPE00 Figure 4 1 shows the connection diagrams of the ROE521000CPEO00 These connection diagrams mainly show the interface section The signals not shown in Figure 4 1 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 IC8 VDD2_VCC J P00 P07 VCC P10 P17 P00 P07 P10 P17 ai P20 P27 P30 P37 lt pae 3 P45 P50 P57 P60 P67 P50 P57 AVCC AVSS VREF P60 P67 AVCC AVSS VREF lt lt P43 XX 74HC4066 XX 74HC4066 User system XX 74HC4066 VDD2_VCC te XX lt q P47 74HC4066 Te 7481053 _ _ MODE DD2_VCC RESET VDD2 _ internal power supply generating circuit INT D2 VCC JP1 J VCC EXT L V
16. 00 Aug 20 2009 Page 64 of 92 2eENESAS ROE521000CPEO0 User s Manual 3 Trace point setup window 1 Opening the trace point setup window 3 Usage How to Use the Emulator Debugger Ess Trace point Clicking this toolbar button opens the trace point setting window Or you can select Trace point from Trace T of View V menu for the same effect 2 Trace point setting window Trace Points 10l x m Event Status ADDRE ACCE CONDITION Trace point setting window Select Enable the trace point function in the Init dialog box The trace point setup is the same for the hardware breakpoint setting O 1 81 000000 FETCH addr 000000 O 1 B2 000000 FETCH addr 000000 Combination PID for x Detail Detail m Trace Area Total x Detail Reset Save Load C se Close Te Condition Specifying a trace measurement area You can specify a trace range for the trace event Break 64K cycles of instruction execution before the user program stopped is recorded Before 64K cycles of instruction execution before a trace point condition was met is recorded About 32K cycles of instruction execution before and after a trace point condition was met is recorded After 64K cycles of instruction execution after a trace point condition was met is recorded
17. 0600 Rev 6 00 Aug 20 2009 Page 37 of 92 2eENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 1 Connecting to a 32 pin 0 8mm pitch LQFP Foot Pattern Figure 2 20 shows a procedure of connecting to a 32 pin 0 8mm pitch LQFP foot pattern on the user system using the ROES21134CFGOO included with the ROE521134CPE00 ROES21276CFGO0O included with the ROES521276CPEOO or ROES212L4CFGOO included with the ROE5212L4CPE00 For details on the ROES21134CFG00 ROE521276CFGOO and ROES212L4CFGO00 refer to each user s manual 1 Mount the NQPACK032SA included with the ROE521134CFG00 ROES21276CFG00 or ROES212L4CFGO00 to the user system 2 Attach the YQPACKO32SA included with the ROE521134CFG00 ROES521276CFGOO or ROES212L4CFGO00 to the NQPACK032SA and secure it with the YQ GUIDE s 3 Attach the ROES21134CFGO00 ROES21276CFGO00 or ROES212L4CFGO0O0 to the J3 and J4 of the ROES21000CPEOO 4 Attach the ROES521134CFG00 ROE521276CFGO00 or ROES5212L4CFGO00 to the YQPACK032SA ROE521000CPE00 ROE521134CFEG00 eG gt gt On board evaluation ROE521276CFG00 6 gt R0E5212L4CFG00 ay ae p HQPACK032SA not included 32 pin 0 8mm pitch LQFP _ PLQP0032GB A foot pattern No 1 pin These items are included with the ROE521134CFG00 ROE521276CFGO00 and ROE5212L4CFGO00 packages Figure 2 20 Connecting to a 32 pin 0 8mm pitch LQFP foot pattern A CAUTION Note on Connecting to the User System Take care n
18. 2A 2D Slave Chip Connected to the inside of the emulator Figure 4 2 Connection diagrams of ROES212BACFG00 ROES5212BACFKO00 and ROES212DACFKO00 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 73 of 92 7PENESAS ROE521000CPEO00 User s Manual 4 Hardware Specifications 4 4 External Dimensions 4 4 1 External Dimensions of the Compact Emulator Figure 4 3 shows external dimensions of the ROE521000CPE00 connected with the converter 85 0 10 0 POWER USB OV POWER SYSTEM SAFE STATUS O moo COMPACT EMULATOR R0E521000CPE00 moa NooOooo f PO a clock TARGET te W RESET STATUS RUN Figure 4 3 External dimensions of the compact emulator REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 74 of 92 7eENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications 4 4 2 External Dimensions of the Converter Board ROE521134CFG00 Figure 4 4 shows external dimensions and a sample foot pattern of the converter board ROE521134CFGO00 included with the R0E521134CPE00 for a 32 pin 0 8mm pitch LQFP ROES21134CF GO MPENI PAN Ei Ea E y Unit mm Figure 4 4 External dimensions and a sample foot pattern of the R0OE521134CFG00 4 4 3 External Dimensions of the Converter Board ROE521174CSJ00 Figure 4 5 shows external dimensions and a sample foot pattern of the converter board ROE521174CSJ00 included with t
19. 5mm pitch LQFP Foot Pattern eseeseeseesinesirssrrsssrrssrnssrnssrnssrnssrnssrnssrns 45 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 10 of 92 7PENESAS ROE521000CPEO0 User s Manual Contents Page 3 Usage How to Use the Emulator Debugger cccceceeeceeceeceneeeeeaeeeeeeeeceaeeecaaeeseaeesaeeesaaeseeaaesecaeeseaeessaaeeeeneeseaees 46 3 1 Starting Up the Emulator Debugger ccecececeeeeeneee cece eeeaeeeeeee scenes sage eeeaaeeseeee cae eesaaeseeeeeseeessaesseeeseeeee 46 O11 Init DialOG BOX ait ad cavesiec A A T sh dates hacceiled E E TAT T 47 1 2 MCU Setting Dialog Box sesiniac aaa a aiid anise Gaceinninds 51 3 1 3 Checking Connections of the Emulator SyStem ccccceesceceeeeeeeceeeeeeeeeeeeesaaeeeeaaeseeeeeseaaeeseaeeseneeetiees 52 3 2 DOWNIOACING the Progra aaea i E aaa enteldagetanuanzensguaeale 53 3 9 Program EXEC UO Mitsa annid aiana de sadida aa aaa E aaa EA ERAEN Ean aA E 54 34 Hardware BreakpoiMt ssriiiiiananncn R aA E A EE TAER 57 3 5 TRACE WINKOW eiiean en ia EAEE IRENE EERE EE EER ER 62 3 6 RAM Monitor WiInNdOW ssssscsida ana ERAS A E RE ERA AE NEE REA EARR RE 67 4 Hardware Specifications ssisnriireriiiosrariaaedandani oinaan iedaa inaina aa a aaaea a aE a Tanadan aa Saaana aana 69 4 41 Target MCU Specifications riiin aa aaae inadai Tanani ania aana 69 4 2 Differences between the Actual MCU and Emulator esssesseesseesseesseeesesssrssnestnnttnntnnttnnntnnntnnnnnnsnnnnnnsnn nena 70 4 3
20. 92 2eENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications IMPORTANT Notes on CE Declaration of Conformity Please use this product with care as described below 1 Electrostatic Discharge Precautions must be taken when handling the product 2 Must not be used within 30 meters of a domestic radio or television receiver 3 For correct operation of this product it is recommended that Mobile phones are not used within 10 meters of this product system 4 This product should be powered down when not in use 5 Use the power supply which complies with CE marking requirements This product generates uses and can radiate radio frequency energy and may cause harmful interference to radio communications If this product causes harmful interference to radio or television reception which can be determined by turning this product off or on you are encouraged to try to correct the interference by one or more of the following methods 1 Ensure attached cables do not lie across the emulator main unit and converter board 2 Reorient the receiving antenna 3 Increase the distance between the product and the receiver 4 Connect the product into an outlet on a circuit different from that to which the receiver is connected 5 Consult the dealer or experienced radio TV technician for help Attach the ferrite core included with this product close to the DC plug of the power cable Without the ferrite core it may cause int
21. 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 AN 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 AN D ANGER unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING indicates a potentially dangerous situation that will cause death or heavy wound A WAR N l N G unless it is avoided CAUTION indicates a potentially dangerous situation that will cause a slight injury or a A CAUTION medium degree injury unless it is avoided C AUTI ON 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 Z means WARNING or CAUTION Da AN CAUTION AGAINST AN ELECTRIC SHOCK means PROHIBITION Example oisassemecy PROHIBITED means A FORCIBLE ACTION ae unrtue THE POWER CABLE FROM THE RECEPTACLE REJ10J0845 0600 Rev 6 00 Aug 20 2009 R RENESAS ROE521000CP
22. Emulator Script MCU R5F211740 MCU Init M16G R8G Compact Emulator MCU Debugging Information Emulator Script MCU Serial No 2 R52100 4KS001T v I Self Check Debug Option Bi M Debug the program using Enable the Trace Point Function Carcel Hep 7 Next Hide Specifying the MCU file Click the Refer button Select MCU File dialog box will be displayed so select the desired MCU file The MCU file contains the information specific to the target MCU The Select MCU File dialog box will be displayed so select the MCU file for the target MCU in this dialog box In the example here the MCU for the R8C 17 group is selected The specified MCU file is displayed at the MCU area field of MCU tab Serial No Shows the currently connected emulators in list form Select the serial No of the emulator you want to be connected Using or not using the address match break function With this product the address match break function cannot be used Therefore be sure to deselect the check box REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 47 of 92 7PENESAS ROE521000CPEO0 User s Manual 2 Using or not using the CPU rewrite mode and trace point function 3 Usage How to Use the Emulator Debugger Init M16C R8C Compact Emulator MOU Debugging Information Emulator Script M
23. Figure 2 23 Connecting to a 48 pin 0 5mm pitch LQFP foot pattern A CAUTION Note on Connecting to the User System Q Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROES21000CPE00 and ROE521237CFKOO are guaranteed for only 50 insertion removal iterations The connectors of the ROES21237CFK00 and YQPACKO048SD are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 41 of 92 7eENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 5 Connecting to a 52 pin 0 65mm pitch LQFP Foot Pattern Figure 2 24 shows a procedure of connecting to a 52 pin 0 65mm pitch LQFP foot pattern on the user system using the ROES21258CFJO0 included with the ROES21258CPE00 For details on the ROE521258CFJO00 refer to its user s manual 1 Mount the NQPACK052SB included with the ROE521258CFJO00 to the user system 2 Attach the YQPACKO52SB included with the ROES21258CFJOO to the NQPACKO52SB and secure it with the YQ GUIDE s 3 Attach the ROES21258CFJOO to the J3 and J4 of the ROE5S21000CPEOO 4 Attach the ROE521258CFJ00 to the YQPACKOS52SB ROE521000CPE00 On board evaluation HQPACK052SB not included ROE521258CFJ00 Vv p YQ GUIDE x4 Y Yy Saal FLASH version YQPACK052SB ME 9 KD MCU
24. Setting dialog box is used to set the user target information It is displayed after you closed the Init dialog box 1 MCU tab 1 Specifying the processor mode Specifying the processor mode MCU Settine Select the appropriate processor mode that suits your system For MCU Flash Clear the R8C Family you can specify only the Single chip Mode MCU Setting MGU R8C TINY Processor Mode Cea H RDY H i v External Data Bus Width CNVss NG Memory Space Expansion E Mode zj BYTE NC J PMIS b3 of 000005 M PMO 60 of 000 Cancel Help I Next Hide 2 Referencing the MCU pin status Referencing the MCU pin status This column shows the state of each MCU pin For the R8C MCU Settine MCU Eset Family however it does not show the MCU pin state MCU Setting MCU Status MOU R8C TINY NM H Processor Mode EEGs Hoo RDY H External Data Bus Width ONVss NG Memory Space Expansion Normal Mode BYTE NC JV PMI3 63 of 000005 M PMO 4 toni Cancel Help Next Hide REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 51 of 92 2eENESAS ROE521000CPE00 User s Manual 2 Flash Clear tab 1 Setting to clear the MCU s internal flash ROM 3 Usage How to Use the Emulator Debugger MCU Setting MCU Flash Clear Flash ROM Block poco00 00E000 002400 m 002800 Select All The checked blocks are ove
25. Setting the POWER Selection Jumper page 24 Before powering on your emulator system check that the host machine the emulator the converter board and user system are all connected correctly When the emulator debugger starts up check the target status LEDs on the emulator to see if this product is ready to operate REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 80 of 92 7PENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications IMPORTANT Note on Clock Supply to an MCU A clock supplied to the evaluation MCU is selected by the Emulator tab in the Init dialog box of the emulator debugger 1 When Internal is selected The clock generated by the oscillation circuit board in the emulator 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 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 Note on Stop and Wait Modes Do not single step an instruction shifting to stop or wait mode It may cause communications errors Notes on Software Breaks Software breaks change the instruction at a specified address to a BRK 00h Therefore take note that when you reference the result of a trace in bus mode 00h is displayed As the BRK
26. When DATA ACCESS is selected 1 Setting the address 3 Usage How to Use the Emulator Debugger 41 Set Event Status Setting the address Specified in the Address tab You can set eight conditions e g a specified address a specified address range etc After the address setting completion set the data 2 Setting data 41 Set Event Status a oT Fem Sf Mask P Setting data Specified in the Data tab You can set two conditions e g specified data or not to compare data Setting the access condition You can set three conditions e g read write and read write When you have finished setting the data and access condition click OK REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 59 of 92 7PENESAS ROE521000CPEO0 User s Manual 3 Example Data Settings 3 Usage How to Use the Emulator Debugger Event setting for even address word access 16 bit bus width STE W AO 126h A0 5423h Cycle Label Address Data BUS BHE BIU R W RWr cru 000012 000126 5423 lth 0 DWO W 0 16 bit bus width area High order and low order data effective Event setting for even address word access 8 bit bus width Setting a break event Al Address 1 000126 Data 1 15423 MASK FFFF Access WRITE STE W A0 400h A0 5423h Cycle Tabel Address Data BUS BHE BIU R W RWT CPU 000013 000400 0023 8b 1 D
27. aaa aaan aaia eaaa a A EA aa 7 COTM INS ecto eg eee Set ETE tates seascape aeaetes apg cd sacar arate a a E E E 10 User REGISTRATION siti secsecyeszcevavactenas di eeesecsbcnsiidies dtenwnc deste asaadenss gectlonerns dace aaa aa aiaa aaa aa a aa a aa AR eRe aAa 12 TSF OOG Y oi EEE a A EE EEEa 13 URE E E E N VE E A PEE T ca E E N AI P E A A P E E A E 14 1t Package Compone MS sisiiinisciinia nigaran aiaia atin tea ATE a a aa A a Naana anii 14 1 2 System Configu ratoN msriieariieonisonniiannniia aaaeaii aaeain aiaa ian daa chssasdbearttdteens 15 12 17 System Config rati Meinn a Ais Me 15 1 2 2 Names and Functions of each part of the EMULator ccccceccceeeeeeceeeee cee eeeeaeeeeaeeseeeesaeessaeeeeeeeeaes 16 13 SPOGCHI CAL ONS ssip E tx yaciasvan a a a a Stes 18 14 Operating Environment sseni aaa aaa aa a eaaa eed ede EEA eaaa Daa EaR ea 19 PEELE o E E E E E A E A 20 2 1 Flowchart of Starting Up the Emulator 0 cccceceeeee eens ee eeeeeeeeeee cee eeeeaeeeeaee scenes eeeaeeeeaeeseeeesaeesaesseeeseeeeen 20 2 2 Installing the Included Software ccceccceceeeceeeeeeeeeeeceeeeeeeaeeeeaeeecaeeeeaaeseeaeeseeeeceaeseeaaesdeeeeeceeseaesseaeeeneeee 21 2 3 GMAMGING Settings os ci ceccaieciedesstscecwnsndaysatetabencaubed geveketdelecdadedh sade sleenaadeevehsedascedpdencudscseundebealisvabddauseaabateeendseess 22 2 3 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumperv 22 2 3 2 Setting the Jumper
28. bare board Figure 2 5 shows an external view of the OSC 2 oscillator circuit bare board and the connector pin locations Figure 2 6 shows the circuitry of the oscillator circuit bare board OSC 2 Use the number of oscillator circuits recommended by the oscillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC 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 6 Circuits of the oscillator circuit bare board OSC 2 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 27 of 92 7eENESAS ROE521000CPE00 User s Manual 2 Setup 2 Using an Oscillator Circuit on the User System To operate this product with an external clock construct an oscillator circuit as shown in Figure 2 7 in the user system and input the oscillator output at 50 duty within the operating range of the evaluation MCU into pin Xw And pin Xour should be open Choose External in the emulator debugger to use this clock Evaluation MCU Oscillator circuit Oscillation output Figure 2 7 External oscillator circuit Make note that in the oscillator circuit shown in Figure 2 8 where a resonator is connected between pins Xm and Xourt 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 sub clock oscillator circuits Xc and Xcour
29. cccccceseesteeeseeteeeesensseenseesaees 78 4 4 10 External Dimensions of the Converter Board ROE5212DACFKO0 cecccceccteeeeeeeteeeeeeeeeeseeeeeaees 79 4 4 11 External Dimensions of the Converter Board ROE5212L4CFGO0 cceccceceeeeeeeeeeeeeeeseeeeeeeeesees 79 4 5 Notes on Using This Product si cisascess cog astiis enxecied episiie zeae laced a a a aiaia 80 5 Troubleshooting irran duh cdveebeleen dive EE ace veuzabagusies cote louaeaaieea E vasa ceaucag see REES 84 5 1 Flowchart to Remedy the Troubles ccccccecceeceseneeeeeeeeceaeeeeaaeseeneeeaaeeeeeaaesaeeeceaeeesaaeseeaeesseeeesiaeseeaaesseneesaas 84 5 2 When the Emulator Debugger Does Not Start Up Properly eccceecceeeeeeeeeeeeceneeeeeaeeeeaeeseeeeeseaeeeeaeeeeneeseas 85 5 2 1 When the LEDs of the Emulator Do Not Display Normally 0 cc cceeecceceeeeeeeeeeeeeeeeseaeeeseaeeseneeeeaees 85 5 2 2 MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup 0 ccccccseeeeereeeeees 85 5 2 3 Errors Occur at Emulator Debugger Startup ccccccsceeeececeeeeeeeeeeeaeeseceeesaaeeseaeeseeeeescaeeesaeeeeneeeeaees 86 5 3 How to Request for Support ceccccececeeeeeeeeeeeeeeaeeeeaeeeeeeeecaaeseeaaeseeeeesaaaeeseaeeseaeeesaaeessaaeseeeeseeeeescaeeeeaeeeeeeesaas 87 6 Maintenance and Guarantee cccccccccccsssceceesneeeeeseaeeecesaeeeceseaeeeceeeaeeeeeeeeaeeecsesaeeeeesaaeeessesaeeeseaeeeeseaeesesesaeeesenaas 88 6 1 User Registration
30. either in stop mode or wait mode Either reset the MCU or cancel the mode with an interrupt See MCU specifications Target clock is stopped When the clock is supplied from an external oscillator check that the oscillator circuit in the user system is oscillating properly Target MCU is not receiving power Check that power is properly supplied to the user system and that the user system is properly grounded 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 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 86 of 92 7PENESAS ROE521000CPEO0 User s Manual 5 Troubleshooting 5 3 How to Request for Support After checking the items in 5 Troubleshooting fill in the text file which is downloaded from the following URL then send the information to your local distributor http tool support renesas com eng toolnews registration support txt For prompt response please specify the following information 1 Operating environment Operating voltage V Operating frequency MHz 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 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 87 of 92 2eENESAS ROE
31. emulator This is a power supply for emulator Supply 5 0 V 5 DC Prepare a power supply which complies with CE marking requirements separately The power cable is included with this product Attach the ferrite core included with this product close to the DC plug of the power cable For details refer to 2 4 Attaching the Ferrite Core page 30 Note Be aware that there are some AC adapters whose power supply voltage varies rather widely with its load You are recommended to use an AC adapter with a switching power supply or a stabilized power supply User system This is your application system This product can be used when not connecting the user system Power supply for the user system This is a power supply for the user system As this emulator cannot supply the power to the user system supply the power to the user system separately from the emulator Host machine This is a personal computer for controlling the emulator Pitch converter board such as ROE521134CFGO00 This is a pitch converter board for connecting to an MCU foot pattern on the user system For details refer to 2 9 Connecting the User System page 37 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 15 of 92 7PENESAS ROE521000CPEO00 User s Manual 1 Outline 1 2 2 Names and Functions of each part of the Emulator Figure 1 2 shows the names of the LEDs on the upper panel of the emulator J1 Power connector S J2 USB Interface connector
32. hv m s ms us La 000099 OOEOSE 74 300 MOV B 00H R1H 00 00 00 006 919 000096 00E061 AA0004 MOV W 0400H A1 00 00 00 007 112 ka BIU 000093 00 064 75 30000 MOV W 00008 R3 00 00 00 007 306 oozo68 7cE8 SMOVE B 00 00 00 007 564 Shows the status between the BIU Bus Interface Unit and OOEO6A A200E0 MOV W E000H A0 00 00 00 007 758 OOEO6D 74c300 MOV B 00H R1H 00 00 00 008 015 00070 2a0004 MOV W 0400H A1 00 00 00 008 211 memory or T O 00E 073 75 30000 MOV W 00004 R3 00 00 00 008 534 00 077 7CE8 SMOVF B 00 00 00 008 924 Symbol Status 00 079 A200E0 MOV W E000H A0 00 00 00 009 118 00E07C 74 300 MOV B 00H R1H 00 00 00 009 310 ll a Non active OOEO7F AA0004 MOV W 0400H A1 00 00 00 009 504 i 00E082 75 30000 MOV W 00008 R3 00 00 00 009 698 00E086 7CE8 SMOVF B 00 00 00 009 956 DMA Data access except for CPU 00E088 EB508004 LDC 0480H SP 00 00 00 010 150 oozose 8700000 Lpe 0000H FB 00 00 00 010 343 With this product DMA is displayed in a 00E090 FDOOEOOO USR A _main OE000H 00 00 00 010 601 7 n oozo00 F3 main RTS 00 00 00 011 381 cycle in which an emulator only data access is 00E094 FEFF exit JMP B _exit 0E094H 00 00 00 011 899 08094 FEFF _exit OMP B _exit OF094H 90 00 00 012 222 zi performed INT Interrupt acknowledge cycle IB Instruction code read bytes by CPU 6 Trace window Source display i DB Data access bytes by CPU x P jeve aaa va z uv IW Instruction
33. in the emulator debugger after replacing oscillator circuit boards to change a clock supplied to an MCU REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 25 of 92 7RPENESAS ROE521000CPE00 User s Manual 2 Setup 2 Replacing Oscillator Circuit Boards Figure 2 4 shows how to replace the oscillator circuit boards RENESAS POWER USB E STATUS Sce 0 ox JB COMPACT EMULATOR au Oo o alip lg ROES21000CPE00 5 sx IA IN The oscillator circuit board of the emulator is in the lower right corner of the board Oscillator circuit board ar POWER me cLock TARGET ESET STATUS UN MADE IN JAPAN Unscrew the screw securing the oscillator circuit board Lift off the oscillator circuit board Attach the oscillator circuit board for replacement to the connector of the emulator Secure the new oscillator circuit board with the screw Figure 2 4 Replacing oscillator circuit boards A CAUTION Note on Replacing the Oscillator Circuit Board Q When replacing the oscillator circuit boards be sure to shut OFF the power supply Otherwise the internal circuit may cause a break REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 26 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 3 Using the Internal Oscillator Circuit Bare Board To use this product at a frequency you like build a desired oscillator circuit on the included OSC 2 oscillator circuit
34. 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 improper use or unauthorized repair or modification Heavily damaged electric circuits due to overvoltage overcurrent or shorting of power supply Cracks in the printed circuit board or burnt down patterns Wide range of faults that makes replacement less expensive than repair Unlocatable or unidentified faults REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 88 of 92 7PENESAS ROE521000CPEO0 User s Manual 6 Maintenance and Guarantee 3 Expiration of the repair period When a period of one year elapses after the model was dropped from production repairing products of the model may become impossible 4 Transportation fees at sending your product for repair Please send your product to us for repair at your expense 6 5 How to Make Request for Repair If your product is found faulty fill in a Repair Reque
35. oscillator check that the oscillator circuit in the user system is oscillating properly Check that the switches in the emulator main unit are set properly 2 3 2 Setting the Jumpers on the ROE521000EPBMO Board page 23 1 w 2 a Target Status RESET LED does not go out Connected Check that the reset pin of the user system is held high 5 2 2 MCU Setting Dialog Box Does Not Appear at Emulator Debugger Startup Table 5 2 Checkpoints of errors at emulator debugger startup Error Checkpoint Communication error occurred Data was not sent to the target Check that the USB cable is connected properly See 2 6 Connecting the Host Machine page 31 Not compact emulator Check that an emulator other than the compact emulator such as PC4701 PC7501 is not connected REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 85 of 92 7PENESAS ROE521000CPEO0 User s Manual 5 Troubleshooting 5 2 3 Errors Occur at Emulator Debugger Startup Table 5 3 Checkpoints of errors at debugger startup Error Checkpoint Target MCU is in the reset state Check that the reset pin of the user system is held high Target MCU cannot be reset 1 If the reset circuit of the user system has a watchdog timer disable the timer 2 Check that power is properly supplied to the user system and that the user system is properly grounded Target is in HOLD state The MCU is
36. purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations All information included in this document such as product data diagrams charts programs algorithms and application circuit examples is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http www renesas com Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and
37. select Trace T from Trace T of View V menu for the same effect 2 Trace window Trace window a we Va lae Q va Ev The trace window is used to show the results of real time trace Range 000206 000000 Area Break measurements It has the following four display modes Mixed Address Data BUS BHE BIU R W RWT ooz093 0000 0 IB R 0 ooz093 0000 00094 OOFE 00095 OFF 000037 00E095 OOFF 000036 00E000 000035 00E001 000034 00047D 000033 00047E 000032 00047F 000031 00E002 000030 002003 000029 00 003 000028 00047D 000027 00047E 000026 00047F 000025 00047F 000024 00E094 000023 00 095 mode also can be displayed w IW 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 000022 OOE096 000021 00E 097 OrOoOrODODOrRODODODORrROHROORDODOHRODO Dss Iid inna SSeenwminnwi ooo0oo0oerDDOrDODDODOOOOOrRODOOH NVNNHPOWWWWWHYNNNNHONNE 3 Trace display mode Trace display mode Bus mode Cycle Address Data BUS BHE Bus information per cycle can be inspected The contents are __ 000041 OO0E093 0000 8b 0 displayed in order of execution paths 000040 00E093 0000 8b 0 v 000039 _exit 00E094 OOFE 8b 1 Disassemble mode 00
38. the YQ GUIDE s 3 Attach the ROES212BACFKO0 to the J3 and J4 of the ROES21000CPEOO 4 Attach the ROE5212BACFKO0 to the YQPACKO064SD ROE521000CPE00 On board evaluation ROE5212BACF KOO a HQPACK064SD not included QO Y f YQ GUIDE x 4 A 5 FLASH version YQPACK064SD Ny MCU v e y 64 pin 0 5mm pitch LQFP gt PLQP0064KB A foot pattern No 1 pin These items are included with the ROE5212BACFKO00 Figure 2 26 Connecting to a 64 pin 0 5mm pitch LQFP foot pattern A CAUTION Note on Connecting to the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROE521000CPE00 and ROES212BACFKO00 are guaranteed for only 50 insertion removal iterations The connectors of the ROES212BACFKO00 and YQPACKO64SD are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 44 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 8 Connecting to an 80 pin 0 5mm pitch LQFP Foot Pattern Figure 2 27 shows a procedure of connecting to an 80 pin 0 5mm pitch LQFP foot pattern on the user system using the ROES212DACFKO0 included with the ROES5212DACPEO00 For details on the ROES5212DACFKO0 refer to its user s manual 1 Mount the NQPACKO80SD ND included
39. with the ROES5212DACFKO00 to the user system 2 Attach the YQPACKO80SD included with the ROES212BACFKOO to the NQPACKO80SD ND and secure it with the YQ GUIDE s 3 Attach the ROES212DACFKO0 to the J3 and J4 of the ROES21000CPE00 4 Attach the ROES5212DACFKO0 to the YQPACKO80SD HQPACK080SD not included YQ GUIDE x 4 ity lt lt YQPACKO80SD S An y t NQPACKO80SD ND eS A 80 pin 0 5mm pitch LQFP S lt PLQPO0080KB A foot pattern No 1 pin These items are included with the ROE5212DACFKO00 Figure 2 27 Connecting to an 80 pin 0 5mm pitch LQFP foot pattern A CAUTION Note on Connecting to the User System Q Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROES21000CPE00 and ROES212DACFKO0 are guaranteed for only 50 insertion removal iterations The connectors of the ROES5212DACFKO0 and YQPACKO80SD are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 45 of 92 RENESAS ROE521000CPE00 User s Manual 3 Usage How to Use the Emulator Debugger 3 Usage How to Use the Emulator Debugger This chapter describes how to start up the emulator debugger and operate the major windows 3 1 Starting Up the Emulator Debugger When debugging the com
40. 0038 00E095 OOFF 8b 0 The execution paths of the executed instructions can be 000037 00E095 OOFF 8b 0 inspected The contents are displayed in order of execution 000036 main OOEOOO OOF3 8b 1 ae paths Source mode The execution paths of the source program can be inspected f Data access mode Data read write cycles can be inspected The contents are displayed in order of execution paths Mixed mode also can be displayed REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 62 of 92 2eENESAS ROE521000CPE00 User s Manual 3 Usage How to Use the Emulator Debugger 4 Trace window bus information display m Explanation of the trace window bus pevna aain EZE information display Range 000206 000000 Area Break File Cycle 000041 Address 00E093 Time 00 00 00 010 667 Label Address Data BUS BHE BIU R w RWI cPu ON 76543210 h m s ms us 008093 oooo amp b 0 IB R oO 3 00000000 00 00 00 010 667 5 A 5 00093 0000 8b OF 1 RW 1 00000000 00 00 00 010 734 The following explains the displayed contents from left to _exit 00E094 OOFE 8b 1 Iw R oO 2 00000000 00 00 00 010 799 00E095 OOFF 8b 0 IB R oO RE 2 00000000 00 00 00 010 863 ri
41. 0h 04h sset proc mov b 00h Qah Idc 0080h flg Ide stack_top sp set stack po Idc data_SE_top sb set sbr Idintb YECTOR_ADR Editor source window The editor source window is a window that always shows the content of the source file corresponding to the current position of the program counter PC hereafter The PC position is marked by a yellow arrow Here you can execute the program up to the cursor position and set or clear software breakpoints REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 53 of 92 7PENESAS ROE521000CPEO0 User s Manual 3 3 Program Execution 1 Program execution 3 Usage How to Use the Emulator Debugger wt S tt _ mu iL PPD e l REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 54 of 92 t CPU reset Resets the target MCU You can select CPU reset from the Debug menu for the same effect B Go Runs the program beginning with the current PC position You can select Go from the Debug menu Cal Reset Go Runs the program after reset You can select Reset Go from the Debug menu Step In Single steps the program executing each statement including those in functions You can select Step In from the Debug menu m Q Step Over Single steps the program executing each function call as one step You can select Step
42. 521000CPEO0 User s Manual 6 Maintenance and Guarantee 6 Maintenance and Guarantee This chapter describes how to perform maintenance warranty information repair provisions and the procedures for requesting a repair 6 1 User Registration When you purchase our product be sure register as a user For user registration refer to User Registration page 12 of this user s manual 6 2 Maintenance 1 If dust or dirt collects on any equipment of your emulation system wipe it off with a dry soft cloth Do not use thinner or other solvents because these chemicals can cause the equipment s surface coating to separate 2 When you do not use this product for a long period for safety purposes disconnect the power cable from the power supply 6 3 Guarantee If your product becomes faulty within one year after its purchase while being used under good conditions by observing IMPORTANT and Precautions for Safety described in this user s manual we will repair or replace your faulty product free of charge Note however that if your product s fault is raised by any one of the following causes we will repair it or replace it with new one with extra charge Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadequate user s system or misuse of it Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product
43. CU R5F211740 MCU Serial No 2 R52100 4KS001T Self Check Debug Option Z2 Enable he Address Match Interrupt Break Function 48ebug the program using the CPU Rewrite Mode lt Gpable the Trace Point Function OK Cancel Help J Next Hide Using or not using CPU rewrite mode Specify whether or not to debug in CPU rewrite mode To debug the user program that uses CPU rewrite mode select the check box This option can be selected or deselected only when you are starting up the emulator debugger Supplementary explanation When debugging in CPU rewrite mode is enabled the following functions cannot be used Software breakpoint setting in the internal ROM area Data or program rewriting in the internal ROM area Event hardware break trace point setting Using or not using the trace point function The emulator has two point events which are shared by the trace function and the hardware break function Specify whether or not to use the trace point function When not using the trace point function default deselect the check box In this case the events are used for the hardware break function To use the trace point function select the check box In this case the events are used for the trace point function The hardware break function is disabled REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 48 of 92 7PENESAS ROE521000CPEO00 User s Manual 3 Executing the
44. Connection Diagrams saisai a Ea ea el ieee 72 4 3 1 Connection diagrams of ROE521000CPEOO cccccceceesceeeeeeeeeee cesses eeeeeeecaaeeeeaaeseeeeeseaeeesaeeseneeeeaees 72 4 3 2 Connection diagrams of ROE5212BACFG00 ROE5212BACFKO0 and ROE5212DACFKOO 73 4 4 External Dimensions c cccccccsssssecsssscecscsesesecsccensecsecnsecsceensecseeusecseseesecsecnsecsesensecssenssecseseesecsesensecseseneess 74 4 4 1 External Dimensions of the Compact Emulator 0 cccceceeeceeeeeeeeeeeeeceeeeeceaeeeeaaeseeeeeceaeeesaaaeseeeeeneees 74 4 4 2 External Dimensions of the Converter Board ROE521134CFGO0 cccecccseeeeeeeeeeeeeeeseeeeeeeeeeaees 75 4 4 3 External Dimensions of the Converter Board ROE521 174 CSUO0 eccceceeeeeseeeeeeeeeeeeeeeseeeeseneeeeees 75 4 4 4 External Dimensions of the Converter Board ROE521174CDBO0 ccceccceseeeeeeeeeeceeeeeseaeeeeeeeeaees 76 4 4 5 External Dimensions of the Converter Board ROE521237CFKO0 ccceccceeeeeeeeneeeeeeeeeeeeeesaeeesaees 76 4 4 6 External Dimensions of the Converter Board ROE521258CFUOO c ccceccceeeeeeeeeeeseeeeeeeeeeteneeeeees 77 4 4 7 External Dimensions of the Converter Board ROE521276CFGOO cc ccceccesseceseeseeesesneeeeesseeaees 77 4 4 8 External Dimensions of the Converter Board ROE5212BACFGO0 cccscceceesceeeseeeeeesseneeesseesaees 78 4 4 9 External Dimensions of the Converter Board ROE5212BACFKO
45. E00 User s Manual Precautions for Safety Z WARNING Warnings for AC Power Supply A Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock This product is connected signal ground with frame ground If your developing product is transformless not having isolation transformer of AC power this may cause electric shock Also this may give an unrepairable damage to 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 Use the power supply which complies with CE marking requirements L 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
46. ENESAS ROE521000CPE00 User s Manual 2 Setup 2 3 3 Setting the POWER Selection Jumper The POWER select jumper needs to be set depending on the user system s power supply voltage and power supply condition If the system is used with power supply voltages in the range 2 7 to 5 5 V leave the POWER select jumper as set to the INT side which is the default setting If the system is used with power supply voltages less than 2 7 V change the POWER select jumper s setting to the EXT side If the board is used with its POWER select jumper switched to the EXT side always make sure a user system is connected to the board and that the MCU power supply source selection jumper is set to the EXT side Table 2 3 shows the POWER selection jumper switch settings Table 2 3 Setting jumper switches on the ROES21000EPBMO Switch No Switch name How to set Description When using this system with power supply voltages in the range 2 7 EXT to 5 5 V POWER Factory setting JP1 selection NANN Set the jumper to this position when the user system s power supply ie a voltage is less than 2 7 V and the user system s power supply is to NT E ikt be turned on off Also be sure to set the MCU power supply source selection jumper to the EXT side When the POWER selection jumper is changed to the EXT side following operations can be performed from the debugger while the user system s power supply is turned off
47. F 23 52 19 000440 68 7C 7F E5 BE 25 6B EE 12 53 ED 000480 _ 0004c0_ 000400 22 D2 CB 9B 14 B4 56 E8 62 00 67 Changing the RAM monitor display area This window shows changes of memory contents while the 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 The background colors of the data display and the code display sections change with the access attribute as described below Green Addresses accessed for read Red Addresses accessed for write White Addresses not accessed The background colors can be changed as necessary REJ10J0845 0600 Rev 6 00 Aug 20 2009 ROE521000CPEO0 User s Manual 2 Modifying the RAM monitor display area 1 RAM Monitor window 3 Usage How to Use the Emulator Debugger 101ms Labe Register 0 H e H uf rA r 0003E0 000400 000410 NANNAN 0003F0 000420 SB B AS B6 FF JA DI 3A BF 86 DC 34 7B CF i 79 9M FA M I Modifying the RAM monitor display area Clicking this button opens the RAM monitor setting window B Shows the RAM monitor area setting window To change the displayed area click the following buttons t
48. Over from the Debug menu P Step Out Exists a function and stops at a statement in the program next to the one that called the function You can select Step Out from the Debug menu lor Stops the program You can select STOP from the Debug menu Go Free Runs the program beginning with the current PC position The software and hardware breaks set in it are ignored 7PENESAS ROE521000CPEO0 User s Manual 2 Setting software breakpoints 1 Setting software breakpoint and program execution 3 Usage How to Use the Emulator Debugger 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 Oe002 Oe006 Oe00a Oe00da O0e010 O0e014 0e018 OeOic Ide tistack_top sset b 02h 0ah Program execution with software breakpoint A software breakpoint can be set or cleared by double clicking the software breakpoint display area in the editor source window A red circle is displayed at the setting line ia the execution button Or you can select Go from Debug menu for the same effect sset sset sta sb jset NEAR area initialize 2 Execution completed with software break 259 260 Oe002 0e006 0e00a Depa 0e010 0e014 0e018 OeOic Ide ttistack_top Set mov b 02h Qah mov sset sp jset sta sb set The cursor stops in the position where the software br
49. Power is not supplied to the target MCU CLOCK LED4 Green ON The target MCU internal clock is oscillating OFF The target MCU internal clock is not oscillating RESET LEDS Red ON Target MCU is being reset or reset signal of the user system is held low OFF Target MCU is not being reset RUN LED6 Green ON User program is being executed OFF User program is not being executed REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 16 of 92 7PENESAS ROE521000CPEO00 User s Manual 1 Outline 3 System Reset Switch By pressing the system reset switch you can initialize the emulator system Table 1 4 shows the functions of the system reset switch depending on the state of the emulator Table 1 4 Functions of the system reset switch State of Emulator Function Initializes the emulator and waits for a command from the When the user s program is halted emulator debugger Stops the user s program initializes the emulator and waits for a command from the emulator debugger IMPORTANT Notes on a System Reset After pressing the system reset switch restart the emulator debugger Otherwise the display of emulator debugger and the actual value in the emulator may not match When the emulator debugger does not start up normally even after rebooting turn off the emulator and then turn When the user s program is executed on again 4 Power Co
50. QC Clears instruction queue buffer 00000A oo w 00 00 00 001 488 00047D 94W 00 00 00 011 124 O0047E EO W 00 00 00 011 187 CW Op code read words O0047F oo W 00 00 00 011 251 00047 94 R 00 00 00 011 513 RW Operand read words 00047E EO R 00 00 00 011 578 00047F 00 R 00 00 00 011 643 0004FE 84w 00 00 00 013 064 0004FF oO w 00 00 00 013 129 0004Fc 94 W 00 00 00 013 194 O004FD EO W 00 00 00 013 259 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 63 of 92 7PENESAS ROE521000CPE00 User s Manual 3 Usage How to Use the Emulator Debugger 2 Suspending and resuming trace measurement 1 Suspending trace measurement Stop Click this toolbar button to suspend the trace measurement in Hevea saaa vaz xz u Range 076054 000000 Area Break File Cycle 000019 Addi Cycle Label Address Data BUS progress 2 Resuming trace measurement Re Start Ir x Click this toolbar button to resume the trace measurement in 4eVe lQQaalvasziayv Range 013720 000000 Area Break File Cycle 000019 Addi gyula Label Address Data BUS 000019 00E097 0004 8b 000018 _exit 00E094 OOFE 8b 000017 00E095 DOFF 8b 000016 dummy int 00E096 OOFB 8b 000015 00E097 0004 8b 000014 00E097 0004 8b 000013 _exit 00E094 OOFE 8b 000012 00E095 OOFF 8b progress REJ10J0845 0600 Rev 6
51. R8C Compact Emulator Debugger C compiler package M3T NC30WA evaluation version m m m m m m m JR le JR le Please keep the ROE521000CPE00 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 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 14 of 92 2eENESAS ROE521000CPEO0 User s Manual 1 Outline 1 2 System Configuration 1 2 1 System Configuration Figure 1 1 shows a configuration of the ROES21000CPE00 system Power supply for emulator not included Power supply cable USB interface cable Power supply for user system not included i m 4 y gt y User system m me r Host machine Compact emulator Pitch converter board not included R0E521000CPE00 such as R0E521134CFG00 Figure 1 1 System configuration 2 3 4 5 6 7 Compact emulator ROES521000CPEO00 this product This compact emulator contains for the R8C Family which has a real time trace function This is described as emulator hereafter An evaluation MCU is mounted on the ROE521000CPEO0 USB interface cable included This is an interface cable for connecting the host machine and emulator Power supply for
52. RAH A Rates UU ceil aa 4ilconnected 4 Find in Files A Version Control REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 52 of 92 Checking connections of the emulator system When the emulator debugger is connected correctly to the emulator after you ve finished setting up the Init dialog box and the MCU Setting dialog box you will see a message Connected displayed on the Debug tab of the Output window RENESAS ROE521000CPE00 User s Manual 3 2 Downloading the Program Download the program to be debugged 1 Downloading from the work space window 3 Usage How to Use the Emulator Debugger El E sample sample l Depen E ser E Assembly souri A nert0 a30 5 6 C source file i E sample c B E Download mode xl Download module Download module debug data only Unicad module Configure View Downloading the program Download the object program you want to debug Select Download from xxx x30 of Download module Or you can select Download module from the Debug menu for the same effect 2 Showing the program 259 260 261 262 0e002 gt 263 0e006 264 0e00a 265 0e00d 266 0e010 267 Oe014 268 0e018 269 OeOlc 270 271 272 273 after reset this program will start Ide ttistack_top isp set ista mov b 02h Qah mov b 0
53. RUN TUUUUUY TOU MADE IN JAPAN Po Figure 2 14 Positions of the system status LEDs and target status LEDs 1 System status LEDs Check that the LED1 and LED2 of the system status LEDs are lit immediately after the power is activated If it is not lit shut off the emulator and check the power supply for the emulator is properly connected 2 Target status LEDs Target status LEDs light as shown in Figure 2 15 when the user system is not connected and as shown in Figure 2 16 when a user system is connected After turning on the power the LED4 CLOCK and LEDS RESET light on Check the target status LEDs display normally after starting up the emulator debugger When the target status LEDs do not display as shown in Figures 2 15 to 2 17 refer to 5 Troubleshooting page 84 When the user system NOT connected The POWER LED does not light POWER p LED3 POWER p LED3 cLock LED4 CLOCK O LED4 RESET LED5 RESET J LED5 Co ZON RUN E Eos RUN E os PB oF After starting up the After turning the power ON emulator debugger Figure 2 15 Target status LEDs display when the emulator starts up normally when user system not connected REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 33 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup When the user system connected Power selection jumper EXT user system is ON If the POWER LED does not light shut off the sys
54. Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office
55. SS R8C Evaluation Chip Connected to the inside of the emulator Figure 4 1 Connection diagrams of ROES21000CPE00 Table 4 2 Electrical characteristics of the 74HC4066 tandard val Symbol Item Condition i D CALNE Unit Min Standard Max Ron ON resistor VCC 4 5V 96 200 Q ARon ON resistor difference VCC 4 5V 10 IOFF Leak current Off VCC 12 0V 1 A Iz Leak current On output open VCC 12 0V 1 j REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 72 of 92 7eENESAS ROE521000CPEO00 User s Manual 4 Hardware Specifications 4 3 2 Connection diagrams of ROE5212BACFG00 ROE5212BACFKO0 and ROE5212DACFKO00 Figure 4 2 shows the connection diagrams of the ROES212BACFG00 ROES212BACFK00 and ROE5212DACFKOO0 These connection diagrams mainly show the interface section The signals not shown in Figure 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 P14 P17 P14 P17 P20 P27 P20 P27 P30 P37 P30 P37 P43 P47 P43 P47 MODE MODE RESET RESET O A O VCC lt S AVCC VCC AVCC oO al ta i E vss Ea VDD2_VCC see fe n le 10 P13 A 7481053 A ______ vpb2_vcc g X 8 Vref Vref 7481053 IC6 VDD2_VCC VCC AVCC ANO AN7 AN8 AN11 mes VDD2_VCC a Fy P80 P86 l P80 P86 H74s1053 poeti li P90 P93 P90 P93 7481053 ROE5212DACFKO0 only VSS R8C
56. To our customers Old Company Name in Catalogs and Other Documents On April 1 2010 NEC Electronics Corporation merged with Renesas Technology Corporation and Renesas Electronics Corporation took over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry CENESAS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is grant
57. W w j 000012 000401 0054 8 0 DW w 0 8 bit bus width area Only Low order data effective Event setting for odd address word access STE W A0 401h A0 AB79h Setting a break event Al Address 1 000400 Data 1 5423 MASK 00FF Access WRITE Cycle Label Address Data BUS BHE BIU R W_ RWT CPU 000013 000401 0079 8b 0 W w 0o o e 000012 000402 O0AB 8b 1 bw w 0 8 bit bus width area Only Low order data effective Event setting for even address byte access STE B ROL A1A0 ROL E5h A 1 0000h A0 0402h Cycle Label Address Data BUS BHE BIU R W RwT cpu Setting a break event using 2 events Al A2 Address 1 000401 Address 1 000402 Data 1 0079 Data 1 00AB MASK 00FF MASK 00FF Access WRITE Access WRITE Set the combinatorial events to AND 000013 000402 O0ES 8b 1 DBE W 0 lt gt 8 bit bus width area Only Low order data effective Event setting for odd address byte access Setting a break event Al Address 1 000402 Data 1 00E5 MASK 00FF Access WRITE STE B ROL A1A0 ROL E6h A 1 0000h A0 0403h Cycle Tabel Address Data BUS BHE BIU R W RWI CPU 000013 000403 O0E6 8b 0 DB w 0o lt 4 8 bit bus width area Only Low order data effective Setting a break event Al Address 1 000403 Data 1 00E6 MASK 00FF Access WRITE REJ10J0845 0600 Rev 6 00 Aug 20 2009 ROE521000CPE00 User s Ma
58. are lighting When the user system is not connected the POWER LED does not light up Start up the High performance Embedded Workshop and the emulator debugger Set the INIT dialog box and MCU Setting dialog box of the emulator debugger For how to use the emulator debugger refer to the online manual of the High performance Embedded Workshop and emulator debugger Figure 2 1 Flowchart of starting up the emulator REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 20 of 92 RENESAS ROE521000CPEO00 User s Manual 2 Setup 2 2 Installing the Included Software If the OS used in your host machine is Windows XP or Windows 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 software as instructed by the displayed messages by inserting the included CD into the CD ROM drive In process of installation user information dialog box to enter the user information contractor section contact address and host machine will open The supplied information will be turned into a format by user registration will be provided by e mail REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 21 of 92 2RENESAS ROE521000CPE00 User s Manual 2 Setup 2 3 Changing Settings 2 3 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper Set the MCU power supply source selection jumper and the MCU power su
59. ator debugger and C compiler M3T NC30WA evaluation version which are included with each product refer to the online manual All the components of this product are shown in 1 1 Package Components page 14 If there is any question or doubt about this product contact your local distributor The related manuals for using this product are listed below You can download the latest manuals from the Renesas Tools homepage http www renesas com tools Related manuals Item Manual Accessory Tools ROES21134CFGO0 User s Manual ROES21174CSJOO User s Manual ROES21174CDBO0 User s Manual ROES21237CFKOO User s Manual ROES21258CFJOO User s Manual R0E521276CFG00 User s Manual ROES212BACFG00 User s Manual ROES212BACFKOO User s Manual ROES212DACFKOO User s Manual ROE5212L4CFG00 User s Manual Integrated development environment High performance Embedded Workshop User s Manual Emulator debugger M16C R8C Compact Emulator Debugger User s Manual C compiler C Compiler Package for M16C Series and R8C Family C Compiler User s Manual Assembler C Compiler Package for M16C Series and R8C Family Assembler User s Manual REJ10J0845 0600 Rev 6 00 Aug 20 2009 pee pe RENESAS ROE521000CPEO00 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 produ
60. break down Therefore such an operation is strictly prohibited IMPORTANT Notes on the EXT Setting of the POWER Selection Jumper With this product the MCU s power on reset function for user system power on cannot be emulated The user system s power supply can be turned on off only when the system is operating with an on chip oscillator and cannot be turned on or off when operating with XIN or XCIN REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 24 of 92 2eENESAS ROE521000CPEO00 User s Manual 2 Setup 2 3 4 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 debugger Table 2 4 shows the clocks and their initial settings Table 2 4 Clock supply to the MCU Clock Emulator debugger display Description Initial setting Internal Internal oscillator circuit board OSC 3 or OSC 2 Yes Main Xqn Xour F External Oscillator circuit on the user system Internal Internal oscillator circuit 32 768 kHz Sub Xcm Xcour F neat External Oscillator circuit on the user system Yes 1 Using an Internal Oscillator Circuit Board 1 Kinds of Oscillator Boards The R0E521000CPE00 comes with an oscillator circuit board OSC 3 20 MHz And an oscillator circuit bare board OSC 2 is included with this product If you use an internal oscillator circuit board of the emulator as a main clock choose Internal
61. cannot be accepted because the emulator disables interrupts The interrupt request is accepted immediately after the user program execution is started 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 Oscillator Circuit Make note that in the oscillator circuit where a resonator is connected between pins P4_6 XIN and P4_7 XOUT oscillation does not occur because a flexible cable buffer IC and other devices are used between the evaluation MCU and the user system It is same for sub clock oscillators pins P4_3 XCIN and P4_4 XCOUT For notes on when using the oscillator circuit on the user system refer to 2 3 4 2 Using an Oscillator Circuit on the User System page 28 Note on Pin P4_4 XCOUT Make note that the pin P4_4 XCOUT of evaluation MCU used with this product does not have an XCOUT output function REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 70 of 92 7PENESAS ROE521000CPEO00 User s Manual 4 Hardware Specifications IMPORTANT Note on A D Converter Because a flexible cable and other devices are used between the evaluation MCU and the user system the A D converter operates differently from that of the actual MCU Notes on Stack Area With this product the interrupt stack pointer ISP is set to 00500h and used as stack area after the reset is released With this pro
62. cation system using the microcomputer to be debugged User program This means the program you are going to debug Evaluation MCU This means the MCU mounted on the compact emulator 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 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 13 of 92 7PENESAS ROE521000CPEO0 User s Manual 1 Outline 1 Outline This chapter describes the package components the system configuration the specifications and the operating environment of this product 1 1 Package Components The ROE521000CPEO00 package consists of the following items When unpacking it check to see if your ROES21000CPE00 contains all of these items Table 1 1 Package components Item Quantity ROES21000CPE00 compact emulator 1 OSC 3 20MHz oscillator circuit board pre mounted OSC 2 oscillator circuit bare board USB interface cable for connecting host machine and emulator Power supply cable Ferrite core for connecting power supply cable ROE521000CPEO00 Release Notes English ROE521000CPE00 Release Notes Japanese H W Tool Customer Registration Sheet English H W Tool Customer Registration Sheet Japanese Repair Request Sheet English Repair Request Sheet Japanese ROES21000CPEOO User s Manual this manual ROE521000CPE00 User s Manual Japanese CD ROM Emulator debugger MI16C
63. ch Converter board LaF __ ROE521258CFJ00 tare _ ROE5212BACFG00 Lore _ ROE5212BACFKO00 LarP_ ROE5212DACFKO00O fe lt lt YQ GUIDE x4 5 yyy YQ GUIDE x4 6 gt GUIDE x4 7 YQ GUIDE x4 8 4 1 YQPACKO052SB 5 E YQPACKO64SA 6 YQPACKO64SD 7 YQPACKO80SD 8 A in big i i NQPACKO052SB 5 oe NQPACK064SA160 6 2 NQPACK064SD ND 7 es NQPACKO80SD ND 8 ro 52 pin 64 pin 64 pin 80 pin 0 65mm pitch 0 8mm pitch 0 5mm pitch 0 5mm pitch LQFP LQFP LQFP LQFP No 1 pin 1 These items are included with the ROE521134CFG00 R0OE521276CFG00 and ROE5212L4CFG00 packages 2 These items are included with the ROE521174CSJ00 package 3 These items are included with the ROE521174CDBO0 package 4 These items are included with the ROE521237CFKOO package 5 These items are included with the ROE521258CFJ00 package 6 These items are included with the ROE5212BACFGO00 package 7 These items are included with the ROE5212BACFKO0 package 8 These items are included with the ROE5212DACFKO0 package Figure 2 19 Connection of the ROE521000CPE00 and user system A CAUTION Note on Connecting to the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system NQPACK YQPACK YQSOCKET YQ GUIDE HQPACK TQPACK TQSOCKET NSPACK YSPACK YSSOCKET and YS GUIDE are trademarks of Tokyo Eletech Corporation REJ10J0845
64. 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 84 Check the package components User registration Install the included software Changing settings Connect the USB interface cable Connect the power supply for the emulator Connect the user system Turning on the power supply a y Check the LED display of the emulator y Start up the emulator debugger form the High performance Embedded Workshop y Set the operating environment of the emulator debugger v Debug a program with various functions of the emulator debugger Refer to 1 1 Package Components page 14 Refer to User Registration page 12 Install it from the included CD ROM Select a power voltage supplied to the target MCU or clock supply according to conditions of use Connect the USB interface cable to the USB interface connector J2 of the emulator and the USB port of the host machine Connect a power supply to the power connector J1 Power supply should be 5 0 V 5 2 A Connect the user system as occasion demands Turn on the power to the emulator and the user system as simultaneously as possible Check that the system status LED and POWER and RESET of target status LED
65. ckage Figure 2 21 Connecting to a 20 pin 0 65mm pitch LSSOP foot pattern A CAUTION Note on Connecting to the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROES21000CPE00 and ROES21174CSJOO are guaranteed for only 50 insertion removal iterations The connectors of the ROES21174CSJOO and YSPACK20BG are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 39 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 3 Connecting to a 20 pin 1 778mm pitch SDIP Foot Pattern Figure 2 22 shows a procedure of connecting to a 20 pin 1 778mm pitch SDIP foot pattern on the user system using the ROE5S21174CDBO00 included with the ROES21174CPE10 For details on the ROES21174CDBO0 refer to its user s manual 1 Mount the two pieces of PM 6 10P 10 conductor included with the ROE521174CDBO00 to the user system 2 Attach the ROE521174CDBO00 to the J3 and J4 of the ROES21000CPE10 3 Attach the ROES21174CDBO00 to the PM 6 10P FLASH version MCU 20 pin 1 778mm pitch SDIP _ PRDP0020BA A foot pattern No 1 pin These items are included with the ROE521174CDBO00 package Figure 2 22 Connecting to a 20 pin 1 778mm pitch SDIP foot pattern A CAUTION Note o
66. code read words by CPU Range 000206 000000 Area Break File ncrt0 a30 Cycle 000099 Address OOE05E Time 00 00 00 006 919 Dine Address Now Source z DW Data access words by CPU 00109 O0E04F EI mov b FROM_ gt gt 16 R1H 00110 ooo52 mov w T0_ Al R W 00111 OOEOSS mov w sizeof SECT_ R3 e eee j moe Shows the status of the data bus Displayed as R for ooma ooie zero macro mor seet E Read W for Write and for no access 001 push w sizeof SECT_ gt gt 16 00117 push w sizeof SECT Offffh Ei RWT 00118 pusha TOP_ gt gt 16 2 r R 00119 pusha TOP_ Offffh This is the signal to indicate a valid bus cycle When valid 00120 stk 8 guna Sgk _bzero RWT 0 The Address Data and the BIU signals are 00122 call _bzero 00123 jsr a _bzero soo TREE j pea effective when this signal is 0 00125 00126 BCOPY macro FROM_ TO_ SECT_ CPU 00127 push w sizeof SECT_ gt gt 16 00128 push w sizeof SECT Offffh zl Shows the status between the CPU and BIU Bus Interface Unit Symbol Status 7 Trace window Data access display N Non active xj 4evepls aaalya5z ay CB Op code read bytes Range 000206 000000 frea Break File Cycle 000193 Address 00000A Time 00 00 00000 845 Cycle babel Datekccess BY m s me us RB Operand read bytes 000193 000004 02 Ww 00 00 00 000 845 000191 000004 00w 00 00 00 000 972
67. ct Emulator The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp 1 Compact emulator main unit 2 Package converter board for connecting the user system The emulator herein does not include the customer s user system and host machine Purpose of use of the emulator This emulator is a device to support the development of a system that uses the R8C Family of Renesas 16 bit single chip MCUs It provides support for system development in both software and hardware Be sure to use this emulator correctly according to said purpose of use Please avoid using this emulator for other than its intended purpose of use For those who use this emulator This emulator can only be used by those who have carefully read 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 pr
68. duct a maximum 8 bytes of the user stack is consumed as a work area Therefore ensure the 8 byte maximum capacity used by the user program as the user stack area If the user stack does not have enough area do not access these areas which cannot be used as stack SFR area RAM area which stores data or ROM area as work area Accessing these areas like this is a cause of user program crashes and destabilized emulator control Note on Accessing Addresses 00000h and 00001h With the R8C Family MCUs when a maskable interrupt is generated the interrupt data interrupt number and interrupt request level stored in addresses 00000h and 00001h are read out Also the interrupt request bit is cleared when address 00000h or 0000 1h is read out Consequently when the address 00000h or 00001h readout instruction is executed or when address 00000h or 00001h is read out in the cause of a program runaway a malfunction occurs in that the interrupt is not executed despite the interrupt request because the request bit of the highest priority interrupt factor enabled is cleared Note on the Watchdog Function Although this product emulates the watchdog timer function of the target MCU note that the count value does not always match that of the actual MCU For this reason when the program is single stepped successively as in the case of overstep operation a watchdog timer interrupt may be generated Note on the block 0 rewrite disabled bit FMR15
69. e 10 to 60 C no dew Table 1 8 Operating environment of the host machine Item Description Host machine IBM PC AT compatibles OS Windows XP Windows 2000 CPU Pentium III 600 MHz or more recommended Interface USB 1 1 full speed Memory 128 MB or greater more than 10 times the file size of the load module recommended Hard disk Emulator debugger installation needs 100 MB or more free space In view of swap area keep another free space which is more than twice the memory capacity More than four times the memory capacity recommended Display resolution 1024 x 768 or greater 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 CD drive Needed to install the emulator debugger or refer to the user s manual Windows is either a registered trademark or trademark of Microsoft Corporation in the United States and other countries 2 Can be connected to the USB2 0 port of the host machine With the USB interface of this product not all hardware such as host machine USB devices USB hub combination will work and guaranteed REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 19 of 92 7PENESAS ROE521000CPEO00 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
70. eak check box and this break function will be enabled allowing you to set hardware breakpoints Setting Break Event Click the event line at which you want set a break event Combination PID fano z Detail F Enable A L oO ail Reset Save Load set Clos Setting Path Count 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 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 57 of 92 7PENESAS ROE521000CPE00 User s Manual 3 Opening the break event setting dialog box 3 Usage How to Use the Emulator Debugger Al Set Event Status addr Address ha pooooo E AE Specifying the event type Click to select the event type you want to set FETCH Detects an instruction prefetch DATA ACCESS Detects a memory access BIT SYMBOL Detects a bit access 2 When FETCH is selected 1 Setting addresses Al Set Event Status FETCH ha addr Address v aooo E JE Setting the address You can set eight conditions e g a specified address a specified address range etc When you have finished setting the address click OK REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 58 of 92 RENESAS ROE521000CPE00 User s Manual 3
71. eak was set up The statement in which the software break was set up is not executed If the program is started to run from a PC position at which a software breakpoint is set instructions at that PC position are stepped over automatically and the program is executed from the next instruction on NEAR area initialize REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 55 of 92 7PENESAS ROE521000CPE00 User s Manual 3 Usage How to Use the Emulator Debugger 3 Executing up to the cursor position 1 Setup procedure for running the program up to the cursor position 97 2232222222223222232222222222222 Setu rocedure for running the program up to 98 Initialize Macro declaration the cursor position a N BZERO i iera T ToP SECT_ ae 1 Click the line in the editor source window that you want to be alfaja l 0e024 mov b 00H ROL executed 102 0e025 mov w TOP_ amp gt l Bd 7 103 0e028 mov w i R3 2 Click the execution button to the cursor position 104 Oed2c sstr b Or you can select Go to Cursor from Debug menu for the same 105 endm effect 106 f 107 N_BC macro FROM_ TO_ SECT_ 108 Oe04c mov w FROM_ amp OFFFFH Ad 109 0e04f mov b FROM_ gt gt 16 R1H 110 0e052 mov w TO_ Al 111 0e055 mov w sizeof SECT_ R3 112 0e059 smovf b 113 endm 2 After the execution has finished A l Tn
72. ecautions IMPORTANT Note on Downloading Firmware 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 Notes on the Self check If the self check does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor Run the self check with the user system not connected Note on Quitting the Emulator Debugger To restart the emulator debugger after it ends always shut power to the emulator module off once and then on again Notes on the User System Power Supply Order of Powering On 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 Settings of the POWER selection jumper need to be changed according to the power supply voltage and power supply condition of the user system 1 The voltage of the user system should be 2 7V lt VCC lt 5 5V when the POWER selection jumper is set to the INT POWER side Turn ON OFF the user system and the emulator as simultaneously as possible 2 The voltage of the user system is less than 2 7 V set the POWER selection jumper to the EXT POWER side For details about the POWER selection jumper refer to 2 3 3
73. ed hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this document but
74. ed with the ROE521258CPEO00 for a 52 pin 0 65mm pitch LQFP Figure 4 8 External dimensions and a sample foot pattern of the ROE521258CFJ00 4 4 7 External Dimensions of the Converter Board ROE521276CFG00 Figure 4 9 shows external dimensions and a sample foot pattern of the converter board ROE521276CFGO00 included with the ROE521276CPEO0O for a 32 pin 0 8mm pitch LQFP N SS C Ca E i i I 1 AG l l o S R0E521276CFG00 REV A i i Cc 0 8 Ce l i C a Unit mm Figure 4 9 External dimensions and a sample foot pattern of the ROE521276CFG00 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 77 of 92 2eENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications 4 4 8 External Dimensions of the Converter Board ROE5212BACFG00 Figure 4 10 shows external dimensions and a sample foot pattern of the converter board ROES212BACFGO00 included with the ROE5212BACPEO00 for a 64 pin 0 8mm pitch LQFP 3 RENESAS oe BO ORRO 4 lt ROE5212BACFG00 REV A MADE IN JAPAN Unit mm Figure 4 10 External dimensions and a sample foot pattern of the ROE5212BACFG00 4 4 9 External Dimensions of the Converter Board ROE5212BACFK00 Figure 4 11 shows external dimensions and a sample foot pattern of the converter board ROES212BACFKO0 included with the ROE5212BACPE10 for a 64 pin 0 5mm pitc
75. equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under ce
76. erference The power cable should be wound around the ferrite core as shown in the figure and close the ferrite core until it clicks REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 83 of 92 7PENESAS ROE521000CPEO00 User s Manual 5 Troubleshooting 5 Troubleshooting This chapter describes how to troubleshoot when this product does not work properly 5 1 Flowchart to Remedy the Troubles Figure 5 1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger starts up Check this while the user system is disconnected For the latest FAQs visit the Renesas Tools Homepage http www renesas com tools Turning on emulator Upper panel LED Not normal of emulator Check the connection of power supply cable See 2 5 Connecting the Power Supply of the Emulator page 30 Yy Starting up the emulator debugger Not normal Error displayed Init dialog box of emulator debugger displayed 1 Check the operating environment etc of the emulator debugger See the user s manual online manual of the emulator debugger 2 Reinstall the emulator debugger l Check that the USB interface cable is connected and the USB Check the lot no displayed Not normal Error displayed on the Init dialog box driver is installed properly Setting Init dialog box Not normal Error displayed
77. g the Ferrite Core Attach the ferrite core included with this product close to the DC plug of the power cable Without the ferrite core it may cause interference The power cable should be wound around the ferrite core as shown in Figure 2 10 and close the ferrite core until it clicks Figure 2 10 Attaching the ferrite core 2 5 Connecting the Power Supply for the Emulator Connect the power supply for the emulator to the power connector J1 The specification of the power supply for the emulator is listed in Table 2 5 Table 2 5 Specification of power supply of the emulator Power supply voltage DC 5 0 V45 2 A Figures 2 11 and 2 12 show the specifications of the power connector J1 and an applicable plug respectively 1 7mm Inside diameter Electrode Electrode mmi lectr ail 4 75 PEET Figure 2 11 Power connector specifications Figure 2 12 Applicable plug specifications A CAUTION Notes on Connecting a Power Supply of the Emulator The power cable included in this product package is colored red and black Be careful about the polarity of the power supply Connecting to the wrong electrode could destroy internal circuits Do not apply a voltage exceeding the specified voltage of the product 5 0 V 5 because it may cause burn injuries and the failure of internal circuits Use the power supply which complies with CE marking requirements
78. g up the emulator If you want the MCU s internal flash ROM to be cleared when starting up the debugger when cleared the content of the flash ROM is initialized to OFFh select the flash ROM block you want to clear in the Flash Clear tab of the MCU setting dialog box Note on Access Prohibited Area You cannot use internally reserved areas Because an evaluation MCU is operated in the special mode for the emulator a function which does not support the target MCU may run Notes on RESET Input A low input to RESET of the dedicated evaluation MCU from the user system is accepted only when a user program is being executed when the RUN status LED on the emulator s upper panel is lit The time for starting up 0 2 VCC to 0 8 VCC and falling edge 0 8 VCC to 0 2 VCC for RESET pin should be set to 1 us or less Note on Power on Reset Function This product emulates inputs to the VCC and RESET pins for the purpose of emulator function control For this reason the power on reset function cannot be used Notes on Maskable Interrupts Even if a user program is not being executed including when run time debugging is being performed the evaluation MCU keeps running so as to control the emulator Therefore timers and other components do not stop running If a maskable interrupt is requested when the user program is not being executed including when run time debugging is being performed the maskable interrupt request
79. ght 002095 OOFF 8b 0 1 ec 0 00000000 00 00 00 010 928 _main 00E000 OOF3 8b 1 IW R oO gt 1 00000000 00 00 00 010 993 Address 00E001 0004 8b 0 IB R oO 2 00000000 00 00 00 011 059 00047D 0094 8b 0 w w O 2 00000000 00 00 00 011 124 Shows the status of the address bus 00047E OOZEO 8b 1 DW wW 0 a 2 00000000 00 00 00 011 187 D t 00047F 0000 8b 0 DB wW oO a 2 00000000 00 00 00 011 251 ata start 00E002 O0EB 8b 1 IW R oO taco 3 00000000 00 00 00 011 316 008003 0040 8b 0 IB R 0 CB 3 00000000 00 00 00 011 381 Shows the status of the data bus 00E003 0040 8b 0 1 im 3 00100000 00 00 00 011 447 00047D 0094 8b oO DW R 0 3 00000000 00 00 00 011 513 BUS 00047E OOZEO 8b 1 DW R 0 a 3 00000000 00 00 00 011 578 00047F 0000 8b oO DB R 0 aia 3 00000000 00 00 00 011 643 i i nade Good ab o Se E oe a Oboodono Dorda oli nod il Shows the width of the internal data bus For the R8C exit 008094 OOFE 8b 1 Iw R 0 a 1 00000000 00 00 00 011 771 23 o0z095 OOFF 8b O IB R O 2 00000000 00 00 00 011 835 Family only 8b for 8 bits wide bus is displayed dummy_int 00E096 OOFB 8b 1 IW R oO CB 2 00000000 00 00 00 011 899 zl excluding a part of the SFR area 00126h to 0012Fh 00146h to 0014Fh and 00156h to 0015Fh 5 Trace window Disassemble display BHE deve aaas y Shows the status 0 or 1 of the BHE Byte High Enable Fee jeee a e es ME signal If this signal 0 the odd address data is valid Cycle Address Obj code Label Mnemonic
80. h LQFP Wh ROE5212BACFKOO REV A MADE IN JAPAN C O i Unit mm Figure 4 11 External dimensions and a sample foot pattern of the ROE5212BACFK00 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 78 of 92 7PENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications 4 4 10 External Dimensions of the Converter Board ROE5212DACFKO0 Figure 4 12 shows external dimensions and a sample foot pattern of the converter board ROES212DACFKOO0 included with the ROES212DACPEO00 for an 80 pin 0 5mm pitch LQFP RENESAS Osha i i 1 e 4 ROE5212DACFKOO0 REV A MADE IN JAPAN Unit mm Figure 4 12 External dimensions and a sample foot pattern of the ROES212DACFK00 4 4 11 External Dimensions of the Converter Board ROE5212L4CFG00 Figure 4 13 shows external dimensions and a sample foot pattern of the converter board ROES212L4CFGO00 included with the ROE5212L4CPEO00 for a 32 pin 0 8mm pitch LQFP R0E5212L4CFG00 REV A MADE IN JAPAN Unit mm Figure 4 13 External dimensions and a sample foot pattern of the ROE5212L4CFG00 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 79 of 92 7PENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications 4 5 Notes on Using This Product Notes on using this product are listed below When debugging the MCU using this product be careful about the following pr
81. he ROE52117CPEO00 for a 20 pin 0 65mm pitch LSSOP 5 85 Unit mm Figure 4 5 External dimensions and a sample foot pattern of the ROE521174CSJO0 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 75 of 92 7PENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications 4 4 4 External Dimensions of the Converter Board ROE521174CDBO00 Figure 4 6 shows external dimensions and a sample foot pattern of the converter board ROES21174CDBO00 included with the ROE521174CPE10 for a 20 pin 1 778mm pitch SDIP foe N aa T eT 5 8 O O O O i i O O q O l l lo l0 l l a Oo l l ka Dm 0 7 Meee MADE IN JAPAN i O O 7 1 1 1 1 i o k 762 o i i Unit mm Figure 4 6 External dimensions and a sample foot pattern of the ROES21174CDBO00 4 4 5 External Dimensions of the Converter Board ROE521237CFKO00 Figure 4 7 shows external dimensions and a sample foot pattern of the converter board ROE521237CFKOO included with the R0E521237CPE00 for a 48 pin 0 5mm pitch LQFP bn Ro 221237CFK00 REV A MADE IN JAPAN Figure 4 7 External dimensions and a sample foot pattern of the ROE521237CFK00 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 76 of 92 7PENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications 4 4 6 External Dimensions of the Converter Board ROE521258CFJ00 Figure 4 8 shows external dimensions and a sample foot pattern of the converter board ROES21258CFJO0 includ
82. he M30290T2 CPEA Basic debugging functions 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 Disassemble display C level debugging etc Real time trace function 64K cycle bus information recordable Address 20 bits Data 16 bits MCU status 12 bits 5 trace modes supported Break Before About A fter Full Can be recorded ON OFF by events Real time RAM monitor function 1 024 bytes 256 bytes x4 Data last access result Hardware break function 2 points Address match bus match max 255 pass counts Execution time measurement function Time between program start and stop Connection to user system see 2 9 Connecting the User System on page 37 For 32 pin 0 8mm pitch LQFP PLQP0032GB A ROE5S21134CFGO00 included with the ROES21134CPEO00 ROE521276CFGO00 included with the ROES21276CPEO00 ROES212L4CFGO00 included with the ROE5212L4CPE00 For 20 pin 0 65mm pitch LSSOP PLSP0020JB A ROE521174CSJO0 included with the ROES21174CPE00 For 20 pin 1 778mm pitch SDIP PRDP0020BA A ROE521174CDBO00 included with the ROES21174CPE10 For 48 pin 0 5mm pitch LQFP PLQP0048KB A ROE521237CFK00 included with the ROE521237CPE00 For 52 pin 0 65mm pitch LQFP PLQP0052JA A ROES21258CFJO0
83. ics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics tENESAS C 7 D me on lt D D R0E521000CPE00 User s Manual Compact Emulator for R8C Family Renesas Electronics com Rev 6 00 2009 08 www renesas co 10 11 12 13 Notes regarding these materials This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the
84. ing out of such applications You should use the products described herein within the range specified by Renesas especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Rene
85. instruction is used for the emulator do not use it in a user program Note on the Watchdog Timer If the reset circuit of the user system has a watchdog timer disable it when using the emulator Notes on Address Match Interrupt Do not set a software break at the address for which an address match interrupt will be generated because it will cause the user program to go wild Make sure software and hardware breaks are set at the beginning of the address match interrupt processing If the address for which an address match interrupt will be generated is single stepped the user program is halted when the address match interrupt processing is executed and the first instruction after return from the interrupt is executed Note on Protect Register The protect is not canceled when bit 2 of protect register PRCR PRC2 which enables writing into the port PO direction register is changed with the below procedure 1 Single step execution of an instruction setting PRC2 to 1 2 Execution from the instruction setting 1 to PRC2 where a software breakpoint is set 3 Setting a break point between an instruction setting PRC2 to 1 and a point where the port PO direction register is set 4 Setting PRC2 to 1 by the memory window or script window Note on Debugging Operations After Releasing a Reset from the User System Do not execute debugging operations stopping program by a software or hardware break or run time debuggi
86. 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 lt a Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling S 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 REJ10J0845 0600 Rev 6 00 Aug 20 2009 page eae RENESAS ROE521000CPE00 User s Manual Precautions for Safety A CAUTION Cautions to Be Taken for Connecting the Power Supply Do not use any power cable other than the one that is included with the product The power cable included with the product has its positive and negative poles color coded by red and black respectively Pay attention to the polarities of the power supply If its positive and negative poles are connected in reverse the internal circuit may be broken Do not apply any voltages exceeding the product s rated power supply voltage 5 0 V 5 Extreme voltages may cause a burn due to abnormal heat or cause the internal circuit to break down Cautions to Be Taken for Turning On the Power Turn ON the power of the emulat
87. lock 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 Emulator s internal clock External User system clock The option you have specified here remains effective the next time you start up 4 Script tab 1 Automatically executing a script command Init M16C R8C Compact Emulator MCU Debugging Information Emulator Script hit File S Automatically executing a script command To automatically execute a script command when starting up the debugger click the Refer button and specify the script file to be executed Clicking the Refer button brings up a file selection dialog box The script file you have selected is displayed in the Init File section of the dialog box shown here 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 whatever you specified has no effect restart the emulator debugger When the tab settings 1 to 4 above are completed click OK button REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 50 of 92 7PENESAS ROE521000CPE00 User s Manual 3 Usage How to Use the Emulator Debugger 3 1 2 MCU Setting Dialog Box The MCU
88. mpatibility FCC Certifications This equipment has been tested and found to comply with the limits for a Class A digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense This device complies with Part 15 of the FCC Rules Operation is subject to the following two conditions 1 this device may not cause harmful interference and 2 this device must accept any interference received including interference that may cause undesired operation CAUTION Changes or modifications not expressly approved by the party responsible for compliance could void the user s authority to operate the equipment REJ10J0845 0600 Rev 6 00 Aug 20 2009 PADa RENESAS ROE521000CPEO00 User s Manual Preface Preface The ROES21000CPEOO is a compact emulator for R8C Family MCUs which has a real time trace function This user s manual mainly describes specifications of the ROES21000CPE00 compact emulator and how to setup it For details on the emul
89. mper is set to the INT POWER side Do not change the voltage of the user system after turning on the power To change the power supply voltage of the user system and the voltage of the user system is 2 2 V to 2 7 V set the POWER selection jumper to the EXT POWER side For details about the POWER selection jumper refer to 2 3 3 Setting the POWER Selection Jumper page 24 2 7 3 Turning ON OFF the Power Turn ON the power of the emulator and user system as simultaneously as possible when the POWER selection jumper the INT POWER side 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 The user system s power supply can be turned on off only when the system is operating with an on chip oscillator and the POWER selection jumper is set to the EXT When turning ON the power again after shutting OFF the power wait for about 10 seconds REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 32 of 92 2eENESAS ROE521000CPE00 User s Manual 2 Setup 2 7 4 LED Display When the Emulator Starts Up Normally After the emulator starts up check the status of the LEDs to see whether the emulator operation is enabled or not Figure 2 14 shows the positions of the emulator status LEDs CN ta POWER USB 5 0V POWER SYSTEM yan SSN oo oc COMPACT EMULATOR 22 20 ROE521000CPE00 Doo
90. n Connecting to the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROES21000CPE00 and ROE521174CDBO00 are guaranteed for only 50 insertion removal iterations The connectors of the ROE521174CDBO0O and PM 6 10P are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 40 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 4 Connecting to a 48 pin 0 5mm pitch LQFP Foot Pattern Figure 2 23 shows a procedure of connecting to a 48 pin 0 5mm pitch LQFP foot pattern on the user system using the ROE521237CFKOO included with the ROES21237CPEO00 For details on the ROES21237CFKO0 refer to its user s manual 1 Mount the NQPACK048SD included with the ROE521237CFKO0 to the user system 2 Attach the YQPACKO48SD included with the ROES21237CFKOO to the NQPACKO048SD and secure it with the YQ GUIDE s 3 Attach the ROES21237CFKOO0 to the J3 and J4 of the ROES21000CPEOO 4 Attach the ROES521237CFKOO to the YQPACKO048SD Ng _ ROE521000CPE00 On board evaluation HQPACK048SD not included ROE521237CFKOO y FLASH version MCU NQPACK048SD 48 pin 0 5mm pitch LQFP PLQP0048KB A foot pattern No 1 pin These items are included with the ROE521237CFKOO package
91. n this dialog box This dialog box allows you to check the contents currently set in it To alter any item here use the dialog box that will be brought up by selecting Debug and then Debug Settings from the menu Specifying the method for storing debug information There are two methods for storing debug information on memory method and an on demand method Select the method for storing debug information By default the on memory is selected When selecting the on demand method check the On Demand check box On Memory The debug information is stored in the memory of your computer This method is suitable when the size of the load module user program is small On Demand The debug information is saved to a reusable temporary file When you download the same load module for a second time on the saved debug information will be reused and the load module can therefore be downloaded fast This method is suitable when the size of the load module user program is large REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 49 of 92 RENESAS ROE521000CPEO0 User s Manual 3 Emulator tab 1 Specifying the target clock 3 Usage How to Use the Emulator Debugger Init M16C R8C Compact Emulator MCU Debugging Information Emulator Script Clock Main i E C External Sub Internal External Cancel Help I Next Hide Specifying the target clock Specify the c
92. ng etc after releasing a reset from the user system until an interrupt stack pointer ISP is set in the user program REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 81 of 92 7eENESAS ROE521000CPE00 User s Manual 4 Hardware Specifications IMPORTANT Note on Debugging in CPU Rewrite Mode When you debug a program in CPU rewrite mode check Debug the program using CPU Rewrite Mode in the MCU tab of the Init dialog box of the emulator debugger Notes on Restrictions on Debugging in CPU Rewrite Mode If you check Debug the program using CPU Rewrite Mode in the MCU tab of the Init dialog box of the emulator debugger you cannot use the following functions 1 Setting or releasing software breakpoints in an internal ROM area while executing the user program 2 Program and data rewriting in an internal ROM area while executing the user program 3 Setting or releasing event breakpoints in an internal ROM area while executing the user program If the user program is halted by the Stop button or a break when block erasing or programming the flash ROM the block erase or program operation is stopped Once this occurs the user program may not operate as expected when it is reexecuted from where it stopped If the user program is stopped accidentally redownload and reexecute the program If when the user program is halted no block erase or program operation is in progress the user program can be executed normally from where it s
93. nnector J1 This is a connector for connecting the power supply to this product For details refer to 2 5 Connecting the Power Supply for the Emulator page 30 5 USB Cable Connector J2 This is a USB cable connector for connecting the host machine to this product For details 2 6 Connecting the Host Machine page 31 6 MCU Power Supply Source Selection Jumper JP1 MCU Power Supply Voltage Selection Jumper JP2 These are the jumper switches to select power supply to the MCU and its power voltage For details on these switches see 2 3 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 22 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 17 of 92 7eENESAS ROE521000CPEO00 User s Manual 1 Outline 1 3 Specifications Tables 1 5 and Table 1 6 list the specifications of the ROES521000CPE00 Table 1 5 ROE521000CPEOO specifications 1 Applicable MCUs R8C Family MCUs Usable mode Single chip mode Maximum ROM RAM capacity ROM capacity 112KB 04000h 1 FFFFh 4KB 02000h 02FFFh RAM capacity 8KB 00300h 012FFh 03000h 03FFFh Maximum operating frequency 20 MHz at 3 0 5 5 V 10 MHz at 2 7 5 5 V 5 MHz at 2 2 5 5 V Applicable power supply User system connected 2 2 5 5 V JP1 of the M30290T2 CPEA EXT supplied from the user system User system not connected 3 3 V or 5 0 V JP1 of the M30290T2 CPEA INT supplied from the emulator depends on JP2 of t
94. nual 3 Usage How to Use the Emulator Debugger 4 Setting the combinatorial condition for the hardware break point 1 Window for setting the combinatorial condition Setting the combinatorial condition There are following three conditions that you can choose for the HAW Break Points ay iol rV Enable HAW Break ADDRE ACCE CONDITION 1 A1 000000 FETCH addr 000000 O 1 A2 000000 FETCH addr 000000 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 For each event a pass count number of passing is specifiable 1 255 When AND same time is specified for Combination you Erat PID can not specify the pass count fixed to one JAND 7 Detail J Enable Detail Reset Save Load When you have finished setting the combinatorial event condition click the Set button REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 61 of 92 2eENESAS ROE521000CPE00 User s Manual 3 Usage How to Use the Emulator Debugger 3 5 Trace Window The trace window is used to show the results of real time trace measurements 1 Trace window 1 Opening the trace window Trace Clicking this button opens the trace window Or you can
95. oduct malfunction at some charge or without charge However this does not necessarily mean that Renesas Solutions Corp guarantees the renovation or the provision under any circumstances 4 This product has been developed by assuming its use for program development and evaluation in laboratories Therefore it does not fall under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan 5 Renesas Solutions Corp cannot predict all possible situations or possible cases of misuse where a potential danger exists Therefore the warnings written in this user s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases Please be sure to use this emulator correctly and safely on your own responsibility REJ10J0845 0600 Rev 6 00 Aug 20 2009 pee rae RENESAS ROE521000CPE00 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 purpo
96. on ROE5212BACF G00 a HQPACK064SA160 4 not included QR i fi YQ GUIDE x 4 vy Q FLASH version YQPACKO64SA L MCU 2 y NQPACK064SA160 eS 64 pin 0 8mm pitch LQFP Oy PLQP0064GA A foot pattern NS lt No 1 pin These items are included with the ROE5212BACFG00 Figure 2 25 Connecting to a 64 pin 0 8mm pitch LQFP foot pattern A CAUTION Note on Connecting to the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROE521000CPE00 and ROES212BACFG00 are guaranteed for only 50 insertion removal iterations The connectors of the ROE5212BACFG00 and YQPACKO064SA are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 43 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 7 Connecting to a 64 pin 0 5mm pitch LQFP Foot Pattern Figure 2 26 shows a procedure of connecting to a 64 pin 0 5mm pitch LQFP foot pattern on the user system using the ROE5S212BACFKO0 included with the ROES212BACPE10 For details on the ROE5212BACFKOO refer to its user s manual 1 Mount the NQPACK064SD ND included with the ROES5212BACFKO0 to the user system 2 Attach the YQOPACKO64SD included with the ROES212BACFKOO to the NQPACKO64SD ND and secure it with
97. or and user system as simultaneously as possible Turn OFF the power of the emulator and user system as simultaneously as possible Do not leave only the 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 directly Static electricity may damage the internal circuits Do not pull this emulator by the communications interface cable or the flexible cable for connecting the user system And excessive flexing or force may break conductors Caution to Be Taken for System Malfunctions If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET switch of the emulator 2 If normal operation is not restored after step 1 shut OFF power to the emulator once and then reactivate it REJ10J0845 0600 Rev 6 00 Aug 20 2009 page RENESAS ROE521000CPEO0 User s Manual Contents Contents Page Regulatory Compliance Notices 452i ciate denis anai Anadai ia a iaaea adidas dina 3 PHOTACG E A E T A E ctdebin ia dues E A E A T ees 4 Importants a a a E a E EEEa o EE REE 5 Precautions TOR Safety tisis aa iaai aa
98. ot to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board The connectors of the ROE521000CPE00 and ROE521134CFG00 R0E521276CFG00 or ROE5212L4CFG00 are guaranteed for only 50 insertion removal iterations The connectors of the ROES21134CFG00 ROES21276CFGO00 or ROES212L4CFG00 and YQPACK032SA are guaranteed for only 100 insertion removal iterations REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 38 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 9 2 Connecting to a 20 pin 0 65mm pitch LSSOP Foot Pattern Figure 2 21 shows a procedure of connecting to a 20 pin 0 65mm pitch LSSOP foot pattern on the user system using the ROE5S21174CSJOO included with the ROES21174CPEOO For details on the ROE521174CSJOO refer to its user s manual 1 Mount the NSPACK20BG included with the ROES21174CSJO0 to the user system 2 Attach the YSPACK20BG included with the ROE521174CSJOO to the NSPACK20BG and secure it with the YS GUIDE s 3 Attach the ROES21174CSJOO to the J3 and J4 of the ROES521000CPEOO 4 Attach the ROE521174CSJO0 to the YSPACK20BG On board evaluation not included YS GUIDE x2 y l e3 YSPACK20BG E FLASH version MCU NSPACK20BG OI e 20 pin 0 65mm pitch LSSOP _ PLSP0020JB A foot pattern No 1 pin These items are included with the ROE521174CSJ00 pa
99. pleted programs switch the session The session can be changed by the drop down list of the tool bar shown below 4 DefaultSession You will have as many sessions created as the number of targets you selected when creating a project so select the session that corresponds to the target to be connected from the drop down list To connect to the Compact Emulator for the R8C Family select SessionM16C_R8C_Compact_Emulator REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 46 of 92 7PENESAS ROE521000CPEO00 User s Manual 3 1 1 Init Dialog Box 3 Usage How to Use the Emulator Debugger The Init dialog box is used to set the items that need to be set when the emulator debugger starts up The contents set in this dialog box remain effective the next time you start the debugger 1 MCU tab 1 Specifying the MCU file and Serial No using or not using the address match break function Init M16G R8G Compact Emulator MCU Debugging Information Emulator Script MCL Serial No 2 R52100 4kKS001 T Self Check Debug Option Debug the program using the GPU Rewrite Mode Enable the Trace Point Function Carcel __ Hep Select MOU File Look in 1 R8017 e a eE R5F21172C MCU m R5F211730 MCU R J Next Hide File name N R5F21174C MCU y File of type T MCU Files meu Cancel Init M16C R8C Compact Emulator MCU Debugging Information
100. pply voltage selection jumper of the emulator according to conditions of use see Figure 2 2 POWER USB OV POWERSYSTEM SAFE STATUS 3 3V 5 0V COMPACT EMULATOR SE a EXT y a 5 JP1 MCU power supply source selection jumper factory setting INT JP2 MCU power supply voltage selection jumper factory setting 5 0V meer CLOCK SK TARGET iA RESET STATUS Figure 2 2 Jumper switch locations These are the jumper switches to select power supply to the MCU and its power voltage As shown in Table 2 1 below set the switch according to the connection to the user system Table 2 1 Setting jumper switches C nnectioit MCU power supply MCU power supply E source selection voltage selection Description the user system i jumper JP1 jumper JP2 33V Supplied from the emulator The MCU operating Not connected INT voltage LELAI Supplied from the emulator The MCU operating 5 0 V voltage is 5 0 V Supplied from the user system This emulator Connected EXT Invalid consumes max 500 mA of electrical current from the user system A CAUTION Note on Changing Jumper Switch Settings Always shut OFF the emulator before changing the setting of the jumper switches Otherwise the internal circuit may cause a break REJ10J0845 0600 Rev 6 00 Aug 20 2009 ROE521000CPE00 User s Manual 2 Setup 2 3 2 Setting the Jumpers on the ROE521000EPBM0 Board Figure 2 3 show
101. r written not erased on download Cancel Help I Next Hide 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 The size and number of the area of the Flash ROM varies depending on the selected MCU file 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 Note When this product starts up the internal flash ROM area is cleared with 0x04 NOP instruction so that the selected blocks flagged by a check mark retain 0x04 NOP instruction and not cleared to OxFF Any block which has had its check box deselected is cleared when downloading Click the Select All button or the Clear All button all blocks will be selected or deselected The option you have specified here remains effective the next time you start up When the tab settings 1 to 2 above are completed click OK button 3 1 3 Checking Connections of the Emulator System Check to see that the emulator debugger has been connected correctly to the emulator TMD GD EPY INNO OFS VOW SWIS AD TO 37W Dsg aiten a Jra E mane a era ePpuort Sm ny RMAC SC VCR ODER ASA
102. rtain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electron
103. s Emulator ROE521000CPE00 This means a compact emulator for R8C Family this product Emulator system This means an emulator system built around the compact emulator ROES21000CPE00 The emulator system is configured with compact emulator ROES21000CPE00 power supply for the emulator emulator debugger and host machine Integrated development environment High performance Embedded Workshop This tool provides powerful support for the development of embedded applications for Renesas microcomputers It has an emulator debugger function allowing for the emulator to be controlled from the host machine via an interface Furthermore it permits a range of operations from editing a project to building and debugging it to be performed within the same application What s more it supports version management Emulator debugger This means a software tool which starts up in the integrated development environment High performance Embedded Workshop to control the emulator and enable debugging Firmware This means a program stored in the flash ROM of the emulator It analyzes contents of communication with the emulator debugger and controls the compact emulator ROES521000CPEO00 This program is downloadable from the emulator debugger to upgrade firmware or to support other MCUs Host machine This means a personal computer used to control the compact emulator Target MCU This means the MCU you are going to debug User system This means a user s appli
104. s on the ROE521000EPBMO Board ccccccceeeeeeeeeeeceteeeeeaeeeeeeeeseeeesaeeseeeeeaees 23 2 3 3 Setting the POWER Selection JUMPEM ccccceceeeeeceeeeeeeeeceeeeeeeaaeeeeaeeseaeeesaaeeesaaeseceeeseaeeesaeeeeneeesaees 24 2 3 4 Selecting Clock Supply ccccccceesecececeeeeeeeaeeeenceceaeeeeaaeceeaaeeeaaeeseaaesdeaeesgaeeecaaeeseaaeesneeseaeeesaaeseeaeessaees 25 2 3 5 A D Conversion Bypass Capacitors c cccccceeesceceeeeeeeeeeeeeeeeeeeeeeeaaeeeeaeeseaeeeseaeessaaeseeeeeseaeeesaeeseaeeeeaees 29 2 4 Attaching the Ferrite Core ucus sescesccedccnceveanevate sence ananda aaa A aaie A esaa Eaa aaaea 30 2 5 Connecting the Power Supply for the Emulator cccccecseeeeeeeeceteeeeeaeeeeeee scenes ceaeeeeaaeseeeeeseaeeesaaeseaeeeeeeee 30 2 6 Connecting to the Host Machine ccecccecsseeeeseeeeeee cee eeeeaeeeeeeeeceaeeeeaaeseaeeseeeeeeaeseeaaesgeeeeseeeesaaesseaeeeneeee 31 2 7 TUPMINGLON the POWS massinn eea a suet vevuceeanlanpestebeste cal agence vaseecavesensd 32 2 7 1 Checking Connections of the Emulator SyStem ccccceeceeeeeeeeeceeeeseeseeeeeseaeeeeaaeseeeeeseaaeeseeeseeeeesaees 32 2 7 2 Power Supply to the User System ccccccceceeeceeeeceeeeeaeeeeeeeceaeeeceaeeeeaeeseeeeesaaeeseaaesecaeeesaeeseaaeseneeeeaees 32 2 7 3 Turning ON OFF the POW6P iscsi c ap dence tcqeneis ean ceasdenetec igen cebadeniis anita aaia iaaea aiaa deeds 32 2 7 4 LED Display When the Emulator Starts Up Normally 0 0
105. s the location of jumper switches on the ROES21000EPBMO board and their factory settings ROE521000EPBMO RENESAS 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000000 0000000 176 133 132 m D j a IC8 R5E2E000FP 89 88 0000000 0000000000 0000000000 0000000 0000000000 000000000 Figure 2 3 Jumper switches on the ROES21000EPBMO Table 2 2 Setting jumper switches on the ROES21000EPBMO Switch No Switch name How to set Description Settings of this jumper need to be changed according to the power POWER supply voltage and power supply condition of the user system JP1 selection JP1 For details refer to 2 3 3 Setting the POWER Selection Jumper jumper INT i E ext page 24 J2 NNN This jumper pulls the user system s RESET pin high with 510 KQO RESET pin Although settings of this jumper do not normally need to be JP2 changed if the 510 kQ pullup presents a problem when the user pullup jumper uP u pown System is connected the board may be used without this resistor pullup A CAUTION Note on Changing Setting Jumper Switches Always shut OFF the emulator before changing the setting of the jumper switches Otherwise the internal circuit may cause a break REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 23 of 92 7P
106. sas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment This document may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas Please contact a Renesas sales office if you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries ROE521000CPEO00 User s Manual Regulatory Compliance Notices Regulatory Compliance Notices European Union regulatory notices on Electromagnetic compatibility CE Certifications This product complies with the following European EMC standards EMC Directive 2004 108 EC EN 55022 Class A WARNING This is a Class A product In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures EN 55024 Information for traceability Authorised representative Name Renesas Technology Corp Address Nippon Bldg 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan Manufacturer Name Renesas Solutions Corp Address Nippon Bldg 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan Person responsible for placing on the market Name Renesas Technology Europe Limited European Headquaters Address Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K United States Regulatory notices on Electromagnetic co
107. self check 3 Usage How to Use the Emulator Debugger Init M16C R8C Compact Emulator MCU Debugging Information Emulator Script MOU R5F211740 MCU Serial No 2 R52100 4KS001T z Debug Option J Enable the Address Match Interrupt Break Function Debug the program using the CPU Rewrite Mode Enable the Trace Point Function OK Cancel Help Next Hide Executing the self check Enable this function when you want the emulator to be self checked at startup Be sure to select the check box only when you want the emulator to be self checked at startup This function may be enabled in the following cases When you are using the emulator you have just purchased When you successfully download the firmware but fail to start up the emulator When you want to confirm whether the emulator is operating normally because for example the MCU runs out of control or something is wrong with the trace results This function can be enabled only when you are starting up the emulator debugger 2 Debugging Information tab 1 Referencing the compiler used and the object format Init 416CG R8C Compact Emulator MCU Debugging Information Emulator Sere Compiler Object Format Cancel Help F Next Hide Referencing the compiler used and the object format Reference the compiler you are using and the format of the object file output by the compiler Check the current setting i
108. ses please be sure to consult your local distributor About product changes We are constantly making efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or its user s manual may be changed without prior notice About the rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license for patent rights or any other rights belonging to us or third parties 3 This user s 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 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Ae RENESAS ROE521000CPE00 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
109. st Sheet downloadable from the following URL And email the sheet and send the product to your local distributor http Awww renesas com repair A CAUTION 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 bag When you use other bags they may cause a trouble on your product because of static electricity REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 89 of 92 7PENESAS ROE521000CPEO0 User s Manual 6 Maintenance and Guarantee MEMO REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 90 of 92 7PENESAS Compact Emulator for R8C Family ROE521000CPE00 User s Manual Publication Date Aug 20 2009 Rev 6 00 Sales Strategic Planning Div PUpienee oy Renesas Technology Corp Microcomputer Tool Development Department Edited by Renesas Solutions Corp 2009 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan ROE521000CPE00 User s Manual 2 tENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J0845 0600 T
110. t MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the ROE521000CPE00 Item Description Applicable MCU R8C Family Applicable MCU mode Single chip mode Maxi ROM RAM capacity 1 Internal flash ROM 112KB programming area 4KB data area Programming area 04000h 1 FFFFh Data area 02000h 02FFFh 2 Internal RAM 8KB 00300h 012FFh 03000h 03FFFh Operating voltage frequency 20MHz at 3 0 5 5V 10MHz at 2 7 5 5V SMHzat 2 2 5 5V The voltage of the user system is less than 2 7V set the POWER selection jumper to the EXT POWER side For details about the POWER selection jumper refer to 2 3 3 Setting the POWER Selection Jumper page 24 REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 69 of 92 7PENESAS ROE521000CPEO00 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 Internal Memory ROM RAM The evaluation MCU mounted on this product has RAM of 8 KB 00300h 012FFh 03000h O3FFFh and flash ROM of 4 KB 02000h O2FFFh and 112 KB 04000h 1FFFFh For this reason the nonexistent ROM or RAM area of the target MCU may be accessed With this product the flash ROM area of target MCU is cleared at 04h NOP instruction when startin
111. tem Then check the setting of the jumper switches and if the power is properly supplied to the user system POWER LEDS cLock LED4 cLock LED4 RESET LED5 RESET J LEDs C on RUN J LEDs RUN J s FD corr After turning the power ON LED3 After starting up the emulator debugger Figure 2 16 Target status LEDs display when the emulator starts up normally when user system connected setting the POWER selection jumper to EXT POWER side and use system is ON When the user system connected Power selection jumper EXT user system is OFF Because the power of the user system is off POWER LED does not light RESET LED lights POWER S LED3 POWER LED3 CLOCK LED4 CLOCK LED4 RESET LED5 RESET LED5 TJ ON RUN J LEDe RUN os sc oF After turning the power ON After starting up the emulator debugger Figure 2 17 Target status LEDs display when the emulator starts up normally when user system connected setting the POWER selection jumper to EXT POWER side and use system is OFF REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 34 of 92 2eENESAS ROE521000CPE00 User s Manual 2 Setup 2 8 Self check 2 8 1 Self check Procedure Self check is used to verify the emulator function works properly To run the self check of the emulator do so as explained here below While the self check is in progress the LEDs will change as shown in Figure 2 18
112. topped Note on Data Display during Debugging in CPU Rewrite Mode In the read status register mode of CPU rewrite mode the read values displayed in the memory window etc when the user program is running show the status register values Note that when the user program is halting the read values show data values Running idle Window display User program running Read status register mode of CPU Status register values are displayed rewrite mode Other Data values are displayed User program halting Read status register mode of CPU Data values are displayed rewrite mode Other Data values are displayed Be aware however that the values displayed in the memory window or the RAM monitor window are retained intact unless you press the Refresh or the Clear button Note on Data Write to the Internal ROM Area in CPU Rewrite Mode When writing data to the internal ROM area in CPU rewrite mode this product permits the data bits to be set to either 1 or 0 This is different from the actual MCU because in the actual MCU you only can set the data bits to 0 Note on Trace Data Display When Rewriting the Flash ROM in EW1 Mode For data display in the trace window when using EW1 mode be sure to select source mode or bus mode If disassemble mode or data access mode is selected the debugger will take time for analysis of the trace data to be displayed REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 82 of
113. ttlellize aces declaration The cursor stops in the specified position 99 s 2 222222MMMMMMMM The statement specified with the execution up to the cursor position 100 N_BZERO macro TOP_ SECT_ i 101 0e024 mov b 00H ROL iis 102 e025 mov w TOP_ amp FFH Al 103 0e028 mov w size ECT_ 104 Oed2c sstr b 105 endm 106 107 N_BC macro FROM_ TO_ SECT_ 108 Oe04c mov w FROM_ amp OFFFFH A0 109 Oe04t gt mov b FROM_ gt gt 16 R1H 110 0e052 mov w H TO_ Al 111 0e055 mov w sizeof SECT_ R3 112 0e059 smovf b alale endm REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 56 of 92 7PENESAS ROE521000CPEO0 User s Manual 3 4 Hardware Breakpoint 3 Usage How to Use the Emulator Debugger Hardware break is set by event condition such as FETCH or DATA ACCESS etc If the breakpoint you set is a hardware breakpoint the program stops after executing the instruction at the set breakpoint after several cycles 1 Breakpoint setup dialog box 1 Opening the hardware breakpoint setup dialog box Hardware Breakpoint Clicking this button opens the hardware breakpoint setup dialog box Or you can select the H W break point H of Break B from View V menu for the same effect 2 H W Break Point Setting Window H W Break Point Setting Window M o xi 000000 000000 H W Break Point Setting Window Select the Enable H W Br
114. urned off and one or more target status LEDs start blinking according to the error type LED display ON Blinking OFF Figure 2 18 Self check procedure REJ10J0845 0600 Rev 6 00 Aug 20 2009 Page 35 of 92 7PENESAS ROE521000CPE00 User s Manual 2 Setup 2 8 2 If an Error is Detected in the Self check Table 2 7 lists how to remedy the troubles if the target status LED display is abnormal in the self check When an error is detected shut off the emulator and the user system and follow the steps in the Table 2 7 Table 2 7 Error display in the self check and how to remedy it LED display Problem amp Remedy The emulator system is not working properly Check that power is supplied to the emulator The emulator may be damaged Contact your local distributor A clock is not supplied to the emulator Check that the oscillator circuit board OSC 3 is attached The power is not supplied to the emulator Check that the power supply cable is connected properly Check of jumper settings see Table 2 6 The emulator system is not working properly The emulator may be damaged Contact your local distributor IMPORTANT
115. use of the information in this document or Renesas products With the exception of products specified by Renesas as suitable for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages aris

Download Pdf Manuals

image

Related Search

Related Contents

  BENTONITE S et BENTONITE S GRAIN  HARMONICA  AJ65BT-D75P2-S3 Positioning Module User`s Manual (Hardware)    SUPER OMEGA    Jabra EASYGO  保 証 書  Disney DPH8010-P User's Manual  

Copyright © All rights reserved.
Failed to retrieve file