Home

M3062PT3-CPE User`s Manual

image

Contents

1. ON 23 R i ICS sl E 5 A eE 4 I IC2 7 1023 I pO Z QQ fen ut RS ENK T 103 J fa gt OSO EH dad il Im llill opor E OOS EHF IC6 a oololB Fe ued SORA sooo a E X bocor E 3 1 sp He 33 gt m OJOO O 2 o 0 EHFs 5 a IC10 E E RAS HA cee oe in 25 Soo HI a EH i eruo A sa Ea g o og a Cor P5 Pa Ont Li AS VOC1 2 VreF AVss bypass capacitor Vrer AVss c20 0 AVcc AVss bypass capacitor AVcc AVss JO M3062PT2 EPBM 8 Figure 2 28 Foot pattern for A D conversion bypass capacitors and the configuration of this product IMPORTANT Note on the A D Converter Function O 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 48 of 108 M30
2. REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 99 of 108 M3062PT3 CPE User s Manual 5 Troubleshooting 5 Troubleshooting This chapter describes how to troubleshoot when this product does not work properly 5 1 Flowchart to Remedy the Troubles Figure 5 1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger starts up Check this while the user system is disconnected For the latest FAQs visit the Renesas Tools Homepage http www renesas com en tools Turning on emulator and user system Not normal Front panel LED of emulator Check connection of the power supply cable Normal ouma See 2 4 Connecting the Powe Supply for Emulator Starting up emulator debugger inf Giaion displayed Not normal Error message displayed Normal 1 Check the operating environment etc of the emulator debugger 2 Reinstall the emulator debugger Check serial No Not normal Error message displayed in Init dialog box Normal Check that the USB interface cable is connected and the USB driver is installed properly Init dialog setting Mcu Setting dialog box displayed and setting Not normal Error message displayed See 5 2 2 MCU Setting dialog Box Does Not Appear at Normal Debugger Startup Connected message on Not normal Error message displayed Output Window
3. REJ10J1007 0400 Rev 4 00 July 29 2009 ENESAS Page 57 of 108 M3062PT3 CPE User s Manual 3 5 Program Execution 1 Downloading the program 1 Downloading from the work space window E M16C_29 TEST E M16C_29 TEST 3 Absolute file 2 63 Assembly include file m1 6ctiny_init inc 2 3 Assembly source file 29 rammonitor a30 3 C source file Download modules O 3 Dependencie Download module Download module debug data only Configure View Allow Docking Hide 2 Showing the source program LDC 11480H SP LDINTB jWEC_ADDR REGWR_MAIN REG_10 RO 0000H REJ10J1007 0400 Rev 4 00 July 29 2009 2ENESAS 3 Usage How to Use the Emulator Debugger 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 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 hereafter PC 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 Because the present emulator uses the MCU s internal flash ROM the initial value for the ROM area data at the time of purchase is FFh Page 58 of 108
4. POWER CLOCK RESET RUN POWER SAFE press the reset switch LED 3 LED 4 LEDS LED6 LED 1 LED2 RESET 2 Check that the SAFE LED starts POWER CLOCK RESET RUN POWER SAFE blinking then press the system reset mo HE gt ii oro F o LED3 LED 4 LEDS LED 6 LED 1 LED 2 Self check starts POWER CLOCK RESET RUN POWER SAFE EA E ga 3 Target status LEDs start blinking at random intervals LED 4 LED5 LED6 LED 1 LED2 Ittakes 10 seconds at XIN 16 MHz OFF Blinking SAFE LED status Normal Error POWER CLOCK RESET RUN POWER SAFE POWER CLOCK RESET RUN POWER SAFE nt 1 ET CI CI 5 E I zg 0 1 a ot 1 ot Y m LED3 LED 4 LED5 LED6 LED 1 LED 2 LED 3 LED 4 LED5 LED6 LED1 LED 2 SAFE LED is turned off and one or more target status LEDs start blinking according to the error type LED display ON Blinking OFF Figure 2 11 Self check procedure REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 31 of 108 M3062PT3 CPE User s Manual 2 Setup 2 7 2 lf an Error is Detected in the Self check Table 2 5 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 5 Table 2 5 Error display in the self check and how to remedy it LED
5. Figure 2 20 Connecting to a 100 pin 0 5mm pitch foot pattern Part 2 A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Note on Connectors of the Converter Board O The connectors of the M30800T PTC and M3T 100LCC QSD are guaranteed for only 50 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 41 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 9 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 3 Here following is a procedure of connecting to a 100 pin 0 5mm pitch foot pattern on the user system using the M3T FLX 100NSD not included For details on the M3T 100LCC DMS not included and M3T FLX 100NSD not included refer to each user s manual 1 Attach the M3T FLX 100NSD to the user system 2 Attach the M3T 100LCC DMS to the M3T FLX 100NSD 3 Attach the CN2 side of the M30800T PTC to the J4 side of the M3062PT3 CPE 4 Attach the M30800T PTC to the M3T 100LCC DMS M3062PT3 CPE 3 M30800T PTC not included 4 M3T 100LCC DMS not included M3T FLX 100NSD not included Evaluation with actual MCU HQPACK100SD i YQ GUIDE x4 not included gt 3 YQPACK100SD I NQPACK100SD ND e MCU with flash ROM etc These corners are not round gt 100 pin 0 5mm pitch Jo
6. Common to with wait and no wait actual MCU Becik tsu HOLD BCLK HOLD input A 9 2 HLDA output P0 P1 P2 P3 P4 P50 P52 Common to with wait and no wait this product BCLK A A a j i a BCLK th BCLK HOLD ee se i y OPE S HOLD input EOF o HLDA output E i td BCLK HLDA P0 P1 P2 P3 P4 P50 P5 2 Figure 4 3 Timing requirements Compared with an actual MCU this product enters high impedance state after a 0 5 cycle delay REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 81 of 108 M3062PT3 CPE User s Manual 4 2 2 Operation Timing of Memory Expansion Mode and Microprocessor Mode VCC 1 VCC2 3V 1 Separate Bus Timing Table 4 5 and Figure 4 4 show the bus timing in memory expansion mode and microprocessor mode 3 wait accessing external area Table 4 5 Memory expansion mode and microprocessor mode 3 wait accessing external area td BCLK AD Address output delay time Actual MCU ns 4 Hardware Specifications This product Max Max th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard 6 th WR AD Address output hold time WR standard 3 td BCLK CS Chip select output delay time See left th BCLK CS Chip select
7. REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 87 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on Maskable Interrupts O 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 emulation probe 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 cannot be accepted because the emulator disables interrupts The interrupt request is accepted immediately after the user program execution is started O 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 Note on DMA Transfer O With this product the program is stopped with a loop program to a specific address Therefore if a DMA request is generated while the program is stopped DMA transfer is executed However make note that DMA transfer while the program is stopped may not be performed correctly Also note that the below registers have been changed to generate DMA transfer as explained here even when the program is stopped 1 DMAO transfer counter TCRO 2 DMA transfer counter TCR1 Note on Voltage Detect Circuit O With this product as the power voltage c
8. REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 37 of 108 M3062PT3 CPE User s Manual 2 8 5 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 3 2 Setup Here following is a procedure of connecting to a 100 pin 0 65mm pitch foot pattern on the user system using the M3T DUMMY 1005 not included For details on the M3T 100LCC DMS not included and M3T DUMMY100S not included refer to each user s manual 1 Attach the M3T DUMMY 1005 to the user system 2 Attach the M3T 100LCC DMS to the M3T DUMMY100S 3 Attach the CN2 side of the M30800T PTC to the J4 side of the M3062PT3 CPE 4 Attach the M30800T PTC to the M3T 100LCC DMS M3062PT3 CPE CN2 side M30800T PTC not included o M3T 100LCC DMS 4 not included Evaluation with Actual MCU M3T DUMMY100S not included o MCU with Flash ROM etc 100 pin 0 65mm pitch PRQP0100JB A foot pattern No 1 pin User System Figure 2 17 Connecting to a 100 pin 0 65mm pitch foot pattern Part 3 A CAUTION Note on Connecting the User System O 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 O The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations O The connectors of the M3T 100LCC DMS and M3T DUMMYI100S a
9. System Status LEDs s E SYSTEM 020 LED1 Emulator Power POWER STATUS lt q System reset switch LED2 Emulator Status SAFE Lo JP2 MCU power supply voltage lt Selection Jumper factory setting 5 0V JP1 MCU power supply source lt selection jumper factory setting INT Target Status LEDs LEDS User system power POWER LED4 Clock oscillation CLOCK LED5 MCU RESET pin status RESET LED6 Program Execution RUN Figure 1 2 Names of the LEDs on the upper panel of the M3062PT3 CPE 1 System Status LEDs The system status LEDs indicate the emulator main unit s operating status etc Table 1 2 lists the definition of the system status LEDs Table 1 2 Definitions of the system status LEDs Number Color Status Meaning Power is supplied to the emulator Power is not supplied to the emulator Emulator system has started normally Emulator system has not started normally REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 16 of 108 M3062PT3 CPE User s Manual 1 Outline 2 Target Status LEDs The target status LEDs indicate the target MCU s power supply and operating status Table 1 3 lists the definition of each target status LED Table 1 3 Definitions of the target status LEDs Number Status Meaning Power is supplied to the target MCU Power is not supplied to the target MCU The target MCU internal clock is oscillating
10. Table 4 9 Electrical characteristics of port emulation FPGA Standard values Min Standard Max Condition High level input voltage Low level input voltage Ion 8mA DC VCC 4 75V TIon 8mA DC VCC 3 00V loL 8mA DC VCC 4 75V loL 8mA DC VCC 3 00V Leak current Tristate Vo VCC or GND Vin 0V f 1 0MHz High level output voltage Low level output voltage T O pin input capacitance REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 92 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications 4 5 External Dimensions 4 5 1 External Dimensions of the Compact Emulator Figure 4 8 shows external dimensions of the M3062PT3 CPE POWER USB RENESAS 50V 10 0 POWER SYSTEM SAFE STATUS 9 5 COMPACT EMULATOR pial H M3062PT3 CPE i i ened fea 9 5 10 0 tc OSC 3 lt lt M30290T2 CPEA 41 1 gt lt lt M3062PT2 EPBM lt _ M30800T PTC unit mm Figure 4 8 External dimensions of the M3062PT3 CPE when the M30800T PTC not included and 100 pin LCC not included socket are mounted REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 93 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications 4 6 Notes on Using This Product Notes on using this product are listed below When debugging the MCU using this product be careful about the following precautions IMPORTANT Note on the Version of
11. I Do not show this dialog box again Shows the currently connected emulators in list form Select the serial No of the emulator you want to be connected REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 50 of 108 M3062PT3 CPE User s Manual 2 Using or not using the address match break function hit M160 REC Compact Emulator MCU Debuesine Information Emulator Script MGU M16C62P_512 mcu Serial No BEAZ gt Self Check Debug Option M nable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode T Enable the Trace Point Function Cancel Help I Do not show this dialog box again 3 Using or not using the CPU rewrite mode hit M16C REC Compact Emulator MCU Debugging Information Emulator Script MCU M16C62P_512 mcu Refer Serial No 2 M3062P 5GM001 r Debug Option IV Enable the Addre a Debus I Enable the Trace Point Function i Cancel Help 7 Do not show this dialog box again 4 Using or not using the trace point function hit M16C REC Compact Emulator MCU Debugging Information Emulator Script MCU M16C62P_512 mcu Refer Serial No r Debug Option i Cancel Help I Do not show this dialog box again REJ10J1007 0400 Rev 4 00 July 29 2009 ztENESAS 3 Usage How to Use the Emulator Debugger Using or not using the address match break function S
12. The target MCU internal clock is not oscillating Target MCU is being reset or reset signal of the user system is held low Target MCU is not being reset User program is being executed User program is not being executed IMPORTANT Note on Usage in Memory Expansion or Microprocessor Mode When you use this product in memory expansion or microprocessor mode it cannot startup normally if the pins RDY and HOLD are at L level Note on the Target Status POWER LED O If your MCU has two or more VCC terminals the LED does not light unless power is supplied to all the terminals 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 Initializes the emulator and waits for a command from the When the user s program is halted emulator debueses Stops the user s program initializes the emulator and When the user s program is executed waits for a command from the emulator debugger IMPORTANT Notes on a System Reset O 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 re
13. Event setting for even address word access MOV W_ R0 512h RO 0203h Cycle Label Address Data BUS BHE BIU R W RWT CPU 00059 000512 0203465 0 DW W 0 RW High order and low order data effective Event setting for odd address word access MOV W_ R0 519h RO 0203h Cycle Label Address Data BUS BHE BHI R W RWT CPU 00026 00025 000519 0302 466 0 DW W 0 CW 000514 0302 16 1 DW w 0 Odd address high order data effective Even address low order data effective Event setting for even address byte access MOV B ROL 516h ROL 03h Cycle Label Address Data BUS BHE BTO R W RWT CPU 00033 000516 0503465 1 DB W 0 RW Low order data effective Event setting for odd address byte access MOV B ROL 515h ROL 03h Cycle Label Address Data BUS BHE BHI R W RWT CPU 00046 000515 0315466 0 DB W 0 RW High order data effective REJ10J1007 0400 Rev 4 00 July 29 2009 2ENESAS 3 Usage How to Use the Emulator Debugger Setting a break event Al Address 1 Data 1 MASK Access 000512 0203 FFFF WRITE Setting a break event using 2 events Al Address 1 Data 1 MASK Access 000519 Address 1 0300 Data 1 0002 FF00 MASK OOFF WRITE Access A2 00051A WRITE Set the combinatorial events to AND Setting a break event Al Address 1 Data 1 MASK Access 000516 0003 OOFF WRITE Setting a break event Al Address 1 Data 1 MASK Acces
14. Notes on Address Match Breaks O As the processing speed of setting and canceling address match breaks is relatively fast you can save the times of writing into the internal flash ROM of an MCU O Address match breaks can be set only in RAM and ROM areas of an MCU O Address match breaks can be set at up to 8 points O Address match breaks can be set or canceled even when the user program is being executed Notes on Address Match Interrupts O When you use the address match interrupt function in a user program uncheck Enable the Address Match Interrupt Break Function in the MCU tab of the Init dialog box of the emulator debugger Thus normal software breaks are used for the internal RAM and ROM areas of an MCU O Do not set a software break at an address where an address match interrupt occurs Otherwise a user program may be run out of control Set a software or hardware break in the top address in address match interrupt processing When you single step an address where an address match interrupt occurs the program stops after executing the first instruction after returning from address match interrupt processing Notes on Software Breaks O 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 O As the BRK instruction is used for the emulator do not use it in a user program O You can neither set nor cance
15. f BCLK REJ10J1007 0400 Rev 4 00 July 29 2009 Address output floating start time ns n 2 for 2 wait ns ns 2ENESAS Page 84 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications Read timing tcyc es E a A 0 E BCLK 7 7 1 7 td BCLK CS th BCLK CS OO gt E csi J ee th RD CS td AD ALE th ALE ADX tac3 RD DB z a st ADi Y P eee 2 Hi Z i ooo a sof DBi tdz RD AD Ros te tsu DB a th RD DB A gt td AD R td BCLK AD i E a tMBCLK AD a A i so tA BCLK ALE l RD AD ALE e ALE td BCLK RD a th BCLK ALE gt 3 l lt 3 AhECUKRD RD 7 Write timing tcyc e r BCLK i 1 7 td BCLK cs gt th BCLK CS f lt gt csi I na C8 AD ALE th ALE AD gt t BCLK DB a a lt td BCLK DB Co ADi i y DBi NA A l X E A a td DB WR th WR DB pi gt lt th ECLK ab El Se td AD WR 1 Y Mi E Sy BHE i poca th WR AD ALE ft PEN MECLK ALE a th BCLK A td BCLK WR lt gt th BCLK WR __WR _ A S WRL WRH me Figure 4 5 Memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus REJ10J1007
16. lt a ba z AI ERE v E i A EEA ree e gt A AA A AAA PA A A A gt lt AA SRA A A AOS E IEE I A AA AS A IA SAA RAS A A T AR PRA ARA A AAA AAA REE A mee fr a 2 pet AAN PA A A AA es T TEE O E Q Y l o A a sl SS dl BER a iS gt we oo ds w pe ee eo ee ee ee x x oO o a o Eno o a E O 4 o o lt q 3 y z 3 8 3 x N o o a AN m a 9 37 al gt lt AS A A Mis lancet E A RA S EE x a a 8 5 yl 4 E 5 o n qI a m O m lt ez al a Figure 4 4 Memory expansion mode and microprocessor mode 3 wait accessing external area Page 83 of 108 2ENESAS REJ10J1007 0400 Rev 4 00 July 29 2009 M3062PT3 CPE User s Manual 2 Multiplex Bus Timing 4 Hardware Specifications Table 4 6 and Figure 4 5 show the bus timing in memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus Table 4 6 Memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus td BCLK AD Address output delay time Actual MCU ns This product ns Min Max Min Max See left th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard 4 th WR AD Address output hold time WR standard 4 td BCLK CS Chip select output delay time See left th BCLK CS Chip select output hold time BCLK st
17. ooo Area 2 000 I Area 3 000 I Area 4 000 T fFF FF FF FF This setting is effective only in the area CS3 CS2 CS1 and CS0 Not allocated area is rega The maps of SFR internal rded as EXTERNAL RAM and internal ROM are set automatically Cancel Help J Do not show this dialog box again Specifying the emulation memory allocation Sets the memory area assigned to the emulation memory by 4KB Up to four areas can be set An area set to INTERNAL will be allocated to the emulation memory An unchecked area or an unset area will be allocated to external area The unselected areas and the areas which have nothing specified are allocated to external areas on the user system The setting is effective only in the CS3 CS2 CS1 and CSO The maps of SFR internal ROM and RAM are set automatically 1 When the emulation memory board ROE33062PMSRCO not included was connected MAP tab is displayed 3 Flash Clear tab ajolslalefalefala MCU MAP Flash Clear Flash ROM Block 080000 090000 DADODO 080000 0c0000 opo000 0E0000 OF0000 OF8000 DSFFFF OOF FFF DAFFFF OBFFFF OCF FFF ODFFFF DEFFFF OF7FFF OF9FFF Bi The checked blocks are over written not erased on download Select All Clear All caro tp I Do not show this dialog box again Se
18. 00 cecccecceceeeeeeeeeeee eee eesaeeeeeeeeceaeeesaeeseeeeeaees 29 2a SOMPCI SOCK AE A EANES AN EE BEET E EA AEI N A AA E E A TA A AEE 31 2 7 1 Selcheck Procedure sereia R E NEE 31 2 7 2 If an Error is Detected in the Self CheCK ccccccceecceceeeeeeeeececeeeceaeeeeaeeseeeeeseaeeseaaeseeeeeesaaeeseaeeeeneeeeaees 32 2 8 Connecting the User SYStem 0 c cceesceceeeeeceeeeeeaeeeeeeeeeceaeceeeaeegeeeecaeeseaaesaeeseaeeeseaeseeaaeesgeeeeeeesesaesseaeeeeeeee 33 2 8 1 Connecting to an 80 pin 0 65mm pitch Foot Pattern cccceccceceseeeeeeeeeeeeeeceaeeeeeaeseeeeeseaeeeseaeeseeeeessaes 34 2 8 2 Connecting to a 100 pin LCC Socket ccecceeeeeeceeeeeeeeeeeeeeeeceaeeeeeaeeseaeeseeeeeesaaeseeaeeseeeeesaaeeeeaaeseneeeeaees 35 2 8 3 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 1 ceseeesceeeeeeeseeeeeeeeeeseeeesaeeeeeeeeaees 36 2 8 4 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 2 0 ccecseeeseeeeeeeeseeeeeeeeeseeeesaeeseeeesaees 37 2 8 5 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 3 eceeeseceeeeeeeeeeeeeeeeseeeeseaeeseeeesaees 38 2 8 6 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 4 ecseeeeeeeeeeeeeeneeeeeeeeseneeesaeeeeneeeeaees 39 2 8 7 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 1 c ccccseeeseeceeeeeeceeeeeeeeseeeeseaeeeeeeeeaees 40 2 8 8 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 2 c ccccceeeseeeeeeeeeeeeeeeeeeeseeeeseaeeeeeeee
19. Figure 2 10 Target status LEDs display when the emulator starts up normally when user system connected IMPORTANT Note on the Target Status CLOCK LED O If the LED is not turned on check the following After the emulator debugger is started up after the Init dialog box settings are completed Make sure that the oscillator selected in the Init dialog box is oscillating normally REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 30 of 108 M3062PT3 CPE User s Manual 2 Setup 2 7 Self check 2 7 1 Self check Procedure To run the self check of the emulator do so as explained here below While the self check is in progress the LEDs will change as shown in Figure 2 11 1 If the user system is connected disconnect it 2 Set the switches as the factory settings to execute the self check see Table 2 4 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 4 Switch settings for the self check Switch Setting MCU power supply source selection jumper JP1 MCU power supply voltage selection jumper JP2 VCC1 VCC2 power selection jumper JP1 of the M3062PT2 EPBM 1 Within2 seconds of activating power
20. M3062PT3 CPE User s Manual 2 Program execution 1 Resetting the user program 2 Executing the user program Go Ee PERDI 4 Executing the user program Reset Go PP De REJ10J1007 0400 Rev 4 00 July 29 2009 ztENESAS 3 Usage How to Use the Emulator Debugger CPU reset Resets the target MCU Or you can select CPU Reset from Debug menu for the same effect Go Runs the program beginning with the current PC position Or you can select Go from Debug menu for the same effect Go Free Runs the program beginning with the current PC position The software and hardware breaks set in it are ignored Reset Go Runs the program after reset Or you can select Reset Go from Debug menu for the same effect Step In Single steps the program executing each statement including those in functions Step Over Single steps the program executing each function call as one step Step Out Exists a function and stops at a statement in the program next to the one that called the function Or you can select Step In or other corresponding commands from Debug menu for the same effect Page 59 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 6 Stopping the user program STOP Stops the program Or you can select
21. M3062PT3 CPE User s Manual 2 Setup 2 8 3 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 1 Here following is a procedure of connecting to a 100 pin 0 65mm pitch foot pattern on the user system using the M3T F160 100NRB not included For details on the M3T F160 100NRB not included refer to its user s manual 1 Attach the NQPACK 100RB included with the M3T F160 100NRB to the user system 2 Attach the YQPACKIOORB included with the M3T F160 100NRB to the NQPACKIOORB and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3T F160 100NRB to the J4 side of the M3062PT3 CPE 4 Attach the M3T F160 100NRB to the YQPACK100RB M3062PT3 CPE CN2 side M3T F160 100NRB not included Evaluation with Ww actual MCU 4 YQ GUIDE x4 lt gt A Linge at F HOPACK100RB168 i l f YQPACK100RB Mtincluded YQPACK100RB I_ 1 en lt gt 2 NQPACK100RB meu wih flash ROM etc ES 100 pin 0 65mm pitch PR BO100JB A foot pattern Se e Available in one package Se User system Figure 2 15 Connecting to a 100 pin 0 65mm pitch foot pattern Part 1 A CAUTION Note on Connecting the User System Q O 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 Note on Connectors of the Converter Board O The connectors of the M3T F160 100NRB are guaranteed for on
22. USB interface cable included This is an interface cable for the host machine and the emulator 3 Power supply for emulator This is a power supply for the emulator Supply 5 0 V 5 DC Prepare a power supply which complies with CE marking requirements separately The power cable is included with this product Note Be aware that there are some AC adapters whose power supply voltage varies rather widely with its load You are recommended to use an AC adapter with a switching power supply or a stabilized power supply 4 User system This is your application system This emulator can be used without the user system REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 15 of 108 M3062PT3 CPE User s Manual 1 Outline 5 Power supply for the user system This is a power supply for the user system As this emulator cannot supply the power to the user system supply the power to the user system separately from the emulator 6 Host machine This is a personal computer for controlling the emulator 7 Package converter board such as M30800T PTC This is a package converter board for connecting to an MCU foot pattern on the user system For details refer to 2 8 Connecting the User System page 33 1 2 1 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 J2 USB interface connector Vie POWER USB RENESAS EOV
23. s Manual 3 Usage How to Use the Emulator Debugger 3 Trace window bus display Trace o Explanation of the trace window bus xy QQQ vriea5 z By displa Pares 000165 D00000 Area Setore Break File Cych 000065 Address DFCOC2 Tite The followi iins edisoised h lef Cycle Zabel Address Daca DUS Bru e following explains the displayed contents from left to 000065 Or00c2 E3A7 Iw right 000064 pad 0003E2 0000 DE Cycle 000063 pad 000382 0009 DB 000062 OrODC4 com sty Shows trace cycles Double click here to bring up a 000061 pad 000382 cand pe dialog box to change the displayed cycle 000060 pad o003n2 0001 De Label 9 DOUSS pal soar oo Shows labels corresponding to address bus information 000056 pal 000383 0001 vb 000057 DPODCS BRIF Double click here to bring up a dialog box to search for addresses 000056 DPOOCS BRIF Address D00055 pal 00033 BRIF 000054 pal 000323 0101 Shows the status of the address bus Data 000053 protes F303 000052 orooce F203 Shows the status of the data bus BUS 000051 pd p0032 0000 Shows the width of the external data bus In the present 000050 pd p003Ez 0000 000049 d rd ste DEODCA F272 emulator 16b for 16 bits wide bus and 8b for 8 bits wide bus are displayed 000048 pd DO0JEz r272 BHE 000047 pdt 0003rz 0001 Shows the status 0 or 1 of the BHE Byte High Enable signal If this signal 0 the odd address data is val
24. ycia A A Ai dais 12 TOMO Y aia o bas 13 AA caun sansa vans AE A A E T A A N AA A 14 1 1 Package Gompone tS spri iba 14 1 2 System Contig ration issii ansaa di iaa 15 1 2 1 Names and Functions of each part of the EmulatOF ooonncccinccnnnicinnnconncccnornnnnarnnn no cc nnrc cnn rana cnn 16 1 3 Specifications ici A A A a 19 1 4 Operating ENVIrOnNMENt cocccinicnnnnnccnnncconncccnn cc 21 RS O O E 22 2 1 Flowchart of Starting Up the Emulator 0oooccccnnncconiccconcccnononnnnccnnoncccnnrn cnn rana nn 22 2 2 Installing the Included Software ooooooconnccinncconnnccnnccnoncccnonnnn nc nn noc n cnn 23 2 39 Attaching the Ferrite Core mier telde dad alt tdi 23 2 4 Connecting the Power Supply for the Emulator ooooncccnnicinnncononcconocnnononnnnnccconc cnn rca nn cnc cra nr crac 24 2 5 Gonnecting the Host Machine iii iia ita 25 2 6 Turning ON The POW Miss sis ceca cdessecs ages ce savage cade olecasaeden a a a aa e aastad a iaaa aia Eiaa 26 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper 26 2 6 2 VCC1 VCC2 power selection jumper Jumper of the M3062PT2 EPBM seeen 27 2 6 3 Checking Connections of the Emulator SyStem ccccceesceeeeeeeeeceeeeeeeceeeeesaeeeeaaeseeeeeseaaeeseeeseneeetaees 28 2 6 4 Turning ON OFF the Power 0 cccccceceeeeeeeeeeeeee cee eecaaeeeseeeeceaeeesaaeedeaeeseeeeecaaeesseaeeseeeesaeessaeeseeeeeaees 28 2 6 5 LED Display When the Emulator Starts Up Normally 0
25. 0400 Rev 4 00 July 29 2009 2ENESAS Page 85 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications 3 Timing Requirements Table 4 7 and Figures 4 6 show timing requirements in memory expansion mode and microprocessor mode Table 4 7 Timing requirements Actual MCU This product ns ns Max Min Max tsu DB RD Data input setup time 65 tsu RDY BCLK RDY input setup time 60 tsu HOLD BCLK HOLD input setup time 70 th RD DB Data input hold time See left th BCLK RDY RDY input hold time See left th BCLK HOLD HOLD input hold time See left td BCLK HLDA HLDA output delay time See left Common to with wait and no wait actual MCU BCLK i tsu HOLD BCLKY HOLDinput HLDA output PO P1 P2 P3 P4 5 E ee a a ee Common to with wait and no wait this product BCLK tsu HOLD BCLK HOLD input HLDA output PA td BCLK HLDA A ea A hed y HA P0 P1 P2 P3 P4 E Eso PBa n Figure 4 6 Timing requirements Compared with an actual MCU this product enters high impedance state after a 0 5 cycle delay REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 86 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications 4 3 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below When debugging the
26. 2 Replacement with extra charge 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 104 of 108 M3062PT3 CPE User s Manual 6 Maintenance and Guarantee 3 Expiration of the repair period When a period of one year elapses after the model was dropped from production repairing products of the model may become impossible 4 Transportation fees at sending your product for repair Please send your product to us for repair at your expense 6 5 How to Make Request for Repair If your product is found faulty fill in a Repair Request Sheet downloadable from the following URL And email the sheet and send the product to your local distributor http www renesas com repair Ax CAUTION Note on Transporting the Product O When sending yo
27. 5x10 f BCLK REJ10J1007 0400 Rev 4 00 July 29 2009 Data output hold time WR standard ns n 3 for 3 wait 2ENESAS 3 Page 77 of 108 4 Hardware Specifications M3062PT3 CPE User s Manual Read timing m _ a ay POE a pe po es pica aaa A arias O a E ES a o lt q a E p a 2 a 9 l a q x TE 2 gx 2 i x E a a a L S x Oo 3 x a e 8 E 2 a 3 eT HL 3 a TS a lt e gt m E E oe a a i T y El l sn J Webel o i A i i i i i i i i i i i i i 1 0 N i tsu DB RD i i i i i i i l i i i th WR AD i i th BCLK W A i i th WR td DB WR ao z a 3 E o X STT re 3 ROS Em A x zx SU NL m a Ww a a lt Jg z 3 Xx Xx Xx x 3 3 3 9 a gt IT A an a SA o 3 EN 2 Mio rr ur p m e li a O a aa e a a ps jc e a li a L a e 3 2 a e 2 2 o x D N Y S x p N x 52 a x 3 a x gt 13 o a o o a Dn Lo gt lt manos o Dn On S lt mos D 3 D 2 E a Se ee a a E A e A A AA Seen pS EA A A A A A A Lk ae 7 E x 2 x x W W W m 5 a a 5 au x D I pan m D m gt 8 25 3 E 8 3 8 lt 5 fs 8 g Page 78 of 108 2ENESAS Figure 4 1 Memory expansion mode and microprocessor mode 3 wait accessing ext
28. ADD ACCE CONDITION O 1 Bi rine FETCH addr 000000 O 1 B2 rine FETCH addr 000000 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 Combination 64K cycles of instruction execution after a trace point condition was met is recorded Full Trace Ares Writs Condition 64K cycles of instruction execution after a trace began is zi recorded Reset Save Load Close 4 Setting the trace write condition eRe Setting the trace write condition You can specify a condition for the cycles to be written into Event Status PASS E ADD ACCE CONDITION O 1 Bi rimel FETCH addr 000000 O 1 B2 rimel FETCH addr 000000 All cycles are written into memory Pick up the trace memory Total 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 Combination PID for y z Trace Area Write Condition Break x Pick up Detail When you have finished setting the trace write condition aaa a Eor Set a click this button The Realtime trace Write Condition dialog box shown below will appear Realtime trace Write Condit E met are written into me
29. M3062PT3 CPE emulator The M3062PT3 CPE emulator system is configured with an emulator main unit M3062PT3 CPE integrated development environment High performance Embedded Workshop emulator debugger and host machine Renesas 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 for the M16C Family and enables 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 emulator M3062PT3 CPE This program is downloadable from the emulator debugger to upgrade the firmware etc Host machine This means a personal computer used to control the M3062PT3 CPE emulator system Target MCU This means the microcomputer you are going to debug User system This means a user s application system using the microcomputer to be debugged User program
30. MCU is accessed during user program execution actual MCUs retain a preceding address and status of BHE while this product does not 9 Status of a data bus In stop or wait mode actual MCUs retain a preceding status of a data bus while with this product a data bus is floating 10 Operation after releasing the reset After releasing the reset for about max 380 cycles a program to control the emulator will be executed Note that this will be included in the user program execution time and tracing result Note on RESET Input A low input to pin RESET from the user system is accepted during the user program execution only while the RUN status LED on the emulator s upper panel is lit Note on RDY Input O Be sure to input L to pin RDY of the user system during the user program execution when the RUN status LED on the emulator s upper panel is lit Inputting L to pin RDY during the user program is being stopped may cause a malfunction of the emulator Note on HOLD Input O Be sure to input L to pin HOLD of the user system during the user program execution when the RUN status LED on the emulator s upper panel is lit Inputting L to pin HOLD during the user program is being stopped may cause a malfunction of the emulator Note on NMI Input O A low input to pin NMI from the user system is accepted during the user program execution only while the RUN status LED on the emulator s upper panel is lit
31. Manual 2 Setup 3 Using the Internal Oscillator Circuit Bare Board To use this product at a frequency you like build a desired oscillator circuit on the included OSC 2 oscillator circuit bare board Figure 2 24 shows an external view of the OSC 2 oscillator circuit bare board and the connector pin locations Figure 2 25 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 X 1 5 08 mm pitch 2 pin oscillator X2 2 54 mm pitch 2 pin oscillator IC1 Inverter Unbuffer X3 2 54 mm pitch 3 pin oscillator Figure 2 25 Circuits of the oscillator circuit bare board OSC 2 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 46 of 108 M3062PT3 CPE 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 26 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 Open Oscillator circuit Oscillation output Figure 2 26 External oscillator circuit Make note that in the oscillator circuit shown in Figure 2 27 where a resonator is connected between pins
32. and microprocessor mode 3 wait accessing external area Table 4 2 Memory expansion mode and microprocessor mode 3 wait accessing external area td BCLK AD Address output delay time Actual MCU ns This product ns Max Min Max th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard 4 th WR AD Address output hold time WR standard 3 td BCLK CS Chip select output delay time See left th BCLK CS Chip select output hold time BCLK standard See left td BCLK ALE ALE signal output delay time See left th BCLK ALE ALE signal output hold time See left td BCLK RD RD signal output delay time See left th BCLK RD RD signal output hold time See left td BCLK WR WR signal output delay time 28 th BCLK WR WR signal output hold time See left td BCLK DB Data output delay time BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Calculated by the following formula according to the frequency of BCLK n 0 5 x10 f BCLK 2 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK 3 Calculated by the following formula according to the frequency of BCLK 0
33. can set the size to be monitored by specifying the number of blocks from the start address One block is 256 bytes in size 4 RAM monitor area setting dialog box when RAM monitor area is changed from 400h to 1 block MM RAM Monitor Area Setting EJE Current Assigned Area Start Si 000400 1 Area 000400 0004FF 3 blocks 768 bytes are available lt 1 block 256 bytes gt Save Load Close 5 RAM monitor area setting dialog box RamMonitor 0004B0 22 0F 34 33 IE 07 93 EF 16 7E 20 22 F9 86 56 95 A5 85 43 92 JA F3 CD DI F6 92 F2 El 2D FF F 5D Co gt REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Specifying the start address You can set the start address of the RAM area to be monitored To add a RAM monitor area click the Add button The RAM Monitor Area Setting Window will be displayed Changing the RAM monitor display area You can change the manner in which the RAM monitor area you have set in the above dialog box is displayed 1 Shows the blocks at the preceding addresses Shows the blocks at the following addresses The background colors of the data display and the code display sections change with the access attribute as described below Green Addresses accessed for read Red Addresses accessed for write White Addresses not accessed The background colors can be changed as necessary Page 75 of 108 M3062PT3 CPE User s Manual 4 Hardware Speci
34. converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Note on the Connectors of the Converter Board O The connectors of the M3062PT 80FPB are guaranteed for only 50 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 34 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 2 Connecting to a 100 pin LCC Socket Here following is a procedure of connecting to a 100 pin LCC socket IC61 1004 051 of Yamaichi Electronics Co Ltd on the user system using the M30800T PTC not included 1 Attach the LCC socket to the user system 2 Attach the CN2 side of the M30800T PTC to the J4 side of the M3062PT3 CPE 3 Attach the M30800T PTC to the 100 pin LCC socket M3062PT3 CPE M30800T PTC not included 8 100 pin LCC socket not included No 1 pin User system Figure 2 14 Connecting to a 100 pin LCC socket A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board O The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations O For purchasing the IC61 1004 051 or for technical information contact Yamaichi Electronics Co Ltd REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 35 of 108
35. display MW Problem amp Remedy Blinking CLOCK 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 switch settings see Table 2 2 The vector areas DBC interrupt vector single step interrupt vector and BRK interrupt vector which are used by the emulator may be rewritten when debugging in CPU rewrite mode Start the emulator debugger and execute the program single step execution can be used to reset the vector areas which are used by the emulator Then execute the self check The emulation memory board ROE33062PMSRCO not included is not working properly The emulation memory board may be damaged Contact your local distributor The emulator system is not working properly The emulator may be damaged Contact your local distributor IMPORTANT Notes on the Self check O Be sure to disconnect the user system before executing the self check Use the preinstalled oscillator circuit board OSC 3 16MHz to execute the self check O If the self check
36. does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor Others REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 32 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 Connecting the User System Figure 2 12 shows the connection of the M3062PT3 CPE and the user system Compact emulator a 100 pin 80 pin 128 pin 0 65mm pitch 0 5mm pitch 0 65mm pitch 0 5mm pitch Y Z M30800T PTC not included 3T 100LCC DMS 100LCC DMS not included not included gt M3T FLX100 T M3T FLX100 R not included not included gt M83T FLX100 T 7 A MST FLX100 R not included not included A A d 4 7 GA LCC socket M3T DIRECT100S M3T DUMMY100S M3T FLX 100NRB M3T F160 100NSD M3T 100LCC QSD M3T FLX 100NSD M3T F160 128NRD Me MONA 100 piniLCO 100 pin GFP 00 pin QFP 100 pin QFP 100 pin LQFP 100 pin LQFP 100 pin LQFP 126 pin not Peeled not PLES not included not included not included not included not included not included not included not included No 1 pin 1 These three products are available in one package Figure 2 12 Connection of the M3062PT3 CPE and user system A CAUTION Note on Connecting the User System O Take care not to attach the converter board in a wr
37. enable the PRC2 bit and write to the register protected by the PRC2 PD9 S3C and S4C set the CPU clock neither to the main clock in division by 2 mode nor to the on chip oscillator clock in division by 2 mode REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 89 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on the Input Thresholds for the Pins P1_5 D13 INT3 P1_6 D14 INT4 and P1_7 D15 INT5 O With this product regarding pins P1_5 D13 INT3 P1_6 D14 INT4 and P1_7 D15 INTS a device which port or data bus inputs to and a device which INT interrupt inputs to are different as follows Device which port or data bus inputs to Port emulation FPGA input level TTL Device which INT interrupt inputs to Evaluation MCU for emulating peripheral functions input level CMOS Schmidt Therefore the port input level can be read as H immediately after an INT interrupt falling and the port input level can be read as H immediately before an INT interrupt rising Note on Input Level for KIO to KI3 O With this product the KIO to KI3 are TTL input level using the port emulation FPGA although these are the CMOS Schmidt input level with the actual MCU Therefore the wrong interrupt may occur near the threshold of the TTL level 2 0V to 0 8V when the input signal is slow changing Note on Debugging M16C 30P Group MCUs O When debugging the M16C 30P Group MCUs be sure to deselect the bo
38. 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 Re
39. 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 9 when the user system is not connected and as shown in Figure 2 10 when a user system is connected When the target status LEDs do not display as shown in Figures 2 9 and 2 10 refer to 5 Troubleshooting page 100 When the user system NOT connected The POWER LED does not light POWER LED3 POWER MN LEos CLOCK MB 04 CLOCK LED4 TJ on E o RESET LEDS RESET J 05 RUN MN LEDs RUN MN LEDs After turning the power ON After starting up the emulator debugger Figure 2 9 Target status LEDs display when the emulator starts up normally when user system not connected REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 29 of 108 M3062PT3 CPE User s Manual 2 Setup When the user system connected If the POWER LED does not light shut off the system and check the setting of the jumper switches and if the power is properly POWER LED3 POWER C LED3 supplied to the user system cLock MB o cLock LED4 _ ON RESET LEDS RESET QJ LEDs MN o RUN MN LEDs RUN Leos After turning the power ON After starting up the emulator debugger
40. the High performance Embedded Workshop Set the operating environment of the emulator debugger i 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 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 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 High performance Embedded Workshop and the emulator debugger refer to each online manual Figure 2 1 Flowchart of starting up the emulator REJ10J1007 0400 Rev 4 00 July 29 2009 2ENESAS Page 22 of 108 M3062PT3 CPE 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
41. the Emulator Debugger O Be sure to use this product with one of the following emulator debuggers M16C R8C Compact Emulator debugger V 1 01 Release 00 or later 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 O Run the self check with the user system not connected Note on Quitting the Emulator Debugger O To restart the emulator debugger always shut power to the emulator module off once and then on again Notes on the User System Power Supply Order of Powering On O When the user system is connected be sure to set the JP1 of the emulator to EXT O This emulator cannot supply the power to the user system Therefore design your system so that the user system 1s powered separately O This emulator consumes max 500mA of electric current from the user system O The voltage of the user system should be as follows 2 7V lt VCC lt 5 5V O Do not change the voltage of the user system after turning on the power O Before powering on your emulator system check that the host machine the emulator the converter board and user system are all connected correctly Next turn on the power to each equipment following the procedure below 1 Turn ON OFF the user system and the emulator as simultaneously as possible 2 When the emulator debugger starts up check the target status LEDs on the emulator to see if this pro
42. 00101 DFOOD2 rl 3EEh w 00102 OFOOD6 rts 00103 00104 OFOOD for r3 0h to 80h step 00105 OFOODF STE B ROL 00106 OFODE1 AD A0 00107 OFOOEZ ROL ROL 00108 Orooes ME next 00109 OFODE ROH ROL 00110 ROH lt OFODE8 ROH REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 70 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Trace point setup dialog box 1 Opening the trace point setup dialog box Trace Point Clicking this toolbar button opens the trace point setting window 2 Trace Point Setting Window in initial state Trace Point Setting Window in initial state Be sure to select Enable the trace point in the Init dialog MM Trace Points Event Status PASS E ADD ACCE CONDITION O 1 BI rinel FETCH addr 000000 O 1 B2 ringi FETCH addr 000000 box before you set up in this window Here you can set events in the same way as for the hardware breakpoints Combination mp e 3 vsat Trace Area Write Condition ee Reset Save Load ser Close REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 71 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Specifying a trace area Specifying a trace area MM Trace Points You can specify a trace range for the trace event Event Status PASS E
43. 00130 000140 sui REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 73 of 108 M3062PT3 CPE User s Manual 2 RAM monitor area setting window 1 Opening RAM monitor area setting window RamMonitor 000000 _ _ 100ms Label Register _ 000000 FB SB USP 000010 000020 000030 000040 000050 000060 000070 000080 000090 000040 000080 ooooco O 1 2 43 4 45 48 47 48 49 44 4B 40 4D HE EAA oooobo 0000E0 0000F0 000100 000110 000120 000130 000140 2 RAM monitor area setting window in initial state E RAM Monitor Area Setting E E Current Assigned Area Start Si Area 000400 4 gao Remove All 0 blocks 0 bytes are available lt 1 block 256 bytes gt Save Load Close REJ10J1007 0400 Rev 4 00 July 29 2009 2ENESAS 3 Usage How to Use the Emulator Debugger RAM monitor area setting Clicking this toolbar button opens the RAM monitor area setting window RAM Monitor Area Setting Window in initial state By default the monitor area is set to 000400h through 0007FFh To change it click the Add or Remove button Page 74 of 108 M3062PT3 CPE User s Manual 3 RAM monitor area setting dialog box Set RRAM Area Start 000400 Size Area 000400 0004FF Cancel 3 Usage How to Use the Emulator Debugger Specifying the start address You can set the start address of the RAM area to be monitored You
44. 1 M3T F160 100NSD not included 2 M30800T PTC not included M3T 100LCC QSD not included 3 M30800T PTC not included M3T 100LCC DMS not included M3T FLX 100NSD not included For 128 pin 0 5mm pitch LQFP PLQP0128KB A Previous code 128P6Q A M3T FLX 128NRD not included Power supply for emulator DC 5 0 V 5 Q A 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 Set packages which consist of the compact emulator and converter board are available 4 Available to connect the host machine that supports USB 2 0 With the USB interface not all hardware such as host machine USB devices USB hub combination will work and guaranteed REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 20 of 108 M3062PT3 CPE User s Manual 1 Outline 1 4 Operating Environment Be sure to use thins emulator with the operating environmental of the emulator and host machine listed in Tables 1 7 and 1 8 Table 1 7 Operating environmental conditions Operating temperature 5 to 35 C no dew Storage temperature 10 to 60 C no dew Table 1 8 Operating environment of the host machine Item Description Host machine IBM PC AT compatibles OS Windows XP Windows 2000 CPU Pentium III 600 MHz or more recommended Memory 128 MB or more recommended Host machine i
45. 2PT3 CPE compact emulator and how to setup it For details on the emulator debugger and C compiler package M3T NC30WA evaluation version C compiler NC30 assembler AS30 and integrated development environment High performance Embedded Workshop which are included with the M3062PT3 CPE refer to each product s 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 Integrated development environment High performance Embedded Workshop User s Manual Emulator debugger M16C R8C Compact Emulator Debugger User s Manual C Compiler User s Manual Assembler User s Manual REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 4 of 108 M3062PT3 CPE User s Manual Important Important Before using this product be sure to read the user s manual carefully Keep this user s manual and refer to this when you have questions about this product Emulator The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp 1 Compact emulator main unit 2 Package converter board for connecting the user system The emulator herein does not include the customer s user system and host mach
46. 4 1 Target MCU Specification Sisirin enana iaa 76 42 ACCESS TIMING tai a aana aaa a aaa aaa tb a ias 77 4 2 1 Operation Timing of Memory Expansion Mode and Microprocessor Mode VCC1 VCC2 5V 77 4 2 2 Operation Timing of Memory Expansion Mode and Microprocessor Mode VCC1 VCC2 3V 82 4 3 Differences between the Actual MCU and EMmulatOF coonnccnnncccinnccnoncccnnocnnnncccnonc conan naar nn 87 4 4 Connection Dia MMiscininiitaa dit it teria 91 4 5 External DIMENSIONS eco aa 93 4 5 1 External Dimensions of the Compact Emulator 0 cccccccceeeeececeeeeeeeseeseeeeeceaeeesaaeeeeeeeseaeeesaeeseeneeenees 93 4 6 Notes on Using This PrOdUCt oooocnnnnnnnnccnncccnnoncnnnccnconc cono nn naar n cnn crac anne 94 Di Troubleshooting sesiis a E S E A E 100 5 1 Flowchart to Remedy the Troubles c ccccsceseseeceeeeeeeeaeeeeneeceeeeeceaeeesaaeeeceeeesaeeesaaeseeaeeseeeescaeessaeeseneeeeaees 100 5 2 When the Emulator Debugger Does Not Start Up Properly ccccccceceeeeeeeceeeeeeeaeeeeeeeseeeeeseaeeesaeeseneeeeaees 101 5 3 How to Request for Support ecececeeeeceeeeeeeeeee cee eeeeaeeeeaeeeeeeeeceaeeeeeaeeeeeeeceaeeseaaesseaaeseneeeseaesecaeessaeeseaeeseaees 103 6 Maintenance and Guarantee ccccccccccsscecessneeeeeeeseeeceeaeeecssaeeecessaeeeeeseeaeeeessaaeeeessaeeeeesaeeessaeeeesseeeeessseeeenss 104 6 1 User Registrat coi ii les lid Ria 104 G2 Malmienances edad aaa ia iaa aaa ips 104 G3 GUATANICG
47. 62PT3 CPE User s Manual 2 Setup 2 9 3 Pullup of Emulation Ports Because this product emulates some I O ports PO to P5 and P10 you can not pullup ports PO to PS by the pullup control registers Install the included resistor arrays 51kQ as necessary Figure 2 29 shows the positions of the pullup resistors POWER USB 5 0V RINSI SYSTEM COMPACT EMULATOR nocooDof TARGET 0 J STATUS OOO E OORO TTT C MADE IN JAPAN Positions to install pullup resistor arrays Figure 2 29 Positions of the pullup resistors Table 2 7 Emulation ports and pullup resistor part numbers Resistor part P00 PO7 RM1 51kQ pullup P10 P17 RM2 51kQpullup P20 P27 RM3 51kQpullup P30 P37 RM4 51kQpullup P40 P47 RMS 51kQpullup P50 P57 RM6 51kQpullup IMPORTANT Note on Pullup Control O The initial value of pullup control register 1 PURI of this product is different from that of an actual MCU When a VCC level is input to pin CNVss the value of an actual MCU is 02h bit 1 PU11 is 1 while that of this product is 00h REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 49 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Usage How to Use the Emulator Debugger This chapter describes how to start up the emulator debugger and how to use the major windows 3 1 Starting Up the Emulator Debugger When debugging the completed progra
48. D AD lt 3 th BCLK RD 37 Write timing tcyc BCLK X td BCLK CS gt H eer 4 csi i i A th BCLK CS A TRE AN y td AD ALE th ALE AD pa ees Suse ADi a H td BCLK VE th WR CS th BCLK DB DB gt DBi KX A td BCLK AD 23 E A oe poi td AD WR v ADi i BHE gt lt i gt td DB WR th WR DB th BCLK AD gt A VV td BCLK ALE K E ALE A th WR AD PEA th BCLK ALE 5 _WR WRL WRH y A td BCLK WR AN oi th BCLK WR Figure 4 2 Memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus REJ10J1007 0400 Rev 4 00 July 29 2009 2ENESAS Page 80 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications 3 Timing Requirements Tables 4 4 and Figure 4 3 list the timing requirements in memory expansion mode and microprocessor mode Table 4 4 Timing requirements Actual MCU This product ns ns Max Min Max tsu DB RD Data input setup time 55 tsu RDY BCLK RDY input setup time 45 tsu HOLD BCLK HOLD input setup time 55 th RD DB Data input hold time See left th BCLK RDY RDY input hold time See left th BCLK HOLD HOLD input hold time See left td BCLK HLDA HLDA output delay time See left
49. E Low HOLD High RDY High 3 When memory expansion mode 8 bit data bus width is used CNVss Low BYTE High HOLD High RDY High 4 When microprocessor mode 16 bit data bus width is used CNVss High BYTE Low HOLD High RDY High 5 When microprocessor mode 8 bit data bus width is used CNVss High BYTE High HOLD High RDY High Note on Breaks O The area displaying break points in the program window of the emulator debugger shows the following breaks 1 Address match break This is a debugging function which breaks a program using the address match interrupt function of the MCU immediately before the system executes an instruction at a specified address The instruction at the preset address will not be executed 2 Software break This is a debugging function which generates a BRK interruption by changing an instruction at a specified address to a BRK instruction 00h to break a program immediately before the system executes an instruction at a specified address The instruction at the preset address will not be executed 3 Hardware break This is a debugging function which breaks a program by setting the detection of an execution of an instruction at a specified address as a break event The program will break after the instruction at the specified address is executed REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 95 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT
50. MCU using this product be careful about the following precautions IMPORTANT Note on Differences between the Actual MCU and Emulator O Operations of the emulator system differ from those of actual MCUs as listed below 1 Reset condition Set the time for starting up 0 2 VCC to 0 8 VCC 1 us or less 2 Initial values of internal resource data of an MCU at power on 3 Interrupt stack pointer ISP after a reset is released 4 Capacities of the internal memories ROM and RAM The evaluation MCU of this product has RAM of 31KB 00400h O7FFFh and flash ROM of 4KB OFO00h OFFFFh and 512KB 80000h FFFFFh 5 Oscillator circuit In the oscillator circuit where an oscillator is connected between pins XIN and XOUT oscillation does not occur because a package converter board is used between the evaluation MCU and the user system It is same for pins XCIN and XCOUT For notes on when using an oscillator circuit on the user system refer to 2 9 1 2 Using an Oscillator Circuit on the User System page 47 6 A D conversion The characteristics of the A D converter differ from those of actual MCU because there are a converter board and other devices between the evaluation MCU and the user system 7 Ports PO to P5 P10 This product emulates some I O ports PO to P5 P10 Therefore the electrical characteristics of these ports differ from those of an actual MCU 8 Address and status of BHE When the internal RAM or ROM area of an
51. P77 P70 P84 P80 P97 P90 P67 P60 P77 P70 P84 P80 P97 P90 P117 P110 P127 P120 P137 P130 P141 P140 510k 100 Q P117 P110 P127 P120 P137 P130 VCCI P141 P140 gt lt P85 NMI P85 NMIl P86 Xcout M16C 62P di I O Emulate 74HC4066 510k 74HC4066 P86 Xcout VCCi P87 Xcin 74HC4066 gt lt P87 Xcin Xout 74HC4066 nt H125 Ad 51kQ gt Xout VCCi gt lt AN7 ANO INT5 INT3 IC8 74HC4066 R3 02 64 yCc2 pac 74HC4066 P107 P100 Pullup resistors in dashed line indicate that the socket is mounted B1kQ lt VCC2 gt lt R2 02 G VCC2 P07 P00 51k Q42 VCC2 Port Emulation FPGA 51k 4 gt gt lt P27 P20 VCC2 P17 P15 P14 P10 P37 P30 P47 P40 P57 P50 lt CNVss lt BYTE 510k VCC x e RESET 510k VCC i e lt Xin Connected to the inside of the emulator User system Figure 4 7 Connection diagram REJ10J1007 0400 Rev 4 00 July 29 2009 2ENESAS Page 91 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications Table 4 8 Electrical characteristics of the 74HC4066 Standard values Standard Condition ON resistor VCC 4 5V ON resistor difference VCC 4 5V Leak current Off VCC 12 0V Leak current On output open VCC 12 0V
52. PLQP0100KB A foot pattern No 1 pin Avaiable in one package User System Figure 2 21 Connecting to a 100 pin 0 5mm pitch foot pattern Part 3 A CAUTION Note on Connecting the User System O 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 O The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations O The connectors of the M3T 100LCC DMS and M3T FLX 100NSD are guaranteed for only 20 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 42 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 10 Connecting to a 128 pin 0 5mm pitch Foot Pattern Here following is a procedure of connecting to a 128 pin 0 5mm pitch foot pattern on the user system using the M3T F160 128NRD not included For details on the M3T F160 128NRD refer to its user s manual 1 Attach the NQPACK128RD included with the M3T F160 128NRD to the user system 2 Attach the YQPACK128RD included with the M3T F160 128NRD to the NQPACK128RD and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3T F160 128NRD to the J4 side of the M3062PT3 CPE 4 Attach the M3T F160 128NRD to the YQPACK128RD M3062PT3 CPE e CN2 side 3 Vy M3T F160 128NRD not included Evaluation with actual MCU 3 24 6 oa 4 o HQPACK128RD
53. Remove th Remove th Remove th Use SIM I Remove th afl UTOD he he EE 3 l lEmeme ele ee Eme sample h8 EE Assembly source f E lowlvisre 1 3 C source file E dbsete A lowsrcc 3 resetprec 2 sample hc 3 sbrke Download modules MENTES Dependencies E lowsrch E sbrkh E stackscth 11 nara 4 pragma section ResetPRG set_imask_cer 1 _INITSCT _CALL_INITO _INIT_IOLIB A imask_cor 0 _CLOSEALL CALL_END PA A __entry vect 0 void PowerON_Reset void Remove th Use SIM Remove t Remove th Remove th Remove th Use SIM Remove t gt Setup procedure for running the program up to the cursor position 1 Click the line in the editor source window that you want to be executed 2 Click the execution button to the cursor position Or you can select Go to Cursor from Debug menu for the same effect The cursor stops in the position where the come command was executed The statement specified with the come command is not executed 2 sample hc lt 3 resetprec REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 62 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 6 Hardware Breakpoint Setting Window 1 Breakpoint setup dialog box 1 Opening the hardware breakpoint setup dialog box Hardware Break Point Cli
54. Stop from Debug menu for the same effect F0118 6409 Editor Source window 4 1A 25M 1 0 The position at which the user program has stopped is F0 1D BI marked by a yellow arrow F011E C923 F0120 FEFS F0114H F0122 F3 F0123 D902 0H R2 F0125 77820F00 HODOFH R2 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 60 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Setting breakpoints 1 Screen after breakpoint setup Screen after breakpoint setup There are three types of breakpoints as described below i a SECT gt Address match breakpoint sizeo gt N_BZERO macro TOP_ SECT_ 00H Ro This breakpoint can be set only when you chose to use the address match break function on the MCU tab of the N_BCOPY Dis FROM_ TO_ SECT_ Init dialog box mov ROM_ OFFFFH A0 A breakpoint can be set or cleared by double clicking in mov RGM gt gt 16 R1H mov mov ae source window A blue circle is displayed at the setting smovf endm the address match breakpoint display area in the editor line Up to eight breakpoints can be set BZERO macro TOP_ SECT_ push w Hsizeof SECT_ gt gt 16 The address match break causes the program to stop push w Hsizeof SECT_ amp Offffh before executing the address at which a breakpoint is set at TF ha fffh Software breakpoint A software breakpoint can be set or cleared by double clicking the software breakpoint d
55. T MAP 80000h BFFFFh EXT EXT MAP i 40000h 7FFFFh EXT EXT MAP A 80000h BFFFFh EXT MAP 40000h 7FFFFh EXT EXT MAP 0 80000h BFFFFh EXT EXT Microprocessor mode C0000h FFFFFh sss eve MAP 40000h 7FFFFh EXT EXT MAP i 80000h BFFFFh EXT MAP 1 Indicates bit 3 at address 00005h 2 Indicates bit 2 at address OOOOBh 3 Indicates memory access in the user system 4 Indicates area access dependent on how the MAP tab of the debugger s MCU settings dialog box is set INT internal emulation memory of the emulator EXT memory in the user system REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 98 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on Power Supply to the User System O Pins VCCI and VCC2 are connected to the user system to observe the voltage Therefore the power is not supplied to the user system from the emulator design your system so that the user system is powered separately O The voltage of the user system should be as follows 1 When VCC 1 VCC2 power selection jumper JP1 of the M3062PT2 EPBM is set as VCCI 2 2 7V lt VCC1 VCC2 lt 5 5V 2 When VCC1 VCC2 power selection jumper JP1 of the M3062PT2 EPBM is set as VCC1 gt 2 VCCI 5 0 0 2V 2 7V lt VCC2 lt VCCI O Do not change the voltage of the user system after turning on the power Notes on CE Declaration of Conformity O Please use this product with care as des
56. This means a user s application program to be debugged Evaluation MCU This means a microcomputer mounted on the emulator which is operated in the special mode for the emulator In this user s manual this symbol is used to show active LOW e g RESET REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 13 of 108 M3062PT3 CPE User s Manual 1 Outline 1 Outline This chapter describes the package components the system configuration and the preparation for using this product for the first time 1 1 Package Components The M3062PT3 CPE package consists of the following items When unpacking it check to see if your M3062PT3 CPE contains all of these items Table 1 1 Package components M3062PT3 CPE compact emulator OSC 3 16MHz oscillator circuit board OSC 2 oscillator circuit bare board Network resistors for ports PO P5 pullup 51kQ x 8 USB interface cable for connecting host machine and emulator Rh Power supply cable for compact emulator Ferrite core for connecting power supply cable H W Tool Customer Registration Sheet English H W Tool Customer Registration Sheet Japanese Repair request sheet English Repair request sheet Japanese M3062PT3 CPE User s Manual this manual M3062PT3 CPE User s Manual Japanese M3062PT3 CPE Release Notes English M3062PT3 CPE Release Notes Japanese CD ROM e Emulator debugger M16C R8C Compact Emulator Debugger e C comp
57. 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 ENESAS 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 granted
58. Us in CPU rewrite mode do not change the block O area FFOOOh FFFFFh of the flash ROM Otherwise the emulator will be uncontrollable 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 software breakpoints in an internal ROM area 2 Executing COME in an internal ROM area O Do not stop the program in CPU rewrite mode or erase suspend mode And do not single step the instructions shifting to the CPU rewrite mode The emulator will go out of control in CPU rewrite mode O As the following interrupt vectors are used by the emulator system the read data is different from expected value 1 BRK instruction FFFE4h FFFE7h 2 Address match FFFE8h FFFEBh 3 Single step FFFECh FFFEFh 4 DBC FFFF4h FFFF7h Note on Returning from Stop Mode with the On chip Oscillator Clock O When this product shifts from on chip oscillator mode or on chip oscillator low power dissipation mode to stop mode it cannot be returned with an interrupt other than the NMI Interrupts with which this product cannot return Key input interrupt INT interrupt Interrupts of timers A and B Serial I O interrupt REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 97 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Access Prohibited Area O You cannot use internally reserved areas Write s
59. Xw and Xour oscillation does not occur because a package converter board is used between the evaluation MCU and the user system It is same for sub clock oscillator circuits Xcm and Xcour Evaluation MCU Figure 2 27 Circuit in which oscillation does not occur REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 47 of 108 M3062PT3 CPE User s Manual 2 Setup 2 9 2 A D Conversion Bypass Capacitors There is a foot pattern on the M3062PT2 EPBM board for mounting bypass capacitors for an A D conversion circuit near the MCU Mount suitable bypass capacitors as occasion demands Figure 2 28 shows where they are installed and the configuration of this product Front side of the M3062PT2 EPBM
60. YQPACK128RD EU not included rat Q o NQPACK128RD MCU with flash ROM etc A These corners are not round 128 pin 0 5mm pitch PLQP0128KB A foot pattern Avaiable in one package User System Figure 2 22 Connecting to a 128 pin 0 5mm pitch foot pattern A CAUTION Note on Connecting the User System O 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 Note on Connectors of the Converter Board O The connectors of the M3T F160 128NRD are guaranteed for only 50 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 43 of 108 M3062PT3 CPE User s Manual 2 Setup 2 9 Changing Settings 2 9 1 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 6 shows the clocks and their initial settings Table 2 6 Clock supply to the MCU Emulator debugger display Description Initial setting Internal Internal oscillator circuit board OSC 3 or OSC 2 External Oscillator circuit on the user system Internal Internal oscillator circuit 32 768 kHz Main Xm X our Sub Xcn X cour External Oscillator circuit on the user system 1 Using an Internal Oscillator Circuit Board 1 Kinds of Oscillator Boards The M3062PT3 CPE comes w
61. aees 41 2 8 9 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 3 oniciinnninicnnnnninnnnccnnncanncccnnnrnn nara cnn 42 2 8 10 Connecting to a 128 pin 0 5mm pitch Foot Pattern oocconnccnnicconinccnnncccnoncnn nora rnncn narrar crac 43 2 9 Changing OHIO sx a iia 44 2 01 Selecting Clock Supply cs a adie 44 2 9 2 A D Conversion Bypass Capacitors c cccccceeesceceeeeeeeeeeceeeeeceaeeeeaaeeseaeeseeeeesaaeeeeaaeseeeeeseaesesaeeneneeeeaees 48 2 9 3 Pullup of Emulation POTIS scroll e read at id 49 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 10 of 108 M3062PT3 CPE User s Manual Contents Page 3 Usage How to Use the Emulator Debugger ccccccceeeceeeeeeeeeeeeeaeeeeeeeecaaeeeeaaeedeaeeseaeeecaaeeeeaeesecaeeseaeeesaeeeeneeseaees 50 3 1 Starting Up the Emulator Debugger oococonccccnoccconocnonccccnocncnnoncnanncnnonc cnn uia aada aaia aaa ida 50 3 2 NIT Dialog BOX cuidat it ad A a aa adas devaesend 50 3 9 MGU Setting Dialog BOX cad iaa ata 54 3 4 Checking Connections of the Emulator SysteM ooonncccnccnninccnnoccccocccnnonnnn non n nono c conca rra 57 3 0ProgramiEXxeculON a a A aa 58 3 6 Hardware Breakpoint Setting WiNdO0W ococincccnnnnnnnnnccnncccnnocnn non nancccnnnn naar nn 63 3 7 TACO WINDOW tira iaa 68 3 8 RAM Monitor WindOW ooicnnccnnnnnnnnnnnncnccnccncc rra rra nnannns 73 4 Hardware Specifications oomoocnnidinnlnnnnnannnnnnnncconrcoccnccr aaie iae aa eaaa aia aaea diadan aae aidaa ida 76
62. ain 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 Electronic
63. andard See left th RD CS Chip select output hold time RD standard 4 th WR CS Chip select output hold time WR standard 4 td BCLK RD RD signal output delay time See left th BCLK RD RD signal output hold time See left td BCLK WR WR signal output delay time See left th BCLK WR WR signal output hold time See left td BCLK DB Data output delay time BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Data output hold time WR standard 4 td BCLK ALE ALE output delay time BCLK standard See left th BCLK ALE ALE output hold time BCLK standard See left td AD ALE ALE output delay time Address standard See left th ALE AD ALE output hold time Address standard See left td AD RD After address RD signal output delay time td AD WR After address WR signal output delay time tdz RD AD Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK 2 Calculated by the following formula according to the frequency of BCLK n 0 5 x10 E f BCLK 3 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK 4 Calculated by the following formula according to the frequency of BCLK 0 5x10
64. annot be change after powering on the user system the voltage detect circuit voltage down detect interrupt voltage down detect reset etc cannot be used with this product Note on Access Prohibited Area O You cannot use internally reserved areas Write signals to the areas will be ignored and values read will be undefined Notes on Stack Area O With this product a maximum 8 bytes of the interrupt 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 interrupt stack does not have enough area do not use areas which cannot be used as stack SFR area RAM area which stores data or ROM area as work area Using areas like this is a cause of user program crashes and destabilized emulator control O With this product the interrupt stack pointer ISP is set at 00500h and used as a stack area after a reset is released Notes on Reset Vector Area O Memory in the emulator main unit is always selected as a reset vector area FFFFCh FFFFFh in order to operate the evaluation MCU in the emulator dedicated mode Set the contents of the reset vector area in one of the following ways 1 Download a user program to an area including the reset vector area 2 Set the reset vector using a memory window of the emulator debugger etc O You can change data in the reset vector area only when the user program is stopped O Do not access the reset vector area as d
65. at Renesas 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 M3062PT3 CPE 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 Electromagneti
66. at in the dialog opened by menu Debug gt Debug settings Object Format Specifying the method for storing debug information There are two methods for storing debug information on memory method and an on demand method by default On Memory is selected When selecting the on demand method check the On Demand check box Cancel Help Next Hide On Memory Debugging information is stored in the internal memory of your computer This method is suitable when the load module user program size is small On Demand Debugging information is stored in a reusable temporary file on the hard disk of your computer Because the stored debugging information is reused the next time you download the same load module it can be downloaded at high speed This method is suitable when the load module user program size is large REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 52 of 108 M3062PT3 CPE User s Manual 3 Emulator tab Init M16C R8C Compact Emulator MCU Debugging Information Emulator Script Clock Main dh C External Sub Internal External 4 Script tab Init M16C R8C Compact Emulator MCU Debugging Information Emulator Script htFiej Next Hide Cancel Help Next Hide REJ10J1007 0400 Rev 4 00 July 29 2009 ztENESAS 3 Usage How to Use the Emulator Debugger Specifying the target clock Specify the clock sources supplied to the MCU main clo
67. ata It may not be accessed properly and the program may not run properly in the next bus cycle REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 88 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Accessing Addresses 00000h and 00001h O With the M16C 60 Series 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 Operating Frequency O You can not use this product with a main clock Xjy Xour less than 1MHz To use it with a main clock less than 1MHz contact your local distributor Note on Timeout Setting O If you download execute or single step a program at a low operating frequency a communication timeout error may occur Execute the command shown below in the Script Window after starting the emulator debugger Command _settimeout 300 300 Once this command is executed it remains effective the next time you start the emulator debugger Therefore you
68. booting turn off the emulator and then turn on again REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 17 of 108 M3062PT3 CPE User s Manual 1 Outline 4 Power Connector J1 This is a connector for connecting the power supply to this product For details refer to 2 4 Connecting the Power Supply for the Emulator page 24 5 USB Cable Connector J2 This is a USB cable connector for connecting the host machine to this product For details 2 5 Connecting the Host Machine page 25 6 MCU Power Supply Source Selection Jumper JP 1 This is a jumper switch to set the power supply source to the MCU For details on this switch see 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 26 7 MCU Power Supply Voltage Selection Jumper JP2 This is a jumper switch to set the power supply voltage of the MCU This setting is valid when the MCU power supply source selection jumper is set to INT only For details on this switch see 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 26 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 18 of 108 M3062PT3 CPE User s Manual 1 3 Specifications 1 Outline Tables 1 5 and 1 6 list specifications of the M3062PT3 CPE Table 1 5 M3062PT3 CPE specifications 1 2 Applicable MCUs M16C 60 Series M16C 62P and M16C 30 Series M16C 30P Groups Usable mod
69. c compatibility 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 3 of 108 M3062PT3 CPE User s Manual Preface Preface The M3062PT3 CPE is a compact emulator for the M16C Family M16C 60 Series M16C 62P Group and M16C 30 Series M16C 30P Group MCUs with the real time trace function This user s manual mainly describes specifications of the M306
70. ck 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 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 Be sure to restart the emulator debugger Page 53 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 3 MCU Setting Dialog Box The MCU Setting dialog box is used to set the user system information It is displayed after you closed the Init dialog box When you have finished the settings of 1 to 3 click OK 1 MCU tab 1 Specifying the processor mode Specifying the processor mode MCU Setting x Select the appropriate processor mode that suits your system MCU map Flas
71. cking this button opens the hardware breakpoint setup dialog box H W_ breakpoint Setting Window _in_ initial state Select the Enable H W Break check box and this break SE CONDITION 1 A1 000000 FETCH addr 000000 function will be enabled allowing you to set hardware 1 42 000000 FETCH addr 000000 breakpoints m Combination Reset Save Setting Break Event Click the event line at which you want set a break event 1 Al 000000 1 82 000000 FETCH addr 000000 Combination peta f Save REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 63 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 4 Opening the break event setting dialog box ae Specifying the event type Select the event type that you want to set from the drop Event Type HAAL X down list FETCH Fetch Detects an instruction prefetch DATA ACCESS Setting Range addr Address1 Detects a memory access Address 000000 x Address2 z y de BIT SYMBOL I Function Source File y Detects a bit access Function y ACCESS FETCH ADDRESS 000000 CONDITION faddr 000000 2 When FETCH is selected 1 Window for setting addresses Al Set Event Status Setting the address Event Type HAN You can set eight conditions e g a specified address a specified address range etc When you have f
72. cribed below Electrostatic Discharge Precautions must be taken when handling the product Must not be used within 30 meters of a domestic radio or television receiver For correct operation of this product it is recommended that Mobile phones are not used within 10 meters of this product system This product should be powered down when not in use Use the power supply which complies with CE marking requirements O This product generates uses and can radiate radio frequency energy and may cause harmful interference to radio communications O 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 Ensure attached cables do not lie across the probe board and converter board Reorient the receiving antenna Increase the distance between the product and the receiver Connect the product into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or experienced radio TV technician for help O 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 the figure and close the ferrite core until it clicks EI
73. d time WR standard 4 td BCLK ALE ALE output delay time BCLK standard See left th BCLK ALE ALE output hold time BCLK standard See left td AD ALE ALE output delay time Address standard See left th ALE AD ALE output hold time Address standard See left td AD RD After address RD signal output delay time See left td AD WR After address WR signal output delay time See left tdz RD AD Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK 2 Calculated by the following formula according to the frequency of BCLK n 0 5 x10 li 4 f BCLK 3 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK 4 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK REJ10J1007 0400 Rev 4 00 July 29 2009 Address output floating start time ns n 2 for 2 wait ns 2ENESAS Page 79 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications Read timing teyc BCLK td BCLK CS E csi Y th BCLK CS y Y i th ADi DBi td BCLK AB lt gt e ADi Vy RD CS E tsu DB RB th RD DB th BCLK AD 2 A BHE td BCLK ALE ALE f th BCLK ALE RD th R
74. displayed Normal See 5 2 3 Errors Occur at Emulator Debugger Startup Emulator debugger startup completed Figure 5 1 Flowchart to remedy the troubles REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 100 of 108 M3062PT3 CPE User s Manual 5 Troubleshooting 5 2 When the Emulator Debugger Does Not Start Up Properly 1 When the LEDs of the M3062PT3 CPE Do Not Display Normally Table 5 1 Errors LEDs show and their checkpoints Connection to the user system Checkpoint LEDs do not light up Check that the power cable is connected See 2 4 Connecting the Power Supply for the Emulator page 24 Target Status POWER LED does Connected Check that power VCC1 VCC2 and GND is properly supplied to not light up the user system Target Status CLOCK LED does Not connected 1 Check that both the main and sub clocks of the emulator not light up 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 9 1 Selecting Clock Supply page 44 Connected When the clock is supplied from an external oscillator check that the oscillator circuit in the user system is oscillating properly Target Status RESET LED does Connected Check that the reset pin of the user system is held high not go out 2 MCU Setting Dialog Box Does Not Appear at Debugger Startup Tab
75. do not need to execute this command again Tf the error still occurs in this setting contact your local distributor Notes on Pullup Control O Because this product emulates some I O ports PO to P5 P10 you can not pullup ports PO to P5 by the pullup control registers Install the included resistor arrays 51kQ as necessary O The initial value of pullup control register 1 PURI of this product is different from that of an actual MCU When a VCC level is input to pin CNVss the value of an actual MCU is 02h bit 1 PU11 is 1 while that of this product is 00h Note on Setting 1 to Protect Bit 2 PRC2 with Sub Clock O When the CPU clock is set to the sub clock low speed mode or low power dissipation mode even if you enable the PRC2 bit writing to the register protected by the PRC2 bit PD9 S3C and S4C cannot be done properly When you enable the PRC2 bit and write to the register protected by the PRC2 PD9 S3C and S4C do not set the CPU clock to the sub clock Note on Setting 1 to Protect Bit 2 PRC2 in Division by 2 Mode O Under the following conditions even if you enable the PRC2 bit writing to the register protected by the PRC2 bit PD9 S3C and S4C cannot be done properly 1 Between when stop mode is released and when a hardware reset is executed 2 Between when low power dissipation mode is enabled and when a hardware reset is executed Therefore if the condition 1 or 2 applies when you
76. duct is ready to operate Is the power supplied Check that target status LED POWER is ON Is the BCLK is oscillating Check that target status LED CLOCK is ON When the user system is not connected the target status LED POWER does not light REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 94 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Clock Supply to the MCU O 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 A clock generated by the oscillator circuit board in the emulator is supplied It is continually supplied regardless of the status of the user system clock and that of the user program execution 2 When External is selected A clock generated by the oscillator in the user system is supplied It depends on the status of the oscillation on off of the user system Note on Stop and Wait Modes O Do not single step an instruction shifting to stop or wait mode It may cause communications errors Note on Display of MCU Status O MCU status you can refer to in the MCU tab of the MCU Setting dialog box of the emulator debugger shows pin levels of the user system Make sure that proper pin levels are specified according to the mode you use 1 When single chip mode is used CNVss Low 2 When memory expansion mode 16 bit data bus width is used CNVss Low BYT
77. e Single chip mode Memory expansion mode NORMAL 4MB Microprocessor mode NORMAL 4MB ie Maximum ROM RAM capacity 1 Internal flash ROM 512KB 4KB OF000h OFFFFh 80000h FFFFFh 2 Internal RAM 31KB 00400h 07FFFh Maximum operating frequency 3 0 to 5 5 V 24 MHz when using a PLL 2 7 V 10 MHz Applicable power supply VCCI VCC2 VCCI gt VCC2 2 7 5 5V VCCI 5 0 0 2V 2 7V lt VCC2 lt VCCI User system connected 3 3 V or 5 0 V supplied from the emulator User system not connected Emulation memory External area CS3 CS0 area In the MAP tab in the MCU setting dialog box of the emulator debugger memory area assigned to the emulation memory can be allocated up to 4 areas by 4KB Maximum operating frequency at 5 0 V 0 wait 7 MHz 1 wait 20 MHz 2 wait 3 wait 24 MHz 0 wait 6 MHz 1 wait 17 MHz 24MHz Maximum operating frequency at 3 0 V 2 wait 3 wait Basic debugging functions Download Address match break max 8 points 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 20 bit address 16 bit data 12 bit MCU status 5 trace modes supported Break Before About Af
78. en developing the program for the M16C 30P Group be sure to set the initial value of the internal reserved area expansion bit PM13 to 0 in the program 2 Referring to the MCU Status Referring to the MCU Status MCU MAP Flash Clear It shows the status of each MCU pin Check it to see if the MCU MCU Setting MCU Status status matches the selected processor mode NC means that the MOU M16C 62P NMI H pin status is indeterminate Processor Mode Single Chip Mode y HOLD External Data Bus Width he e CNVss NG Memory Space Expansion fr mal Mod BYTE af Y PM13 3 of O00005H is 1 F PM10 50 of O00005H is 1 COR E Cancel Help T Do not show this dialog box again 1 When the emulation memory board ROE33062PMSRCO not included was connected MAP tab is displayed IMPORTANT Notes on Selecting a Processor Mode O The MCU status is shown in MCU Status of the MCU setting dialog box Check that it matches to the processor mode to be set O When memory expansion mode or microprocessor mode is selected check that the RDY and HOLD are H level If they are L level the emulator debugger shows an error REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 55 of 108 M3062PT3 CPE User s Manual 2 MAP tab 3 Usage How to Use the Emulator Debugger MCU Setting MCU MAP Flash Clear Emulation Memory Allocation
79. equest for repair 6 1 User Registration When you purchase our product be sure register as a user For user registration refer to User registration page 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 is being leased consult the leasing company or the owner 6 4 Repair Provisions 1 Repair with extra charge The products elapsed more than one year after purchase can be repaired with extra charge
80. ernal area REJ10J1007 0400 Rev 4 00 July 29 2009 M3062PT3 CPE User s Manual 2 Multiplex Bus Timing 4 Hardware Specifications Table 4 3 and Figure 4 2 show the bus timing in memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus Table 4 3 Memory expansion mode and microprocessor mode 2 wait accessing external area using multiplex bus td BCLK AD Address output delay time Actual MCU ns This product ns Min Max Min Max th BCLK AD Address output hold time BCLK standard See left th RD AD Address output hold time RD standard 4 th WR AD Address output hold time WR standard 4 td BCLK CS Chip select output delay time See left th BCLK CS Chip select output hold time BCLK standard See left th RD CS Chip select output hold time RD standard 4 th WR CS Chip select output hold time WR standard 4 td BCLK RD RD signal output delay time See left th BCLK RD RD signal output hold time See left td BCLK WR WR signal output delay time 28 th BCLK WR WR signal output hold time See left td BCLK DB Data output delay time BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Data output hol
81. es arising 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 th
82. ese corners are not round DM ee A 100 pin 0 5mm pitch 1 PLQP0100KB A foot pattern Vv No 1 pin Avaiable in one package User System Figure 2 19 Connecting to a 100 pin 0 5mm pitch foot pattern Part 1 A CAUTION Note on Connecting the User System Q O 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 Note on Connectors of the Converter Board O The connectors of the M3T F160 100NSD are guaranteed for only 50 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 40 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 8 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 2 Here following is a procedure of connecting to a 100 pin 0 5mm pitch foot pattern on the user system using the M3T 100LCC QSD not included For details on the M3T 100LCC QSD refer to its user s manual 1 Attach the TQPACK100SD to the user system 2 Attach the TQSOCKET100SDG included with the M3T 100LCC QSD to the TQPACK100SD 3 Attach the M3T 100LCC QSD to the TQSOCKET100SDG 4 Attach the CN2 side of the M30800T PTC to the J4 side of the M3062PT3 CPE 5 Attach the M30800T PTC to the M3T 100LCC QSD M3062PT3 CPE Lo TQSOCKET100SDG 2 TQPACK100SD PLQP0100KB A foot pattern J 100 pin 0 5mm pitch 1 No 1 pin Avaiable in one package User System
83. esults of real time Range 000166 000000 Area Before Break File Cycle 000065 Address OFO0C2 Time trace measurements It has the following three display Cycle Address Data BUS _ 000065 OFOOC2 E3A7 16b 000064 0003E2 0000 16b 000063 0003E2 0000 16b 000062 orooc4 c903 16b 000061 0003E2 c903 16b 000060 000382 0001 16b 000059 0003E3 0001 16b 000058 0003E3 0001 16b 000057 OFOOC6 EEIF 16b 000056 OFOOC6 EEIF 16b 000055 0003E3 EEIF 16b 000054 0003E3 0101 16b 000053 OroOcS F303 16b 000052 OFOOC8 F303 16b 000051 O003EE 0000 16b 000050 0003EE 0000 16b 000049 OFOOCA F272 16b 000048 OOO3EE F272 16b 0003EE 0001 16b 0 modes Bus mode Bus information per cycle can be inspected The contents are displayed in order of execution paths Disassemble mode bd The execution paths of the executed instructions can be inspected The contents are displayed in order of execution paths Source mode The execution paths of the source program can be inspected Operating buttons of the tool bar can reference the execution paths 900000000000 COFRHFOHFRFD EE PDODIDEE i D 0 1 0 1 0 a 1 1 D D 1 1 o 0 EL D 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 68 of 108 M3062PT3 CPE User
84. fications 4 Hardware Specifications This chapter describes specifications of this product 4 1 Target MCU Specifications Table 4 1 lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the M3062PT3 CPE Item Description Applicable MCU M16C 60 Series M16C 62P and M16C 30 Series M16C 30P Groups Evaluation MCU M30627FJPGP M30627FHPGP ROM size 512KB 4KB RAM size 31KB Applicable MCU mode Single chip mode Memory expansion mode NORMAL 4MB Microprocessor mode NORMAL 4MB Maximum ROM RAM capacity 1 Internal flash ROM 512 KB 4KB OFOOOh OFFFFh 80000h FFFFFh 2 Internal RAM 31KB 00400h 07FFFh VCC1 VCC2 2 7 5 5 V VCCI gt VCC2 VCCI 5 0 0 2V 2 7 V lt VCC2 lt VCCI Power supply voltage 2 7V 10MHz Emulation memory board ROE33062PMSRCO not included is necessary for a microprocessor mode and emulation memory function support REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 76 of 108 M3062PT3 CPE User s Manual 4 2 Access Timing Because this product emulates some ports access timings are different from those of the actual MCUs Chapters 4 2 1 and 4 2 2 describe the access timing using this product 4 2 1 Operation Timing of Memory Expansion Mode and Microprocessor Mode VCC 1 VCC2 5V 1 Separate Bus Timing 4 Hardware Specifications Table 4 2 and Figure 4 1 show the bus timing in memory expansion mode
85. for forever 00055 00047 ROL 4095 b 00056 Or004A ALADO 3m0h This is the signal to indicate a valid bus cycle When valid RWT 0 The Address Data and the BIU signals are effective when this signal is 0 CPU Shows the status between the CPU and BIU Bus Interface Unit Symbol Status 00057 0PDO4r jae dur afr 00058 070052 ALADO 5004 00053 070057 asc d_ur 00069 0FDOSA AJAO 3300h Non active CB Op code read in bytes RB Operand read in bytes QC Instruction queue buffer clear CW Op code read in words RW Operand read in words 00061 OPDOSP jar d ue 00062 0Fr0062 A1AD OFO00h 00063 0r0067 Jst dur oog64 oProo ea AlAQ OFSOTh 00065 ordder jae dur 00066 0r0072 AIAD OI000h 00087 0PDO77 jae d_ur lt REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 69 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 2 Suspending and resuming trace measurement 1 Suspending trace measurement Trace E Suspend rS y f a a a YV asz y Click this toolbar button to suspend the trace measurement Range lArea Before Break File 29 rammonitor a30 Cycle Address Time in progress Line Address Now Source 2 Resuming trace measurement Re Start Click this toolbar button to resume the trace measurement in progress Line Address Now Source 00099 Orooca ril 3E2h b 00100 OFOOCE ril 3E3h b
86. for the 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 applicati
87. h Clear Specifying the bus width When specifying memory expansion mode or microprocessor MOU Setting gt 7 6 U Status mode select 16 bit or 8 bit for External Data Bus Width MOU M16C 62P NM Using or not using the memory space Processor Mode Single Chip Mode v HarD H expansion function RDY Specifies whether or not to use the memory space expansion External Data Bus Width 16 bit SRE ec function when selecting memory expansion mode or Memory Space Expansic r Normal Made microprocessor mode When using the memory space expansion BYTE N function select 4MB Mode When not select Normal Mode vV PM13 b3 of OOO005H is 1 g Using or not using the internal reserved area FF PM10 50 of QO0005H is 1 expansion Specifies whether or not to expand the internal reserved area Check the box if the internal reserved area expansion bit PM13 is 1 PM13 0 Internal RAM area 00400h 03FFFh Internal ROM area D0000h FFFFFh PM13 1 Internal RAM area 00400h 07FFFh Internal ROM area 80000h FFFFFh Specifying the PM10 bit O of the address 00005h When using the CS2 Area Switch Bit PM10 as 1 check this box Specify the processor mode according to the user system 1 When the emulation memory board ROE33062PMSRCO not included was connected MAP tab is displayed IMPORTANT Notes on Selecting a Processor Mode O When setting single chip mode or
88. he power again after shutting OFF the power wait for about 10 seconds IMPORTANT Notes on Power Supply O 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 O This emulator consumes max 500mA of electrical current from the user system Please consider the capacity of the power supply of the user system O The voltage of the user system should be as follows 1 When VCC1 VCC2 power selection jumper JP1 of the M3062PT2 EPBM is set as VCCI 2 2 7 V lt VCCI VCC2 lt 5 5 V 2 When VCC1 VCC2 power selection jumper JP1 of the M3062PT2 EPBM is set as VCC1 gt 2 VCCI 5 0 0 2V 2 7 V lt VCC2 lt VCCI O Do not change user system power supply voltage after power has been activated REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 28 of 108 M3062PT3 CPE User s Manual 2 Setup 2 6 5 LED Display When the Emulator Starts Up Normally After the emulator starts up check the status of the LEDs to see whether the emulator operation is enabled or not Figure 2 8 shows the positions of the emulator status LEDs RENESAS POWER USB 1 SYSTEM System status LEDs AFE BEM COMPACT EMULATOR 0 M3062PT3 CPE __ Target status LEDs ol GY AER o gt STATUS C MADE IN JAPAN Figure 2 8 Positions
89. id BIU Cycle Address Ob3 code Label Shows the status between the BIU Bus Interface Unit 000097 OPODJD 872303 z KO 03E3H 000091 OPOD4D DOOPREO i KOH O3EBH and memory or I O 000087 orou4a 70004 A 0 0100H Symbol S 000086 00347 0B00O4 oi 04001 ROL ymbol status 000001 OFOD A A220093 o 403201 A0 Non active 000079 0r0d4D p305 0u AI 000077 0004 rs6ro0 d_vx_sfr r00n DMA Data access by other than the CPU e g by 000072 OFOOBR A7E203 2 D3E2H 000065 OPDICZ A72303 e O3E3H DMA 000062 UPDOCS CI1PREOI f 1H 02EEH INT 000053 OFroucs LE 000042 0r0052 Az000S 0500H AD IB Instruction code read by the CPU in bytes 000041 0r0055 p305 0 Al 000039 0r0057 rs7ro0 dive roop7H DB Data access by the CPU in bytes 000034 OFOIDT 903 o WOH RI 000033 0PDOD9 77938000 A 00801 R3 IW Instruction code read by the CPU in words 000025 GPDODD SA09 POOE H OrOODE 7420 POL ALADO DW Data access by the CPU in words Neg eee eee RFRwwwiwnwesei Interrupt acknowledge cycle start gt R W Shows the status of the data bus Displayed as R for Read W for Write and for 5 Trace window source display no access RWT ele amp Vo QQQ vayr By Range O00166 000000 Aras Belore Break File 29 rammoniter acd Orth 000007 Address OFO020 Time Line Address Wow Source oooso orooz MEN 383h b 00051 oro040 3BEh u 00052 00044 400h b 00053 00054
90. ignals to the areas will be ignored and values read will be undefined Note on Memory Area Expansion Function Normal Mode O When connecting the emulation memory board ROE33062PMSRCO not included and debugging in memory expansion mode or microprocessor mode with this product the emulation memory can be allocated The emulation memory can be specified up to 4 areas by 4 KB in the MAP tab of the MCU setting dialog box of the emulator debugger Each maximum operating frequency is as follows Maximum operating frequency at 5 0 V O wait 7MHz 1 wait 20MHz 2 wait 3 wait 24MHz Maximum operating frequency at 3 0 V O wait 6MHz 1 wait 17MHz 2 wait 3 wait 24MHz Note on Memory Area Expansion Function 4 MByte Mode O When connecting the emulation memory board ROE33062PMSRCO not included and using the memory area expansion function 4 Mbyte mode please note that the memory to which the evaluation MCU is connected varies depending on processor mode and debugger settings For details refer to a table below When not connecting the emulation memory board ROE33062PMSRCO the memory on the user system will be allocated to these areas Areas connected when using the memory area expansion function 4 Mbyte mode Processor mode PM13 OFS Accessed area of target MCU Banks 0 5 Bank 6 Bank 7 0 40000h 7FFFFh EXT EXT MAP 1 40000h 7FFFFh EXT EXT MAP Memory expansion mode 0 eal EXT EX
91. iler package M3T NC30WA evaluation version C compiler for M16C Series and R8C Family NC30 Assembler for M16C Series and R8C Family AS30 Integrated development environment High performance Embedded Workshop le el ele Ie le le e elole Please keep the M3062PT3 CPE s packing box and cushion material in your place for reuse at a later time when sending your product for repair or other purposes Always use these packing box and cushion material when transporting this product Tf there is any question or doubt about the packaged product contact your local distributor REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 14 of 108 M3062PT3 CPE User s Manual 1 Outline 1 2 System Configuration Figure 1 1 shows a configuration of the M3062PT3 CPE system 3 Power supply for emulator not included Power supply cable 2 USB interface cable A a 5 Power supply for user system not included 4 User system not included 6 Host machine not included 7 Package converter board not included 1 Compact emulator Figure 1 1 System configuration 1 Compact emulator M3062PT3 CPE this product This is a compact emulator for the M16C 62P and M16C 30P Groups with the real time trace functions hereafter emulator The M3062PT2 EPBM on which an evaluation MCU is mounted can be also purchased separately 2
92. 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 Check that the NQPACK etc mounted on the user system is soldered properly Check that the connector is installed properly to the user system In memory expansion mode or microprocessor mode check pins RDY and HOLD are at H level REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 102 of 108 M3062PT3 CPE 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 103 of 108 M3062PT3 CPE User s Manual 6 Maintenance and Guarantee 6 Maintenance and Guarantee This chapter describes how to maintenance repair provisions and how to r
93. ine Purpose of use of the emulator This emulator is a device to support the development of a system that uses the M16C Family M16C 60 Series M16C 62P Group and M16C 30 Series M16C 30P Group 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 product malfunction at some charge or without charge However this does not necessarily mean that Renesas Solutions Corp guarantees the renovation or the provision under any circumstances 4 This product has been developed by assuming
94. inished setting Fetch the address click OK Setting Range addr Address1 Address 000000 El Address2 y El I Function Source File Function y ACCESS FETCH ADDRESS 000000 CONDITION faddr 000000 ca REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 64 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 When DATA ACCESS is selected 1 Window for setting the address Setting the address You can set eight conditions e g a specified address a Al Set Event Status Event Type MENO y specified address range etc Address Data Setting Range addr Address1 X I Function Source File y Function y ACCESS READ ADDRESS 000000 CONDITION faddr 000000 cae 2 Window for setting data Setting data You can set two conditions e g specified data or not to Al Set Event Status Event Type Eres y compare data Address Data Setting Range data Datal y Data 1 0000 Data 2 p 000 Access 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 ACCESS READ ADDRESS 000000 CONDITION faddr 000000 data 0000 ca REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 65 of 108 M3062PT3 CPE User s Manual 3 Example Data Settings
95. ion Jumper Set the MCU power supply source selection jumper and the MCU power supply voltage selection jumper of the emulator according to conditions of use POWER USB RENESAS SYSTEM STATUS EXT 3 3V 5 0V COMPACT EMULATOR JP1 MCU power supply source selection jumper factory setting INT JP2 MCU power supply voltage selection jumper TARGET Woo factory setting 5 0V STATUS LITO MADE IN JAPAN poasg000 Figure 2 6 Jumper switch locations These are the jumper switches to select power supply to the MCU and its power voltage As shown in Table 2 2 below set the switch according to the connection to the user system Table 2 2 Setting jumper switches MCU power supply MCU power supply source selection voltage selection Description jumper JP1 jumper JP2 Connection to the user system Supplied from the emulator The MCU operating voltage is 3 3 V Not connected F Supplied from the emulator The MCU operating voltage is 5 0 V Supplied from the user system This emulator Connected Invalid consumes max 500mA of electrical current from the user system A CAUTION Q O Always shut OFF the emulator before changing the setting of the jumper switches Otherwise the internal circuit Note on Jumper Switch Settings may cause a break REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 26 of 108 M3062PT3 CPE User s Manual 2 Setup 2 6 2 VCC1 VCC2 powe
96. isi sss iivenas E E O 104 6 4 Repair PrOVISIONS cenicienta 104 6 5 How to Make Request for Repair ccccceeesceceeececeneeeeaeeeeeeeeeceaeeeeaaesaaeesaeeeceaeesgeaaesgaeeeseaeeeeaeeseaaesseneeenaes 105 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 11 of 108 M3062PT3 CPE 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 12 of 108 M3062PT3 CPE User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follows Emulator M3062PT3 CPE This means the compact emulator this product for the M16C Family M16C 60 Series M16C 62P Group and M16C 30 Series M16C 30P Group MCUs Emulator system This means an emulator system built around the
97. isplay area in the editor source window A red circle is displayed at the setting line This is rewritten to a break instruction therefore because of rewriting flash ROM program execution starts with a delay of several seconds after setting ROM area If the breakpoint you set is a software breakpoint the program stops before executing the instruction at the set breakpoint Hardware breakpoint A hardware breakpoint can be set or cleared in the hardware breakpoint setting window If the breakpoint you set is a hardware breakpoint the program stops after executing the instruction at the set breakpoint after several cycles REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 61 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 4 Executing up to the cursor position 1 Setup procedure for running the program up to the cursor position BE ax Enlarged view naaa aa er ale BG sample h8 sample_h8 EY Assembly source f B lowtvisre 5 9 C source file 2 dbscto 2 lowsree resetprec 2 sample h8c B sbrke E Download modules MENTES E Dependencies E lowsrch E sbrkh E stackscth f pragma section ResetPRG set_imask_cer 1 _INITSCTO CALL_INIT _INIT_IOLIB errno 0 srand 1 _slptr _cer 0 main CLOSEALL _CALL_END choot ys pj ntry vect 0 void PowerON_Reset void Use SIM I Remove th
98. ith an oscillator circuit board OSC 3 16MHz 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 in the emulator debugger after replacing oscillator circuit boards to change a clock supplied to an MCU REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 44 of 108 M3062PT3 CPE User s Manual 2 Setup 2 Replacing Oscillator Circuit Boards Figure 2 23 shows how to replace the oscillator circuit boards POWER USB 5 0V SYSTEM oe STATUS RENESAS comacremuLaron The oscillator circuit board of the emulator is in the lower right M3062PT3 CPE corner of the board Oscillator circuit board TARGET STATUS C 7 10 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 23 Replacing oscillator circuit boards A CAUTION Note on Replacing the Oscillator Circuit Board O O When replacing the oscillator circuit boards be sure to shut OFF the power supply Otherwise the internal circuit may cause a break REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 45 of 108 M3062PT3 CPE User s
99. 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 5 of 108 M3062PT3 CPE User s Manual Important Usage restrictions This emulator has been developed as a means of supporting system development by users Therefore do not use it as a device used for equipment embedded applications Also do not use it for developing the systems or equipment used for the following purposes either 1 Transportation and vehicular 2 Medical equipment where human life is concerned 3 Aerospace 4 Nuclear power control 5 Undersea repeater If you are considering the use of this emulator for one of the above purposes please be sure to consult your local distributor About product changes We are constantly making efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or its u
100. l a software breakpoint in the internal ROM area of an MCU during user program execution while you can set or cancel it in the internal RAM area of an MCU Note on the Watchdog Timer If the reset circuit of the user system has a watchdog timer function disable it when using the emulator Note on Protect Register O The protect is not canceled when bit 2 of protect register PRCR PRC2 which enables writing into the port P9 direction register and the SI Oi control register is changed with the below procedure 1 Step execution of an instruction setting PRC2 to 1 2 Setting a break point between an instruction setting PRC2 to 1 and a point where the port P9 direction register or the SI Oi control register is set 3 Setting PRC2 to 1 by the memory window or script window REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 96 of 108 M3062PT3 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Internal Flash ROM of the MCU O Because the number of write erase cycles of the internal flash ROM of the MCU is limited it must be replaced at the end of its service life If the following errors occur frequently when downloading a program replace the MCU board 1 Flash ROM erase error occurred ERROR 16258 2 Flash ROM verify error occurred ERROR 16259 To purchase products for replacement contact your local distributor Notes on Debugging in CPU Rewrite Mode O When you debug M16C 60 Series MC
101. le 5 2 Checkpoints of errors at debugger startup Checkpoint Communication error occurred Check that the USB cable is connected properly Data was not sent to the target See 2 5 Connecting the Host Machine page 25 Not compact emulator Check that an emulator other than the compact emulator such as PC4701 PC7501 is not selected REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 101 of 108 M3062PT3 CPE User s Manual 5 Troubleshooting 3 Errors Occur at Emulator Debugger Startup Table 5 3 Checkpoints of errors at debugger startup Checkpoint Target MCU is in the reset state Check that the reset pin of the user system is pulled up Check that the reset pin of the user system has changed from Low to High level Target MCU cannot be reset Check that pin NMI is held High In memory expansion mode or microprocessor mode check pins RDY and HOLD are at H level If the reset circuit of the user system has a watchdog timer disable the timer Check that power is properly supplied to the user system and that the user system is properly grounded Target is in HOLD state 1 In memory expansion mode or microprocessor mode check pins RDY and HOLD at H level 2 The MCU is 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
102. ly 50 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 36 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 4 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 2 Here following is a procedure of connecting to a 100 pin 0 65mm pitch foot pattern on the user system using the M3T DIRECT100S not included For details on the M3T 100LCC DMS not included and M3T DIRECT100S not included refer to each user s manual 1 Attach the M3T DIRECT100S to the user system 2 Attach the M3T 100LCC DMS to the M3T DIRECT100S 3 Attach the CN2 side of the M30800T PTC to the J4 side of the M3062PT3 CPE 4 Attach the M30800T PTC to the M3T 100LCC DMS M3062PT3 CPE CN2 side bas 3 M30800T PTC not included e M3T 100LCC DMS 4 not included Oo M3T DIRECT100S 2 not included 1 PRQP0100JB A foot pattern i 100 pin 0 65mm pitch User System Figure 2 16 Connecting to a 100 pin 0 65mm pitch foot pattern Part 2 A CAUTION Note on Connecting the User System Q O 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 O The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations O The connectors of the M3T 100LCC DMS and M3T DIRECTIOOS are guaranteed for only 20 insertion removal iterations
103. memory expansion mode the level of pin CNVSS of the MCU status should be L O When setting microprocessor mode the level of pin CNVSS of the MCU status should be H This mode can be set only when using the emulation memory board ROE33062PMSRCO O When setting memory expansion mode or microprocessor mode pins RDY and HOLD of the user system should be H O When the user system is not connected targetless following modes are available Cancel T Do not show this dialdsbox again 1 When not using the emulation memory board single chip mode and memory expansion mode are available 2 When using the emulation memory board all modes are available REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 54 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger IMPORTANT Notes on Debugging M16C 30P Group MCUs O When debugging the M16C 30P Group MCUs be sure to deselect the box of the internal reserved area expansion bit PM13 then start the emulator debugger O The M16C 62P Groups MCUs are used as an evaluation MCU for this product An initial value of the internal reserved area expansion bit PM13 for the M16C 62P Group is different from that of for the M16C 30P Group 1 An initial value of the internal reserved area expansion bit PM13 for the M16C 62P Group 1 2 An initial value of the internal reserved area expansion bit PM13 for the M16C 30P Group 0 O Wh
104. mory Setting Realtime trace Write Condition Mode I p Start End oa 8 A range of cycles from when the specified Start event occurred to when the specified Start event became nonexistent Carcel NAME A range of cycles from when the specified Start event Only the cycle in which the specified Start event occurred occurred to when the specified End event occurred REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 72 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 8 RAM Monitor Window 1 RAM monitor window 1 Opening the RAM monitor window RAM monitor Clicking this button opens the RAM monitor window Or you can select RAM monitor from CPU of Display menu for the same effect 2 RAM monitor window RAM monitor window AT This window shows changes of memory contents while the BBB 1 ums 6 1040 8 2 abe dem de de t oa user program is executed This is accomplished by using the _100ms Label Register 0 1 42 4 3 4 5 46 4 7 8 9 A B C 0 E Fia l x N 200000 FB SB USP J real time RAM monitor function and the memory contents 000020 000030 corresponding to the RAM monitor area are displayed in 000050 x 000060 dump form The memory contents displayed here are 000070 e updated at given intervals by default every 100 ms during 000040 000080 aba aa user program execution 000000 0000 0 0000FO 000100 000110 000120 0
105. ms switch the session The session can be changed by the drop down list of the tool bar shown below Hi DefaultS ession 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 M16C Compact Emulator select SessionM16C_R8C_Compact_Emulator 3 2 INIT Dialog Box After specifying the session an Init dialog box to connect the target is displayed 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 When the tab settings of 1 to 4 are completed click OK button 1 MCU tab 1 Specifying the MCU file impact Emulator Specifying the MCU file MCU Debugging Information Emulator Script Click the Refer button A Select MCU File dialog box will be displayed so select the MCU file M16C62P_512 mcu for the target MCU MGU M16C62P_512 mcu The MCU file contains the information specific to the target MCU i 2 M3062P 5GM001 iba The MCU file you have selected is displayed in the MCU TT Self Check section of the MCU tab r Debug Option x IV Enable the Address Match Interrupt Break Function M Debug the program using the CPU Rewrite Mode Enable the Trace Point Function a Cancel Help Serial No
106. n ON OFF the power of the emulator and user system as simultaneously as possible O Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged O When turning on the power again after shutting off the power wait about 10 seconds Cautions to Be Taken for Handling This Product O Use caution when handling the main unit Be careful not to apply a mechanical shock O 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 O 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 on the emulator upper panel 2 If normal operation is not restored after step 1 shut OFF the emulator once and then reactivate it REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 9 of 108 M3062PT3 CPE User s Manual Contents Contents Page Regulatory Gompliance NotiCES c cocina id iia aia 3 Elo E AE E A E T A dtiesdhsadit dened EI E E E EE T E A E E E 4 Important aa ET A E 5 Precautions for Safety sousun unated a ea ie ia ade adia ia aa Ai 7 CONOS e E E a a 10 User REGIST ALON
107. nector specifications Figure 2 4 Applicable plug specifications A CAUTION Notes on Connecting a Power Supply of the Emulator O The power cable included in this product package is colored red and black O Be careful about the polarity of the power supply Connecting to the wrong electrode could destroy internal circuits O 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 O Use the power supply which complies with CE marking requirements REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 24 of 108 M3062PT3 CPE User s Manual 2 Setup 2 5 Connecting the Host Machine Connect the emulator and the host machine with the USB interface cable Connect the USB interface cable included to the USB interface connector J2 and the USB port of the host machine see Figure 2 5 To emulator powe supply To host machine Connect the USB interface cable to connector J2 Connect the power cable to connector J1 1 lt ENESAS SYSTEM STATUS COMPACT EMULATOR M3062PT3 CPE TARGET STATUS OTM d MADE IN JAPAN Figure 2 5 Connecting the emulator system REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 25 of 108 M3062PT3 CPE User s Manual 2 Setup 2 6 Turning ON the Power 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Select
108. nesas 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 eq
109. nterface USB 1 1 full speed 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 1 Windows is either a registered trademark or trademark of Microsoft Corporation in the United States and other countries 2 Available to connect the host machine that supports USB 2 0 With the USB interface not all hardware such as host machine USB devices USB hub combination will work and guaranteed REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 21 of 108 M3062PT3 CPE User s Manual 2 Setup 2 Setup This chapter describes the preparation for using this product the procedure for starting up the emulator and how to change settings 2 1 Flowchart of Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2 1 For details refer to each section hereafter And when the emulator does not start up normally refer to 5 Troubleshooting page 100 Check the package components User registration Install the included software Set the MCU power voltage selection jumper JP2 Connect the USB interface cable Connect the power supply for the emulator Connect the user system Turning on the power supply Check the LED display of the emulator l Start up the emulator debugger from
110. ock may occur if this product is disassembled and modified Disassembling and modifying the product will void your warranty O Make sure nothing falls into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Installation o O Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling SS water or some other liquid into the product may cause unrepairable damage Warning for Use Environment O 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 8 of 108 M30290T2 CPE User s Manual Precautions for Safety A CAUTION Notes on Connecting the Power Supply of the Emulator O Do not use any power cable other than the one that is included with the product O 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 O 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 O Tur
111. on and 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 damag
112. ong direction It may cause a fatal damage to the emulator and user system NQPACK YQPACK YQSOCKET YQ GUIDE HQPACK TQPACK and TQSOCKET are trademarks of Tokyo Eletech Corporation REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 33 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 1 Connecting to an 80 pin 0 65mm pitch Foot Pattern Here following is a procedure of connecting to an 80 pin 0 65mm pitch foot pattern on the user system using the M3062PT SOFPB not included For details on the M3062PT 80FPB not included refer to its user s manual 1 Attach the NQPACKO80SB included with the M3062PT 80FPB to the user system 2 Attach the YQPACKO80SB included with the M3062PT 80FPB to the NQPACKO80SB and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3062PT 80FPB to the J4 side of the M3062PT3 CPE 4 Attach the M3062PT 80FPB to the YQPACKO80SB M3062PT3 CPE CN2 side 3 ub M3062PT 80FPB not included Evaluation with actual MCU f gt l 4 e HQPACK080SB YQ GUIDE X4 not included i ti ll YQPACKO80SB a Y A hi it A A i o 2 NQPACKOBOSB MCU with flash These corners are not round ROM etc 4 80 pin 0 65mm pitch 1 PRQPO080JA A foot pattern Available in one package User System Figure 2 13 Connecting to an 80 pin 0 65mm pitch foot pattern A CAUTION Note on Connecting the User System Q Take care not to attach a
113. ossible 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 M 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 means WARNING or CAUTION S AN CAUTION AGAINST AN ELECTRIC SHOCK means PROHIBITION cas oisassemecy PROHIBITED means A FORCIBLE ACTION ae unrtue THE POWER CABLE FROM THE RECEPTACLE REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 7 of 108 M30290T2 CPE User s Manual Precautions for Safety Z WARNING Warnings for AC Power Supply If the attached AC power cable does not fit the receptacle do not alter the AC power cable and do not plug it forcibly Failure to com
114. output hold time BCLK standard See left td BCLK ALE ALE signal output delay time See left th BCLK ALE ALE signal output hold time See left td BCLK RD RD signal output delay time See left th BCLK RD RD signal output hold time See left td BCLK WR WR signal output delay time See left th BCLK WR WR signal output hold time See left td BCLK DB Data output delay time BCLK standard See left th BCLK DB Data output hold time BCLK standard See left td DB WR Data output delay time WR standard See left th WR DB Calculated by the following formula according to the frequency of BCLK n 0 5 x10 f BCLK 2 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK 3 Calculated by the following formula according to the frequency of BCLK 0 5x10 f BCLK REJ10J1007 0400 Rev 4 00 July 29 2009 ns Data output hold time WR standard ns n 3 for 3 wait 2ENESAS 3 Page 82 of 108 4 Hardware Specifications M3062PT3 CPE User s Manual Read timing th BCLK RD th RD DB A gt B A A es ee ALE RD DBi Write timing 5 7g ai che aa Se fe S a toc y 2 x Q a a x a oc o a a Zz 2 2 a gt On pct Ep gt zf A T m EE A A A A A A A 9 q Y x sc 3
115. pecify whether or not to use the address match break function To use the address match break function default select the check box In this case the address match interrupt is used by the emulator and cannot be used in the user program When not using the address match break function deselect the check box check mark cleared In this case the address match interrupt can be used in the user program This option can be selected or deselected only when you are starting up the emulator debugger Using or not using CPU rewrite mode Specify whether or not to debug in CPU rewrite mode To debug the user system 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 Execution of COME in the internal ROM area 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 func
116. ply may cause electric shock and or fire O Use an AC power cable which complies with the safety standard of the country O Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock O 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 O If other equipment is connected to the same branch circuit care should be taken not to overload the circuit O Use the power supply which complies with CE marking requirements O O When installing this equipment insure that a reliable ground connection is maintained O 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 O 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 O Do not disassemble or modify this product Personal injury due to electric sh
117. r selection jumper Jumper of the M3062PT2 EPBM Set the VCC1 VCC2 power selection jumper of the M3062PT2 EPBM according to conditions of use Figure 2 7 shows the position of the VCC1 VCC2 power selection jumper and Table 2 3 lists the switch settings of the VCCI VCC2 power selection jumper RENESAS POWER USB SYSTEM STATUS COMPACT EMULATOR om M3062PT3 CPE __ TARGET o iamnm STATUS C MADE IN JAPAN M3062PT2 EPBM VCC1 VCC2 power selection Jumper Figure 2 7 Jumper switch locations Table 2 3 Setting jumper switches Setting eN 2 7 V lt VCC1 VCC2 lt 5 5 V VCCI VCC2 power Factory settings selection jumper VCCI 5 0 0 2V and veci 2 ER 27y lt VCC2 lt VCCI A CAUTION Q O Always shut OFF the emulator before changing the setting of the jumper switches Otherwise the internal circuit Note on Jumper Switch Settings may cause a break REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 27 of 108 M3062PT3 CPE User s Manual 2 Setup 2 6 3 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 6 4 Turning ON OFF the Power Turn ON OFF the power of the emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning ON t
118. re guaranteed for only 20 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 38 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 6 Connecting to a 100 pin 0 65mm pitch Foot Pattern Part 4 Here following is a procedure of connecting to a 100 pin 0 65mm pitch foot pattern on the user system using the M3T FLX 100NRB not included For details on the M3T 100LCC DMS not included and M3T FLX 100NRB not included refer to each user s manual 1 Attach the NQPACK100RB included with the M3T FLX 100NRB to the user system 2 Attach the YQPACKIOORB included with M3T FLX 100NRB to the NQPACKIOORB and secure it with the YQ GUIDES 3 Attach the M3T FLX 100NRB to the YOPACKI00RB 4 Attach the M3T 100LCC DMS to the M3T FLX 100NRB 5 Attach the CN2 side of the M30800T PTC to the J4 side of the M3062PT3 CPE 6 Attach the M30800T PTC to the M3T 100LCC DMS M3062PT3 CPE E A side 5 i y M30800T PTC not included M3T 100LCC DMS not included M3T FLX 100NRB not included Evaluation with I lt gt actual MCU YQ GUIDE X4 SA HOPACKT00RB168 not included 3 b ii f yarackioone OORB MCU with flash ROM etc These corners are not round 100 pin 0 65mm pitch PRQP0100JB A foot pattern Avaiable in one package User System Figure 2 18 Connecting to a 100 pin 0 65mm pitch foot pa
119. s 000515 0300 FFOO WRITE Page 66 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 4 Setting the hardware breakpoint combinatorial condition 1 Window for setting the combinatorial condition HAN Break Points Setting Setting the combinatorial condition There are following three conditions that you can choose for the combinatorial condition Al 000000 FETCH addr 000000 OR A2 000000 FETCH addr 000000 The program breaks when one of the specified events occurs 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 For each event a pass count number of passing is specifiable 1 255 When AND same time is specified for Combination you can not specify the pass count fixed to one When you have finished setting the combinatorial event condition click the Set button REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 67 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 7 Trace Window 1 Trace window 1 Opening the trace window Trace window Clicking this button opens the trace window Or you can select Trace from Trace of Display menu for the same effect Trace window a Trace window eV slaaalviazszingv The trace window is used to show the r
120. s 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 ENESAS C 7 D me 7 lt D D M3062PT3 CPE User s Manual Compact Emulator for M16C 62P M16C 30P Groups R Electroni enesas saa Rev 4 00 2009 07 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
121. ser 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 6 of 108 M30290T2 CPE User s Manual Precautions for Safety Precautions for Safety Definitions of Signal Words In both the user s manual and on the product itself several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons or damage to your properties This chapter describes the precautions which should be taken in order to use this product safely and properly Be sure to read this chapter before using this product This symbol represents a warning about safety It is used to arouse caution about a potential AN danger that will possibly inflict an injury on persons To avoid a p
122. ter 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 Emulation memory board ROE33062PMSRCO not included is necessary for a microprocessor mode and emulation memory function support 2 The hardware break function and trace point setting of the real time trace function cannot be used simultaneously REJ10J1007 0400 Rev 4 00 July 29 2009 2ENESAS Page 19 of 108 M3062PT3 CPE User s Manual 1 Outline Table 1 6 M3062PT3 CPE specifications 2 2 Connection to user system see 2 8 Connecting the User System on page 33 For 80 pin 0 65mm pitch QFP PRQPOO80JA A Previous code 80P6S A M3062PT 80FPB not included For 100 pin LCC socket M30800T PTC not included IC61 1004 051 not included For 100 pin 0 65mm pitch QFP PRQPO100JB A Previous code 100P6S A 1 M3T F160 100NRB not included 2 M30800T PTC not included M3T 100LCC DMS not included M3T DIRECT100S not included 3 M30800T PTC not included M3T 100LCC DMS not included M3T DUMMY 100S not included 4 M30800T PTC not included M3T 100LCC DMS not included M3T FLX 100NRB not included For 100 pin 0 5mm pitch LQFP PLQPO100KB A Previous code 100P6Q A
123. tion The hardware break function is disabled Page 51 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 5 Executing the self check omoact Emulate Executing the self check Enable this function when you want the emulator to be self MCU Debugging Information Emulator Script checked at startup Be sure to select the check box only MCU M16C62P_512 mcu Refer 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 Serial No 2 M3062P 5GM001 purchased When you successfully download the firmware but fail Self Check to start up the emulator Debug Option IV Enable the Address Match Interrupt Break Function Debug the program using the CPU Rewrite Mode operating normally because for example the MCU runs Enable the Trace Point Function out of control or something is wrong with the trace lt i Cancel Help O This function can be enabled only when you are starting up T Do not show this dialog box again When you want to confirm whether the emulator is the emulator debugger 2 Debugging Information tab Specifying the compiler used and the object format Init M16C R8C Compact Emulator Debugging Information i se Emulate Senet Displays the compiler used and its object format Compiler Please specify the compiler used and its form
124. ttern Part 4 A CAUTION Note on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system IMPORTANT Notes on Connectors of the Converter Board O The connectors of the M30800T PTC are guaranteed for only 50 insertion removal iterations O The connectors of the M3T 100LCC DMS and M3T FLX 100NRB are guaranteed for only 20 insertion removal iterations REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 39 of 108 M3062PT3 CPE User s Manual 2 Setup 2 8 7 Connecting to a 100 pin 0 5mm pitch Foot Pattern Part 1 Here following is a procedure of connecting to a 100 pin 0 5mm pitch foot pattern on the user system using the M3T F160 100NSD not included For details on the M3T F160 100NSD refer to its user s manual 1 Attach the NQPACK100SD ND included with the M3T F160 100NSD to the user system 2 Attach the YQPACK100SD included with the M3T F160 100NSD to the NQPACKI00SD ND and secure it with the YQ GUIDE s 3 Attach the CN2 side of the M3T F160 100NSD to the J4 side of the M3062PT3 CPE 4 Attach the M3T F160 100NSD to the YQPACKI00SD M3062PT3 CPE thy e CN2 side 3 M3T F160 100NSD not included Evaluation with actual Z lt gt 4 e 7 HQPACK100SD S not included l YQPACK100SD J Gi fia itl 2 lt o eee 2 NQPACK100SD ND MCU with flash Th
125. tting 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 FFh The MCU s internal flash ROM is listed in block units The option you have specified here remains effective the next time you start up Any block which has had its check box selected is not cleared when downloading The memory content of this block remains intact unless overwritten by downloading Any block which has had its check box deselected is cleared when downloading Click the Select All button and all blocks will be selected marked by a check mark so that none of the blocks is cleared when downloading Click the Clear All button and all blocks will be deselected check marks removed so that all of them are cleared when downloading REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 56 of 108 M3062PT3 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 4 Checking Connections of the Emulator System ea AA medi BEA A mi IAA JOEA Sa Sel ES AAA EEES Checking connections of the emulator system When the emulator debugger is connected correctly to the emulator after you have 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 Ae
126. uipment 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 cert
127. ur 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 REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 105 of 108 M3062PT3 CPE User s Manual 6 Maintenance and Guarantee This page is blank REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 106 of 108 Compact Emulator for M16C 62P M16C 30P Groups M3062PT3 CPE User s Manual Publication Date Jul 29 2009 Rev 4 00 Sales Strategic Planning Div Eublishes by Renesas Technology Corp Edited by Microcomputer Tool Development Department Renesas Solutions Corp 2009 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan M3062PT3 CPE User s Manual ENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J1007 0400 T
128. 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 which technical support will be provided by e mail 2 3 Attaching 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 2 and close the ferrite core until it clicks Figure 2 2 Attaching the ferrite core REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 23 of 108 M3062PT3 CPE User s Manual 2 Setup 2 4 Connecting the Power Supply for the Emulator Connect the power supply for the emulator to the power connector J1 The specification of the power supply for the emulator is listed in Table 2 1 Table 2 1 Specification of power supply of the emulator Power supply voltage DC 5 0 V 5 2 A Figures 2 3 and 2 4 show the specifications of the power connector J1 and an applicable plug respectively 1 7mm Inside diameter Electrode Electrode Rom To 4 75Mm Figure 2 3 Power con
129. x of the internal reserved area expansion bit PM13 then start the emulator debugger O The M16C 62P Groups MCUs are used as an evaluation MCU for this product An initial value of the internal reserved area expansion bit PM13 for the M16C 62P Group is different from that of for the M16C 30P Group 1 An initial value of the internal reserved area expansion bit PM13 for the M16C 62P Group 1 2 An initial value of the internal reserved area expansion bit PM13 for the M16C 30P Group 0 O When developing the program for the M16C 30P Group be sure to set the initial value of the internal reserved area expansion bit PM13 to 0 in the program Note on Final Evaluation O Be sure to evaluate your system with an evaluation MCU Before starting mask production evaluate your system and make final confirmation with a CS Commercial Sample version MCU REJ10J1007 0400 Rev 4 00 July 29 2009 RENESAS Page 90 of 108 M3062PT3 CPE User s Manual 4 4 Connection Diagram 4 Hardware Specifications Figure 4 7 shows a part of the connection diagram of the M3062PT3 CPE This connection diagram mainly shows the interface section The circuits not connected to the user system such as the emulator s control system are omitted The signals not shown in Figure 4 7 connect the evaluation MCU and the user system directly Tables 4 8 and 4 9 show IC electric characteristics of this product for reference purposes IC20 P67 P60

Download Pdf Manuals

image

Related Search

Related Contents

4 Channel Surveillance System Manual    user manual - Samsung Service  InLab 3D Operator`s Manual  Serie 19P & 19T - Apex Power Tools  導入事例集 - 診療予約システム『診療予約2015』  Database CMS 4000 Versione 5 Manuale Utente  Frigidaire FFID2423RS Wiring diagram  Contents  

Copyright © All rights reserved.
Failed to retrieve file