Home
M3028BT2-CPE User`s Manual (Compact Emulator for M16C/Tiny
Contents
1. Unit mm Figure 4 4 External dimensions and a sample foot pattern of the converter board M30260T 48FPD REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 74 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications 4 4 4 External Dimensions of the Converter Board M30291T 64FPD Figure 4 5 shows external dimensions and a sample foot pattern of the converter board M30291T 64FPD included with the M3028BT2 CPE 3 for a 64 pin 0 5mm pitch LQFP O00 00 30291T 64FPD REV A MADE IN JAPAN J gt Unit mm Figure 4 5 External dimensions and a sample foot pattern of the converter board M30291T 64FPD 4 4 5 External Dimensions of the Converter Board M30290T 80FPD Figure 4 6 shows external dimensions and a sample foot pattern of the converter board M30290T 80FPD included with the M3028BT2 CPE 4 for an 80 pin 0 5mm pitch LQFP 41 0 oO 5 RENESAS
2. 430290T 80FPD REV A MADE IN JAPAN Figure 4 6 External dimensions and a sample foot pattern of the converter board M30290T 80FPD REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 75 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications 4 4 6 External Dimensions of the Converter Board M30280T 85LGF Figure 4 7 shows external dimensions and a sample foot pattern of the converter board M30280T 85LGF included with the M3028BT2 CPE 5 for an 85 pin 0 65mm pitch TFLGA 4 00 8 0 03 holes for guide pins M30280T 85LGF REV A pl 9 9 6 O O40 0 6 0 O 85 00 35 i 4 Unit mm pad diameter 0 27 Diameter of recommended metal mask 0 35 thickness 0 15 Figure 4 7 External dimensions and a sample foot pattern of the converter board M30280T 85LGF REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 76 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications 4 5 Notes
3. TARGET STATUS Figure 2 5 Connecting the emulator system REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 23 of 90 M3028BT2 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 ENESAS POWER USB SYSTEM DO e STATUS l H528 TZ cPE zZ gt Q Lo gt 2 oO H gt lt W JP1 MCU power supply source selection jumper factory setting INT JP2 MCU power voltage selection jumper factory setting 5 0V STATUS C 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 E TEP MCU power supply MCU power supply Ea source selection voltage selection Description the user system l l jumper JP1 jumper JP2 Supplied from the emulator The MCU operating Not connected INT voltag SAA Supplied from the emulator The MCU operating 5 0V voltage is 5 0V Supplied from the user system This emulator Connected EXT Invalid consumes max 500mA of electrical current from th
4. MGU Debueeing Information Emulator Scr ipt up the debugger click the Refer button and specify the script file to be executed nit File U e Refer Clicking the Refer button brings up a file selection dialog box The script file you have selected is displayed in the Init File section of the dialog box shown here If you do not want to automatically execute a script command delete the character string displayed in the Init File section of the dialog box What you specify here is reflected at only startup If you specify back again in the Init dialog box after startup whatever you specified has no effect Be sure to restart the emulator debugger When you have finished the settings 1 to 4 above click OK REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 46 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 3 MCU Setting Dialog Box The MCU Setting dialog box is used to set the user system information It is displayed after you closed the Init dialog box 1 MCU tab 1 Specifying the processor mode MCL Setting Specifying the processor mode MCU Flash Clear Select the appropriate processor mode that suits your OO al system For this product you can specify only the following MCU M16029 BI MATE Processor Mode Single Chip Mode ZHE RD CNV ss Memory Space Expansion Normal Mode BYTE processor mode Single Chip Mode Externa
5. ccccscccccccseseeeeeeseeeseeeeeeseeeeeeseeseeeesaaeeeeeeaeeeeseaeeeeseeeesaaeeeeseaeeeessaeeeessaeeeessaseeesseseessaaneees 86 S220 FS VU 12 Fe ce nT cy EO ee ee ee 86 POLC EII E E EE EEE E eatec N E E OE E E OANE AEE 86 OTAGO FO VISIONS eea E E E E A E E E 86 6 5 How to Make Request for Repair ccccccseseccceeseeecsseeceeeseecceuseeecsaeeecseuseeeseaseessageeessageeeesensueeessageeessageees 87 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 10 of 90 M3028BT2 CPE Users Manual User Registration User Registration Customer Registration Sheet is included with this manual fill it in and FAX it to your local distributor or email the same contents to the following address If you register it by email you can use a text format for user registration created when installing the software in the following folder Your registered information is used for only after sale services and not for any other purposes Without user registration you will not be able to receive maintenance services such as a notification of field changes or trouble information So be sure to carry out the user registration For more information about user registration please email to the following address Text format for user registration C Program Files Renesas Hew Support For user registration regist_tool renesas com REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 11 of 90 M3028BT2 CPE User s Manual Terminology Terminology So
6. 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 12 of 90 M3028BT2 CPE Users Manual 1 Outline 1 Outline This chapter describes the package components the system configuration the specifications and the operating environment of this product 1 1 Package Components The M3028BT2 CPE package consists of the following items When unpacking it check to see if your M3028BT2 CPE contains all of these items Table 1 1 Package components H W Tool Customer Registration Sheet Japanese Repair Request Sheet English Repair Request Sheet Japanese M3028BT2 CPE User s Manual this manual M3028BT2 CPE User s Manual Japanese M3028BT2 CPE Release Notes Japanese CD ROM M16C R8C Compact Emulator Debugger C compiler M3T NC30WA evaluation version Please keep the M3028BT2 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 trans
7. When replacing the oscillator circuit boards be sure to shut OFF the power supply Otherwise the internal circuit may cause a break REJ10J1457 0200 Rev 2 00 July 16 2007 CENESAS Page 38 of 90 M3028BT2 CPE Users 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 18 shows an external view of the OSC 2 oscillator circuit bare board and the connector pin locations Figure 2 19 shows the circuitry of the oscillator circuit bare board OSC 2 Use the number of oscillator circuits recommended by the oscillator manufacturer J1 4 GND J1 3 Oscillation output J1 2 GND J1 1 VCC X1 5 08mm pitch 2 pin oscillator X2 2 54mm pitch 2 pin oscillator IC1 Inverter Unbuffer X3 2 54mm pitch 3 pin oscillator Figure 2 19 Circuits of the oscillator circuit bare board OSC 2 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 39 of 90 M3028BT2 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 20 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 Osci
8. hit MIG REG Compact Emulator MOU Debugging Information Emulator Script MCL Refer Serial No 2 M3028B 4HI0001 Self Check Debug Option e Enable the Address Match Interrupt Break Function Debug the program using the CPU Rewrite Mode Enable the Trace Point Function ax a Do not show this dialog box again 2 Using or not using the address match break function hit MI6G REG Gompact Emulator MEL Debueeing Information Emulator Script MCU M16029 meu Reter Serial Mo 2 W30288 4H 10001 Self Check Debue Optiong J Ehable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode Enable the Trace Point Function Do not show this dialog box again REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Specifying the MCU file Click the Refer button A file selection dialog box will be displayed so select the MCU file corresponding to the target MCU The MCU file contains the information specific to the target MCU The MCU file you have selected is displayed in the MCU section of the MCU tab serial No Shows the currently connected emulators in list form Select the serial No of the emulator you want to be connected Using or not using the address match break function Specify whether or not to use the address match break function T
9. M3028BT2 CPE User s Manual 2 Setup When the user system connected If the POWER LED does not light shut off the system and check the LED3 POWER LED3 setting of the jumper switches and check if the power is properly clock uy LED4 CLOCK LED4 supplied to the user system RESET LEDS RESET E Leps ON o RUN RY Eos RUN B EDs After turning the power ON After starting up the emulator debugger Figure 2 9 Target status LEDs display when the emulator starts up normally when user system connected IMPORTANT Note on the Target Status CLOCK LED If the LED is not turned on check the following After the emulator debugger is started up after the Init dialog box settings are completed Make sure that the oscillator selected in the Init dialog box is oscillating normally REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 27 of 90 M3028BT2 CPE Users Manual 2 7 Self check 2 7 1 Self check Procedure The self check is a function to check the memory etc mounted in the emulator 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 2 3 4 5 If the user system is connected disconnect it Set the switches as the factory settings to execute the self check see Table 2 3 Within 2 seconds of activating power to the emulator press the system reset switch on the emulator upper panel
10. Step Out Exits a function and stops at a statement in the program next to the one that called the function Or you can select Step In or other corresponding commands from Debug menu for the same effect REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 51 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 6 Stopping the user program STOP Stops the program Or you can select Stop from Debug menu for the same effect FF0118 6409 Editor Source window FOTIA fA mi i0 The position at which the user program has stopped is Ag marked by a yellow arrow HeH Ris FO 14H HOH Re HUQUFH Re REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 52 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Setting breakpoints 1 Screen after breakpoint setup Screen after breakpoint setup N BEZERO macro TOP_ SECT_ mow h OOH ROL There are three types of breakpoints as described below 65 f 5a mow w ETOF_ amp UFFFFRY A Address match breakpoint 66 003d o mov w sizeof SECT_ Ra 67 0041 satr b bo nendm the address match break function on the MCU tab of the This breakpoint can be set only when you chose to use 70 N_BCOPY Stagro FROM_ TO_ SECT_ eee 71 0061 mov w INEROWM_ amp OFFFFH Al A breakpoint can be set or cleared by double clicking in 72 0064 mov b o CPRM_ 22163 R1H ee
11. Table 2 1 Specification of power supply of the emulator Power supply voltage DC 5 0V45 2A 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 SS T 4 75mm Figure 2 3 Power connector specifications Figure 2 4 Applicable plug specifications A CAUTION Notes on Connecting a Power Supply of the Emulator The power cable included in this product package is colored red and black Be careful about the polarity of the power supply Connecting to the wrong electrode could destroy internal circuits Do not apply a voltage exceeding the specified voltage of the product 5 0V 5 because it may cause burn injuries and the failure of internal circuits Use the power supply which complies with CE marking requirements REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 22 of 90 M3028BT2 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 supply A T To host machine Connect the USB interface cable to connector J2 2XENESAS POWER USB POWER SYSTEM Soa SAFE STATUS COMPACT EMULATOR M3028BT2 CPE
12. Check the SAFE LED starts flashing and then press the system reset switch again The self check will start If the normal result is displayed in about 10 seconds the self check terminated normally 2 Setup Table 2 3 Switch settings for the self check MCU power supply source selection jumper JP1 MCU power supply voltage selection jumper JP2 Setting 1 Within 2 seconds of activating power POWER SAFE POWER CLOCK RESET RUN z press the reset switch E E E GE E LED3 LED4 LED5 LED6 LED1 LED2 SAFE POWER CLOCK RESET RUN ee 2 Check that the SAFE LED starts blinking then press the system reset switch again oe E eee l LED3 LED4 LED5 LED6 LED1 LED2 Self check starts SAFE POWER CLOCK RESET RUN POWER Lut A rit hie 3 Target status LEDs start blinking at random intervals I l I LED2 roto LED4 tort LEDS SAFE LED status Normal II LED6 It takes 10 seconds at XIN 20MHz Blinking OFF Error POWER CLOCK RESET RUN POWER SAFE rot it II I roti II rr rT rT ror LED3 LED4 LED5 LED6 POWER CLOCK RESET RUN POWER no hl LED3 LED4 LED5 LED6 LED1 LED1 LED2 SAFE LED is turned off and one or more target status LEDs start blinking according to the error type LED display Blinking OFF Figure 2 10 Self check procedure REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 28 of 90 M3028BT2 CPE User s Manual 2 Setup 2 2 lf an Error is Detected in the Self ch
13. sa fong mov w T0_ the address match breakpoint display area in the editor 74 006a mov w sizeof SNT_ Ra source window A blue circle is displayed at the setting 75 0066 aie emoyvt b ji 76 endm ine Up to six breakpoints can be set To BYERU Macro TOP_ ECT_ sa fonsa push w fsizeof SECT gt gt 16 The address match break causes the program to stop SO 00ai push w sizeof SECT_ amp Offffh before executing the address at which a breakpoint is set 81 00a5 Pusha TOP_ 3316 Sof oe ee fo0a9 pusha TOP_ amp Offffh a 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 53 of 90 M3028BT2 CPE Users Manual 3 Usage How to Use the Emulator Debugger 4 Exec
14. 2 Connecting to a 48 pin 0 5mm pitch Foot Pattern Here following is a procedure of connecting to a 48 pin 0 5mm pitch foot pattern on the user system using the M30260T 48FPD included with the M3028BT2 CPE 2 For details on the M30260T 48FPD refer to its user s manual 1 Mount the NQPACKO48SD included with the M30260T 48FPD to the user system 2 Attach the YQOPACKO48SD included with the M30260T 48FPD to the NQPACKO48SD and secure it with the YQ GUIDE s 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M3028BT2 CPE 4 Attach the M30260T 48FPD to the YQPACKO48SD M3028BT2 CPE M30260T 48FPD HQPACK048SD not included a YQ GUIDE x4 oa bi MCU with on chip A on flash memory etc YQPACK048SD ON EGin ase pitch 48P6Q A foot pattern e No 1 pin These products are included with the M30260T 48FPD package Figure 2 13 Connecting to a 48 pin 0 5mm pitch foot pattern A 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 IMPORTANT Notes on Connectors of the Converter board The connectors of the M3028BT2 CPE and M30290T PTCB are guaranteed for only 50 insertion removal iterations Between the M30260T 48FPD and YQPACKO48SD are guaranteed for only 100 insertion removal iterations REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 32 of 90 M3
15. A5 65 49 92 SA Fat CD Di Fe 92 EZ Ef 2B FF FR 5D C9 i REJ10J1457 0200 Rev 2 00 July 16 2007 RENESAS Specifying the start address You can set the start address of the RAM area to be monitored To add a RAM monitor area click the Add button The RAM Monitor Area Setting Window will be displayed Changing the RAM monitor display area You can change the manner in which the RAM monitor area you have set in the above dialog box is displayed T 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 White Addresses not accessed The background colors can be changed as necessary Page 67 of 90 M3028BT2 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 M3028BT2 CPE Applicable MCU M16C Tiny Series Applicable MCU mode Single chip mode Max ROM RAM capacity 1 Internal flash ROM 128KB 4KB OFOOOh OFFFFh EOOOOh FFFFFh 2 Internal RAM 12KB 00400h 033FFh Maximum operating frequency Power voltage at 4 2 to 5 5V 24MHz for 2
16. Before Break File Cycle 002366 Address OFOOC4 Time Cycle Address 002366 orooc4 002365 0003E2 002364 pda0 0003 E2 002363 pdi 0003E3 002362 pdl 0003E3 002361 OFrooc6 002360 OFOOCE 002359 pdi 0003E3 002358 pdi 0003E3 002357 Oroocs 002356 Oroocs 002355 pd6 0003 EE 002354 pd6 OOO3EE suuzsa9 d rd sfr OFOOCA 002352 pd6 OOO3EE 002351_ pd6 OOO3EE NNHIACA NNNM trace measurements It has the following three display modes Bus mode Bus information per cycle can be inspected The contents are displayed in order of execution paths Disassemble mode The execution paths of the executed instructions can be inspected The contents are displayed in order of execution paths Source mode The execution paths of the source program can be inspected Operating buttons of the tool bar can reference the execution paths 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 60 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Trace window bus display Explanation of the trace window _ bus displa The following explains the displayed contents from left to right Cycle Shows trace cycles Double click here to bring up a dialog box to change the displayed cycle
17. Modes Do not single step an instruction shifting to stop or wait mode It may cause communications errors Note on Display of MCU Status MCU status you can refer to in the MCU tab of the MCU Setting dialog box of the emulator debugger shows pin levels of the user system Make sure that proper pin levels are specified according to the mode you use When this product is used with connecting to the user system be sure to set as follow CNVss Low Note on Breaks The following three breaks can be selected in the emulator debugger 1 Address match break This is a debugging function which breaks a program using the address match interrupt function of the MCU immediately before the system executes an instruction at a specified address The instruction at the preset address will not be executed Software break This is a debugging function which generates a BRK interruption by changing an instruction at a specified address to a BRK instruction OOh to break a program immediately before the system executes an instruction at a specified address The instruction at the preset address will not be executed Hardware break This is a debugging function which breaks a program by setting the detection of an execution of an instruction at a specified address as a break event The program will break after the instruction at the specified address is executed Notes on Address Match Breaks As the processing speed of setting and canceling address matc
18. TE A Cancel Help T Do not show this dialog box again 2 Debugging Information tab 1 Specifying the compiler used and the object format hit MIGG REG Compact Emulator MEL Debugging Information Emulator Script Compiler INCSOWA NGES B Object Format IEEE 695 Metn Demand i Cancel Help Do not show this dialoge box again REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS 3 Usage How to Use the Emulator Debugger Executing the self check Enable this function when you want the emulator to be self checked at startup Be sure to select the check box only when you want the emulator to be self checked at startup This function may be enabled in the following cases When you are using the emulator you have just purchased When you successfully download the firmware but fail to start up the emulator When you want to confirm whether the emulator is operating normally because for example the MCU runs out of control or something is wrong with the trace results This function can be enabled only when you are starting up the emulator debugger Specifying the compiler used and the object format Displays the compiler used and its object format Please specify the compiler used and its format in the dialog opened by menu Debug gt Debug settings Specifying the method for storing debug information There are two methods for storing debug information on memory met
19. after a reset is released Notes on Reset Vector Area Memory in the emulator main unit is always selected as a reset vector area FFFFCh FFFFFh in order to operate the evaluation MCU in the emulator dedicated mode Set the contents of the reset vector area in one of the following ways 1 Download a user program to an area including the reset vector area 2 Set the reset vector using a memory window of the emulator debugger etc You can change data in the reset vector area only when the user program is stopped Do not access the reset vector area as data It may not be accessed properly Note on Accessing Addresses 00000h and 00001h With the M16C Tiny Series MCUs when a maskable interrupt is generated the interrupt data interrupt number and interrupt request level stored in addresses 00000h and OOOOLh are read out Also the interrupt request bit is cleared when address 00000h or OOOOLh is read out Consequently when the address 00000h or OOOO 1h readout instruction is executed or when address 00000h or OOOOLh is read out in the cause of a program runaway a malfunction occurs in that the interrupt is not executed despite the interrupt request because the request bit of the highest priority interrupt factor enabled is cleared Note on Operating Frequency You cannot use this product with a main clock Xjy Xoyr less than 1MHz To use it with a main clock less than 1 MHz contact your local distributor Note on Timeout
20. 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 l 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 16 of 90 M3028BT2 CPE Users Manual 1 Outline 6 MCU Power Supply Source Selection Jumper JP1 This is a jumper switch to select the power supply source to the MCU For details on this switch see 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 24 7 MCU Power Supply Voltage Selection Jumper JP2 This is a jumper switch to select the power supply voltage of the MCU This setting is valid when the MCU power supply
21. because of the danger of electric shock and or fire In this case contact your local e distributor Before setting up this emulator and connecting it to other devices turn off power or remove a power cable to prevent injury or product damage Warnings to Be Taken for This Product Do not disassemble or modify this product Personal injury due to electric shock may occur if this product is disassembled and modified Disassembling and modifying the product will void your warranty Make sure nothing falls into the cooling fan on the top panel especially liquids metal objects or anything combustible Warning for Installation QI Do not set this product in water or areas of high humidity Make sure that the product does not get wet Spilling NS water or some other liquid into the product may cause unrepairable damage Warning for Use Environment This equipment is to be used in an environment with a maximum ambient temperature of 35 C Care should be taken that this temperature is not exceeded REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 7 of 90 M3028BT2 CPE User s Manual Precautions for Safety 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
22. eee 42 Oo MAN IANO Oe sper ont ana theater dusters deel ost sarinnwnd E a ddatnimendtdieh 43 Ja MCU Sekino Dialog acts acct reien ninn EE EEE E 47 3 4 Checking Connections of the Emulator System ccccccccsssseeccceeceeeeseeeeeeeeeseueeseeeceeeeesseaeeeeeeeessuaasaneeeeeeess 49 SPO EXO RO er E E E E E 50 3 6 Hardware Breakpoint Setting WINGOW ccccccccsssseecccceeeeeeseesecceeeeeeeaeeeeceeesessueesseeceeeeesseaaaeeeeeeeessaaageeeeeeees 55 3 7 Trace WINdOW siccrssciisrsiesidiirneciie rendani saeeasaesancananmencientiedesa tui csaineciansamapeastiiensanis inde uss eiaa ieai aaka aabt iA tiaia e 60 3 9 RAM M nit r WINGOW Ages ececte scenes gacccsderscoecascascec azeedegeas vosssonssaceaenecoen ANENE NER AEE EA ES Daiei 65 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 9 of 90 M3028BT2 CPE User s Manual Contents Page 4 Hardware SOC IC UNOS 2 cetacean ected cent esac nate dine Bag ETNE T EEE nn tance E 68 Act Target MCU SOeCCII CANONS esaa e EEE iaa EE eclisucubcaeceecuecasdddauanaganexetensisvaneds 68 4 2 Differences between the Actual MCU and Emulator ccccecceecceeceueceeeceueeseeseeeuseaeeeauueauueaeeunenenaees 69 4 3 Connection Diag aI eissernidas anean SNEEN KAE EE NENESE EEA EEUE ESENE E 72 A A External DIMENSIONS cs ictacaeetencntanceaaneadeanndabadccmaeauncatuqenbensedanneddmeascieacscetacstaesinecentenessmnetataniatecadoes phecapeessectawsie 73 4 4 1 External Dimensions of the Compact Emulator c
23. is used for the emulator do not use it in a user program You can neither set nor cancel a software breakpoint in the internal ROM area of an MCU during user program execution while you can set or cancel it in the internal RAM area of an MCU Note on the Watchdog Function If the reset circuit of the user system has a watchdog timer disable it when using the emulator 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 Oi control register is changed with the below procedure 1 Step execution of an instruction setting PRC2 to 1 2 Setting a break point between an instruction setting PRC2 to 1 and a point where the port P9 direction register or the SI Oi control register is set 3 Setting PRC2 to 1 by the memory window or script window Note on Internal Flash ROM of the MCU Because the number of write erase cycles of the internal flash ROM of the MCU is limited it must be replaced at the end of its service life If the following errors occur frequently when downloading a program replace the MCU board 1 Flash ROM erase error occurred ERROR 16258 2 Flash ROM verify error occurred ERROR 16259 To purchase products for replacement contact your local distributor REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 79 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications IMPORTANT Not
24. 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 17 of 90 M3028BT2 CPE Users Manual 1 Outline 1 3 Specifications Table 1 5 lists specifications of the M3028BT2 CPE Table 1 5 M3028BT2 CPE specifications Applicable MCUs M16C Tiny Series Evaluation MCU M30290FCWP ROM size 128KB 4KB RAM size 12KB Maximum operating frequency Power voltage at 4 2 to 5 5V 24MHz for 24MHz when using PLL Power voltage at 3 0 to 5 5V 2OMHz Power voltage at 2 7 to 5 5V LOMHz Applicable power supply User system connected 2 7 to 5 5V JP1 EXT User system not connected 3 3 V or 5 0V 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 breaks Memory reference setting reference setting C variables run time execution Register reference setting Disassemble display C level debugging etc Real time trace function 64K cycle bus information recordable 20 bit address 16 bit data 12 bit MCU status 5 trace modes supported Break Before About After Full Can be recorded ON OFF by events 1 024 bytes 256 bytes x4 Data last access result 2 points Address match bus match max 255 pass cou
25. this emulator with the operating environmental of the emulator and host machine listed in Tables 1 6 and 1 7 Table 1 6 Operating environmental conditions Operating temperature 5 to 35 C no dew Storage temperature 10 to 60 C no dew Table 1 7 Operating environment of the host machine IBM PC AT compatibles Windows 98SE Windows Me Windows XP Windows 2000 Pentium HI 600MHz or more recommended Host machine interface USB 1 1 full speed 7 Memory 128MB or more recommended Pointing device such as mouse Mouse or any other pointing device usable with the above OS that can be connected to the main body of the host machine Needed to install the emulator debugger or refer to the user s manual Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and other countries 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 19 of 90 M3028BT2 CPE Users 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 hereaf
26. threat to human life or create a risk of human injury or which require especially high quality and reliability such as safety systems or equipment or systems for transportation and traffic healthcare combustion control aerospace and aeronautics nuclear power or undersea communication transmission If you are considering the use of our products for such purposes please contact a Renesas sales office beforehand Renesas shall have no liability for damages arising out of the uses set forth above Notwithstanding the preceding paragraph you should not use Renesas products for the purposes listed below 1 artificial life support devices or systems 2 surgical implantations 3 healthcare intervention e g excision administration of medication etc 4 any other purposes that pose a direct threat to human life Renesas shall have no liability for damages arising out of the uses set forth in the above and purchasers who elect to use Renesas products in any of the foregoing applications shall indemnify and hold harmless Renesas Technology Corp its affiliated companies and their officers directors and employees against any and all damages arising out of such applications You should use the products described herein within the range specified by Renesas especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renes
27. 0 Cancel REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 56 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 When DATA ACCESS is selected 1 Window for setting the address Setting the address You can set eight conditions e g a specified address a Al Set Event Status Event Type specified address range etc Address Data Setting Range addr Address o o l Address 00000 Fal agies poo gt J Function Source File Function ACCESS READ ADDRESS 000000 CONDITION faddr 000000 Cancel 2 Window for setting data Setting data You can set two conditions e g specified data or not to Al Set Event Status Event Type compare data Address Data Setting i ma Setting the access condition Range data Datal You can set three conditions e g read write and Data 1 laong Data 2 read write When you have finished setting the data and fccess READ Z Mask access condition click OK ACCESS READ ADDRESS 000000 CONDITION taddr 000000 data 0000 Cancel REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 57 of 90 M3028BT2 CPE Users 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 R W RWT CPU 00059 _ 0
28. 00512 0203 16b 0 DW W 0 RW 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 W RWT CPU 00026 000519 0302 16b 0 DW W 0 CW 00025 000514 0302 166 DW W i 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 BIU R W RWT CPU 00033 000516 0503 16b 1 DB W 0 RW Low order data effective Event setting for odd address byte access MOV B ROL 515h ROL 03h Cycle Label Address Data BUS BHE BIU R W RWT CPU 00046 000515 0315 16b 0 DB W 0 RW High order data effective REJ10J1457 0200 Rev 2 00 July 16 2007 CENESAS 3 Usage How to Use the Emulator Debugger Setting a break event Al Address 1 000512 Data 1 0203 MASK FFFF Access WRITE Setting a break event using 2 events Al A2 Address 1 000519 Address 1 00051A Data 1 0300 Data 1 0002 MASK FFOO MASK OOFF Access WRITE Access WRITE Set the combinatorial events to AND Setting a break event Al Address 1 000516 Data 1 0003 MASK OOFF Access WRITE Setting a break event Al Address 1 000515 Data 1 0300 MASK FFOO Access WRITE Page 58 of 90 M3028BT2 CPE Users Manual 4 Setting the hardware breakpoint combinatorial condition 1 Window for setting the combinatori
29. 028BT2 CPE User s Manual 2 Setup 2 8 3 Connecting to a 64 pin 0 5mm pitch Foot Pattern Here following is a procedure of connecting to a 64 pin 0 5mm pitch foot pattern on the user system using the M30291T 64FPD included with the M3028BT2 CPE 3 For details on the M30291T 64FPD refer to its user s manual 1 Mount the NQPACKO064SD ND included with the M30291T 64FPD to the user system 2 Attach the YQOPACKO64SD included with the M30291T 64FPD to the NQPACKO064SD ND and secure it with the YQ GUIDE s 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M3028BT2 CPE 4 Attach the M30291T 64FPD to the YQOPACKO64SD M302911T 64FPD HQPACK064SD not incluede MCU with on chip flash memory etc ON Sie 0 5mm pitch 64P6Q A foot pattern e No 1 pin These products are included with the M30291T 64FPD package Figure 2 14 Connecting to a 64 pin 0 5mm pitch foot pattern A 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 IMPORTANT Notes on Connectors of the Converter board The connectors of the M3028BT2 CPE and M30290T PTCB are guaranteed for only 50 insertion removal iterations Between the M30291T 64FPD and YQPACKO64SD are guaranteed for only 100 insertion removal iterations REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 33 of 90 M3028BT2 CPE User s Manua
30. 200 Rev 2 00 July 16 2007 2rCENESAS Page 8 of 90 M3028BT2 CPE User s Manual Contents Contents Page FT chase Seana eect ene btn wn acts E EE E unio ales sede E onan ita ate E E A ashen eaten 3 POON sexencrameswceesmenessttenessnsauntnupawentalnesnstbuascnisusannes iaamiemianeni ease E E E E E E talvasmeeiasenanusananen 4 PS CUI INS Or Ey eaea a ncaa a sarge E E E E E E 6 COTS EEE EEA A N A A TEE ET E E A E E ENE 9 Des aael aeiia p Ee EE EEE A E E E E E T E S I EA E 11 MEST ONO eeen E E hoe taaaeaselluiel Meahenhen tan 12 Wg UII aces sete secs eine Set ese a org nee gts E 13 tM gs 61 2 8 18 O70 99 06 9 1 a ne a ee ee eee ee ee ee ee ee ee ee ee eee 13 Di VS EM CONNU ANON as cts ect ini E R E E ETA ends 14 Teo E Ol MICE el ON eae apea EEE E E E 14 1 2 2 Names and Functions of each part of the EMUIatOF ccc ccccceececceeeeeeeneeeeeeseeseeeseaeeesaaaeeeeseeeeseanes 15 Tso OC CHIC ON S caasnece se stsed cere E esaegasenuneaesesuacaaecavastede sass aneeavecseusesseseceanaccanesenuseneinndeopesacaceeaieesedpasacncneees 18 1 4 Operating ENVIrONMENL ccccccssseeecccceesseceeccseeeeeeceeaeeeceeesseaeeeeecsaeseceeeeseuseeeesseaseceeseeaaeeeeeesssageeeeesssageeeeseaas 19 CA 0 PEE ee Oe A ET E ee ee ee nen ee eer er eee 20 2 1 Flowchart of Starting Up the Emulator 0 0 0 0 ccecccecccceeeeeeeeeeeeeeeeeeaeeeseeceeeeesseeeeeeeeeeesseaeaeeeeeeeeesessaaaseeeeees 20 2 2 Installing The melud d SOWAS acesaccneuectncetee stenesac
31. 3028BT2 CPE Users Manual 5 3 How to Request for Support 5 Troubleshooting After checking the items in 5 Troubleshooting fill in the text file which is downloaded from the following page then send the information to your local distributor http tool support renesas com eng toolnews registration support txt For prompt response please specify the following information 1 Operating environment V Operating frequency _____ MHB Operating voltage S O Clock supply to the MCU Internal oscillator External oscillator 2 Condition The emulator debugger starts up does not start up The error is detected not detected in the self check Frequency of errors always frequency 3 Problem REJ10J1457 0200 Rev 2 00 July 16 2007 CENESAS Page 85 of 90 M3028BT2 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 purpose
32. 4MHz when using PLL Power voltage at 3 0 to 5 5V 2OMHz Power voltage at 2 7 to 5 5V LOMHz REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 68 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications 4 2 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below When debugging the MCU using this product be careful about the following precautions IMPORTANT Note on Differences between the Actual MCU and Emulator Operations of the emulator system differ from those of actual MCUs as listed below 1 Reset condition Set the time for starting up 0 2 VCC to 0 8 VCC 1 us or less 2 Initial values of internal resource data of an MCU at power on 3 Interrupt stack pointer ISP after a reset is released 4 Capacities of the internal memories ROM and RAM The evaluation MCU of this product has RAM of 12KB 00400h 033FFh and flash ROM of 4KB OFOOOh OFFFFh and 128KB E0000h FFFFFh 5 Oscillator circuit In the oscillator circuit where an oscillator is connected between pins Xy and Xouyr oscillation does not occur because a package converter board is used between the evaluation MCU and the user system For notes on when using an oscillator circuit on the user system refer to 2 9 2 Selecting Clock Supply page 37 It is same for pins Xcyy and Xcour 6 Xin input when resetting the MCU When resetting the MCU it is necessary to input a clock to the p
33. BX umss 16 040 8 2 a eH de dw a user program is executed This is accomplished by using the 100ms Label Register 0 1 2 3 4 5 6 7 8 9 4 B C D E F Aa 000000 FB SB USP E real time RAM monitor function and the memory contents 000020 000030 corresponding to the RAM monitor area are displayed in 000050 000060 dump form The memory contents displayed here are 000070 000080 000090 updated at given intervals by default every 100 ms during 0000AN 0000B0 i a000C0 user program execution 000000 O000E0 O000F0 000100 000110 000120 000130 000140 lt REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 65 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 2 RAM monitor area setting window 1 Opening RAM monitor area setting window RAM monitor area setting Clicking this toolbar button opens the RAM monitor area RamMonitor 000000 i abc d d de db a setting window 100ms Label Register 0 1 2 43 4 5 6 7 3 93 4 B C E F ha 000000 FB SB USP 000010 000020 000030 000040 000050 000060 000070 000080 000090 000040 000060 0000C0 000000 OOO0E0 OOO0FO 000100 000110 000120 000130 000140 lt 2 RAM monitor area setting window in initial state ra RAM Monitor Area Setting Window in initial ar MRAM Monitor Area Setting state Current Assigned Area By defaul
34. ETH 000074 GFOIDTF pons WOH Aa 000073 oPpoope 779832000 OOBOH P3 pooo2s OrodDe Ba0S POOEVH 0003 fheooDe T420 ROL A140 and memory or I O Symbol Status Non active DMA Data access by other than the CPU e g by DMA INT Interrupt acknowledge cycle start IB Instruction code read by the CPU in bytes DB Data access by the CPU in bytes IW Instruction code read by the CPU in words DW Data access by the CPU in words R W Shows the status of the data bus Displayed as R for Read W for Write and for no access RWT This is the signal to indicate a valid bus cycle When valid RWT 0 The Address Data and the BIU signals are effective when this signal is 0 CPU Shows the status between the CPU and BIU Bus Interface Unit 5 Trace window source display Line Address How Soucce onsa orooar BES 38h b Oh arasi orrtai _ PEH H Ob noo Ss jrin 400h b Ok ggas grasa for forever ooos5 irma AOE 05h b 0wa oro aiad 2mh Symbol Status O57 OFOO4P qe d ie afte Anas nFoos A1aA0 SOs Non active CB Op code read in bytes RB Operand read in bytes 00059 OFroos qc d ur opgin OFOOSA ALAD 3300h O61 oFOooSsr jat d ue oms OFloe2 Alag OFgOdh OM6s OFr0067 3 JZE J sr O00 e OFCOeR Alig OFSodh gigg Orlver q5E dour O66 OFroor2 Alad OF0000h acg DFO TT RE a iir QC Instruction queue buffer clear CW Op code read in
35. Errors LEDs show and their checkpoints C tion t l 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 37 Connected When the clock is supplied from an external oscillator check that the oscillator circuit in the user system is oscillating properly See 2 9 2 Selecting Clock Supply page 37 Target Status RESET LED does Check that the reset pin of the user system is at H level not go out REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 82 of 90 M3028BT2 CPE Users 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 s
36. Label Shows labels corresponding to address bus information Double click here to bring up a dialog box to search for addresses Address Shows the status of the address bus Data Shows the status of the data bus BUS Shows the width of the external data bus In the present Cyole Address 090065 irite O00064 OO03E2 00006 pod PIDIE 00h Dr ts4 O00061 O03 He b00060 MOE D0059 DO03 69 DI0055 MOOS ES 000057 FODS 000056 DFO 000055 pe a02 EJ H000 DOOSE3 n00053 DPOGrY f00052 r f00051 DOOSEE 000050 J IEE 000045 OF Oca 000048 PO0IEZ HJ0047 DOO3EE a a oa E EEEH Yow HEE 2 ot roe DO O H i OO ee DO Oe oor oO E E 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 Panes D O Arer Beke Bresk Fie Dyo OS Addiers DFA Time Shows the status between the BIU Bus Interface Unit cycle Address Obj code Label 000797 OFODIE 678303 AT O2E3H 00091 CFOI4D DIOP REO W 0H OBR poobes orod4a BTo0004 0 04008 Witdise feoo47 E QO400k ROG O OrOdta AZEOOS ADHOu AO mi Orod4er rag AOU AL 000m7 DFOD4F Fo6roo d_e sfr FODH 000077 OFDIBF A7EZ203 OFE2H 00TES OPodcZ ATE3O3 O3E3H pooo62 orodcs CUIFEEOI 1H OIBRH 000053 Grodcs F3 M002 OFOOS5z AZOOOS 05008 A0 O0042 OFO055 paps AOU Ai 003S OrOOS7 FSTFOO doo F
37. REJ10J1457 0200 T Everywhere you imagine g gt NI ESAS M3028B T 2 CPE User s Manual Compact Emulator for M16C Tiny Series Rev 2 00 Jul 16 2007 Renesas Technology WWW Fenesas com 10 11 12 13 Notes regarding these materials This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document Renesas shall have no liability for damages or infringement of any intellectual property or other rights arising out of the use of any information in this document including but not limited to product data diagrams charts programs algorithms and application circuit examples You should not use the products or the technology described in this document for the purpose of military applications such as the development of weapons of mass destruction or for the purpose of any other military use When exporting the products or technology described herein you should follow the applicable export control laws and regulations and procedures required by such laws and regulations All information included in this document such as product data diagrams charts progra
38. Setting If you download execute or single step a program at a low operating frequency a communication timeout error may occur Execute the command shown below in the Script Window after starting the emulator debugger Command _settimeout 300 300 Once this command is executed it remains effective the next time you start the emulator debugger Therefore you do not need to execute this command again If the error still occurs in this setting contact your local distributor REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 70 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on Applicable MCUs This product is applicable to the M16C Tiny Series MCUs ROM RAM size and peripheral functions vary depending on the target MCUs used Before the program development refer to each Hardware Manual of the M16C Tiny Series When developing the program of the M16C 26A and 28 Groups do not access to the SFR which is not built in the M16C 26A and 28 Groups With this product the initial value of main clock stop bit CMOS is different from that of the M16C 26A Group M16C 26T MCU Note that the initial value of CMO5 of this product is set to 0 and that of the M16C 26A Group M16C 26T MCU is set to 1 Note on Final Evaluation Be sure to evaluate your system with an evaluation MCU Before starting mask production evaluate your system and make final confirmation with a CS Commercial Sample ver
39. ain Xp Xou Internal oscillator circuit board OSC 3 or OSC 2 Oscillator circuit on the user system Sees Internal oscillator circuit 32 768kHz alias Oscillator circuit on the user system 1 Using an Internal Oscillator Circuit Board 1 Kinds of Oscillator Boards The M3028BT2 CPE comes with an oscillator circuit board OSC 3 20MHz 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 37 of 90 M3028BT2 CPE User s Manual 2 Setup 2 Replacing Oscillator Circuit Boards Figure 2 17 shows how to replace the oscillator circuit boards 2tENESAS POWER USB OV 4 SYSTEM STATUS COMPACT EMULATOR as The oscillator circuit board of the emulator is in the lower right M3028BT2 CPE corner of the board Oscillator circuit board cLock C AAS RESET O 3 Qs TARGET RUN STATUS W 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 it with the screw Figure 2 17 Replacing oscillator circuit boards A CAUTION Note on Replacing the Oscillator Circuit Board
40. al condition E H W Break Points Saks F Pass E ADDRE ACCE CONDITION 1 Al 000000 FETCH addr 000000 O 1 Ae OO0000 FETCH addr OO0000 Combination AND Detail E Detail Reset Dave Load set Close REJ10J1457 0200 Rev 2 00 July 16 2007 CENESAS 3 Usage How to Use the Emulator Debugger Setting the combinatorial condition There are following three conditions that you can choose for the combinatorial condition OR The program breaks when one of the specified events occurs AND The program breaks when all of the specified events occur AND Same Time The program breaks when the specified events occur at the same time For each event a pass count number of passing is specifiable 1 255 When AND same time is specified for Combination you can not specify the pass count fixed to one When you have finished setting the combinatorial event condition click the Set button Page 59 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 7 Trace Window 1 Trace window 1 Opening the trace window Trace window Clicking this button opens the trace window Or you can select Trace from Trace of Display menu for the same effect 2 Trace window Trace window The trace window is used to show the results of real time Trace Ed VBE QAQA Range 002470 000000 Area
41. arks of Tokyo Eletech Corporation REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 30 of 90 M3028BT2 CPE User s Manual 2 Setup 2 8 1 Connecting to a 42 pin 0 8mm pitch Foot Pattern Here following is a procedure of connecting to a 42 pin 0 8mm pitch foot pattern on the user system using the M30263T 42SSB included with the M3028BT2 CPE 1 For details on the M30263T 42SSB refer to its user s manual 1 Mount the socket included with the M30263T 42SSB to the user system 2 Attach the M3T SSOP42B 450 included with the M30263T 42SSB and the socket frame to the socket 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M3028BT2 CPE 4 Attach the M30263T 42SSB to the M3T SSOP42B 450 M3028BT2 CPE M30263T 42SSB Socket frame MCU with on chip flash memory etc lt 42 pin 0 8mm pitch 42P2R E foot pattern No 1 pin These products are included with the M30263T 42SSB pakcage Figure 2 12 Connecting to a 42 pin 0 8mm pitch foot pattern A 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 IMPORTANT Note on Connectors of the Converter board The connectors of the M3028BT2 CPE and M30290T PTCB are guaranteed for only 50 insertion removal iterations REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 31 of 90 M3028BT2 CPE User s Manual 2 Setup 2 8
42. as shall have no liability for malfunctions or damages arising out of the use of Renesas products beyond such specified ranges Although Renesas endeavors to improve the quality and reliability of its products IC products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Please be sure to implement safety measures to guard against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other applicable measures Among others since the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you In case Renesas products listed in this document are detached from the products to which the Renesas products are attached or affixed the risk of accident such as swallowing by infants and small children is very high You should implement safety measures so that Renesas products may not be easily detached from your products Renesas shall have no liability for damages arising out of such detachment This document may not be reproduced or duplicated in any form in whole or in part without prior written approval from Renesas Please contact a Renesas sales office if
43. at always shows the content of the source file corresponding to the current position of the program counter hereafter PC The PC position is identified by the yellow background color Here you can execute the program up to the cursor position and set or clear software breakpoints 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 50 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the 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 2 Executing the user program Go Go Runs the program beginning with the current PC position bc Br 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 4 Executing the user program Reset Go Reset Go Runs the program after reset lJ El REN es T P ad 42 E l Or you can select Reset Go from Debug menu for the same effect 5 Step execution of the user program Step In Single steps the program executing each statement Elt Bll BH H p p i I Spe Be including those in functions E Step Over Single steps the program executing each function call as one step
44. bcasns acndiudaade ieentvacenecs a e EE 21 25 FAC AiG UG CRS ON eraa tne entnes A E E A TA OE A E AA A 21 2 4 Connecting the Power Supply for the Emulator ccccccccseeeeecceeeeeeeeseeeeeeeeeeseeeseeeeeeeeeseeeaaeeeeesssuaaaaseeeeeeess 22 2 5 Connecting the Host Machine seisusena e AA a aia a E a RATTA ERAR 23 2 6 Tumino ON the POWET siocccneiiscuaeian ian i ce Siege ce a a a a E e Riean aa eee ac ese cease aN 24 2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper 24 2 6 2 Checking Connections of the Emulator SYSt M cccccecccecccceeceeeeseeeeeeeeeeaeeeeeeeeeeeeseaeeaeceseessaeaeeeeees 25 2 6 3 Power Supply to the User System cccccccssesseecceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeseueeaeeeeeeeesseaseeeeeeeeesssaaggeses 25 2 6 4 Turning ON OFF the POWeE ccccceeeccceeccceeeeseeeceeeeeceaeeeceeeeeeeaeeeeseeeeeeesaeeeseeeeeeesseaaaseeeeeeeseeseaaaaeses 25 2 6 5 LED Display When the Emulator Starts Up Normally cccccccsssssseeeeeeeeseeeeeeeeeeseeeeeeeeseeeeeeseaeaeeees 26 i fas iol ane eee ee ee eee eee ee eee eee 28 roa ee 6 EP OCEdU gt eee nee een en eee ee ee ee eee eee eee eee 28 2 7 2 f an Error is Detected in the Self CheCK ccccccccccceccceeeseeeceeeeeeeeeseeceeeeeesaeeeseeeeeeeeseaeeeeeeeeeesessaaeaeses 29 2 8 Connecting the User SySte M cccccccsssssssecceceeeeeeeeeeeeeeeeeeeseeeceeeeesueesseeeeeeeessueeaseeee
45. cccccccccececsseseeeeeeeeeeeeeeseeeeeeeeesaeeseeeeeeeesaaaeeeeeeeeees 73 4 4 2 External Dimensions of the Converter Board M3802637T 42SSB 1 00 cecccecseeeeeeseeesseeseeeeeaeeeaeeeaes 74 4 4 3 External Dimensions of the Converter Board MS0260T 48FPD occ cece cecce esc eesseeseeeseeeeeeeeeaeneaes 74 4 4 4 External Dimensions of the Converter Board M30291T 64F PD ce cecccesceeseeesseeseeeseeeseaeneues 75 4 4 5 External Dimensions of the Converter Board M30290T 80F PD cece ecccecceesceesseeseeeseeeeeeeeeaeeeaes 75 4 4 6 External Dimensions of the Converter Board M30280T 85LGFE cece cece cess ecsseeseeeseeeseeeeeeeeeaeenees 76 4 5 Notes on USING This PFOGUUC tis cciersataetnisedenecdevandashaseecedexceneted VanatameeddanqnceaoetentapsaeeesenselseawennleiyseWusscssueteeemecbectes 77 De PIOUS SOO NG eese E coe e cee E E E E EE anidpsoauseeenanee 81 5 1 Flowchart to Remedy the Troubles cccccccccssssceccceesececcceeeseceecsaaaeeeesseaeeeeessuaeeeeessaaecessssageesessssagseeees 81 5 2 When the Emulator Debugger Does Not Start Up Properly 0 0 00 cececccccseeeeeeeeeeeeeeeeesaeeeeeeeesseaeeeeeeeseaeeeees 82 5 3 How to Request for SUPPO ccccccsessseccceeeeceaeeeeeeeeeeeeeeeeseeeeeeeessaeesceeeeeesseaaseeeeeeeesseaeaaseeeeeeesssaaaeeeeeeees 85 6 M intenance and GUA AIC Cs cincctorsssaicarasdencanndoansstasdonavdnasdendaredameeanaandpansdeandanedonaaa saw actaxnd NRE a a aaea 86 6 1 User Registration
46. ct Enable the trace point in the Init dialog Event status PASS E ADD AC CONDITION 0 1 BI ringi FETCH addr 000000 C 1 B rine FETCH addr 000000 box Here you can set events in the same way as for the hardware breakpoints Combination Ro o Detail Enable Detail Trace Area Write Condition Wreak Total Detai Reset Save Load set Close REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 63 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Specifying a trace area Specifying a trace area MM Trace Points Setting gimi You can specify a trace range for the trace event Event Status Break 1D AC CONDITION 64K cycles of instruction execution before the user ring FETCH addr 000000 program stopped is recorded Be ring FETCH addr 000000 Before 64K cycles of instruction execution before a trace point condition was met is recorded About 32K cycles of instruction execution before and after a trace point condition was met is recorded After 64K cycles of instruction execution after a trace point Combination condition was met is recorded Rd Detail Enabl Datail l Full sa 64K cycles of instruction execution after a trace began is Trace Area Write Condition recorded fetai zd Detail 4 Setting the trace write condition Ei Trace Points Settine EAR Setting the trace write condition You can specif
47. d including when run time debugging is being performed a peripheral I O interruption is not accepted Note on DMA Transfer With this product the program is stopped with a loop program to a specific address Therefore if a DMA request is generated while the program is stopped DMA transfer is executed However make note that DMA transfer while the program is stopped may not be performed correctly Also note that the below registers have been changed to generate DMA transfer as explained here even when the program is stopped 1 DMAO transfer counter TCRO 2 DMAI transfer counter TCR1 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 69 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Access Prohibited Area You cannot use internally reserved areas Write signals to the areas will be ignored and values read will be undefined Notes on Stack Area With this product a maximum 8 bytes of the interrupt stack is consumed as a work area Therefore ensure the 8 byte maximum capacity used by the user program as the interrupt stack area If the interrupt 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 is 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
48. e 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 A CAUTION REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 24 of 90 M3028BT2 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 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 2 7V lt VCC lt 5 5V Do not change the voltage of the user system after turning on the power 2 6 4 Turning ON OFF the Power Turn ON OFF the power of the emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning ON the power again after shutting OFF the power wait for about 10 seconds REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 25 of 90 M3028BT2 CPE User s Manual 2 Setup 2 6 5 LED Display When the Emulator Starts Up Normally After the emula
49. eck 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 LED display in the self check and how to remedy it LED display Problem amp Remedy FF POWER CLOCK RESET The emulator system is not working properly Check that power is supplied to the emulator The emulator may be damaged Contact your local distributor A clock is not supplied to the emulator Check that the oscillator circuit board OSC 3 is attached The power is not supplied to the MCU Check that the power supply cable is connected properly Check of jumper switch settings see Table 2 3 The block O area address FFOOOh FFFFFh 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 The emulator system is not working properly The emulator may be damaged Contact your local distributor z 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 20MHz to execute the self check If the
50. eeeseeesseseeeeeeesssaaageeeeeeees 30 2 8 1 Connecting to a 42 pin 0 8mm pitch Foot Pattern cece ccccccceccesssseeeeeeeeeeeeeeeeeeeesseeeaeeeeeeeeeessaaegeses 31 2 8 2 Connecting to a 48 pin 0 5mm pitch Foot Pattern c ce ccccccccccccesseeeeeeeeeeeeeeeeeeeeeeesseeeseeeeeeeessaaaaeees 32 2 8 3 Connecting to a 64 pin 0 5mm pitch Foot Pattern ccc cccccccecsceseseeeeeeeeeeeeaeseeeeeeesseeeeseeeeeeeeessaaaseses 33 2 8 4 Connecting to an 80 pin 0 5mm pitch Foot Pattern cc cccccccccsseseeeeeeeeeeeeeseeeeeeeeeeaaeaeeeeeessesaaaaaeees 34 2 8 5 Connecting to an 85 pin 0 65mmM pitch Foot Pattern cccccccccseseeeeeeeeeeeeeseeeeeeeeeeeaeesseeeeeeesaaeseeeess 35 2 9 CHANGING Settings cccccccccssseseecceeeeeeeaeeeeeeeeeeesaeeeseceeeeeeeseeessseeeeeeseseeeeseeeeeeeesseeasseeeeeeeeessaaaeeeeeeesssaaaeeeeeeess 36 2 9 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper 36 2 9 2 Selecting Clock SUPPLY ccceivecccesececdsecevs sade enseceessscntavecsueddneneusvencvdes iai iiaae 37 29 3 AlD Conversion Bypass Capacitors ix cccdsecaceccdicetuecacuecauciencesassSocatuecnssaswceoacdunedascadeeetbachueddceaceesaddeudoacats 41 3 Usage How to Use the Emulator Debugger cccccccccseeeeeeeecaeeeeeeeecaeeeeeeesaeeeeeeeeseeseeeeesseeeeeesseauseeeeessageeeeeneas 42 2 otaning Up the Emulator B 6 Nie 6 21 geeneen teens mene ete tier an ern eet ean haere nearer fee eee aera
51. en 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 Front panel LED Not normal of emulator 1 Check connection of the power supply cable Normal See 2 4 Connecting the Power Supply for Emulator page 22 Init dialog box of Not normal Error displayed emulator debugger displayed Normal 1 Check the operating environment etc of the 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 Debugger pene Startup page 83 Error displayed Editor source window of emulator debugger displayed See 5 2 3 Errors Occur at Debugger Startup page 84 Normal Emulator debugger startup completed Figure 5 1 Flowchart to remedy the troubles REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 81 of 90 M3028BT2 CPE Users Manual 5 Troubleshooting 5 2 When the Emulator Debugger Does Not Start Up Properly 1 When the LEDs of the M3028BT2 CPE Do Not Display Normally Table 5 1
52. ent REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 3 of 90 M3028BT2 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 uses the M16C Family M16C Tiny Series of Renesas 16 bit single chip MCUs It provides support for system development in both software and hardware Be sure to use this emulator correctly according to said purpose of use Please avoid using this emulator for other than its intended purpose of use For those who use this emulator This emulator can only be used by those who have carefully read the user s manual and know how to use it Use of this emulator requires the basic knowledge of electric circuits logical circuits and MCUs When using the emulator 1 This product is a development supporting unit for use in your program development and evaluation stages In mass producing your program you have finished developing be sure to make a judgment on your
53. erations REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 34 of 90 M3028BT2 CPE User s Manual 2 Setup 2 8 5 Connecting to an 85 pin 0 65mm pitch Foot Pattern Here following is a procedure of connecting to an 85 pin 0 65mm pitch foot pattern on the user system using the M30280T SSLGEF included with the M3028BT2 CPE 5 For details on the M30280T 85LGF refer to its user s manual 1 Mount the CSSOCKET085B1007REO1 included with the M30280T 85LGF to the user system 2 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M3028BT2 CPE 3 Attach the M30280T 85LGE to the CSSOCKET085B1007REO1 On board evaluation with actual MCUs Connecting tools g g wi cover LSPACK not included M30280T 85LGF CSSOCKET085B1007RE01 C LSPACK085B1007RE01 These corners are not round S lt F 85 pin 0 65mm pitch These three products are available in one package 1 I PTLGOO85JB A foot pattern OY No A1 pin User system e No A1 pin This product is included with the M30280T 85LGF package Figure 2 16 Connecting to an 85 pin 0 65mm pitch foot pattern A 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 IMPORTANT Note on Connectors of the Converter board The connectors of the M3028BT2 CPE and M30290T PTCB are guaranteed for onl
54. es on Debugging in CPU Rewrite Mode When you debug M16C Tiny Series MCUs in CPU rewrite mode do not change the block O area FFOOOh FFFFFh of the flash ROM Otherwise the emulator will be uncontrollable If you check Debug the program using CPU Rewrite Mode in the MCU tab of the Init dialog box of the emulator debugger you cannot use the following functions 1 Setting software breakpoints in an internal ROM area 2 Executing COME in an internal ROM area Do not stop the program in CPU rewrite mode or erase suspend mode And do not single step the instructions shifting to the CPU rewrite mode or erase suspend mode The emulator will go out of control in CPU rewrite mode or erase suspend mode Do not stop the program in CPU rewrite mode And do not single step the instructions shifting to the CPU rewrite mode The emulator will go out of control in CPU rewrite mode As the following interrupt vectors are used by the emulator system the read data is different from expected value 1 BRK instruction FFFE4h FFFE7h 2 Address match FFFE8h FFFEBh 3 Single step FFFECh FFFEFh 4 DBC FFFF4h FFFF7h Notes on CE Declaration of Conformity This product complies with CE marking EN55022 Class A 1998 A1 2000 A2 2003 EN55024 1998 Al 2001 A2 2003 Please use it with care described below Electrostatic Discharge Precautions must be taken when handling the product Must not be used within 30 meter
55. finished the settings of 1 to 2 click OK REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS 3 Usage How to Use the Emulator Debugger Setting to clear the MCU s internal flash ROM Specify whether or not you want the MCU s internal flash ROM to be cleared when downloading the user program or data When cleared the content of the flash ROM is initialized to FFh The MCU s internal flash ROM is listed in block units Any block which has had its check box selected is not cleared when downloading The memory content of this block remains intact unless overwritten by downloading Any 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 48 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 4 Checking Connections of the Emulator System Check to see that the emulator debugger has been connected correctly to the emulator Tai R8C High performance Embedded Workshop JOKED REDD RT FOUMKe ENEB FIYDD BAREO YO S4VEOW AI Checking connections of the emulator De na gt e o AAEE AEAEE sy
56. g box and MCU Setting dialog box of the emulator debugger For how to use the emulator debugger refer to the online manual 2rCENESAS Page 20 of 90 M3028BT2 CPE User s Manual 2 Setup 2 2 Installing the Included Software If the OS used in your host machine is Windows XP or 2000 this installation must be executed by a user with administrator rights Be aware that users without administrator rights cannot complete the installation Install the software as instructed by the displayed messages by inserting the included CD into the CD ROM drive In process of installation user information dialog box to enter the user information contractor section contact address and host machine will open The supplied information will be turned into a format by user registration will be provided by e mail 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 21 of 90 M3028BT2 CPE User s Manual 2 Setup 2 4 Connecting the Power Supply for the Emulator Connect the power supply for the emulator to the power connector J1 The specification of the power supply for the emulator is listed in Table 2 1
57. h breaks is relatively fast you can save the times of writing into the internal flash ROM of an MCU Therefore address match breaks precede the other breaks when setting breakpoints in the internal flash ROM area of an MCU Address match breaks can be set up to six points Address match breaks can be set or canceled even when the user program is being executed REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 78 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications IMPORTANT Notes on Address Match Interrupts When you use the address match interrupt function in a user program uncheck Enable the Address Match Interrupt Break Function in the MCU tab of the Init dialog box of the emulator debugger Thus normal software breaks are used for the internal RAM and ROM areas of an MCU Do not set a software break at an address where an address match interrupt occurs Otherwise a user program may be run out of control Set a software or hardware break in the top address in address match interrupt processing When you single step an address where an address match interrupt occurs the program stops after executing the first instruction after returning from address match interrupt processing Notes on Software Breaks Software breaks change the instruction at a specified address to a BRK 00h Therefore take note that when you reference the result of a trace in bus mode 00h is displayed As the BRK instruction
58. he LEDs on the upper panel of the M3028BT2 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 Hon Power is not supplied to the emulator SAFE LED2 Green ON Emulator system has started normally Emulator system has not started normally REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 15 of 90 M3028BT2 CPE Users 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 POWER LED3 Orange Power is supplied to the target MCU OFF Power is not supplied to the target MCU CLOCK LED4 Green ON The target MCU internal clock is oscillating The target MCU internal clock is not oscillating RESET LEDS Red ON Target MUU 1S pez reset or reset signal of the user system is held low Ena e Green ON User ier ae is pan sa 3 System Reset Switch By pressing the system reset switch you can initialize the emulator system Table 1 4 shows the functions of the system reset switch depending on the state of the emulator Table 1 4 Functions of the system reset switch State of Emulator Initializes the emulator
59. hod and an on demand method When selecting the on demand method check the On Demand check box On Memory Debugging information is stored in the internal memory of your computer This method is suitable when the load module user program size is small On Demand Debugging information is stored in a reusable temporary file on the hard disk of your computer Because the stored debugging information is reused the next time you download the same load module it can be downloaded at high speed This method is suitable when the load module user program size is large Page 45 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Emulator tab 1 Specifying the target clock hit MI6C REC Compact Emulator J Specifying the target clock Specify the clock sources supplied to the MCU main clock MOU Debueeing Information Emulator Script PEREI Bp and sub clock Select the appropriate clock sources Clock Wain C External according to the clock used by your target MCU Internal Sub C 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 Do not show this dialog box again 4 Script tab 1 Automatically executing a script command Automatically executing a script command To automatically execute a script command when starting hit M166 RAG Compact Emulator
60. in Xin 7 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 8 Operation after releasing the reset After releasing the reset for about up to 350 cycles a program to control the emulator will be executed Note that this will have an affect on a user program execution time and tracing result 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 NMI Input A low input to pin NMI 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 Notes on Maskable Interrupts Even if a user program is not being executed including when run time debugging is being performed the evaluation MCU keeps running so as to control the emulator Therefore timers and other components do not stop running If a maskable interrupt is requested when the user program is not being executed including Internal I O access when run time debugging is being performed the maskable interrupt request cannot be accepted because the emulator disables interrupts The interrupt request is accepted immediately after the user program execution is started Take note that when the user program is not being execute
61. ing Pass E ADDRESS AC CONDITION 1 Al 000000 FETCH addr 000000 LC 1 t 000000 FETCH addr breakpoints function will be enabled allowing you to set hardware Setting Break Event Click the event line at which you want set a break event Combination jano o o i ree Reset 8 Load Close REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 55 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Break event setting dialog box Specifying the event type Select the event type that you want to set from the drop Al Set Event Status Event Type isaiits au down list FETCH Fetch Detects an instruction prefetch setting Range addr Address r DATA ACCESS Detects a memory access l Function BIT SYMBOL Source File Detects a bit access Function ACCESS FETCH ADDRESS 000000 CONDITION taddr 000000 2 When FETCH is selected 1 Window for setting addresses Al Set Event Status Setting the address You can set eight conditions e g a specified address a Event Type HMA specified address range etc When you have finished setting the address click OK Fetch sett ing Range addr Address Address 00000 Fal mha poo l Function Source File Function ACCESS FETCH ADDRESS 000000 CONDITION faddr 00000
62. is your application system This emulator can be used without the user system REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 14 of 90 M3028BT2 CPE Users Manual 1 Outline 5 Power supply for the user system This is a power supply for the user system As this emulator cannot supply the power to the user system supply the power to the user system separately from the emulator 6 Host machine This is a personal computer for controlling the emulator 7 Package converter board such as M30290T 80FPD This is a package converter board for connecting to an MCU foot pattern on the user system For details refer to 2 8 Connecting the User System page 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 J2 USB interface connector CSN 9 POWER USB SYSTEM a System status LEDs LED1 Emulator power POWER oi TNs System reset switch LED2 Emulator startup SAFE JP2 MCU power supply voltage selection jumper factory setting 5 0V COMPACT EMULATOR M 3 0 2 8 B TT 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 Reser B TARGET LED5 MCU RESET RESET RUNC_ EN STATUS C LED6 Program execution RUN MADE IN J APAN Figure 1 2 Names of t
63. l 2 Setup 2 8 4 Connecting to an 80 pin 0 5mm pitch Foot Pattern Here following is a procedure of connecting to an 80 pin 0 5mm pitch foot pattern on the user system using the M30290T SOFPD included with the M3028BT2 CPE 4 For details on the M30290T 80FPD refer to its user s manual 1 Mount the NQPACKO80SD ND included with the M30290T 80FPD to the user system 2 Attach the YQOPACKO80SD included with the M30290T 80FPD to the NQPACKO80SD ND and secure it with the YQ GUIDE s 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M3028BT2 CPE 4 Attach the M30290T 80FPD to the YQOPACKO80SD M3028BT2 CPE M30290T 80FPD HQPACKO080SD not included O RE f B YQ GUIDE ij Q x4 A l i MCU with on chip flash memory etc YQPACKO80SD NQPACKO80SD ND v rN ONS Gp 0 5mm pitch 80P6Q A foot pattern e No 1 pin These products are included with the M30290T 80FPD package Figure 2 15 Connecting to an 80 pin 0 5mm pitch foot pattern A 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 IMPORTANT Notes on Connectors of the Converter board The connectors of the M3028BT2 CPE and M30290T PTCB are guaranteed for only 50 insertion removal iterations Between the M30290T 80FPD and YQPACKO80SD are guaranteed for only 100 insertion removal it
64. l Data Bus Width iv Pitta Ga of ODGIEH iei I PM10 b0 of OO0005H is 1 Specifying the PM10 area bit O of the address 00005h Select this option when using the MCU in which the data area access enable bit PM10 is set to 1 Do not show this dialog box again 2 Referring to the MCU Status MOU Setting Referring to the MCU Status MCU Flash Glear It shows the pin status of the user system Check it to see if MGU Setting Starts the MCU status matches the selected processor mode If the MCU M16029 Mi H Processor Mode single Chip Mode i H LD H status of any pin is marked NC it means that the pin status is indeterminate RO i External Data Bus Width eternal Vata Dus wi CHves NG ior Yormal Mode Memory Space Expansion Normal Mod BYTE Hi i Pe the of ON iei PMO 60 of QOOO05H is 1 i Cancel Help C Do not show this dialog box again REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 47 of 90 M3028BT2 CPE Users Manual 2 Flash Clear tab 1 Setting to clear the MCU s internal flash ROM MGU Setting MCU Flash Clear Flash ROM Block 0E0000 OETFFF Select All 0E8000 OEFFFF OFO000 OFTFFF Clear All OF8000 OFBFFF OFCOOO OFDFFF OFEO0O OFFFFF zl The checked blocks are over written not erased on download i Cancel Help C Do not show this dialog box again When you have
65. llation output circuit Figure 2 20 External oscillator circuit Make note that in the oscillator circuit shown in Figure 2 21 where a resonator is connected between pins Xm 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 Xcout Evaluation MCU Figure 2 21 Circuit in which oscillation does not occur REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 40 of 90 M3028BT2 CPE User s Manual 2 Setup 2 9 3 A D Conversion Bypass Capacitors There is a foot pattern on the M3028BT EPBM board for mounting bypass capacitors for an A D conversion circuit near the MCU Mount suitable bypass capacitors as occasion demands Figure 2 22 shows where they are installed and the configuration of this product Component side of the M3028BT EPBM Ic IC2 S c3 IC4 M E OO a E D M G G QOUOUOUU a S C6 RBO E pii 2G M ROD OD RENESAS m o a oom 2E PAN M30290T EPBM REV C J AVCC AVSS bypass capacitor AVSS AVCC O Olo VREF AVSS bypass capacitor AVSS VREF 0 Oke Figure 2 22 Foot pattern for A D conversion bypass capacitors and the configuration
66. lt 5 5 V Do not change the voltage of the user system after turning on the power Before powering on your emulator system check that the host machine the emulator the converter board and user system are all connected correctly Next turn on the power to each equipment following the procedure below 1 Turn ON OFF the user system and the emulator as simultaneously as possible 2 When the emulator debugger starts up check the target status LEDs on the emulator to see if this product is ready to operate Is the power supplied Check that target status LED POWER is ON 1 Is the clock supplied Check that target status LED CLOCK is ON When the user system is not connected the target status LED POWER does not light REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 77 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications IMPORTANT Note on Clock Supply to the MCU A clock supplied to the evaluation MCU is selected by the Emulator tab in the Init dialog box of the emulator debugger 1 When Internal is selected A clock generated by the oscillator circuit board in the M3028BT2 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 Note on Stop and Wait
67. me specific words used in this user s manual are defined as follows Emulator M3028BT2 CPE This means the compact emulator this product for M16C Tiny Series MCUs Emulator system This means an emulator system built around the M3028BT2 CPE emulator The M3028BT2 CPE emulator system is configured with an emulator main unit M3028BT2 CPE power supply for the emulator emulator debugger and host machine Renesas Integrated development environment High performance Embedded Workshop This tool provides powerful support for the development of embedded applications for Renesas microcomputers It has an emulator debugger function allowing for the emulator to be controlled from the host machine via an interface Furthermore it permits a range of operations from editing a project to building and debugging it to be performed within the same application What s more it supports version management Emulator debugger This means a software tool which starts up in the integrated development environment High performance Embedded Workshop to control the compact emulator for the M16C R8C Tiny Series 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 M3028BT2 CPE This program is downloadable from the emulator debugger to upgrade the debugger etc Host machine This means a personal computer used to control the M3028BT2 CPE emulator system
68. mmand G sample h8 sample_h8 Assembly source f 2 lowlvisre H E C source file 2 dbscte lowsre c E resetpre c pragma section ResetPRG was executed pan ee void PowerON Reset void The statement specified with the come command is not set_imask_cer 1 _INITSCTQ executed Ji _CALL_INITO ie Remove th _INIT_IOLIB Use SIM I L sample h8 c 2 sbrk c Spee Download modules E E Dependencies lowsrc h E sbrk h E stackscth errno 0 Remove th srand 1 Remove th _s ptr NULL Remove th HardwapeSetup Remove th set fask_cer 0 main _CLOSEALL Use SIM I _CALL_END Remove th claanti gt lt gt sample h8 c lt gt resetpre c REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 54 of 90 M3028BT2 CPE Users Manual 3 Usage How to Use the Emulator Debugger 3 6 Hardware Breakpoint Setting Window 1 Breakpoint setup dialog box 1 Opening the hardware breakpoint setup dialog box Hardware Break Point 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 EE HW Break Points Sett
69. ms algorithms and application circuit examples is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas products listed in this document please confirm the latest product information with a Renesas sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas such as that disclosed through our website http Awww renesas com Renesas has used reasonable care in compiling the information included in this document but Renesas assumes no liability whatsoever for any damages incurred as a result of errors or omissions in the information included in this document When using or otherwise relying on the information in this document you should evaluate the information in light of the total system before deciding about the applicability of such information to the intended application Renesas makes no representations warranties or guaranties regarding the suitability of its products for any particular application and specifically disclaims any liability arising out of the application and use of the information in this document or Renesas products With the exception of products specified by Renesas as suitable for automobile applications Renesas products are not designed manufactured or tested for applications or otherwise in systems the failure or malfunction of which may cause a direct
70. nts Time between program start and stop Connection to user system For 42 pin 0 8mm pitch SSOP PRSP0042GA B Previous code 42P2R E see 2 8 Connecting the User System M30263T 42SSB included with the M3028BT2 CPE 1 on page 30 For 48 pin 0 5mm pitch LQFP PLQPO048KB A Previous code 48P6Q A M30260T 48FPD included with the M3028BT2 CPE 2 For 64 pin 0 5mm pitch LQFP PLQPO064KB A Previous code 64P6Q A M30291T 64FPD included with the M3028BT2 CPE 3 For 80 pin 0 5mm pitch LQFP PLQPOO80KB A Previous code 80P6Q A M30290T 80FPD included with the M3028BT2 CPE 4 For 85 pin 0 65mm pitch TFLGA PTLGO085JB A Previous code 85FOG M30280T 85LGF included with the M3028BT2 CPE 5 Power supply for emulator DC 5 0V 5 2A externally supplied Prepare a power supply which complies with CE marking requirements separately USB USB 1 1 full speed mini B standard connector Overseas standards EN55022 Class A 1998 Al 2000 A2 2003 EN55024 1998 Al 2001 A2 2003 The hardware break function and trace point settings of the realtime trace function cannot be used at the same time 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 18 of 90 M3028BT2 CPE Users Manual 1 Outline 1 4 Operating Environment Be sure to use
71. o use the address match break function default select the check box In this case the address match interrupt is used by the emulator and cannot be used in the user program When not using the address match break function deselect the check box check mark cleared In this case the address match interrupt can be used in the user program This option can be selected or deselected only when you are starting up the emulator debugger Page 43 of 90 M3028BT2 CPE Users Manual 3 Using or not using the CPU rewrite mode hit MGC RAC Compact Emulator MCU Debueeing Information Emulator Script MU M1i6C29 meu Refer Serial Na 2 M30288 4HI0001 Self Check Debug Option IY Enablethe Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode Enable the Trace Point Function Cancel Help Do not show this dialog box again 4 Using or not using the trace point function hit M16 REG Compact Emulator MCU Debugging Information Emulator Script MOU M16C29 mecu Reter Serial Mo 2 M30288 4H10001 Self Check Debug Option J Enable the Addfess Match Interrupt Break Function Debyethe program using the GPU Rewrite Mode Enable the Trace Point Function Cancel Help Do not show this dialog box again REJ10J1457 0200 Rev 2 00 July 16 2007 CENESAS when you a
72. of this product IMPORTANT Note on the A D Converter Function Because a package 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 41 of 90 M3028BT2 CPE User s Manual 3 Usage How to Use the Emulator Debugger 3 Usage How to Use the Emulator Debugger This chapter describes how to start up the emulator debugger and how to use the major windows 3 1 Starting Up the Emulator Debugger When debugging the completed programs switch the session The session can be changed by the drop down list of the tool bar shown below You will have as many sessions created as the number of targets you selected when creating a project so select the session that corresponds to the target to be connected from the drop down list To connect to the M16C Tiny Compact Emulator select SessionM16C_R8C_Compact_Emulator REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 42 of 90 M3028BT2 CPE Users Manual 3 2 Init Dialog Box 3 Usage How to Use the Emulator Debugger The Init dialog box is used to set the items that need to be set when the emulator debugger starts up The contents set in this dialog box remain effective the next time you start the debugger 1 MCU tab 1 Specifying the MCU file
73. on Using This Product Notes on using this product are listed below When debugging the MCU using this product be careful about the following precautions IMPORTANT Note on the Version of the Emulator Debugger Be sure to use this product with one of the following emulator debuggers M16C R8C Compact Emulator debugger V 1 02 Release 00 or later When debugging the M16C 26A Group MCUs an MCU file for the M16C 26A and M16C 26B M16C26 MCU is required When debugging the MI16C 28 Group MCUs an MCU file for the M16C 28 and M16C 28B M16C28 MCU is required When debugging the M16C 29 Group MCUs an MCU file for the M16C 29 M16C29 MCU is required Notes on the Self check If the self check does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor Run the self check with the user system not connected Note on Quitting the Emulator Debugger To restart the emulator debugger always shut power to the emulator module off once and then on again Notes on the User System Power Supply Order of Powering On 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 500mA of electric current from the user system The voltage of the user system should be as follows 2 7V lt VCC
74. onnected with the M30290T PTCB 85 0 ENESAS POWER USB SYSTEM a STATUS COMPACT EMULATOR M3028BT2 CPE CLOCK RESET TARGET RUN STATUS f d MADE IN J APAN Sa Unit mm Figure 4 2 External dimensions of the compact emulator REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 73 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications 4 4 2 External Dimensions of the Converter Board M30263T 42SSB Figure 4 3 shows external dimensions and a sample foot pattern of the converter board M30263T 42SSB included with the M3028BT2 CPE 1 for a 42 pin 0 8mm pitch SSOP P 16 00 p M50263T 4255B REV A MADE IN JAPAN A LO JJ H Unit mm Figure 4 3 External dimensions and a sample foot pattern of the converter board M30263T 42SSB 4 4 3 External Dimensions of the Converter Board M30260T 48FPD Figure 4 4 shows external dimensions and a sample foot pattern of the converter board M30260T 48FPD included with the M3028BT2 CPE 2 for a 48 pin 0 5mm pitch LQFP 1302607 48FPD REV A MADE IN JAPAN J
75. ouble on your product because of static electricity REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 87 of 90 M3028BT2 CPE User s Manual 6 Maintenance and Guarantee MEMO REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 88 of 90 Compact Emulator for M16C Tiny Series M3028BT2 CPE User s Manual Publication Date Jul 16 2007 Rev 2 00 l Sales Strategic Planning Div PUSNSNER SY Renesas Technology Corp Edited by Microcomputer Tool Development Department Renesas Solutions Corp 2007 Renesas Technology Corp and Renesas Solutions Corp All rights reserved Printed in Japan M3028BT2 CPE User s Manual CENESAS Renesas Technology Corp 2 6 2 Ote machi Chiyoda ku Tokyo 100 0004 Japan
76. own risk that it can be put to practical use by performing integration test evaluation or some experiment else 2 Inno event shall Renesas Solutions Corp be liable for any consequence arising from the use of this product 3 Renesas Solutions Corp strives to renovate or provide a workaround for product malfunction at some charge or without charge However this does not necessarily mean that Renesas Solutions Corp guarantees the renovation or the provision under any circumstances 4 This product has been developed by assuming its use for program development and evaluation in laboratories Therefore it does not fall under the application of Electrical Appliance and Material Safety Law and protection against electromagnetic interference when used in Japan 5 Renesas Solutions Corp cannot predict all possible situations or possible cases of misuse where a potential danger exists Therefore the warnings written in this user s manual and the warning labels attached to this emulator do not necessarily cover all of such possible situations or cases Please be sure to use this emulator correctly and safely on your own responsibility 6 This product is not qualified under UL or 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 4 of 90 M3028BT2 CPE User s Manual Important Usage
77. porting this product Tf there is any question or doubt about the packaged product contact your local distributor REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 13 of 90 M3028BT2 CPE User s Manual 1 Outline 1 2 System Configuration 1 2 1 System Configuration Figure 1 1 shows a configuration of the M3028BT2 CPE system 3 Power supply for emulator not included Power supply cable 2 USB interface cable 5 Power supply for user system not included 4 User system 6 Host machine 1 Compact emulator 7 Package converter board not included M3028BT2 CPE such as M30290T 80FPD Figure 1 1 System configuration 1 Compact emulator M3028BT2 CPE this product This is a compact emulator for the M16C Tiny Series with the real time trace functions hereafter emulator The M3028BT EPBM on which an evaluation MCU is mounted can be also purchased separately 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 0V 5 DC Prepare a power supply which complies with CE marking requirements separately The power cable is included with this product Note Be aware that there are some AC adapters whose power supply voltage varies rather widely with its load You are recommended to use an AC adapter with a switching power supply or a stabilized power supply 4 User system This
78. 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 0V 5 Extreme voltages may cause a burn due to abnormal heat or cause the internal circuit to break down Cautions to Be Taken for Turning On the Power Turn ON OFF the power of the emulator and user system as simultaneously as possible Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged When turning on the power again after shutting off the power wait about 10 seconds Cautions to Be Taken for Handling This Product Use caution when handling the main unit Be careful not to apply a mechanical shock Do not touch the connector pins of the emulator main unit and the target MCU connector pins directly Static electricity may damage the internal circuits Do not pull this emulator by the communications interface cable or the flexible cable for connecting the user system And excessive flexing or force may break conductors Caution to Be Taken for System Malfunctions If the emulator malfunctions because of interference like external noise do the following to remedy the trouble 1 Press the RESET 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 REJ10J1457 0
79. re starting up the emulator debugger following functions cannot be used Execution of COME in the internal ROM area whether or not to use the trace point function for the hardware break function 3 Usage How to Use the Emulator Debugger Using or not using CPU rewrite mode Specify whether or not to debug in CPU rewrite mode To debug the user system that uses CPU rewrite mode check this box This option can be selected or deselected only When debugging in CPU rewrite mode is enabled the Software breakpoint setting 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 When not using the trace point function default deselect the check box In this case the events are used To use the trace point function check this box In this case the events are used for the trace point function The hardware break function is disabled Page 44 of 90 M3028BT2 CPE Users Manual 5 Executing the self check hit M166 REC Compact Emulator MCU Debueeing Information Emulator Script MU M1i6C29 meu Reter Serial No gt MI3028B 4HI0001 self Check Debug Option J Enable the Address Match Interrupt Break Function Debug the program using the GPU Rewrite Mode Enable the Trace Point Function
80. restrictions This emulator has been developed as a means of supporting system development by users Therefore do not use it as a device used for equipment embedded applications Also do not use it for developing the systems or equipment used for the following purposes either 1 Transportation and vehicular 2 Medical equipment where human life is concerned 3 Aerospace 4 Nuclear power control 5 Undersea repeater If you are considering the use of this emulator for one of the above purposes please be sure to consult your local distributor About product changes We are constantly making efforts to improve the design and performance of this emulator Therefore the specification or design of this emulator or its user s manual may be changed without prior notice About the rights 1 We assume no responsibility for any damage or infringement on patent rights or any other rights arising from the use of any information products or circuits presented in this user s manual 2 The information or data in this user s manual does not implicitly or otherwise grant a license for patent rights or any other rights belonging to us or third parties 3 This user s 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 repre
81. s disconnect the power cable from the power supply 6 3 Guarantee If your product becomes faulty within one year after its purchase while being used under good conditions by observing IMPORTANT and Precautions for Safety described in this user s manual we will repair or replace your faulty product free of charge Note however that if your product s fault is raised by any one of the following causes we will repair it or replace it with new one with extra charge Misuse abuse or use under extraordinary conditions Unauthorized repair remodeling maintenance and so on Inadequate user s system or misuse of it Fires earthquakes and other unexpected disasters In the above cases contact your local distributor If your product is being leased consult the leasing company or the owner 6 4 Repair Provisions 1 Repair with extra charge The products elapsed more than one year after purchase can be repaired with extra charge 2 Replacement with extra charge If your product s fault falls in any of the following categories the fault will be corrected by 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 circ
82. s of a domestic radio or television receiver For correct operation of this product it is recommended that Mobile phones are not used within 10 meters of this product system This product should be powered down when not in use Use the power supply which complies with CE marking requirements 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 Increase the distance between the product and the receiver Connect the product into an outlet on a circuit different from that to which the receiver is connected Consult the dealer or experienced radio TV technician for help 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 80 of 90 M3028BT2 CPE Users Manual 5 Troubleshooting 5 Troubleshooting This chapter describes how to troubleshoot wh
83. self check does not result normally excluding target status errors the emulator may be damaged Then contact your local distributor REJ10J1457 0200 Rev 2 00 July 16 2007 2CENESAS Page 29 of 90 M3028BT2 CPE User s Manual 2 Setup 2 8 Connecting the User System Figure 2 11 shows the connection of the M3028BT2 CPE and the user system Compact emulator M3028BT2 CPE 0 Sa h 0 saab h 0 sm on h 0 an rai h sae omm pite omm pitc mm pite ace SSOP _ M30263T 42SSB OFP M30260T 48FPD a M30291T 64FPD M30290T 80FPD se Aa M30280T 85LGF Sa LEa LSE O GUIDE it lt S Socket frame x2 1 AT a S TS 3 X re 4 SF CSSOCKET085B1007RE01 5 amp M3T SSOP42B 450 1 A i n NQPACK048SD 2 NQPACK064SD ND 3 NQPACKO80SD ND 4 Q e K 5 e No A1 pin Socket A e No 1 pin 1 These products are included with the M30263T 42SSB package 2 These products are included with the M30260T 48FPD package 3 These products are included with the M30291T 64FPD package 4 These products are included with the M30290T 80FPD package 5 These products are included with the M30280T 85LGF package Figure 2 11 Connection of the M3028BT2 CPE and user system A 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 NQPACK YQPACK YQSOCKET YQ GUIDE HQPACK TQPACK TQSOCKET CSSOCKET and CSPLUG W are tradem
84. sent exactly the actual object REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 5 of 90 M3028BT2 CPE User s Manual Precautions for Safety Precautions for Safety Definitions of Signal Words In both the user s manual and on the product itself several icons are used to insure proper handling of this product and also to prevent injuries to you or other persons or damage to your properties This chapter describes the precautions which should be taken in order to use this product safely and properly Be sure to read this chapter before using this product This symbol represents a warning about safety It is used to arouse caution about a potential A N danger that will possibly inflict an injury on persons To avoid a possible injury or death please be sure to observe the safety message that follows this symbol DANGER indicates an imminently dangerous situation that will cause death or heavy wound D ANG E R 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 WARNING unless it is avoided C AUTI ON CAUTION indicates a potentially dangerous situation that will cause a slight injury or a medium degree injury unless it is avoided C AUTION CAUTION with no safety warning symbols attached indicates a potentially dangerous situation that will cause property damage unless i
85. sion MCU REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 71 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications 4 3 Connection Diagram Figure 4 1 shows a part of the connection diagram of the M3028BT2 CPE This connection diagram mainly shows the interface section The circuits not connected to the user system such as the emulator s control system are omitted The signals not shown in Figure 4 1 connect the evaluation MCU and the user system directly Table 4 2 shows IC electric characteristics of this product for reference purposes P84 P84 P90 P93 P95 P97 P90 P93 P95 P97 P100 P107 P100 P107 510kQ Vcc P85 NMI P85 NMI N74HC4066 P86 Xcout gt P86 Xcout 74HC4066 510kO Vcc User system P87 Xcin P87 Xcin lt 74HC4066 gt Xout 74HC4066 k sss CN VSS Emulation Mode 510kQ Vcc RESET 510kO Vcc Connected to the inside of the emulator Figure 4 1 Connection diagram Table 4 2 Electrical characteristics of the 74HC4066 Tra oR ree ARon ONresistordifference WCC 45V 10 torr Leak current Of CC 12 0V_ a me Leak current On output open _ vec 120v__ a REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 72 of 90 M3028BT2 CPE User s Manual 4 Hardware Specifications 4 4 External Dimensions 4 4 1 External Dimensions of the Compact Emulator Figure 4 2 shows external dimensions of the M3028BT2 CPE c
86. stem A When the emulator debugger is connected correctly to the emulator after you have finished setting up the Init dialog box and the MCU Setting dialog box you will see a message Connected displayed on the Debug tab of the Output window E Default desktop me mS x Connected E EG Debug Find in Files Version Control Ready REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 49 of 90 M3028BT2 CPE Users Manual 3 5 Program Execution 1 Downloading the program 1 Downloading from the work space window TA MiC 29 TEST Mi6c 29 TEST E3 Absolute file Assembly include file MN Gotiny_initine Assembly source file 29 rammonitor asu 3 C source file Download modules Bj 9 rammonitor xin E3 Dependencie Download module Download module debug data only Configure Wey Allow Dock ine Hide 2 Showing the source program LOC 490H SP LDINTE EC_ADDR REGWR MAIN REG 10 RO 0000H REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS 3 Usage How to Use the Emulator Debugger Downloading the program Download the object program you want to debug Select Download from xxx x30 of Download module Or you can select Download module from the Debug menu for the same effect Editor Source window The editor source window is a window th
87. t the monitor area is set to 000400h through ales 4 Start OO0400 Area 0007FFh To change it click the Add or Remove 000400 0007F F button Remove All O blocks 0 bytes are available 1 block 256 bytes gt DAYE Load Close i REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 66 of 90 M3028BT2 CPE Users Manual 3 RAM monitor area setting dialog box Set RRAH Area Start OO0400 SIZE Area 000400 0004F F Cancel 3 Usage How to Use the Emulator Debugger Specifying the start address You can set the start address of the RAM area to be monitored Specifying the size You can set the size to be monitored by specifying the number of blocks from the start address One block is 256 bytes in size 4 RAM monitor area setting dialog box when RAM monitor area is changed from 400h to 1 block g Ee W RAH Monitor Area Setting Current S2siened rea Start Gila OO0400 Area 000400 OOO4FF q blocks 68 bytes are available 1 block 256 bytes gt DAYE Load lose 5 RAM monitor area setting dialog box RamMonitor 000 180 p m Register 000460 000400 000400 O004E0 0004F0 000500 000510 000520 000530 000540 000550 000560 000570 000580 000590 000540 000560 O005C0 O005D0 OO005E0 OO005FO 000600 22 OF 3A 33 1E 0 93 EF 16 7E 20 22 F9 86 56 95 000610
88. t is avoided IM P O RT ANT This is used in operation procedures or explanatory descriptions to convey exceptional conditions or cautions to the user In addition to the five above the following are also used as appropriate means WARNING or CAUTION ane A N CAUTION AGAINST AN ELECTRIC SHOCK means PROHIBITION Q vIsasseMBLy PROHIBITED Example means A FORCIBLE ACTION E unrLuG THE POWER CABLE FROM THE RECEPTACLE REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 6 of 90 M3028BT2 CPE User s Manual Precautions for Safety Warnings for AC Power Supply 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
89. ter And when the emulator does not start up normally refer to 5 Troubleshooting page 81 Check the package components User registration Install the included software etc 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 REJ10J1457 0200 Rev 2 00 July 16 2007 Refer to 1 1 Package Components page 13 Refer to User Registration page 11 Install it from the included CD ROM Select a power voltage supplied to the target MCU Connect the USB interface cable to the USB interface connector J2 of the emulator and the USB port of the host machine Connect a power supply to the power connector J1 Power supply should be 5 0V 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 of target status LED does not light up Start up the emulator debugger Set the INIT dialo
90. tor 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 O RENESAS POWER USB HD POWER SYSTEM AO System status LEDs sare C Makadia STATUS COMPACT EMULATOR M3028BT2 CPE LED3 Ni OO Target status LEDs OCK TARGET STATUS C MADE IN J APAN Figure 2 7 Positions of the system status LEDs and target status LEDs 1 System status LEDs Check that the LED1 and LED2 of the system status LEDs are lit immediately after the power is activated If it is not lit shut off the emulator and check the power supply for the emulator is properly connected 2 Target status LEDs Target status LEDs light as shown in Figure 2 8 when the user system is not connected and as shown in Figure 2 9 when a user system is connected When the target status LEDs do not display as shown in Figures 2 8 and 2 9 refer to 5 Troubleshooting page 81 When the user system NOT connected The POWER LED does not light u POWER LED3 POWER fan LED3 crock Waa LED4 cock Lepa RESET M LED5 o RESET _ LEDs E o RUN WD EDs RUN WM EDs After turning the power ON After starting up the emulator debugger Figure 2 8 Target status LEDs display when the emulator starts up normally when user system not connected REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 26 of 90
91. uch as PC4701 PC7501 is not connected Target MCU is in the reset state Check that the reset pin of the user system is at H level 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 the user system check that the oscillator circuit in the user system is oscillating properly See 2 9 2 Selecting Clock Supply page 37 Target MCU is not receiving power Check that power is properly supplied to the user system and that the user system is properly grounded REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 83 of 90 M3028BT2 CPE Users 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 84 of 90 M
92. uits 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 86 of 90 M3028BT2 CPE User s Manual 6 Maintenance and Guarantee 3 Expiration of the repair period When a period of one year elapses after the model was dropped from production repairing products of the model may become impossible 4 Transportation fees at sending your product for repair Please send your product to us for repair at your expense 6 5 How to Make Request for Repair If your product is found faulty fill in the Repair Request Sheet included with this product then send it along with this product for repair to your local distributor Make sure that information in the Repair Request Sheet is written in as much detail as possible to facilitate repair Note on Transporting the Product When sending your product for repair use the packing box and cushion material supplied with this product when delivered to you and specify handling caution for it to be handled as precision equipment If packing of your product is not complete it may be damaged during transportation When you pack your product in a bag make sure to use conductive polyvinyl supplied with this product usually a blue bag When you use other bags they may cause a tr
93. uting up to the cursor position 1 Setup procedure for running the program up to the cursor position Setup procedure for running the program Larger view up to the cursor position Ba cet e oes S os e 1 Click the line in the editor source window that you SEEN Y PPD bec ec FF x 5 E sample h8 6 Sg santo ho want to be executed a Assembly source f E lowlvisre 5 3 C source file E dbsct c lowsre c pragma section ResetPRG E ontry vect 0 void PowerON Reset void 2 Click the execution button to the cursor position r j resetpre c sample _h8 c 2 sbrk c B Download modules 4 set_imask_cer 1 _INITSCTO fe calc INVIS Ys pone Oi Or you can select Go to Cursor from Debug menu for _INIT_IOLIBQ Use SIM I _ errno 0 tt Bae th the same effect ZZ srand 1 Remove th _slptr NULL Remove th ika E Dependencies Z lowsrc h sbrk h stackscth HardwareSetup Remove th see mask_cer 0 main _CLOSEALL Use SIM I _CALL_END Remove th claanfi gt lt sample h8 c gt resetpre c 2 After the execution has finished MEEN EEST ax me hoe The cursor stops in the position where the come co
94. words RW Operand read in words REJ10J1457 0200 Rev 2 00 July 16 2007 2 CENESAS Page 61 of 90 M3028BT2 CPE Users Manual 3 Usage How to Use the Emulator Debugger 2 Suspending and resuming trace measurement 1 Suspending trace measurement Stop Click this toolbar button to suspend the trace measurement Trace x B fF aAA vaa E Range Area Before Break File 29 rammonitor as0 Cycle Address Time Line Address in progress Wom Source 2 Resuming trace measurement Trace Re Start Click this toolbar button to resume the trace measurement in progress Line Address Now Source is 00099 OFOOcCA rll 3E h b O0100 OFOOCE ril 3E3h b o0101 OFOODE ri 3EEh w OoO102 OFOODS rts OO103 d wr 00104 OFOOD for r3 0h to 80h step adits OFOODF STE E ROL 00106 OFOOE1 A0 40 oo107 OFOOEZ ROL ROL 00108 oroors ieee next 0010s OFOUE ROH ROL 00110 RO0H i OFOUES REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 62 of 90 M3028BT2 CPE Users Manual 3 Usage How to Use the Emulator Debugger 3 Trace point setup dialog box 1 Opening the trace point setup dialog box Trace Point 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 E Trace Points Setting Be sure to sele
95. y 50 insertion removal iterations REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 35 of 90 M3028BT2 CPE User s Manual 2 Setup 2 9 Changing Settings 2 9 1 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 Cnnacedsate MCU power supply MCU power supply Ea source selection voltage selection Description the user system l i jumper JP1 jumper JP2 Supplied from the emulator The MCU operating Not connected INT ae REDE 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 500mA of electrical current from the user system 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 REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 36 of 90 M3028BT2 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 6 shows the clocks and their initial settings Table 2 6 Clock supply to the MCU Emulator debugger display M
96. y a condition for the cycles to be written into aO At OOTI the trace memory rimel FETCH addr lagoo Total ring FETCH addr miango All cycles are written into memory Pick up Only the cycles in which the specified condition was met are written into memory Exclude Only the cycles in which the specified condition was not Combination PID met are written into memory ynte Gandilion Pick un OU i aai When you have finished setting the trace write condition click this button The Realtime trace Write Condition dialog box shown below will appear Write mode a j p Realtime trace Write Gcndition Only the cycle in which the specified Start event occurred Setting Start A range of cycles from when the specified Start event Je a occurred to when the specified Start event became C E2 L Ez nonexistent rt A range of cycles from when the specified Start event occurred to when the specified End event occurred REJ10J1457 0200 Rev 2 00 July 16 2007 2rCENESAS Page 64 of 90 M3028BT2 CPE Users Manual 3 Usage How to Use the Emulator Debugger 3 8 RAM Monitor Window 1 RAM monitor window 1 Opening the RAM monitor window RAM monitor Clicking this button opens the RAM monitor window Or you can select RAM monitor from CPU of Display menu for the same effect 2 RAM monitor window RAM monitor window Erren eene This window shows changes of memory contents while the B
97. you have any questions regarding the information contained in this document Renesas semiconductor products or if you have any other inquiries M3028BT2 CPE Users Manual Preface Preface The M3028BT2 CPE is a compact emulator for the M16C Tiny Series MCUs with the real time trace function This user s manual mainly describes specifications of the M3028BT2 CPE compact emulator and how to setup it For details on the emulator debugger and C compiler M3T NC30WA evaluation version which are included with the M3028BT2 CPE refer to the online manual 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 tools Related manuals Manual Accessory tools M30263T 42SSB User s Manual M30260T 48FPD User s Manual M30291T 64FPD User s Manual M30290T 80FPD User s Manual M30280T 85LGF User s Manual High performance Embedded Workshop User s Manual Emulator debugger M16C R8C Compact Emulator Debugger User s Manual C compiler C compiler package for the R8C Tiny M16C 60 30 Tiny 20 and 10 Series C compiler User s Manual Assembler C compiler package for the R8C Tiny M16C 60 30 Tiny 20 and 10 Series Assembler User s Manual Integrated development environm
Download Pdf Manuals
Related Search
Related Contents
Samsung AQV24EWCX manual de utilizador MANUAL DE INSTALAÇÃO E OPERAÇÃO Cisco 2911 MANUEL D`INSTRUCTIONS 注意事項 1. INF`UTILES 2. ROI + PROJETS 4. COMPTA 5. ASSURANCES マニュアル Copyright © All rights reserved.
Failed to retrieve file