Home

M30850T2-CPE User`s Manual

image

Contents

1. cccccescccsesecceeecceeseeceececeuececeuecesaseeesaueesaeessaeceneuecesageessaseeeneaeeeneaess 86 Notes on Debugging in CPU Rewrite MOde cccccecccceseeeeeseeeeeesaeeeeeeaeeeeeeeaseeesaeeeeeeseeeeseaseeessaeseesesaeeees 87 NOC OM ONW E BICAK eo ES E E E E E T sees 87 Note on Downloading Programs ccccceecceceeeeeceeeeceeeeeseeeesaeeeeseeeeseaeeeseueessaeeessaeessaeeeseeeeesaeeesseseeessaeeesaeees 87 Notes on Service Life of the MCU s Internal Flash ROM ccccccccccssececeseeeceeeeeseeeeseeeeeseeeesaeeessneeeseaees 87 Note on Voltage Detect Circul canes cmtias seecsmnccenbedaase aacctyamimidedatnt aa a Riia E sae noua EAA aeai 87 Note on Protect Register ictal secs tla wwe avn ced EEA E E AERA 88 Note on Mamoy ACCESS sereoo aneen a eee AeA tai desenacuetdemaaminnusaniensindsliens 88 Notes on A D CONVEISI ON osu sessions cecaannceuics odes doee encdciteaenn seddvenmsaucteimes datidbionas seuasnnlouicncded doe wncdalaatanieesassiddeeandauua es 88 Notes on CE Declaration of Conformity cccccccccecseeeeeeeeeeeeeseeeceeeeeeeeeeeseeeeseeeeesaeaeeesseaeeeseeeeeessageeeesaaeeees 89 5 Troubleshooting ce tcc ce tc lenis R A EA coms dese he gaia esses vag cee EER tessa 90 5 1 Flowchart to Remedy the Troubles ccccccccsscccssseeceeseeceeececeuecessueeeeeeesaeeeeeeeeseeeeseueessaseessaeeensuesensgeeens 90 5 2 When the Emulator Debugger Does Not Start Up Properly ccc cececeeeceeceeeeeeeaeeee
2. O O O LED3 LED4 LED5 LED6 2 Check that the SAFE LED starts POWER CLOCK RESET RUN POWER SAFE blinking then press the system reset mmm Tt e IIl l LED3 LED4 LED5 LED6 LED2 Self check starts POWER CLOCK RESET RUN POWER SAFE II l A pti II I II I 3 Target status LEDs start blinking at random intervals I l C E II lIl l LED3 LED4 LED5 LED6 LED1 LED2 It takes 10 seconds at XIN 32 MHz Blinking OFF lt SAFE LED status Normal Error POWER CLOCK RESET RUN POWER SAFE POWER CLOCK RESET RUN POWER SAFE I I I I I I I I I m E O E O l E O a LED 3 LED 4 LED 5 LED 6 LED 1 LED 2 LED4 LEDS LED6 LED1 LED2 SAFE LED is turned off and one or more target status LEDs start blinking according to the error type LED display Blinking Figure 2 10 LED display during the self check REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 28 of 98 M30850T2 CPE User s Manual 2 Setup 2 2 lf an Error is Detected in the Self check Table 2 4 lists how to remedy the troubles if the target status LED display is abnormal in the self check When an error is detected shut off the emulator and the user system and follow the steps in the Table 2 4 Table 2 4 Error display in the self check and how to remedy it LED display E Problem amp Remedy Blinking e ete soe nfl The emulator system is not working properly cm mm mm fc Check that power is supplied to the emulator The em
3. emulator debugger cannot receive the signal from the MCU an error is displayed REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 56 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 2 Emulation Memory tab 1 Setting the Bank Address of the Debug Monitor Setting the Bank Address of the Debug Statue Emulation Memory Flash Clear Monitor Eeue Manton Bank adi The debug monitor uses contiguous 64 KB as a work area of oS fen the emulator Specify the bank address of the debug monitor e g If EO is specified 64 KB area from D00000H address is used by the debug monitor Cansel Help Next Hide REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 57 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 Flash Clear tab 1 Setting to clear the MCU s internal flash ROM Status Emulation Memory Flash Clear Flash ROM Block The selected blocks are over written not erace on download Cansel Help C Next Hide REJ10J0865 0300 Rev 3 00 December 16 2005 2 CENESAS Setting to clear the MCU s internal flash ROM Specify whether or not you want the MCU s internal flash ROM to be cleared when downloading the user program or oOFO00 OOFFFF nm data Wh leared th tent of the flash ROM F80000 F8FFFF Select All a a a a ee s Foooog FOFFFF initialized to OxFF The MCU s internal flash ROM is Clear All FAQOUO FAFFFF listed in block unit
4. Hardwaresetuel li 7i Remove th set_imask_cer 0 maini _CLOSEALL CALL ENDI FF Remove th alasalf la La REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 62 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 4 Hardware Breakpoint Setting Window 1 Breakpoint setup dialog box 1 Opening the hardware breakpoint setup dialog box Hardware Break Point Clicking this button opens the hardware breakpoint setup dialog box 2 Hardware Break Point Setting Window in initial state H W_ breakpoint Setting Window_in_ initial state Select the Enable H W Break check box and this break fytH W Break Point Setting Window CONDITION function will be enabled allowing you to set hardware 1 41 000000 FETCH addr 000000 1 z 000000 FETCH addr 000000 breakpoints Combination PID AND Detail P Enable Detail Reset Dave Load Set Glose 3 Opening the break event setting dialog box Setting Break Event Click the event line at which you want set a break event MHW Break Point Setting Window Pass E ADORE ACCE CONDITION e 1 l 000000 FETCH addr 000000 O 1 A2 O00000 FETCH fadd 000000 Combination FID AND Detail Enable Detail Reset Save Load Set Close REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 63 of 98 M
5. 5 0V POWER SYSTEM SAFE STATUS C O JP2 MCU Power Supply Voltage Selection Jumper COMPACT EMULATOR M30850T2 CPE MCU Power Supply Source Selection Jumper SW5 A D converter bit selection switch RENESAS MADE IN JAPAN i SW1 p pno W2 H SW3 5 aT U AVSS E T NT P87 Bn VCONT P8 JP1 SW VIDDIO AVCC AVSS Figure 2 20 Positions of the switches REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 39 of 98 M30850T2 CPE User s Manual 2 Setup 1
6. MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper These are the jumper switches to select power supply to the MCU and its power voltage As shown in Table 2 5 below set the switch according to the connection to the user system Table 2 5 Setting jumper switches M Comeon MCU power supply CU power supp y E Peur Nei source selection voltage selection Description jumper JP1 jumper JP2 Supplied from the emulator The MCU operating Not connected INT voltage EEA Supplied from the emulator The MCU operating 5 0 V l voltage is 5 0 V Supplied from the user system This emulator Invalid consumes max 500 mA of electrical current from the user system CAUTION Note on Setting Jumper Switches Always shut OFF the emulator before changing the setting of the jumper switches and connecting the cable Otherwise the internal circuit may cause a break When the MCU power supply source selection jumper and MCU power supply voltage selection jumper are set to INT and 5 0 V respectively the selection jumper JP1 on the M30850T2 EPBM must be set as VCC1 VCC2 side REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 40 of 98 M30850T2 CPE User s Manual 2 Setup 2 Setting JP1 SW1 to SW4 on the M30850T2 EPBM JP1 SW1 to SW4 of the M30850T2 EPBM are on the emulator side panel Table 2 6 shows the settings of JP1 SW1 to SW4 on the M30850T2 EPBM Table 2 6 Switch settings of the M30850T2 EPBM
7. assumes no responsibility for any damage or infringement of any third party s rights originating in the use of any product data diagrams charts programs algorithms or circuit application examples contained in these materials All information contained in these materials including product data diagrams charts pro grams and algorithms represents information on products at the time of publication of these materials and are subject to change by Renesas Technology Corp without notice due to product improvements or other reasons It is therefore recommended that customers contact Renesas Technology Corp or an authorized Renesas Technology Corp product distributor for the latest product information before purchasing a product listed herein The information described here may contain technical inaccuracies or typographical errors Renesas Technology Corp assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to information published by Renesas Technology Corp by various means including the Renesas Technology Corp Semiconductor home page http www renesas com When using any or all of the information contained in these materials including product data diagrams charts programs and algorithms please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products Renesas Techn
8. 2 GND J1 1 VCC X 1 5 08 mm pitch 2 pin oscillator X2 2 54 mm pitch 2 pin oscillator IC 1 Inverter Unbuffer X3 2 54 mm pitch 3 pin oscillator Figure 2 23 Circuits of the oscillator circuit bare board OSC 2 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 46 of 98 M30850T2 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 24 in the user system and input the oscillator output at 50 duty within the operating range of the evaluation MCU into pin Xw And pin Xour should be open Choose External in the emulator debugger to use this clock Evaluation MCU Oscillator Oscillation output circuit Figure 2 24 External oscillator circuit Make note that in the oscillator circuit shown in Figure 2 25 where a resonator is connected between pins Xw and Xour oscillation does not occur because a converter board and other devices are used between the evaluation MCU and the user system It is same for sub clock oscillator circuits Xcm and Xcourt Evaluation MCU Figure 2 25 Circuit in which oscillation does not occur REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 47 of 98 M30850T2 CPE User s Manual 2 Setup 2 9 3 A D Conversion Bypass Capacitors There is a foot pattern on the M30850T2 EPBM board for mounting bypass capacitors for an A D conversion circuit near the MCU Mou
9. 99B58F8 ADD W 8H FB R0 Read words ML on 000680 FE0197 C9IQE EXTS W RO INT 000678 FEO199 884102 SHLNC L 2H RZRO 000674 FE019 998208 ADD L 8H FB R2RO 000670 FEOQ19F 7FFE MOV W 2H FB R1 RB Read bytes 000667 FEO1A1 CODE EXTS W R1 000665 FEO1a3 C1B3 MOV L R3R1 A0 WB Write bytes 000663 FE0145 804102 SHLNC L 2H A0 000659 FE01A8 918208 ADD L 8H FB A0 DRB Read bytes by DMA 000655 FEO1AB C1E3 Moy L RZRO0 Al1 000653 FEO1AD 8111 CMP L A1 AQ Write bytes by DMA 000647 FEOIAF EB45 FEOIF5H 000643 FEOIFS 93F8F8FC W SH FB 4H FB RW Read words 000639 FEO1F9 BB85 B FEO17FH 000636 FEO17F 77FCOA00 W 000AH 4H FB B WW Write words b DRW Read words by DMA DWW Write words by DMA R W Shows the status of the data bus Interrupt acknowledge cycle Source display Displayed as R for Read W for Write and for no access eVal Q aQQvayz ny Range 065535 000000 Area Before Break File sortc Cycle 000691 Address FE018C Time Line Address Now Source This is the signal to indicate a valid bus cycle When 00023 sort long a 00024 FEOISE valid RWT 0 The Address Data and the BIU signals 00025 long t i e 00026 int i 4 k gap are effective when this signal is 0 00027 00028 FEO162 gap 5 CPU 00029 FE0165 while gap gt 0 00020 FEO16D fori k 0 k lt gap k Shows
10. COMPACT EMULATOR M30850T2 CPE INT 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 TEET E MCU power supply MCU power supply Ea keuren source selection voltage selection Description 7 jumper JP1 jumper JP2 Supplied from the emulator The MCU operating Not connected INT voles CECAT Supplied from the emulator The MCU operating 5 0 V voltage is 5 0 V Supplied from the user system This emulator Connected Invalid consumes max 500 mA of electrical current from the user system Note on Jumper Switch Settings Always shut OFF the emulator before changing the setting of the jumper switches and connecting the cable Otherwise the internal circuit may cause a break CAUTION When the MCU power supply source selection jumper and MCU power supply voltage selection jumper are set to INT and 5 0 V respectively the selection jumper JP1 on the M30850T2 EPBM must be set as VCC1 VCC2 side REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 24 of 98 M30850T2 CPE User s Manual 2 Setup 2 6 2 Checking Connections of the Emulator System Before turning the power ON check the connection of the interface cable to the host machine emulator and user system 2 6 3 Turning ON OFF the Power Turn ON OFF the power of th
11. Clicking the Refer button brings up a file selection M Resume dialog box The script file you have selected is displayed in the Init File section of the dialog box shown here If you do AutoDownLoad 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 Cansel Help T Next Hide 2 Restoring the last window state Restoring the last window state x To restore the window state window position and window size in which you last closed the debugger select the Resume check box This check box is by default hit File Refer selected MEL Debugging Information Emulator Resume M PEsume Downloading the load module again qG utoDownLoad To download the load module user program again select the AutoDownLoad check box This check box is by default deselected Cansel Help 7 Next Hide REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 54 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 2 Starting Up the Emulator Debugger EMEM Dialog Box 1 STATUS tab 1 Specifying the processor mode Specifying the processor mode Select the appropriate processor mode that suits yo
12. Corp and Renesas Solutions Corp All rights reserved Printed in Japan M30850T2 CPE User s Manual CENESAS Renesas Electronics Corporation 1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan REJ10J0865 0300 T
13. JP1 SW1 to SW4 Setting 2 3 0 V lt VCCI VCC2 lt 5 5 V VU VCC1 VCC1 gt 2 JP1 VDDIO Factory setting A 4 8 V lt VCCI lt 5 2 V and 3 3 V lt VCC2 lt VCCI AVCC Connects pins AVCC and A VSS of the MCU to the user system AVSS EXT INT AVCC Factory setti ry setting ee AVSS Connects pin AVCC of the MCU to the internal power supply of the wee emulator and connects pin AVSS to the GND in the emulator Connects pin P87 of the MCU to the user system P87 XCIN VCONT Factory setting SW2 P87 Connects pin P87 of the MCU to the sub clock oscillator circuit P87 XCIN VCONT 32 768 kHz Do not set to VCONT a a OM Pin P87 is disconnected Connects pin P86 of the MCU to the user system P86 NC VSS Factory setting SW3 Does not connect pin P86 of the MCU Do not set to VSS Connects pin P86 to the VSS in the emulation probe Does not connect pin XOUT of the MCU NC XOUT Sw4 Factory setting Connects pin XOUT of the MCU to the user system This JP1 is not the MCU Power Supply Source Selection Jumper JP1 on the upper side of the emulator Be careful about the direction when connecting REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Pag
14. 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 8 when the user system is not connected and as shown in Figure 2 9 when a user system is connected After turning on the power only the LEDS RESET lights on Check the target status LEDs display normally after starting up the emulator debugger When the target status LEDs do not display as shown in Figures 2 8 and 2 9 refer to 5 Troubleshooting page 90 When the user system NOT connected 4 The POWER LED does not light POWER J LEDs CLOCK LED4 RESET aa LED5 RUN ae LED6 Figure 2 8 Target status LEDs display when the emulator starts up normally when user system not connected REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 26 of 98 M30850T2 CPE User s Manual 2 Setup When the user system connected When the POWER LED does not light shut off the system and check the setting of the jumper switches and if the power is properly supplied to the CLOCK Zz LED4 user system RESET LED5 RUN a LED6 POWER LED3 Figure 2 9 Target status LEDs display when the emulator starts up normally when user system connected IMPORTANT Note on the Target Status CLOC
15. NT are either registered trademarks or trademarks 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 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 19 of 98 M30850T2 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 90 Check the package components User registration Install the M32C compact emulator debugger 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 l Check the LED display of the emulator l Start up the emulator debugger Set the operating environment of the emulator debugger l Debug a program with various functions of the emulator debugger Figure 2 1 Flowchart of starting up the emulator REJ10J0865 0300 Rev 3 00 December 16 2005 Refer to 1 1 Package Components
16. Starting Up the Emulator Debugger Init Dialog Box 1 MCU tab 1 Specifying the MCU file mie O Specifying the MCU file Click the Refer button MEL l Debugging Information Emulator Resume A file selection dialog box will be displayed so select the MEL Refter desired MCU file The MCU file contains the information specific to the target MCU Serial Ho 2 m30850 4C wos Oo The MCU file you have selected is displayed in the MCU section of the MCU tab Resource W Enable the Address Match Interrupt Break Function S Debug the program using the Watchdog Timer Debue the program using the CPU Rewrite Mode Enable the Trace Point Function Serial No Shows the currently connected emulators in list form Select Cansel Help Next Hide the serial No of the emulator you want to be connected 2 Using or not using the address match break function Using or not using the address match break function MOU Debugging Information E t SUME mula or Resume Specify whether or not to use the address match break MOU m30850 mcu Refer function To use the address match break function default select the check box marked by a check mark when selected serial Mo 2 m30850 46 M030 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 Resource Brable the Address M
17. This Product Do not disassemble or modify this product Personal injury due to electric shock may occur if this product is disassembled and modified Disassembling and modifying the product will void your warranty Make sure nothing falls into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Installation Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling water or some other liquid into the product may cause unrepairable damage Warning for Use Environment This equipment is to be used in an environment with a maximum ambient temperature of 35 C Care should be taken that this temperature is not exceeded REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 7 of 98 M30850T2 CPE User s Manual Precautions for Safety CAUTION Notes on Connecting the Power Supply of the Emulator Do not use any power cable other than the one that is included with the product The power cable included with the product has its positive and negative poles color coded by red and black respectively Pay attention to the polarities of the power supply If its positive and negative poles are connected in reverse the internal circuit may be broken Do not apply any voltages exceeding the product s rated power supply voltage 5 0 V 5 Extreme voltages may cause a burn due to abnormal heat or cause the i
18. accepted only when a user program is being executed when the RUN status LED on the emulator s upper panel is lit REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 78 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on Reset Vector Area For a reset vector area memory of the emulator is always selected regardless of the setting of the EMEM dialog box A reset vector area can be changed only when a program is stopped Notes on Stack Area With this product a maximum 8 bytes of the user stack is consumed as a work area Therefore ensure the 8 byte maximum capacity used by the user program as the use stack area Even if the user stack does not have an enough area do not use areas which cannot be used as a stack SFR area RAM area which stores data or ROM area as a work area Using areas like this 1s a cause of user program crashes and destabilized emulator control With this product the interrupt stack pointer ISP is set at 00500h and used as a stack area after a reset is released Note on Maskable Interrupts Even if a user program is not being executed including when run time debugging is being performed the evaluation MCU keeps running so as to control the emulator so the function such as timer is operated Take note that when the user program is not being executed including when run time debugging is being performed a peripheral I O interruption is not accepted N
19. ea Ea aa E aa aE aE a a E aa iaria 80 44 Te KPO Mell DIMENSIONS sisersiirere r a a i aia eE 82 4 4 1 External Dimensions of the Compact Emulator nannnannnnnnnnennnennnnnnnennnsnnnnnrrnnnrrsnrrnnrrnenrrsnrrenrrnnrrenne 82 4 4 2 External Dimensions of the M30800T PT Co ccc ceccccceececeeeeeceeeeeceeeeseeeeeseeeesseeeeeseeeessaeeeseaeeeeees 83 4 4 3 External Dimensions of the M3T F160 100ONSD cccccccccccseececeeeeeceeeeecee cece eesseeesseeeessaeeeseeeesees 84 4 4 4 External Dimensions of the M3T FLX 144NSD 0 0 cccccceeccceeeeeceeeeeseeeeeseeeeeseeeeseeeesseeeessaeeeseeessees 84 4 5 Notes on Using PINS FROG CU erse a RE EAEAN EAA E 85 NOSON MESSI OE oa E E E E E EE E 85 Note on Quitting the Emulator D DUQQET cc cecccccseeeeeeeeeeeeeeeeeeeeeeeeeeeseeeeeesaeeeesseaeeesseeeeeesaeeeesseeeesaeeees 85 Notes on Clock Supply to the MCU eccccccccccseceeeeeeceeeeeseaceseeeessaeeesaeeessaeeeseaeeeseeessaeeessueeessneeesaaees 85 Notes on Using the CPU Clock at Less than 16 MHZ ccccccccccseeeeeeeeeeeeeseeeeesseeeeeeeeeeeesaaeeeesaeeeesaeeees 85 Notes on EMEM Dialog BOK is ciesastdice ceria snleciecinaidntsedncn teins stienisdle s aueietiwinoates eaves nanla bacivaina dln aetna shiv natienisdletyadceObamealelinbvdinainnts 86 Notes on Address Mateh Interr ptS caccrcscdscistescteee deccaGarseceaceedeichasedocaxdeudssebaneedies benedeadeSeedeescauaeeDeceecelassedadiens 86 Notes on the Watchdog Fun ction
20. 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 M30850T2 CPE 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 When operating this product with a sub clock be sure to set the SW2 and SW3 to XCIN and NC respectively Notes on Using the CPU Clock at Less than 16 MHz To use the CPU clock at less than 16 MHz execute the command shown below in the Script Window after starting the emulator debugger Command _settimeout 300 300 Once this command is executed it remains effective the next time you start the emulator debugger Therefore you do not need to execute this command again When you use the CPU clock at less than 1 MHz contact your local distributor REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 85 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on EMEM Dialog Box Observe the following when setting up EMEM dialog box of the emulator debugger 1 Debug Monitor Bank Address When E0 is specified 64 KB of area starting from E00000h are allocated for use by the debug monitor The 64 KB alloc
21. is disabled Executing the self check Enable this function when you want the emulator to be self checked at startup Be sure to select the check box only when you want the emulator to be self checked at startup This function may be enabled in the following cases When you are using the emulator you have just purchased When you fail to download the firmware When you successfully download the firmware but fail to start up the emulator When you want to confirm whether the emulator is operating normally because for example the MCU runs out of control or something is wrong with the trace results This function can be enabled only when you are starting up the emulator debugger Page 51 of 98 M30850T2 CPE User s Manual 2 Debugging Information tab 1 Specifying the compiler used and the object format MEU Debugging Information Emulator Resume Compiler NOSOe Wy A Object Format TEEE 695 ae a ae pss Cansel Help Next Hide REJ10J0865 0300 Rev 3 00 December 16 2005 2CENESAS 3 Usage Emulator Debugger Specifying the compiler used and the object format Specify the compiler you are using and the format of the object file output by the compiler Compiler Select the compiler you are using By default the C compiler from Renesas is selected Object Format Select the format of the object file that is output by the compiler you are using Specifying the method for storing debug
22. is limited the ROM must be replace when at the end of its service life If the following errors occur frequently during program download replace the MCU board Flash ROM erase error occurred ERROR 16258 Flash ROM verify error occurred ERROR 16259 To purchase the product for replacement or request for repair contact your local distributor Note on Voltage Detect Circuit With the M30850T2 CPE as the power voltage cannot be change after powering on the user system the voltage detect circuit voltage down detect interrupt and hardware reset 2 cannot be used with this product REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 87 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Protect Register 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 O1 control register is changed with the below procedure 1 Step execution of an instruction setting PRC2 to 1 2 Setting a break point from an instruction setting PRC2 to 1 to where the port P9 direction register or the function select register A3 is set 3 Setting 1 PRC2 from the dump window or script window during use program execution Note on Memory Access When setting memory expansion mode as a processor mode it may be changed to memory expansion mode temporarily before the user program itself changes from single chip mode to memory
23. mm pitch Foot Pattern Part 3 Figure 2 18 shows how to connect the compact emulator to a 100 pin 0 5 mm pitch foot pattern on the user system with the M3T F160 100NSD not included and here following is its procedure For details on the M3T F160 100NSD refer to its user s manual 1 Mount the NQPACK100SD included with the M3T F160 100NSD to the user system 2 Attach the YQPACK100SD included with the M3T F160 100NSD to the NQPACK100SD 3 Insert the YQ GUIDE s included with the YOPACK100SD to the YOPACK100SD 4 Attach the M3T F160 100NSD to the YQPACK100SD 5 Attach the M30850T2 CPE to the M3T F160 1O00NSD M30850T2 CPE CN2 side M3T F160 100NSD On board evaluation HQPACK100SD not included o FLASH MCU etc These corners are not round These four items are available in one package User system Figure 2 18 Connecting to a 100 pin 0 5 mm pitch foot pattern part 3 CAUTION Notes on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator and user system The small connectors of the M30850T2 CPE and M3T F160 100NSD are guaranteed for only 50 insertion removal iterations REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 37 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 8 Connecting to a 144 pin 0 5 mm pitch Foot Pattern Figure 2 19 shows how to connect the compact emulator to a 144 pin
24. onan a a e a a aa 6 Joer RE O epe r E p E EL E E E E E E 11 Tenno OY ee E E AE E E E A EA E S 12 A OUNO a E E E wecse uaeuesesesustcciesecsesees 13 t Package Componerse e TE a Ta E aE a ton a E iA 13 EAS EE ON RM UM E p scr EE A E E E E E N E E E E N A 14 L2 Toye CoOnngUratON sorie a OE T EEEE EREE OEE EAA den scans 14 1 2 2 Names and Functions of each part of the EMUIAatOF cece cecccceecceceeeeeseeeeeeeeesaeeeeseeeeeseeeeeseeeeees 15 1 DD SCINCAUOMNS srei a a E Aa Eaa EE andes en E E a owonsbanesiaieser ie 18 TA Operating ENV IROMIM CI sesering n E a Eae AiE ERE nE EEEE 19 Z U E E E E ee ee ee ee eee 20 2 1 Flowchart of Starting Up the Emulator cc ccccceccceeceeeeeeeeeeeeeeeeseeeeeeeeeeeeeeseeeeeesaeeeesaeeseesseeeeeeeseeeeeesaeeeensas 20 2 2 Installing the Emulator Debugger ccccceecccseeeeceeeeeeeeeeeeeeeeeseeeeeseeeeeeaeeeseeeesaaeeeseaeeeseueessauseessaeeeseeeeseneeeas 21 2 3 Attaching the Ferrite Core en annnnennnneanennnneosnrnnsrnrrosnrersrnrrrsnrrrrrrrrsarerorntrrsnrtrorntrrsartroantrerstreeoantrnnnteeonnrern nne 22 2 4 Connecting the Power Supply for the Emulator cccceccceceeeeeeceeeeeeeeeeeeeeseeeeeeeaaeeeeseeeeeeeseeeesaeaeeeeesaeeeeeas 22 2 5 Connecting the Host Machine ily cscs cue deestceteesiaentasiansadenpicuncacsts devecshaanetessavenesdi udeceeiannstadiancedecsicvncasitadesectarnadects 23 ZO TUG ON th TOW CU saisine eenn a i a a maw a Gat a a eai a aa a Dai Eea 24 2 6
25. page 13 Refer to User Registration page 11 Install it from the included CD ROM Select a power voltage supplied to the target MCU Connect the USB interface cable to the USB interface connector J2 of the emulator and the USB port of the host machine Connect a power supply to the power connector J1 Power supply should be 5 0 V 5 2 A Connect the user system as occasion demands Turn on the power to the emulator and the user system as simultaneously as possible Check that the system status LED and POWER and RESET of target status LED are lighting When the user system is not connected the POWER LED does not light up Start up the emulator debugger Set the INIT dialog box and EMEM dialog box of the emulator debugger For how to use the emulator debugger refer to its online manual CENESAS Page 20 of 98 M30850T2 CPE User s Manual 2 Setup 2 2 Installing the Emulator Debugger If the OS used in your host machine is Windows XP or 2000 this installation must be executed by a user with administrator rights Be aware that users without administrator rights cannot complete the installation The auto _run exe starts up by inserting the included CD into the CD ROM drive and the HTML page for installation will open Install the C compiler emulator debugger and USB driver as occasion demands In process of installation user information dialog box to enter the user information contractor se
26. stabilized power supply 4 User system This is your application system This emulator can be used without the user system REJ10J0865 0300 Rev 3 00 December 16 2005 stG NESAS Page 14 of 98 M30850T2 CPE User s Manual 1 Outline 5 Power supply for the user system This 1s a power supply for the user system As this emulator cannot supply the power to the user system supply the power to the user system separately from the emulator 6 Host machine This is a personal computer for controlling the emulator 7 Pitch converter board such as M30800T PTC included This is a pitch converter board for connecting to an MCU foot pattern on the user system for 100 pin 0 65 mm pitch LCC socket For details refer to 2 8 Connecting the User System page 30 1 2 2 Names and Functions of each part of the Emulator Figure 1 2 shows the names of the LEDs on the upper panel of the emulator J1 Power connector 2SENESAS POWER USB SYSTEM 15 OV System status LEDs e l LED1 Emulator power POWER aralus Cee System reset switch fad O j JP2 MCU power supply voltage selection jumper e factory setting 5 0 V jae COMPACT EMULATOR LED2 Emulator startup SAFE cea M 3 0 8 5 OT 2 C P E JP1 MCU power supply source selection jumper factory setting INT Target status LEDs LED3 User system power POWER LED4 Clock oscillation CLOCK 7 TARGET LED5 MCU RESET pin RESET STATUS LED4 Prog
27. the program when the system detects a write read of data to from memory or a leading trailing edge of the signal entered from the external trace cable The former break function is called address break and the latter break function is called trigger break While the instruction at the address where the software break is set is not executed a hardware break is performed after the specified instruction is executed Target MCU This means the microcomputer you are going to debug User system This means a user s application system using the microcomputer to be debugged User program This means a user s application program to be debugged Evaluation MCU This means a microcomputer mounted on the emulator which is operated in the special mode for the emulator In this user s manual this symbol is used to show active LOW e g RESET REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 12 of 98 M30850T2 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 M30850T2 CPE package consists of the following items When unpacking it check to see if your M30850T2 CPE contains all of these items Table 1 1 Package components M30850T2 CPE User s Manual this manual M32C compact emulator debugger C compiler M3T NC308WA evaluation version Please kee
28. v Function v ACCESS READ ADDRESS 000000 CONDITION faddr 000000 oree 2 Window for setting data Setting data You can set two conditions e g specified data or not to Event Type DATA ACCESS x compare data Address Data Setting Range data Datal g Setting the access condition Data 1 0000 Data 2 0000 You can set three conditions e g read write and Access READ z read write When you have finished setting the data and access condition click OK ACCESS READ ADDRESS 000000 CONDITION faddr 000000 data 0000 REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 65 of 98 M30850T2 CPE User s Manual 3 Example Data Settings Event setting for even address word access MOV W_ RO 512h RO 0203h Cycle Label Address Data BUS BHE BIU fi ill CPU 00059 000512 0203 lt 66 4 High order and low order data effective Event setting for odd address word access MOV W R0 519h R0 0203h Cycle Label Address Data BUS BHE BIU R RWT CPU 00026 000519 0302 4b 0 DW Q CW 00025 000514 0302 16b 1 DW 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 B 00033 000516 0503 46b Low order data effective Event setting for odd address byte access MOV B ROL 515h ROL 03
29. voltage exceeding the specified voltage of the product 5 0 V 5 because it may cause burn injuries and the failure of internal circuits Use the power supply which complies with CE marking requirements REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 22 of 98 M30850T2 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 power spy To host machine Connect the USB interface cable to connector J2 2ENESAS POWER USB SYSTEM ae STATUS COMPACT EMULATOR M3085071 2 CPE TARGET STATUS CE Figure 2 5 Connecting the emulator system REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 23 of 98 M30850T2 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 Selection 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 2 ENESAS POWER USB POWER SYSTEM a SAFE STATUS 3 3V 5 0V EXT 3 3V5 0V EXT O JP1 MCU power supply source selection jumper factory setting INT JP2 MCU power supply voltage selection jumper TARGET factory setting 5 0 V STATUS C a
30. when reading this area These precautions only need to be observed when using an emulator and does not apply for the actual MCU IMPORTANT Notes on Switch SW5 When using this product in memory expansion mode be sure to set the all SW5 to ON When setting the register below to use the analog input port selection function you need to set the direction register of port P15 for a pin that performs A D conversion to Input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A D0 control register 2 address 394h b2 bl 1 0 ANOO to ANO7 l 1 AN20 to AN27 Also when the PO group and P2 group are selected for A D input port P15 cannot be used as an I O port When setting the register above port P15 cannot be used as an I O port even if A D conversion is halting When using the A D converter in multi port sweep mode be sure to set the all SW5 to ON When setting the register below to use multi port sweep mode you need to set the direction register of port P15 for a pin that performs A D conversion to input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A D0 control register 4 address 392h b3 b2 1 0 ANO to AN7 ANOO to ANO7 l 1 AN0 to AN7 AN20 to AN27 Also when the PO group and P2 group are used for multi port sweep mode port P15 cannot be used as an I O port When sett
31. 0 5 mm pitch foot pattern on the user system with the M3T FLX 144NSD not included and here following is its procedure For details on the M3T FLX 144NSD refer to its user s manual 1 Attach the NQPACK144SD included with the M3T FLX 144NSD to the user system 2 Attach the YOQPACK144SD included with the M3T FLX 144NSD to the NQPACK144SD 3 Insert the YQ GUIDE s included with the YQPACK144SD to the YOPACK144SD 4 Attach the M3T FLX 144NSD to the YQOPACK144SD 5 Attach the M30850T2 CPE to the M3T FLX 144SD M30850T2 CPE Pr 2 CN2 side M3T FLX 144NSD not included On board evaluation e HQPACK144SD YQ GUIDE x4 not included YQPACK144SD J FLASH MCU etc These corners are not round NQPACK144SD 144 pin 0 5 mm pitch 144P6Q foot pattern These four items are available in one package Figure 2 19 Connecting to a 144 pin 0 5 mm pitch foot pattern CAUTION Notes on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator and user system The small connectors of the M30850T2 CPE and M3T FLX 144NSD are guaranteed for only 50 insertion removal iterations REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 38 of 98 M30850T2 CPE User s Manual 2 Setup 2 9 Changing Settings 2 9 1 Setting Switches of Emulator Set the switches of the emulator according to the condition POWER USB
32. 0300 Rev 3 00 December 16 2005 stGNESAS Page 83 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications 4 4 3 External Dimensions of the M3T F160 100NSD Figure 4 5 shows external dimensions of the converter board M3T F160 100NSD for a 100 pin LQFP 100P6Q eNO NVdvf NI SQV V Ady GSNOOL 0914 LEW L q Unit mm Figure 4 5 External dimensions of the M3T F160 100NSD 4 4 4 External Dimensions of the M3T FLX 144NSD Figure 4 6 shows external dimensions of the converter board M3T FLX 144NSD for a 144 pin LQFP 144P6Q L X 14 LEW NVdvPr N J3 AYN V Add ASNY Unit mm Figure 4 6 External dimensions of the M3T FLX 144NSD REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 84 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications 4 5 Notes on Using This Product Notes on using this product are listed below When debugging the MCU using this product be careful about the following precautions IMPORTANT Notes on the Self check If the self check does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor Run the self check with the user system not connected Note on Quitting the Emulator Debugger To restart the emulator debugger after it ends always shut power to the emulator off once and then on again Notes on Clock Supply to the MCU A clock supplied to the
33. 0800T PTC included 100P6S A M3T 100LCC DMS not included M3T FLX 100NRB not included M30800T PTC included M3T 100LCC DMS not included M3T DUMMY 100S not included M30800T PTC included M3T 100LCC DMS not included M3T DIRECT100S not included IC61 1004 051 included DC 5 0 V 5 2 A externally supplied Prepare a power supply which complies with CE marking requirements separately USB USB 1 1 full speed mini B standard connector EN55022 1998 Class A EN55024 1998 Available to connect the host machine that supports USB 2 0 With the USB interface not all hardware such as host machine USB devices USB hub combination will work and guaranteed 1 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 10 to 60 C no dew Table 1 8 Operating environment of the host machine IBM PC AT compatibles with USB1 1 OS Windows Me Windows 98 Windows XP Windows 2000 Pentium HI 600 MHz or more recommended USB 1 1 full speed 128 MB or more recommended Pointing device such as mouse Mouse or any other pointing device usable with the above OS that can be connected to the main body of the host machine Needed to install the emulator debugger or refer to the user s manual 1 Windows and Windows
34. 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper 24 2 6 2 Checking Connections of the Emulator SyStemM ccccccccseeeeeceeeeeeeeeeeeeeseeeeeeseeeeeeseeeseeseeseeesaeeeeeneas 25 2 6 3 Turning ON OFF the POWER ssa stance tccndesesnnasde vin sedunsiooulnawiin asinine sida E A ERR oedenianes 25 2 6 4 Power Supply to the User System wacssedschcritesicsnscad canerieicemembcnsunignaaadacaslsuentalandensgseubenddendwauviehnadasiaeiedesn ews 25 2 6 5 LED Display When the Emulator Starts Up Normally ccccceecccecseeeeeseeeeeeseeeeeeeeeseeeseeseesseeeeeeeas 26 EE OMNI ON E cocnecis See E E E ST E A A EE E E N N A E 28 2 1 1 Self check Procedure cccccsescccccesececeeeeecceuueeecseuseecseueeecsageeecsaseeessaueeessageeeeseuseeessagseeeseneeessnseeeses 28 2 1 2 lf an Error is Detected in the Self Check ccccccccccssseeeceeeeccesseecceaseeeceeseecseseeeseueeessageseessseeesees 29 26 COMMeCUnG he User Sy SUI ssiri i aE a ASEE ie kaU TARE Eai 30 2 8 1 Connecting to a 100 pin LCC socket ee eeccccceeeeeeceeeeeeeeeeeeeseeeeeeseeseeeseeseeeseaueeeeeeeseesseeesesaeeeeneas 31 2 8 2 Connecting to a 100 pin 0 65 mm pitch Foot Pattern Part 1 000nnnnannnnannnnnnnnnsnnnensnnnennnnnnsnnnennnnnne 32 2 8 3 Connecting to a 100 pin 0 65 mm pitch Foot Pattern Part 2 ccccccccseeeeeeeeeeeeesaeeeeesseeeeeesaeeeeeas 33 2 8 4 Connecting to a 100 pin 0 65 mm pitch Foot Patte
35. 300 Rev 3 00 December 16 2005 stGNESAS Page 33 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 4 Connecting to a 100 pin 0 65 mm pitch Foot Pattern Part 3 Figure 2 15 shows how to connect the compact emulator to a 100 pin 0 65 mm pitch foot pattern on the user system with the M3T FLX 100NRB not included and here following is its procedure For details on the M3T 100LCC DMS and M3T FLX 1OONRB refer to each user s manual 1 Attach the M3T FLX 100NRB to the user system 2 Attach the M3T 100LCC DMS to the M3T FLX 100NRB 3 Attach the M30800T PTC to the M30850T2 CPE 4 Attach the M30800T PTC to the M3T 100LCC DMS M30850T2 CPE CN2 side M30800T PTC M3T 100LCC DMS not included M3T FLX 100NRB not included The HQPACK100RB cannot be used Please use the HQPACK100RB168 On board evaluation YQ GUIDE x 4 HQPACK100RB not included SF o NQPACK100RB FLASH MCU etc j YQPACK100RB im I o f rr These corners are not round 100 pin 0 65 mm pitch 100P6S foot pattern LZ iy N qm No 1 pin These four items are available in one package User system Figure 2 15 Connecting to an 100 pin 0 65 mm pitch foot pattern part 3 CAUTION Notes on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system The small connectors of the M3T 100LCC DMS and M3T FLX 100NRB are guaran
36. 30850T2 CPE User s Manual 3 Usage Emulator Debugger 4 Opening the break event setting dialog box Specifying the event type Click to select the event type you want to set Event Type HAJA FETCH Detects an instruction prefetch DATA ACCESS Range addr Address1 Detects a memory access Address 1 oooo00 Address 2 1000000 v BIT SYMBOL I Function Source File Detects a bit access Function 7 ACCESS FETCH ADDRESS 000000 CONDITION faddr 000000 Caneel 2 When FETCH is selected 1 Window for setting addresses Setting the address You can set eight conditions e g a specified address a Event Type A M specified address range etc When you have finished setting the address click OK Fetch Setting Range addr ddress1 X Address 1 oo0000 Address 2 000000 v Function Source File v Function v ACCESS FETCH ADDRESS 000000 CONDITION faddr 000000 REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 64 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 When DATA ACCESS 1s selected 1 Window for setting the address Setting the address You can set eight conditions e g a specified address a Event Type DATA ACCESS x specified address range etc Nevesecenenseneeneeesenes Setting Range addr Address X I Function Source File
37. 8c 16b 000005 7C9805 E88c 16b 000004 F8o064 ESF1 16b 000003 F80066 9ADO0 16b 000002 F80068 BBF6 16b 000001 F80068 BBF6 16b 4 Q mi d CPU CPU CPU CPU CPU CPU mm F F Ionon I I I N IOrNN eN I FPooococ ce 0c 0 0c0C0rRF ODO rem Fooococ ce 0c 0c 0 0rF FOOD vy REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 70 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 Trace point setup window 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 enable the trace point function in the Init dialog E gt Trace Point Setting Window box before you set up in this window Here you can set Event Status Pass E ADORE AGGE CONDITION O 1 B6 oo0000 6FETGH addr 000000 O 1 B2 000000 FETCH addr 000000 events in the same way as for the hardware breakpoints Combination FID is Detail Enable Detail l Trace Area Write Condition Break Total Detail l Reset pave Load Set Close REJ10J0865 0300 Rev 3 00 December 16 2005 LENESAS Page 71 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 Specifying a trace range Specifying a trace range You can specify a trace
38. 98 M30850T2 CPE User s Manual 6 Maintenance and Guarantee 6 Maintenance and Guarantee This chapter describes how to maintenance repair provisions and how to request for repair 6 1 User Registration When you purchase our product be sure register as a user For user registration refer to User registration page 11 of this user s manual 6 2 Maintenance 1 If dust or dirt collects on any equipment of your emulation system wipe it off with a dry soft cloth Do not use thinner or other solvents because these chemicals can cause the equipment s surface coating to separate 2 When you do not use this product for a long period for safety purposes disconnect the power cable from the power supply 6 3 Guarantee If your product becomes faulty within one year after its purchase while being used under good conditions by observing IMPORTANT and Precautions for Safety described in this user s manual we will repair or replace your faulty product free of charge Note however that if your product s fault is raised by any one of the following causes we will repair it or replace it with new one with extra charge Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadequate user s system or misuse of it Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product is being leased consult the leasing c
39. E 16b m ce me RW Disassemble data access mixed mode The executed instruction and the content of the accessed data can be inspected together Contents are displayed in order of the execution paths Disassemble mode 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 ieeOOrOOOCOOOOCOOOCOOCOOCOOCOOOO Pea T a a a w a a Jo Ieee OD OrODOOOO0OoO0OoO0OoOoOoOOOOO 1 2 0 0 1 1 0 2 0 2 2 0 2 tO I Ie oltroothtrForroiltl rrr These modes can be switched over using the respective toolbar buttons The trace window shows the measurement result when a real time trace measurement has finished The trace window remains blank until the real time trace measurement in progress finishes REJ10J0865 0300 Rev 3 00 December 16 2005 LENESAS Page 68 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 2 Trace window bus display Bus display Explanation of the trace window bus display tleVea lagaal yvayziayv l l l Range 065535 000000 Area Before Break File Cycle 000691 Address FE018E Time The following explains the displayed contents from left to Cycle Address Data BUS BHE BIU R W RWI CPU OPC OPR right 000691 FEOI18E FEFA 16b F R 0 cpu 1 0 _ Address 000690 OOO6CE 0006 16b WW CPU 000689 0006cA 0000 16b
40. I lt 5 2 V and 3 3 V lt VCC2 lt VCC1 32MHz If using a CPU clock of more than 30MHz set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1 when reading this area This precaution only needs to be observed when using an emulator and does not apply for the actual MCU REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 76 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications 4 2 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below When debugging the MCU using this product be careful about the following precautions IMPORTANT Notes on the User System Power Supply Order of Powering On When the user system is connected be sure to set the JP1 of the emulator to EXT This emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately This emulator consumes max 500 mA of electric current from the user system The voltage of the user system should be as follows 1 When JP1 of the M30850T2 EPBM is set as VCC1 2 3 0 V lt VCCI VCC2 lt 5 5 V 2 When JP1 of the M30850T2 EPBM is set as VCCI gt 2 48V lt VCCI1 lt 5 2V 3 3 V lt VCC2 lt VCCI Do not change the voltage of the user system after turning on the power Notes on Using This Product When the Voltage of VCC1 is Higher than That of VCC2 If using this product when the voltage o
41. K LED If the LED is not turned on check the following 1 After powering on the emulator before starting up the emulator debugger Make sure that the oscillator circuit board is properly installed in the emulator and it is oscillating normally 2 After the emulator debugger 1s started up after the Init dialog box settings are completed Make sure that the oscillator selected in the Init dialog box is oscillating normally REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 27 of 98 M30850T2 CPE User s Manual 2 Setup 2 Self check 2 7 1 Self check Procedure To run the self check of the emulator do so as explained here below While the self check is in progress the LEDs will change as shown in Figure 2 10 1 Ifthe user system is connected disconnect tt 2 Set the switches as the factory settings to execute the self check see Table 2 3 3 Within 2 seconds of activating power to the emulator press the system reset switch on the emulator upper panel 4 Check the SAFE LED starts flashing and then press the system reset switch again 5 The self check will start If the normal result is displayed in about 10 seconds the self check terminated normally Table 2 3 Switch settings for the self check Setting MCU power supply source selection jumper JP1 MCU power supply voltage selection jumper JP2 1 Within 2 seconds of activating power POWER CLOCK RESET RUN POWER SAFE press the reset switch E
42. MCU check the box of Debug the program using the watchdog timer in the MCU tab of the Init dialog box If this check box is selected while the user program remains idle the emulator is performing refresh processing by writing to the watchdog timer start register within the emulator control program If this check box is unselected the emulator may run out of control after the user program has stopped When not using the watchdog function of the MCU do not select the box of Debug the program using the watchdog timer If this check box is selected while the user program remains idle the emulator is performing refresh processing by writing to the watchdog timer start register within the emulator control program and the watchdog timer starts If the user program 1s reexecuted the watchdog timer underflows generating a watchdog timer interrupt or a reset If the reset circuit of the user system has a watchdog timer disable it when using the emulator REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 86 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on Debugging in CPU Rewrite Mode To debug a program in CPU rewrite mode check the box Debug the program using the CPU Rewrite Mode in the MCU tab of the Init dialog box When you do not debug a program in CPU rewrite mode uncheck the box When you debug a program in CPU rewrite mode the block 0 area FFFOOOh FFFFFFh must n
43. NA AP156 Te 8l xC ach L AP157 a 11 XD QD 74HC4066 74HC4066 Figure 4 2 Connection diagram 2 2 Table 4 2 Electrical characteristics of the 74HC4066 Svmbol en Standard values Unit Tee eE 45 7 100 2 ARon ONresistordifference 4 5 10 Im _ Switch input leak current 120 100 nA REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 81 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications 4 4 External Dimensions 4 4 1 External Dimensions of the Compact Emulator Figure 4 3 shows external dimensions of the M30850T2 CPE connected with the M30800T PTC and LCC socket CAN SSA LON OST S SYSTEM 3 0V_ 7 STATUS COMPACT EMULATOR M30850T 2 CPE gt ay CLOCK my RESET TARGET gy RUN STATUS C Unit mm Figure 4 3 External dimensions of the compact emulator REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 82 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications 4 4 2 External Dimensions of the M30800T PTC Figure 4 4 shows external dimensions of the converter board M30800T PTC for a 100 pin QFP 100P6S bo T E ee ooo0o0o00000000000 ooo0oo0000j b0000000 o0o00000 oo0o0000o0 ooo0oo0oo0oo0oo0oo0o0000000 ERR EARE J RERA aoa Gaao0oa TERJI ERRE Unit mm Figure 4 4 External dimensions of the M30800T PTC REJ10J0865
44. RW CPU Shows the status of the address bus Data 000688 OOO6CE 0006 16b RW CPU 000687 FE0190 64FA 16b F Shows the status of the data bus BUS 000686 FE0192 FE39 16b Shows the width of the external data bus In the present IOON lerre 000685 FE0194 B899 16b 000684 FE0196 C9F8 16b 000663 OOO6CE 0006 16b 000682 FE0198 889E 16b 000681 o006cs8 0001 16b 000680 FE019A 0241 16b 000679 FE019C B299 16b 000678 FEQ19E 7F08 16b 000677 FEO19E 7F08 16b 000676 FEO1A0 COFE 16b 000675 FE0142 C1DE 16b 000674 FE0142 C1DE 16b 000673 FE0142 C1DE 16b DA Em e Dem emulator only 16b for 16 bits wide bus is displayed BHE Shows the status 0 or 1 of the BHE Byte High Enable signal If this signal 0 the odd address data is valid BIU Shows the status between the BIU Bus Interface Unit Iowy isons ranma Eg ION INIO N OrmerH H I roreotlhrorro I Ieee OOrDODOO0OOC0CO0OO0OO0OoO0OoOC0OoO0OoO0OoO0OO0OO0OO ee OOrODOOOOoO0OoOoOoOoOoOoOOoOO C mM and memory or I O Symbol Status Disassemble display 7 eee WAIT Executing the wait instruction jevo QG vasu vy RBML Read bytes ML on Range 065535 000000 Area Before Break File Cycle 000691 Address FEOI8C Time F Fetch Cycle Address Obj code Label Mnemonic i 000691 FE018C O3F6FAFE CMP W 6H FB 2H FB QC Discontinuous fetch 000686 FE0190 FA64 JLT FEOIFSH i 000685 FE0192 39FE MOV W 2H FB R0 f 000683 FE0194
45. TC included M3T 100LCC DMS e not included GP oso SP on z not included M3T FLX100 T M3T FLX100 R included not included not included M3T FLX100 T M3T FLX100 R not included not included SF F YS LCC socket M3T DIRECT100S M3T DUMMY100S M3T FLX 100NRB M3T F160 100NSD M3T 100LCC QSD M3T FLX 100NSD M3T FLX 144NSD 100 pin LCC 100 pin QFP 100 pin QFP 100 pin QFP 100 pin LQFP 100 pin QFP 100 pin QFP 144 pin LQFP included not included not included not included not included not included not included not included No 1 pin Figure 2 11 Connection of the M30850T2 CPE and user system CAUTION Note on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator and user system REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 30 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 1 Connecting to a 100 pin LCC socket Here following is a procedure of connecting to a 100 pin LCC socket Yamaichi Electronics Co Ltd IC61 1004 051 etc on the user system 1 Attach the CN2 side of the M30850T2 CPE to the CN2 side of the M30800T PTC 2 Attach the M30800T PTC to the 100 pin LCC socket M30850T2 CPE 100 pin LCC socket No 1 pin User system Figure 2 12 Connecting to a 100 pin LCC socket CAUTION Notes on Connecting the User System Take care not to attach a converter board in a wrong direct
46. 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 Awww renesas com Send any inquiries to hitp www renesas com inquiry CENESAS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted
47. a potential A N danger that will possibly inflict an injury on persons To avoid a possible injury or death please be sure to observe the safety message that follows this symbol DANGER indicates an imminently dangerous situation that will cause death or heavy wound A N D ANG ER _ unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING indicates a potentially dangerous situation that will cause death or heavy wound A WARN NG unless it is avoided CAUTION indicates a potentially dangerous situation that will cause a slight injury or a A CAUTION medium degree injury unless it is avoided C AUTION CAUTION with no safety warning symbols attached indicates a potentially dangerous situation that will cause property damage unless it is avoided IMPO RT ANT This is used in operation procedures or explanatory descriptions to convey exceptional conditions or cautions to the user In addition to the five above the following are also used as appropriate means WARNING or CAUTION JN CAUTION AGAINST AN ELECTRIC SHOCK Example means PROHIBITION ARADR Q pisassemsLy PROHIBITED means A FORCIBLE ACTION aii uNPLuc THE POWER CABLE FROM THE RECEPTACLE REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 6 of 98 M30850T2 CPE User s Manual Precautions for Safety WARNING Warnings for AC Power Supply If the attached AC power cable does not f
48. ace write condition _ Reset Save load Set Close click this button The Realtime trace Write Condition dialog met are written into memory Realtime trace Write Condition X box shown below will appear Setting wie _ i Mnte mode Start End E QO E1 E1 Oe g E2 ee l Only the cycle in which the specified Start event occurred A range of cycles from when the specified Start event Sancel occurred to when the specified Start event became nonexistent AeH A range of cycles from when the specified Start event occurred to when the specified End event occurred REJ10J0865 0300 Rev 3 00 December 16 2005 stG NESAS Page 72 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 6 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 area setting window 1 Opening RAM monitor area setting window Base Clicking this toolbar button opens the RAM monitor area Tn mssi 1040 8 2 abe de oH de dt a setting window Register 40 1 2 43 4 45 46 7 48 49 4 4B 40 0 E F ASCII FB SB USP REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 73 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 2 RAM monitor area setting
49. ad Close 5 RAM monitor area setting dialog box Changing the RAM monitor display area You can change the manner in which the RAM monitor area Register 0 1 2 3 4 5 6 7 48 49 A B 40 D ASCII a you have set in the above dialog box is displayed ft Shows the blocks at the preceding addresses 4 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 004180 White Addresses not accessed The background colors can be changed as necessary REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 75 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications 4 Hardware Specifications This chapter describes specifications of this product 4 1 Target MCU Specifications Table 4 1 lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the M30850T2 CPE Applicable MCU M32C 80 84 85 and 86 Groups Applicable MCU mode Single chip mode memory expansion mode Maxi ROM RAM capacity 1 Internal flash ROM 512KB 4KB OFO0O0h OFFFFh F80000h FFFFFFh 2 Internal RAM 24KB 00400h 063FFh Operating voltage frequency VCC1 VCC2 4 2 5 5 V 32 MHz VCC1 VCC2 3 0 5 5 V 24 MHz Dual power supply specification 4 8 V lt VCC
50. 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
51. atch Interrupt Break Function deselect the check box check mark cleared In this case Debug the program using the Watchdog Timer Debug the program using the GPU Rewrite Mode Enable the Trace Point Function program the address match interrupt can be used in the user This option can be selected or deselected only when you are Cansel Help Next Hide starting up the emulator debugger REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 49 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 Using or not using the watchdog function Using or not using the watchdog function Specify whether or not to debug the program which uses the Mel maleol mou Refer watchdog function When debugging the user system which uses the watchdog function select the check box MU Debugging Information Emulator Resume Serial Mo 2 Ma0g50 40 M030 A Resource IY Enablethe Address Match Interrupt Break Function 4ebue the program using the Watchdog Timer Debug the program using the GPU Rewrite Mode Enable the Trace Point Function Cansel Help Next Hide IMPORTANT Notes on selection of whether or not to use the watchdog timer If the check box Debug the program using the Watchdog Timer is selected while the user program remains idle the emulator is performing refresh processing by writing to the watchdog timer start register within the emulator cont
52. ated for the debug monitor cannot be used The below areas cannot be set for the debug monitor 1 MCU internal resources ROM RAM SER area 2 Multiplex area 3 Interrupt vector area It is not possible to view or set the content of the specified area Even on the memory window or in the reverse assemble area of the program source windows the content of this area is not displayed correctly though it can be displayed 2 Processor Mode Set a processor mode for the target MCU To set single chip mode or memory expansion mode pin CNVSS used with MCU status must be L MCU status indicates pin level of the user system To set memory expansion mode pins RDY and HOLD used with MCU status must be H When the user system is not connected all modes are available Notes on Address Match Interrupts Do not single step an address where an address match interrupt occurs When using an address match interrupt do not select the check box of Enable the Address Match Interrupt Break Function in the MCU tab of the Init dialog box When not using an address match interrupt select the check box When you use address match breaks if a low reset is input during a user program execution a debug monitor program about 100 cycles is executed after a reset is released Take note that it has effects on the user program execution time and the result of a trace Notes on the Watchdog Function When using the watchdog function of the
53. 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 O E State of Emulator o Fia SOS Initializes the emulator and waits for a command from the When the user s program is halted emulator debugger l Stops the user s program initializes the emulator and When the user s program is executed B waits for a command from the emulator debugger IMPORTANT Notes on a System Reset After pressing the system reset switch restart the emulator debugger Otherwise the display of emulator debugger and the actual value in the emulator may not match When the emulator debugger does not start up normally even after rebooting turn off the emulator and then turn on again 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 22 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 23 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 16 of 98 M30850T2 CPE User s Manual 1 Outline 6 MCU Power Supply Source Selection Jumper JP1 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 Selectio
54. ct Download 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 The program counter 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 59 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 2 Program execution 1 Resetting the user program 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 5 Step execution of the user program Step In Bij Bl Ei ri P iy a te TER 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 a
55. ction 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 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 21 of 98 M30850T2 CPE User s Manual 2 Setup 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 the figure and close the ferrite core until it clicks Figure 2 2 Attaching the ferrite core 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 Electrode Electrode 1 7mm Inside diameter A b 4 75mm Figure 2 3 Power connector specifications Figure 2 4 Applicable plug specifications CAUTION Notes on Connecting a Power Supply of the Emulator The power cable included in this product package is colored red and black Be careful about the polarity of the power supply Connecting to the wrong electrode could destroy internal circuits Do not apply a
56. cuting the self check MoU Debugging Information Emulator l Resume MEU m30850 meu Refer serial Mo 2 MS0650 4 M030 Resource W Enable the Address Match Interrupt Break Function Debug the program using the Watchdog Timer Debug the program using the GPU Rewrite Mode Enable the Trace Point Function Cansel Help Next Hide REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS 3 Usage 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 Setting the address match breakpoint 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 function The hardware break function
57. d make final confirmation with a CS Commercial Sample version MCU REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 79 of 98 M30850T2 CPE User s Manual 4 3 Connection Diagram 4 Hardware Specifications Figures 4 1 and 4 2 show a part of the connection diagram of the M30850T2 CPE This connection diagram mainly shows the interface section The signals not shown in Figures 4 1 and 4 2 connect the evaluation MCU and the user system directly The circuits not connected to the user system such as the emulator s control system are omitted Table 4 2 shows IC electric characteristics of this product for reference purposes IC15 VCONT X NC Xcin On O CPU Emulate he ASIN MCU SW2 VCONT Xcout O xEin NC O k oe gt I P87 Xcin Vcont IC1 P87 Xcin Vcont 17 P86 Xcout H I O Emulate MCU P86 Xcout 143 Se AVES p4 AVC AVcc m fe AVss 140 O LO gt lt AVss C1 O71 GND Vref 142 re gt lt Vref Vcc R17 R18 100k 24 100 P85 NMI gt P85 NMI 20 a Awe XOUT _ 4 XOUT O NC 1 O K NC R14 Vcc 100k RESET Rig GY 100k s P55 RDY R15 Vcc 100k P57 HOLD XIN __ _ _ _ _ p CNVss BYTE Connected to the inside of the emulator Figure 4 1 Connection diagram 1 2 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS User system Page 80 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications AP 150 1 AP154 a A AP155 G a E
58. e 41 of 98 M30850T2 CPE User s Manual 2 Setup 3 Setting SW5 on the M30850T2 EPBM Table 2 7 lists the examples of setting the switch SWS It is necessary to change the setting if using the analog input port selection function of the A D converter Setting the SW5 enables to set each analog input pin for selecting an analog input port When selecting AN00 to ANO7 or AN20 to AN27 for the analog input port select bits bit 2 and bit 1 of 0394h set the pins used for A D conversion to ON the pins not used to OFF Table 2 7 Switch settings of the M30850T2 EPBM SWS Analog input port Setting This is the setting when not using the analog input port selection function When using this product with the conditions below use When not using the this setting analog input port When using the memory expansion mode selection function When using the multi port sweep mode When selecting ANO to AN7 for analog input port select bits When selecting AN150 to AN157 for analog input port select bits This is a setting when using the analog input port selection function and using AN23 to AN27 for analog input pins When using AN23 to Set the analog input pins to ON AN27 With this setting set the direction registers of ports P153 to P157 to input Pins P150 to P152 can be used for I O port ISTxDO ISCLKO and ISRxD0 This is a setting when using the analog input port selection function and using AN20 to AN27 for analog input pins Wh
59. e emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning ON the power again after shutting OFF the power wait for about 10 seconds 2 6 4 Power Supply to the User System This emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately This product consumes max 500mA of electrical current from the user system Please consider the capacity of the power supply of the user system The voltage of the user system should be within the following And do not change the voltage of the user system after turning on the power 1 When JP1 of the M30850T2 EPBM is set as VCC1 2 3 0 V lt VCCI VCC2 lt 5 5 V 2 When JP1 of the M30850T2 EPBM is set as VCC1 gt 2 4 8 V lt VCCI lt 5 2 V 3 3 V lt VCC2 lt VCCI REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 25 of 98 M30850T2 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 7 shows the positions of the emulator status LEDs 2 ENESAS POWER USB SYSTEM system status LEDs STATUS COMPACT EMULATOR M30850T 2 CPE Target status LEDs TARGET T STATUS C E MADE IN J APAN Figure 2 7 Positions of the system status
60. e user system 1s 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 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 92 of 98 M30850T2 CPE User s Manual 5 Troubleshooting 3 Errors Occur at Debugger Startup Table 5 3 Checkpoints of errors at debugger startup Checkpoint Target MCU is uncontrollable Check that the NQPACK etc mounted on the user system is soldered properly Check that the connector is installed properly to the user system Check that pin CNVSS is held Low REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 93 of 98 M30850T2 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 V Operating frequency MHz Operating voltage S 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 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 94 of
61. eeeeeeesaeeeeesaaeees 50 3 2 Starting Up the Emulator Debugger EMEM Dialog BOX cccccccceceeeeeeeeeeeeeeeeeesaeeeeeeeeaseeesaeeeeeaeeeeeeseaees 55 Notes on Selecting a Processor MOde cccccsecccccseeeeeeeeeeeeeaeeeeeeaeeeeesseeseeeseeueeeseueeeeseeeeeesaaeeeessageeeesseeees 55 Notes on Selecting a Processor MOdG cccccssccccceseeeceeseecceseeecsaueeecseececseaseeeseueeessegeeesseuseesssasseesssageees 56 Io FTO an ON enr a E E E E E E E E EE E E EEE E EE 59 3 4 Hardware Breakpoint Setting WINGOW ccccccseecceeseeeeeeeeeeeeeeeeeeeseeeeeeeeeeeeseaeeeesaeeeeseeaeeeeseseeesseeeeessneees 63 So MGS VINON ee e e este te nti E E E ona benedict E E sedate nuit 68 3 6 RAM I V 0 01100 mn 010 0 cere 73 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 9 of 98 M30850T2 CPE User s Manual Contents Page d Hardware OC CIN CaO INS ec acee cac eet scices ste sacaepeaedenoeencec aoeesneaenuauaeacoesedeausneaecnauenadeiemenedenosecesaeuedneesenmeodasbusedcuesenadedest ae 76 41 Target MCU SpSCiN CATIONS x cia cts ontansdrenetntcen sehar iamteaiia vlnade E seatee sera ceeamnde ot 76 4 2 Differences between the Actual MCU and Emulator cccccccccceeccceececeececeeeceseeeeeseeeeseeecesseeeesseesseeeeesees 77 Notes on the User System Power Supply Order of Powering On ccccceeeeeeceeeeeeeeeeeeeeaeeeeesaeeeeeesaeeees 77 Notes on Using This Product When the Voltage of VCC1 is Higher than That
62. en using AN20 to Set the analog input pins to ON AN27 With this setting set the direction registers of ports P150 to P157 to input Pins P150 to P157 cannot be used for I O port ISTxD0 ISCLKO and ISRxD0 This is a setting when using the analog input port selection function and using AN04 to ANO7 for analog input pins When using AN04 to Set the analog input pins to ON ANO7 With this setting set the direction registers of ports P154 to P157 to input Pins P150 to P153 can be used for I O port ISTxDO ISCLKO and ISRxD0 ADO3 to ADO5 used ON AD25 to AD27 used ON This is a setting when using the analog input port selection function and using AN03 to ANO5 and AN25 to AN27 for analog input pins Set the analog input pins to ON With this setting set the direction registers of ports P153 to P157 to input Pins P150 to P152 can be used for I O port ISTxDO ISCLKO L__ and ISRxD0O ADOO to ADO2 unused OFF AD20 to AD22 unused OFF When using ANO3 to ANOS and AN25 to AN27 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 42 of 98 M30850T2 CPE User s Manual 2 Setup IMPORTANT Notes on Switch JP1 of the M30850T2 EPBM If using this product when the voltage of VCCI is higher than that of VCC2 set the JP1 to VCC1 gt 2 If using a CPU clock of more than 30MHz when using the voltage of VCC1 is higher than that of VCC2 set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1
63. esas 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 equ
64. esseeeeeeseeeeeesaeeeeeeaaeees 91 5 3 How to Request for Support oe xcs sicnaccueticcsstceienccentecnecosdsntceuiacteyacieersndnianonde deer tereisnycadsteceecses biessaidxixcdvianeereets 94 6 Maintenance and Guarantee ccccccccccceececceeceecececeeeeeceeeeeceeeeeseaeeeseaeessaeeeseeessaeeeseaseeseaeeeseageeesaeeessueeeseneetsneeses 95 Gc ISON 1 COIS MOM eae E E sensuensosuate count eeadeaet nie tndons E EE 95 62 TAN NO aan scr eee erent ei Seas dec devote ae racine eaters Sana tray i eaa o dane done d i e aE A e 95 6 3 GUANI enaa EE Er EAE EE Er ARE TAE EE EEE EE a 95 6 oes So 9221 i TOV ON ee a E E E AE EE EE E E eee ee eee 95 6 5 How to Make Request for Repair ccccccssccceesceceseeeceececeeeececessecesseeeessaeeeseaeeseaeeeseaeessaeeessaeeessasessageeees 96 REJ10J0865 0300 Rev 3 00 December 16 2005 CENESAS Page 10 of 98 M30850T2 CPE User s Manual User Registration User Registration When you have purchased the emulator presented in this user s manual please be sure to register it As the H W Tool Customer Registration Sheet is included with this manual fill it in and email to the following address Your registered information is used for only after sale services and not for any other purposes Without user registration you will not be able to receive maintenance services such as a notification of field changes or trouble information So be sure to carry out the user registration For more information abo
65. expansion mode Take due consideration on this phenomenon in the following cases 1 Immediately before executing the program after setting a software break 2 Immediately after stopping the program when a software break is set Notes on A D Conversion When setting the register below to use the analog input port selection function you need to set the direction register of port P15 for a pin that performs A D conversion to input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A DO control register 2 address 394h b2 bl l 0 ANOO to ANO7 l l AN20 to AN27 Also when the PO group and P2 group are selected for A D input port P15 cannot be used as an I O port When setting the register above port P15 cannot be used as an I O port even if A D conversion is halting For the switch SWS refer to 2 9 1 Setting Switches of Emulator page 39 When setting the register below to use multi port sweep mode you need to set the direction register of port P15 for an pin that performs A D conversion to input And you need to set the function selection register of port P15 for a pin that performs A D conversion to I O port A D0 control register 4 address 392h b3 b2 l 0 ANO to AN7 ANOO to AN07 l l ANO to AN7 AN20 to AN27 Also when the PO group and P2 group are used for multi port sweep mode port P15 cannot be use as an I O port When setti
66. f VCC1 is higher than that of VCC2 set the JP1 to VCC1 gt 2 For the switch JP1 refer to 2 9 Changing Settings page 39 When the JP1 is set to VCC1 gt VCC2 the voltage of VCC2 on the user system should be 3 3 V or more If using a CPU clock of more than 30MHz when the voltage of VCC1 is higher then that of VCC2 set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1 when reading this area These precautions only need to be observed when using an emulator and does not apply for the actual MCU REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 77 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Differences between the Actual MCU and Emulator Operations of the emulator system differ from those of actual MCUs as listed below 1 Reset condition 2 Initial values of internal resource data of an MCU at power on 3 Interrupt stack pointer ISP after a reset 1s released 4 Capacities of the internal memories ROM and RAM The MCU whose RAM size is 24 KB 400h 63FFh is mounted on this product The internal flash memory is automatically allocated to FOOOh FFFFh and F80000h FFFFFFh in the single chip mode and memory expansion mode 5 Oscillator circuit Make note of the fact that in the oscillator circuit where a resonator is connected between pins Xy and Xout oscillation does not occur because a converter board and other devices are used between the eva
67. f this emulator Therefore the specification or design of this emulator or its user s manual may be changed without prior notice About the rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license for patent rights or any other rights belonging to us or third parties 3 This user s manual and this emulator are copyrighted with all rights reserved by us This user s manual may not be copied duplicated or reproduced in whole or part without prior written consent of us About diagrams The diagrams in this user s manual may not all represent exactly the actual object REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 5 of 98 M30850T2 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
68. g the program up to the cursor position Enlarged view Emha Pa He oe e oc B ele 1 Click the line in the editor source window that you r E ala want to be executed 9 Aritmbhy sage 50 l 51 agma section keset PRG uy th rai ae POTEA SETI Taai 2 Click the execution button to the cursor position J a 53 0400 __ent ry vect20 void PowerQON_Reset void ia i S I p 0408 set imask cerl E ke 36 0404 _INITSCT Ea enini ose 27 gt a Or you can select Go to Cursor from Debug menu for Po Sere 58 ff CALL _INITC ieFfemove th 5 care Pt 49 E 60 _INIT_IQLIB JE Use SIM I the same effect EJ slackscth amp l A 62 ff errno Q ff Remove th 63 ff srand 1 ff Remove th ff slptr NULL yf Remove th Hardyafesetup ff er_imask_cer 0 Remove th maini CL EALL Ai _CALL_END f f Remove th ee ae gt b iy Use SIH 2 After the execution has finished Munno nr e Deal wee la mhise pragma section ResetPRG E G ruce fee al dbactec a beiritt i m eh sk_eer steke l Ji i Dewan mnckiies f 27 a e a em ff CALL_INIT Remove th Denn _INIT_IOLIBQ Hf Use SIM E eiackecth entrytvect 0 void FowerON FResetivoid errnost ni Remove th serandil Remove th _s iptr HULL Remove th
69. h Cycle 00046 000515 0315 6s d Be High order data effective REJ10J0865 0300 Rev 3 00 December 16 2005 Label Address Data BUS BHE BIU R W RWT CPU 2 CENESAS 3 Usage Emulator Debugger setting a break event Al Address 1 Data 1 MASK Access 000512 0203 gt FFFF WRITE Setting a break event using 2 events Al Address 1 Data 1 MASK Access 7000519 0300 FF00 WRITE A2 Address 1 00051A 0002 00FF Data 1 MASK Access WRITE Set the combinatorial events to AND Setting a break event Al Address 1 Data 1 MASK Access 7000516 0003 OOFF WRITE Setting a break event Al Address 1 Data 1 MASK Access 7000515 0300 FF00 WRITE Page 66 of 98 M30850T2 CPE User s Manual 4 Setting the combinatorial event condition 1 Window for setting the combinatorial event condition m HW Break Point Setting Window W Enable He Break GON DITTO 1 000512 data 0203 O 1 42 000000 FETCH addr 000000 Gombination z FID AND ki Detail Enable Detail Reset DAVE Load o s Glose REJ10J0865 0300 Rev 3 00 December 16 2005 LENESAS 3 Usage Emulator Debugger Setting the combinatorial event condition There are following three conditions that you can choose for the combinatorial events OR The program breaks when one of the specified events occurs AND The program breaks when a
70. 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 Ren
71. ical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan 5 Renesas Solutions Corp cannot predict all possible situations or possible cases of misuse where a potential danger exists Therefore the warnings written in this user s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases Please be sure to use this emulator correctly and safely on your own responsibility 6 This product is not qualified under UL or other safety standards and IEC or other industry standards This fact must be taken into account when taking this product from Japan to some other country REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 4 of 98 M30850T2 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 o
72. information There are two methods for storing debug information on memory method where data is held in memory and an on demand method where data is held in a temporary file On Memory This method helps to speed up processing if your computer has sufficient memory On Demand This method helps to reduce the amount of memory needed To use this method select the On Demand check box Page 52 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 Emulator tab 1 Specifying the target clock Specifying the target clock NGL eee a Eni anal Specify the clock sources supplied to the MCU main clock a and sub clock Select the appropriate clock sources oc Main of dnternal External according to the clock used by your target MCU Internal Sub Internal f External Emulator s internal clock External User system clock The option you have specified here remains effective the next time you start up Cansel Help 7 Next Hide REJ10J0865 0300 Rev 3 00 December 16 2005 LENESAS Page 53 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 4 Resume tab 1 Automatically executing a script command Automatically executing a script command To automatically execute a script command when starting MCU Debugging Information Emulator Resume up the debugger click the Refer button and specify the script file to be executed hit File
73. ing the register above port P15 cannot be used as an I O port even if A D conversion 1s halting Because a converter board and other devices are used between the evaluation MCU and the user system the A D converter operates differently from an actual MCU Make the final evaluation of the A D converter using an actual MCU REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 43 of 98 M30850T2 CPE User s Manual 2 Setup 2 9 2 Selecting Clock Supply You can choose a clock supplied to the evaluation MCU by the Emulator tab in the Init dialog box of the emulator debugger Table 2 8 shows the clocks and their initial settings Table 2 8 Clock supply to the MCU Emulator debugger display Main Xw Xour Internal oscillator circuit board OSC 3 or OSC 2 Oscillator circuit on the user system a Internal oscillator circuit 32 768 kHz Dn Oscillator circuit on the user system 1 Using an Internal Oscillator Circuit Board 1 Kinds of Oscillator Boards The M30850T2 CPE comes with an oscillator circuit board OSC 3 32 MHz And an oscillator circuit bare board OSC 2 is included with this product If you use an internal oscillator circuit board of the emulator as a main clock choose Internal in the emulator debugger after replacing oscillator circuit boards to change a clock supplied to an MCU REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 44 of 98 M30850T2 CPE User s Manual 2 Setup 2 Replacing Oscillator Circu
74. ion It may cause a fatal damage to the emulator and user system The connectors of the M30850T2 CPE and M30800T PTC are guaranteed for only 50 insertion removal iterations For purchasing the IC61 1004 051 or for technical information contact Yamaichi Electronics Co Ltd REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 31 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 2 Connecting to a 100 pin 0 65 mm pitch Foot Pattern Part 1 Figure 2 13 shows how to connect the compact emulator to a 100 pin 0 65 mm pitch foot pattern on the user system with the M3T DUMMY 100S not included and here following is its procedure For details on the M3T 100LCC DMS and M3T DUMMY 100S refer to each user s manual 1 Mount the M3T DUMMY 100S to the user system 2 Attach the M3T 100LCC DMS to the M3T DUMMY 100S 3 Attach the M30800T PTC to the M30850T2 CPE 4 Attach the M30800T PTC to the M3T 100LCC DMS M30850T2 CPE M3T 100LCC DMS not included On board evaluation M3T DUMMY100S not included o FLASH MCU etc 100 pin 0 65 mm pitch A 1 100P6S foot pattern we A User system Figure 2 13 Connecting to a 100 pin 0 65 mm pitch foot pattern part 1 CAUTION Notes on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system The small connectors of the M3T 100LCC DMS and the M3T DUMMY100S are guaran
75. ipment 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
76. it Boards Figure 2 21 shows how to replace the oscillator circuit boards 2tENESAS POWER USB SYSTEM Ene STATUS COMPACT EMULATOR M30850T2 CPE i The oscillator circuit board of the emulator is in the lower right corner of the board Oscillator circuit board TARGET STATUS 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 21 Replacing oscillator circuit boards CAUTION Note on Replacing the Oscillator Circuit Board When removing the upper cover or replacing the oscillator circuit boards be sure to shut OFF the power supply Otherwise the internal circuit may cause a break REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 45 of 98 M30850T2 CPE User s Manual 2 Setup 3 Using the Internal Oscillator Circuit Bare Board To use this product at a frequency you like build a desired oscillator circuit on the included OSC 2 oscillator circuit bare board Figure 2 22 shows an external view of the OSC 2 oscillator circuit bare board and the connector pin locations Figure 2 23 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
77. it the receptacle do not alter the AC power cable and do not plug it forcibly Failure to comply may cause electric shock and or fire Use an AC power cable which complies with the safety standard of the country Do not touch the plug of the AC power cable when your hands are wet This may cause electric shock This product is connected signal ground with frame ground If your developing product is transformless not having isolation transformer of AC power this may cause electric shock Also this may give an unrepairable damage to this product and your developing one While developing connect AC power of the product to commercial power through isolation transformer in order to avoid these dangers If other equipment is connected to the same branch circuit care should be taken not to overload the circuit Use the power supply which complies with CE marking requirements When installing this equipment insure that a reliable ground connection is maintained If you smell a strange odor hear an unusual sound or see smoke coming from this product then disconnect power immediately by unplugging the AC power cable from the outlet Do not use this as it is because of the danger of electric shock and or fire In this case contact your local distributor Before setting up this emulator and connecting it to other devices turn off power or remove a power cable to prevent injury or product damage Warnings to Be Taken for
78. ll of the specified events occur AND Same Time The program breaks when the specified events occur at the same time When you have finished setting the combinatorial event condition click the Set button Page 67 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 5 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 The trace window is used to show the results of real time x i jeva aaa vaz uv trace measurements It has the following four display Range 065535 000000 Area Before Break File Cycle 000691 Address FEOISE Time Cycle Address Data BUS BHE BIU R W RWT CPU OPC OPH modes _ 000691 FEOI8E FEFA ish 0 F R 0 CPU o Bus mode 000690 0006 E 0006 16b WW CPU i Bus information per cycle can be inspected The contents 000689 oo06caA 0000 16b CPU are displayed in order of execution paths 000686 0006 E 0006 16b CPU 000687 FE0190 64FA 16b 000686 FE0192 FE39 16b 000685 FE0194 B899 16b 000684 FE0196 C9F8 16b 000683 0006 E 0006 16b 000682 FE0198 889E 16b 000681 ooo6c8 0001 16b 000680 FE019A O2A1 16b 000679 FE019 B299 16b 000678 FE019E 7F08 16b 000677 FE019E 7F08 16b 000676 FE01AO C9FE 16b 000675 FEO1A2 C1DE 16b 000674 FE01A2 C1DE 16b 000673 FE01A2 C1D
79. luation MCU and the user system It is same for a sub clock oscillator Xcm and Xcout For notes on when using the oscillator circuit on the user system refer to 2 9 2 Selecting Clock Supply page 44 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 Port P15 As one of I O ports P15 1s connected to the user system through the analog switch circuit electric characteristics slightly differ from those of an actual MCU 8 When the SW4 is set to XOUT in stop mode a clock is output from the XOUT pin Note on RESET Input A low input to pin RESET from the user system is accepted only when a user program is being executed when the RUN status LED on the emulator s upper panel is lit Note on RDY Input Be sure to input L to pin RDY of the user system during the user program executing when the RUN status LED on the emulator s upper panel is lit Inputting L to pin RDY during the user program stopping may cause a malfunction of the emulator Note on HOLD Input Be sure to input L to pin HOLD of the user system during the user program executing when the RUN status LED on the emulator s upper panel is lit Inputting L to pin HOLD during the user program stopping may cause a malfunction of the emulator Note on NMI Input A low input to pin NMI from the user system is
80. n Jumper MCU Power Supply Voltage Selection Jumper page 24 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 24 8 Switches and Selection Jumpers on the M30850T2 EPBM These are switches to change the connections in the emulator according to the user system For details on the settings see 2 9 Changing Settings page 39 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 17 of 98 M30850T2 CPE User s Manual 1 Outline 1 3 Specifications Table 1 5 and 1 6 list specifications of the M30850T2 CPE Table 1 5 M30850T2 CPE specifications 1 2 Applicable MCUs M32C 80 84 85 and 86 Groups Evaluation MCU M30855FHGP ROM size 512 KB 4 KB RAM size 24 KB Usable mode Single chip mode Memory expansion mode Maximum operating frequency VCC1 VCC2 4 2 5 5V 32MHz VCC1 VCC2 3 0 5 5V 24MHz Dual power supply specification 4 8 V lt VCCI lt 5 2 V and 3 3 V lt VCC2 lt VCC1 32MHz Applicable power supply 3 0 5 5 V JPI1 EXT JP1 INT supplied from the emulator set by JP2 Basic debugging functions Download Software break max 64 points Program execution stop allows free run execution supporting software b
81. nd 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 6 Stopping the user program STOP Ei E Bi Ell Ti Te ft Te Stops the program Or you can select Stop from Debug menu for the same effect REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 60 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 7 Editor Source window after you have stopped the user program FOS 6409 FO122H Editor Source window The position at which the user program has stopped is marked by a yellow arrow E C323 0 FEFS FO 14H HOH Re OQUFH Re 3 Setting breakpoints 1 Screen after breakpoint setup screen after breakpoint setup N BZERO macro TOP_ SECT_ wauh tOOH ROL There are three types of breakpoints as described below 65 005a mow w ETOF_ amp OFFFFAY A Address match breakpoint 66 003d o mov w sizeof S5ECT_ R 67 0041 sste b This breakpoint can be set only when you chose to use bo nendm the address match break function on the MCU tab of the 70 N_BCOPY Dagro FROM_ T0_ SECT_ Tnit ialog box 71 0061 mov w N ROM_ amp OFFFFH AQ A breakpoint can be set or cleared by double clicking in 72 0064 mov b CPR gt gt 161 R1H eh as 33 f0067 mov y TO the address match breakpoint display area in the edit
82. ng the register above port P15 cannot be used as an I O port even if a D conversion is halting Because a converter board and other devices are used between the evaluation MCU and the user system the A D converter operates differently from an actual MCU Make the final evaluation of the A D converter using an actual MCU REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 88 of 98 M30850T2 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on CE Declaration of Conformity This product complies with CE marking EN55022 1998 Class A EN55024 1998 Please use it with care described 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 This product generates uses and can radiate radio frequency energy and may cause harmful interference to radio communications If this product causes harmful interference to radio or television reception which can be determined by turning this product off or on you are encouraged to try to correct the interference by one or more of the following methods Ensure attached cables do not lie across the probe board and converter board Reorient the receiving antenna Increa
83. nt suitable bypass capacitors as occasion demands Figure 2 26 shows where they are installed and the configuration of this product RENESAS MADE IN JAPAN CUT SS SS SS Sw1 Z x S SNJ AVCC AVSS EXT l XCIN VCONT P86 Ns Ass ai ee AVcc C1 C2 P C1 Vrer AVss bypass capacitor a we C2 AVcc AVss bypass capacitor Figure 2 26 Foot pattern for A D conversion bypass capacitors and the configuration of this product IMPORTANT Note on the A D Converter Function 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 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 48 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 3 Usage Emulator Debugger This chapter describes how to start up the emulator debugger and how to use the major windows 3 1
84. nternal circuit to break down Cautions to Be Taken for Turning On the Power Turn ON OFF the power of the emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning on the power again after shutting off the power wait about 10 seconds Cautions to Be Taken for Handling This Product Use caution when handling the main unit Be careful not to apply a mechanical shock Do not touch the connector pins of the emulator main unit and the target MCU connector pins directly Static electricity may damage the internal circuits Do not pull this emulator by the communications interface cable or the cable for connecting the user system And excessive flexing or force may break conductors Caution to Be Taken for System Malfunctions If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET button on the emulator upper panel 2 If normal operation is not restored after step 1 shut OFF the emulator once and then reactivate it REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 8 of 98 M30850T2 CPE User s Manual Contents Contents Page PE TICO ee ne eee me ee E E ee E eee ee E ee 3 Ta 56 0 9 caeemeree met tee eee ieee een eee ee ee ee er eee ee ere 4 Precautions T0 Sally aisan a aa ecient E a A stag
85. of VCC2 eee 7 Note on Differences between the Actual MCU and Emulator cccccccccccccceeeeeceeeeeseeseeseecesseeeseeeesaeees 78 Noton gt est collie MPU eee in em nce mre te oe cee one ar re ee er ee gerne ee eee eee ee ee eae en eae eee 78 IOUS Sa PR I esse csecte recta EA E bend dadnayenee cere dense E E es 78 KOGON AOEDD NE e ee eet eee ae ie ee ey E eee ae ee eee ee eS eee ee 78 NOG ORINNI UG ssl cee cents E meme ete ater econ EEE EEE A EA E deep rene dene NEER E EEA 78 INOTES ON IRESET V CCION Al Cal saces ces soceeamarides sie deed eta dnedadac once OA EE SANE RA EN sean saadacancund EE EEA OAN EEA 19 NOCES ORO FC cece E ce nncesenaaeesiice EE EEEE 79 Note on Maskable Interrupts cccccccccsecceeeeceeeecececeeeeceeceeceaeeceeesaueesaeeecaeeseaeessueesaueeseesesaeeseueessunenass 19 Notes on ACCESS Prohibited Area cise ste so nenetawoncancianocenesesaptnadenadantdacebbnaddecesinadenssindee aasenclinwosameddanesininesaaenedecesene 19 Note Of DMA Ti AinSte racic xciccis cise esse cies smes seins ded dics vives a Sooeadele Gabe saith dopey EAEE Aa SNEER dacs cain Gnade balsa dene dens soaks 79 Note on DMAC II Transfer Completion Interrupts cccccccccceecceeecesaeececaeeeeseeeeseeeeeseesesseeeesseeeseneeesaeees 79 Note On Final Evaluation cccccccccccccceececeeeeee cece eeseeeeseeeeseeeeeeeeseeeeeeeeseeeeseueeseeesseeeseueesaueeseesseeesaneeseueesaees 19 4 3 Connection Diagral sessen aa set elon
86. ology Corp assumes no responsibility for any damage liability or other loss resulting from the information contained herein Renesas Technology Corp semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake Please contact Renesas Technology Corp or an authorized Renesas Technology Corp product distributor when considering the use of a product contained herein for any specific purposes such as apparatus or systems for transportation vehicular medical aerospace nuclear or undersea repeater use The prior written approval of Renesas Technology Corp is necessary to reprint or reproduce in whole or in part these materials If these products or technologies are subject to the Japanese export control restrictions they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination Any diversion or reexport contrary to the export control laws and regulations of Japan and or the country of destination is prohibited Please contact Renesas Technology Corp for further details on these materials or the products contained therein M30850T2 CPE User s Manual Preface Preface The M30850T2 CPE is a compact emulator for the M32C 80 84 85 and 86 Groups MCUs with the real time trace function This user s manual mainly describes specifications of the M30850T2 CPE c
87. ompact emulator and how to setup it For details on the following products included with the M30850T2 CPE refer to each product s online manual Emulator debugger M32C Compact Emulator Debugger Ccompiler M3T NC308WA evaluation version Integrated development environment High performance Embedded Workshop All the components of this product are shown in 1 1 Package Components page 13 If there is any question or doubt about this product contact your local distributor The related manuals for using this product are listed below You can download the latest manuals from the Renesas Tools homepage http www renesas com en tools Related manuals Accessory tools Emulator debugger C compiler Assembler Integrated development environment REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 3 of 98 M30850T2 CPE User s Manual Important Important Before using this product be sure to read this user s manual carefully Keep this user s manual and refer to this when you have questions about this product Emulator The emulator in this document refers to the following products that are manufactured by Renesas Technology Corp 1 Compact emulator main unit 2 Package converter board for connecting the user system The emulator herein does not include the customer s user system and host machine Purpose of use of the emulator This emulator is a device to support the development of a system that
88. ompany or the owner 6 4 Repair Provisions 1 Repair with extra charge The products elapsed more than one year after purchase can be repaired with extra charge 2 Replacement with extra charge If your product s fault falls in any of the following categories the fault will be corrected by 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 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 95 of 98 M30850T2 CPE User s Manual 6 Maintenance and Guarantee 3 Expiration of the repair period When a period of one year elapses after the model was dropped from production repairing products of the model may become impossible 4 Transportation fees at sending your product for repair Please send your product to us for repair at your expense 6 5 How to Make Request for Repair If your product is found faulty follow the procedure below to send your product for repair Cus
89. or 74 fO006a mov w sizeof SNJ _ Ra source window A blue circle is displayed at the setting 75 006e D gt amowt b j 76 endm ine Up to eight breakpoints can be set ue fonsa a M eee 16 The address match break causes the program to stop 50 00a1 push w sizeof SECT_ amp Offffh before executing the address at which a breakpoint is set 81 f00a5 Pusha TOP_ 3316 Sof breaknoini a2 00a9 pusha TOP_ amp Offffh on a oe A software breakpoint can be set or cleared by double clicking the software breakpoint display area in the editor source window A red circle is displayed at the setting line 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 by right clicking the breakpoint display area If the breakpoint you set is a hardware breakpoint the program stops after executing the instruction at the set breakpoint after several cycles REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 61 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 4 Executing up to the cursor position 1 Setup procedure for running the program up to the cursor position Setup procedure for runnin
90. ot Pattern Part 2 Figure 2 17 shows how to connect the compact emulator to a 100 pin 0 5 mm pitch foot pattern on the user system with the M3T FLX 1OONSD not included and here following is its procedure For details on the M3T 100LCC DMS and M3T FLX 100NSD refer to each user s manual 1 Attach the M3T FLX 10O0NSD to the user system 2 Attach the M3T 100LCC DMS to the M3T FLX 100NSD 3 Attach the M30800T PTC to the M30850T2 CPE 4 Attach the M30800T PTC to the M3T 100LCC DMS M30850T2 CPE M3T 100LCC DMS not included M3T FLX 100NSD not included HQPACK100SD YQ GUIDE x4 not included i YQPACK100SD D NQPACK100SD FLASH MCU etc These corners are not round 100 pin 0 5 mm pitch 100P6Q foot pattern These four items are available in one package User system Figure 2 17 Connecting to a 100 pin 0 5 mm pitch foot pattern part 2 CAUTION Notes on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator and user system The small connectors of the M3T 100LCC DMS and M3T FLX 100NSD are guaranteed for only 20 insertion removal iterations The small connectors of the M30850T2 CPE and M30800T PTC are guaranteed for only 50 insertion removal iterations REJ10J0865 0300 Rev 3 00 December 16 2005 LENESAS Page 36 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 7 Connecting to a 100 pin 0 5
91. ot be rewritten Otherwise the emulator will be out of control When debugging in CPU rewrite mode is enabled you cannot use the following functions 1 Setting an address match breakpoint 2 Setting a software breakpoint to the internal ROM area 3 Executing COME to the internal ROM area Do not use the following functions to the rewrite control program area from setting CPU rewrite mode select bit to releasing it If any of these are used malfunctions may occur e g The emulator cannot shift to CPU rewrite mode or contents of ROM cannot be read our properly 1 Single stepping 2 Setting a software breakpoint 3 Setting a hardware breakpoint 4 Executing COME Note on Software Breaks A software break generates a break interruption by forcibly inserting a BRK instruction 08h instead of an instruction code Therefore when referencing the result of a trace in bus mode O8h is displayed for the instruction fetch address where a software break 1s set Note on Downloading Programs When you download a program to an internal ROM area and set software breaks the main clock operates in divide by 8 mode Keep it in mind when you specify a watchdog timer refresh interval Notes on Service Life of the MCU s Internal Flash ROM With the M30850T2 CPE programs are downloaded to the MCU s flash ROM when debugging in single chip mode or memory expansion mode Because the number of write erase cycles of this ROM
92. otes on Access Prohibited Area The emulator control register 000020h 00003Fh in the SFR is read and write protected When this register is accessed emulator control cannot be utilized With this product address FFFFFFh cannot be read or written in correctly Note on DMA Transfer With this product the user program is stopped with a loop program to a specific address Therefore if a DMA request is generated by a timer or other source while the user program is stopped DMA transfer is executed However make note of the fact that DMA transfer while the program is stopped may not be performed correctly Also note that the below registers have been changed to generate DMA transfer as explained here even when the user program is stopped 1 DMAO transfer count register DCTO 2 DMA transfer count register DCT 1 3 DMAO memory address register DMAO 4 DMAI memory address register DMA1 5 DMA2 transfer count register DCT2 RO 6 DMA3 transfer count register DCT3 R1 7 DMA2 memory address register DMA2 AO 8 DMA3 memory address register DMA3 A1 Note on DMAC II Transfer Completion Interrupts You can use DMAC II transfer completion interrupts during program execution only Do not generate DMAC II transfer completion interrupts when you use any function but program execution Note on Final Evaluation Be sure to evaluate your system with an evaluation MCU Before starting mask production evaluate your system an
93. p the M30850T2 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 REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 13 of 98 M30850T2 CPE User s Manual 1 Outline 1 2 System Configuration 1 2 1 System Configuration Figure 1 1 shows a configuration of the M30850T2 CPE system Host machine Power supply for emulator Power supply cable USB interface cable Power supply not included for user system t included not included not included Compact emulator M30850T2 CPE Figure 1 1 System configuration 1 Compact emulator M30850T2 CPE this product This 1s a compact emulator for the M32C 80 84 85 and 86 Groups with the real time trace functions hereafter emulator 2 USB interface cable included This is an interface cable for the host machine and the emulator 3 Power supply for emulator This is a power supply for the emulator Supply 5 0 V 45 DC Prepare a power supply 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
94. ram execution RUN ul Switches and selection jumpers on the M30850T2 EPBM SW1 SW5 and JP1 emulator side panel Figure 1 2 Names of the LEDs on the upper panel of the M30850T2 CPE 1 System Status LEDs The system status LEDs indicate the emulator main unit s operating status etc Table 1 2 lists the definition of the system status LEDs Table 1 2 Definitions of the system status LEDs POWER LED1 Orange Power is supplied to the emulator ore Power is not supplied to the emulator SAFE LED2 Green ON Emulator system has started normally Emulator system has not started normally REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 15 of 98 M30850T2 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 Name Number Color Status Meaning Orange Power is supplied to the target MCU OFF Power is not supplied to the target MCU Green oN The target MCU internal clock is oscillating ra The target MCU internal clock is not oscillating RESET LEDS Red ON Target MCU 1s being reset a tees MCU is not being reset RUN LED6 Green ON User program is being executed User program is not being executed 3 System Reset Switch By pressing the system reset switch you
95. range for the trace event rz Trace Point Setting Window Break CONDITION 64K cycles of instruction execution before the user Oo 1 B1 000000 FETCH addr 000000 program stopped is recorded O 1 B2 000000 FETCH taddr 000000 Before 64K cycles of instruction execution before a trace point condition was met is recorded About 64K cycles of instruction execution before and after a trace point condition was met is recorded After Combination PID OR foe Erable Dern 64K cycles of instruction execution after a trace point a acc osi condition was met is recorded Trace Area Write Condition Full u Break Total Y Detail 64K cycles of instruction execution after a trace began is Reset Dave Load Set Close recorded Event Status 4 Setting the trace write condition Setting the trace write condition r Trace Point Setting Window You can specify a condition for the cycles to be written into the trace memory Total Event Status CONDITION a O 1 81 000000 FETCH fader 000000 All cycles are written into memory O 1 Be 000000 FETGH addr OO0000 Pick up Only the cycles in which the specified condition was met are written into memory Exclude Only the cycles in which the specified condition was not Combination PID z Detail Enable oha Trace Area Write Condition Break Fick up When you have finished setting the tr
96. reaks Memory reference setting reference setting C variables run time execution Register reference setting Disassemble display C level debugging etc Real time trace function 64K cycle bus information recordable Address 24 bit Data 16 bit MCU status 12 bit 5 trace modes supported Break Before About A fter Full Can be recorded ON OFF by events 1 024 bytes 256 bytes x4 Data last access result Time between program start and stop Notes on Using This Product in Dual power Supply Specification If using this product when the voltage of VCCI is higher than that of VCC2 the VCC2 must be 3 3 V or more If using a CPU clock of more than 30MHz set the SFR area of the intelligent I O function to 2 wait set the PM13 bit to 1 when reading this area These precautions only need to be observed when using an emulator and does not apply for the actual MCU REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 18 of 98 M30850T2 CPE User s Manual 1 Outline Table 1 6 M30850T2 CPE specifications 2 2 Connection to user system For 144 pin 0 5 mm pitch LQFP M3T FLX 144NSD not included see 2 8 Connecting the User 144P6Q A System on page 30 For 100 pin 0 5 mm pitch LQFP 1 M30800T PTC included 100P6Q A M3T 100LCC QSD not included M30800T PTC included M3T 100LCC DMS not included M3T FLX 100NSD not included M3T F160 100NSD not included For 100 pin 0 65 mm pitch QFP M3
97. rn Part 3 ccccccseeeeeeseeeeeeeeeeeeeeeeeeeeesaeeenens 34 2 8 5 Connecting to a 100 pin 0 5 mm pitch Foot Pattern Part 1 cccecccesseeeeeeeeeeeeeeeeseeeeeseeeseeeeeeens 35 2 8 6 Connecting to a 100 pin 0 5 mm pitch Foot Pattern Part 2 cccccecccesseeeeeeeeeeeeseeeeeesseeeeeeseeeeeeeas 36 2 8 7 Connecting to a 100 pin 0 5 mm pitch Foot Pattern Part 3 cccecccesseeeeeseeeeeeeaeeseeeseseeeseeeeeeeas 37 2 8 8 Connecting to a 144 pin 0 5 mm pitch Foot Pattern ccc ccccccceeececeeceeeeeeesseeeesaeeeeeeeeesaeeeseneeeess 38 2 9 Changing Settings ccccccccssececcesseecceeseeecseeeecseseeeceaseeecsageeecseuseeeseuseeessagecessageeeesegeeeesssaaeessaseeessegeeesssaeenenes 39 2 9 1 Setting Switches Of Emulator 2 0 0 ec cceccece ce eeeeeeeeeeeeeeeeeeeeaeeeeeeseeeeesaeeeeeeseeeeeeseaeeesaeeeeeeeseneeessaeeeeeeas 39 2 9 2 Selecting Clock Supply ccccccccccceececcesseecceenececseseecesaseeecsueeecseuseeessaueeessageeeesaueeessueeseesageeessnseeeens 44 2 9 3 A D Conversion Bypass Capacitors cccccceccccceececeeceeceeceeaeeeeeeeeeeceeeeeseeeesseeeesseeeesseeeesseeesaeeeesaeeeeas 48 3 Usage Emulator DE DUC GSN eisni Ea sue dic E A EAE EE AE Sa ENNER 49 3 1 Starting Up the Emulator Debugger Init Dialog BOX ccceecccecseeeeeeeeeeeeseeeeeesaeeeeeeseeeeeeseeseeesaeneeeeaeeeees 49 Notes on selection of whether or not to use the watchdog timer ccccccccseeeeecaeeeeeeeeeeee
98. rol program Therefore the watchdog timer starts after the user program has stopped To use the watchdog timer to debug the user program select this check box If this check box is unselected the emulator may run out of control after the user program has stopped To debug a user system that does not use the watchdog timer do not select this check box If this check box is selected the watchdog timer starts after the user program has stopped so that if the user program is reexecuted the watchdog timer underflows generating a watchdog timer interrupt or a reset REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 50 of 98 M30850T2 CPE User s Manual 4 Using or not using the CPU rewrite mode MEL Debugging Information Emulator Resume MEU mA0S50 mcu Refer serial Mo z MSO0850 4 0M030 Resource W Enable the Sdedf ess Match Interrupt Break Function Debyethe program using the Watchdog Timer l bue the program using the GPU Rewrite Mode Enable the Trace Point Function Cansel Help I Next Hide 5 Using or not using the trace point function MEU Debugging Information Emulator Resume MECU m3050 meu Refer serial Mo 2 MS0860 40M030 Resource J Enable the Address ffatch Interrupt Break Function Debug the pee ram using the Watchdog Timer DebaeThe program using the GPU Rewrite Mode hable the Trace Point Function Cansel Help Next Hide 6 Exe
99. s FBOOUO FEFFFF _ Any block which has had its check box selected is not FOOQOQ FOFFFF cleared when downloading The memory content of this p ock remains intact unless overwritten by downloading c 8 bosk remains sete by ok 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 The option you have specified here remains effective the next time you start up Page 58 of 98 M30850T2 CPE User s Manual 3 3 Program Window 1 Downloading the program 1 Downloading from the work space window _M32C_85_TEST M32C_85_TEST 4 Absolute file Assembly include file I ml ctin rit irc Assembly source file 29 _rammonitor aa0 4 C source file Download modules 029 rammonitor xing 3 Dependencie Download mod Download module tdebue data only Configure ew Allow Docking Hide 2 Showing the source program LDC 480H SP LDINTE V EC_ADDR REGWR_MAIN REG_10 REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS 3 Usage Emulator Debugger Downloading the program Download the object program you want to debug Select Download from xxx x30 of Download module Or you can sele
100. 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 C D me lt Q 5 Cc Q M30850 2 CPE User s Manual Compact Emulator for M32C 80 84 85 and 86 Groups Renesas Electronics com Rev 3 00 2005 12 WWW FENESAS CO Keep safety first in your circuit designs Renesas Technology Corp puts the maximum effort into making semiconductor products better and more reliable but there is always the possibility that trouble may occur with them Trouble with semiconductors may lead to personal injury fire or property damage Remember to give due consideration to safety when making your circuit designs with ap propriate measures such as i placement of substitutive auxiliary circuits ii use of non flammable material or ili prevention against any malfunction or mishap Notes regarding these materials These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp product best suited to the customer s application they do not convey any license under any intellectual property rights or any other rights belonging to Renesas Technology Corp or a third party Renesas Technology Corp
101. se the distance between the product and the receiver Connect the product into an outlet on a circuit different from that to which the receiver 1s connected Consult the dealer or experienced radio TV technician for help Attach the ferrite core included with this product close to the DC plug of the power cable Without the ferrite core it may cause interference The power cable should be wound around the ferrite core as shown in the figure and close the ferrite core until it clicks REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 89 of 98 M30850T2 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 Not normal Front panel LED of emulator 1 Check connection of the power supply cable Normal See 2 4 Connecting the Power Supply for Emulator page 22 2 Check that the power is properly supplied to the user system See 2 6 Turning ON the Power Supply page 24 Init dialog box of Not normal Error displayed emulator debugger displayed 1 Check the operating environment e
102. tc of the Normal emulator debugger See the user s manual of the emulator debugger 2 Reinstall the emulator debugger MCU Setting dialog box Not normal Error displayed of emulator debugger displayed See 5 2 2 MCU Setting Dialog Box Does Not Appear at Normal Debugger Startup page 92 Program window of emulator debugger displayed See 5 2 3 Errors Occur at Debugger Startup page 93 Normal Error displayed Emulator debugger startup completed Figure 5 1 Flowchart to remedy the troubles REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 90 of 98 M30850T2 CPE User s Manual 5 Troubleshooting 5 2 When the Emulator Debugger Does Not Start Up Properly 1 When the LEDs of the M30850T2 CPE Do Not Display Normally Table 5 1 Errors LEDs show and their checkpoints the user system LEDs do not light up Check that the power cable is connected See 2 4 Connecting a Power Supply page 22 Target Status POWER LED does Connected Check that power is properly supplied to the user system and that not light up the user system is properly grounded 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 2 Selecting Clock Supply page 44 Connec
103. ted 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 Check that the reset pin of the user system is pulled up not go out REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 91 of 98 M30850T2 CPE User s Manual 5 Troubleshooting 2 MCU Setting Dialog Box Does Not Appear at Debugger Startup Table 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 23 Not compact emulator Check that an emulator other than the compact emulator such as PC4701 PC7501 is not connected Target MCU is in the reset state Check that the reset pin of the user system 1s 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 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 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 in th
104. teed for only 20 insertion removal iterations The small connectors of the M30850T2 CPE and M30800T PTC are guaranteed for only 50 insertion removal iterations NQPACK YQPACK YQSOCKET YQ GUIDE HQPACK TQPACK and TQSOCKET are trademarks of Tokyo Eletech Corporation REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 34 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 5 Connecting to a 100 pin 0 5 mm pitch Foot Pattern Part 1 Figure 2 16 shows how to connect the compact emulator to a 100 pin 0 5 mm pitch foot pattern on the user system with the M3T 100LCC QSD not included and here following is its procedure For details on the M3T 100LCC QSD refer to its user s manual 1 Attach the M3T 100LCC QSD to the user system 2 Attach the M30800T PTC to the M30850T2 CPE 3 Attach the M30800T PTC to the M3T 100LCC QSD M30850T2 CPE M3T 100LCC QSD not included qm No 1 pin User system Figure 2 16 Connecting to a 100 pin 0 5 mm pitch foot pattern part 1 CAUTION Notes on Connecting the User System Take care not to attach the converter board in a wrong direction It may cause a fatal damage to the emulator and the user system The small connectors of the M30850T CPE and M30800T PTC are guaranteed for only 50 insertion removal iterations REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 35 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 6 Connecting to a 100 pin 0 5 mm pitch Fo
105. teed for only 20 insertion removal iterations The small connectors of the M30850T2 CPE and M30800T PTC are guaranteed for only 50 insertion removal iterations REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 32 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 3 Connecting to a 100 pin 0 65 mm pitch Foot Pattern Part 2 Figure 2 14 shows how to connect the compact emulator to a 100 pin 0 65 mm pitch foot pattern on the user system with the M3T DIRECT100S not included and here following is its procedure For details on the M3T 100LCC DMS and M3T DIRECT100S refer to each user s manual 1 Attach the M3T DIRECT100S to the user system 2 Attach the M3T 100LCC DMS to the M3T DIRECT100S 3 Attach the M30800T PTC to the M30850T2 CPE 4 Attach the M30800T PTC to the M3T 100LCC DMS M30850T2 CPE M3T 100LCC DMS not included M3T DIRECT100S not included 100 pin 0 65 mm pitch 100P6S foot pattern User system Figure 2 14 Connecting to a 100 pin 0 5 mm pitch foot pattern part 2 CAUTION Notes on Connecting the User System Take care not to attach a converter board in a wrong direction It may cause a fatal damage to the emulator and user system The small connectors of the M3T 100LCC DMS and M3T DIRECTI00OS are guaranteed for only 20 insertion removal iterations The small connectors of the M30850T2 CPE and M30800T PTC are guaranteed for only 50 insertion removal iterations REJ10J0865 0
106. the status between the CPU and BIU Bus 00031 FEO178 for i k qap i lt 10 i itgap g0032 FE0185 for j i gap j gt k 3 j gap Interface Unit 00033 FEO192 if alj gt aljtgap 00034 FEOiBi t alj OPC 00035 FEOicOo alj aljt oone FEOIDD alj gap Shows the op code size in the read data 00038 OPR 00039 break 00040 A Shows the code size except op code b 4 REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 69 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 2 Suspending and resuming trace measurement 1 Suspending trace measurement Stop alee V saOl vas Click this toolbar button to suspend the trace measurement Range Area Before Break File Cycle Address Time in progress gyula Label Address Data BUS BHE BIU R W RWT CPU OPC 2 Resuming trace measurement Re Start 5 evela l va x uv l Click this toolbar button to resume the trace measurement in Range 065535 000000 Area Before Break File Cycle 000015 Address Fs80064 Time progress gyal Label Address Data BUS BHE BIU R W RWT CPU 000015 F80064 ESF1 16b O0 F R 0 000014 F80066 9ADO0 16b 000013 F80068 BBF6 16b 000012 F80068 BEBF6 16b 000011 F80068 BBF6 16b 000010 FSO06A BBCE 16b g00008 F8006 BBFF 16b 000008 F3005E 8588 16b 0000OTF F80060 SEAS 16b 000006 F80062 E8
107. tomer Fill in the Repair Request Sheet included with this product then send it along with this product for repair to your local distributor Make sure that information in the Repair Request Sheet is written in as much detail as possible to facilitate repair Distributor After checking the contents of fault the distributor should please send the faulty product along with the Repair Request Sheet to Renesas Solutions Corp Renesas Solutions When the faulty product is repaired it will be returned to the customer at the earliest convenience CAUTION Note on Transporting the Product When sending your product for repair use the packing box and cushion material supplied with this product when delivered to you and specify handling caution for it to be handled as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a bag make sure to use conductive polyvinyl supplied with this product usually a blue bag When you use other bags they may cause a trouble on your product because of static electricity REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 96 of 98 Compact Emulator for M32C 80 84 85 and 86 Groups M30850T2 CPE User s Manual Publication Date Dec 16 2005 Rev 3 00 l Sales Strategic Planning Div PUSISAEUHY Renesas Technology Corp Edited by Microcomputer Tool Development Department Renesas Solutions Corp 2005 Renesas Technology
108. ulator 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 3 The block 0 area address FFFOOOh FFFFFFh may be rewritten when debugging in the CPU rewrite mode Within 2 seconds of activating power to the emulator press the system reset switch to restart the emulator debugger The firmware will be redownloaded f Je The emulator system is not working properly The emulator may be damaged Contact your local distributor 7 x IMPORTANT Notes on the Self check Be sure to disconnect the user system before executing the self check Use the preinstalled oscillator circuit board OSC 3 32 MHz to execute the self check If the self check does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 29 of 98 M30850T2 CPE User s Manual 2 Setup 2 8 Connecting the User System Figure 2 11 shows the connection of the M30850T2 CPE and the user system Compact emulator S 100 pin 144 pin 0 5 mm pich 0 65 mm pitch 0 5 mm pitch included lt gt 9 M30800T PTC M30800T P
109. ur system status Emulation Memory Flash Clear A Processor Mode pene Expansion 16 Bit A SE EBE MAL Reie Memory Expansion 16 Bit CA Wes Mh RO HOL Dt eae Cansel Help Next Hide IMPORTANT Notes on Selecting a Processor Mode When setting single chip mode or memory expansion mode the level of pin CNVSS of the MCU status should be L The MCU status shows the pin level of the user system When setting memory expansion mode pins RDY and HOLD of the user system should be H When the user system is not connected all modes are available REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 55 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 1 Referring to the MCU Status Status Emulation Memory Flash Clear Processor Mode ZEE Besede 16 Bit ee Expansion 16 Bit CA Wes Miir RDO HOL De l Referring to the MCU Status Ea It shows the status of each MCU pin Check it to see if the MCU status matches the selected processor mode If a slider is at the center it means that the pin status is indeterminate el Cansel Help Wext Hide IMPORTANT Notes on Selecting a Processor Mode The MCU status is shown in MCU Status of the EMEM dialog box Check that it is matching the specified processor mode Check that the RDY and HOLD are H level If they are L level as the MCU enters a wait status and the
110. uses the M16C Family M32C 80 Series and M32C 80 84 85 and 86 Groups of Renesas 16 32 bit single chip MCUs It provides support for system development in both software and hardware Be sure to use this emulator correctly according to said purpose of use Please avoid using this emulator for other than its intended purpose of 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 its use for program development and evaluation in laboratories Therefore it does not fall under the application of Electr
111. ut user registration please email to the following address regist_tool renesas com REJ10J0865 0300 Rev 3 00 December 16 2005 stGNESAS Page 11 of 98 M30850T2 CPE User s Manual Terminology Terminology Some specific words used in this user s manual are defined as follows Emulator M30850T2 CPE This means the compact emulator this product for M32C 80 84 85 and 86 Group MCUs MCU board M30850T2 EPBM The MCU board M30850T2 EPBM with an evaluation MCU Emulator system This means an emulator system built around the M30850T2 CPE emulator The M30850T2 CPE emulator system is configured with an emulator main unit M30850T2 CPE M32C compact emulator debugger and host machine M32C compact emulator debugger This means a software tool which you can control the emulator from a host machine through the USB interface Firmware This means a program stored in the flash ROM of the emulator It analyzes contents of communication with the emulator debugger and controls the emulator M30850T2 CPE This program is downloadable from the emulator debugger to upgrade firmware or to support other MCUs Host machine This means a personal computer used to control the M30850T2 CPE emulator system Software break A software break is a function to break the program before the system executes an instruction at the specified address The instruction at the preset address will not be executed Hardware break A hardware break is a function to break
112. window in initial state RAM Monitor Area Setting Window in initial state By default the monitor area is set to 000400h through A RAM Monitor Area Setting Window Current Assigned Grea 0007FFh To change it click the line you want to set Sad 00400 0007F FF A Remove All iew gt OO0400 4 O blocks 0 bytes are available 41 block 256 bytes gt Save Load Close 3 RAM monitor area setting dialog box Specifying the start address You can set the start address of the RAM area to be Set RRAM Area X EN monitored Specifying the size You can set the size to be monitored by specifying the rea OO0400 000r FF number of blocks from the start address One block is 256 Cancel bytes in size REJ10J0865 0300 Rev 3 00 December 16 2005 st NESAS Page 74 of 98 M30850T2 CPE User s Manual 3 Usage Emulator Debugger 4 RAM monitor area setting dialog box when RAM monitor area is changed from 400h to block Specifying the start address You can set the start address of the RAM area to be RAM Monitor Area Setting Window monitored To add a RAM monitor area click the Add Current Qssigned Area button The RAM Monitor Area Setting Window will be Add 000400 OO04FF TP displayed Remove l View OO0400 3 blocks 768 bytes are available 1 block 256 bytes gt Dave Lo

Download Pdf Manuals

image

Related Search

Related Contents

Import LC Issuance User Manual  info - Charles Birch  Freeman PFR2190 Installation Guide  Impressora em Cores Xerox® C75  Manuel d`installation, d`utilisation et d`entretien de la famille Sun  Calcul de l`IBEM - Indice de Biodiversité des Etangs et Mares Mode  Automatic Pool Cleaner Installation and Operating Instructions    

Copyright © All rights reserved.
Failed to retrieve file