background image

 
 

REJ10J0494-0200(T) 

M30290T2-CPE

Rev.2.00 
Jul. 16, 2005 

User's Manual

Compact Emulator for M16C/26A, 28, 29 Groups

Summary of Contents for M30290T2-CPE

Page 1: ...REJ10J0494 0200 T M30290T2 CPE Rev 2 00 Jul 16 2005 User s Manual Compact Emulator for M16C 26A 28 29 Groups...

Page 2: ...l inaccuracies or typographical errors Renesas Technology Corp assumes no responsibility for any damage liability or other loss rising from these inaccuracies or errors Please also pay attention to in...

Page 3: ...y 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 ht...

Page 4: ...it for use in your program development and evaluation stages In mass producing your program you have finished developing be sure to make a judgment on your own risk that it can be put to practical use...

Page 5: ...stantly 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...

Page 6: ...an imminently dangerous situation that will cause death or heavy wound unless it is avoided However there are no instances of such danger for the product presented in this user s manual WARNING WARNI...

Page 7: ...stalling 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...

Page 8: ...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 of...

Page 9: ...2 6 3 Turning ON OFF the Power 25 2 6 4 Power Supply to the User System 25 2 6 5 LED Display When the Emulator Starts Up Normally 26 2 7 Self check 28 2 7 1 Self check Procedure 28 2 7 2 If an Error i...

Page 10: ...T 48FPD 72 4 4 4 External Dimensions of the Converter Board M30291T 64FPD 73 4 4 5 External Dimensions of the Converter Board M30290T 80FPD 73 4 5 Notes on Using This Product 74 Notes on the Self chec...

Page 11: ...ll it in and FAX it to your local distributor or email the same contents to the following address Your registered information is used for only after sale services and not for any other purposes Withou...

Page 12: ...bugging 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...

Page 13: ...emulator 1 Power supply cable for compact emulator 1 Ferrite core for connecting power supply cable 1 H W Tool Customer Registration Sheet English 1 H W Tool Customer Registration Sheet Japanese 1 M30...

Page 14: ...the emulator 3 Power supply for emulator This is a power supply for the emulator Supply 5 0 V 5 DC Prepare a power supply which complies with CE marking requirements separately The power cable is inc...

Page 15: ...t s operating status etc Table 1 2 lists the definition of the system status LEDs Table 1 2 Definitions of the system status LEDs Name Number Color Status Meaning ON Power is supplied to the emulator...

Page 16: ...of the system reset switch depending on the state of the emulator Table 1 4 Functions of the system reset switch State of Emulator Function When the user s program is halted Initializes the emulator a...

Page 17: ...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 set the power supply voltag...

Page 18: ...es supported Break Before About After Full Can be recorded ON OFF by events Real time RAM monitor function 1 024 bytes 256 bytes x4 Data last access result Hardware break function 2 points Address mat...

Page 19: ...ndows 98 Windows XP Windows 2000 CPU Pentium III 600 MHz or more recommended Host machine interface USB 1 1 full speed 2 Memory 128 MB or more recommended Pointing device such as mouse Mouse or any ot...

Page 20: ...SB interface cable to the USB interface connector J2 of the emulator and the USB port of the host machine Connect the power supply for the emulator Connect a power supply to the power connector J1 Pow...

Page 21: ...tall the C compiler emulator debugger and USB driver as occasion demands In process of installation user information dialog box to enter the user information contractor section contact address and hos...

Page 22: ...cifications of the power connector J1 and an applicable plug respectively Electrode Electrode 4 75mm 1 7mm Inside diameter Figure 2 3 Power connector specifications Figure 2 4 Applicable plug specific...

Page 23: ...of the host machine see Figure 2 5 Figure 2 5 Connecting the emulator system MADE POWER SW1 COMPACT EMULATOR INT JP1 5 0V JP2 3 3V EXT CLOCK RESET RUN LED3 LED6 LED5 LED4 POWER LED1 SAFE LED2 Connect...

Page 24: ...scription 3 3 V Supplied from the emulator The MCU operating voltage is 3 3 V Not connected INT 5 0 V Supplied from the emulator The MCU operating voltage is 5 0 V Connected EXT Invalid Supplied from...

Page 25: ...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...

Page 26: ...when the user system is not connected and as shown in Figure 2 9 when a user system is connected After turning on the power only the LED5 RESET lights on Check the target status LEDs display normally...

Page 27: ...ator debugger Make sure that the oscillator circuit board is properly installed in the emulator and it is oscillating normally 2 After the emulator debugger is started up after the Init dialog box set...

Page 28: ...itch settings for the self check Switch Setting MCU power supply source selection jumper JP1 INT MCU power supply voltage selection jumper JP2 5V Figure 2 10 Self check procedure POWER CLOCK RESET RUN...

Page 29: ...that the oscillator circuit board OSC 3 is attached The power is not supplied to the emulator Check that the power supply cable is connected properly Check of jumper switch settings see Table 2 3 The...

Page 30: ...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 Compact emulator M30290T2 CPE Socket frame x2 1...

Page 31: ...the socket 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M30290T2 CPE 4 Attach the M30263T 42SSB to the M3T SSOP42B 450 1 M30290T2 CPE 42 pin 0 8 mm pitch 42P2R E foot pattern Soc...

Page 32: ...the YQ GUIDE s 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M30290T2 CPE 4 Attach the M30260T 48FPD to the YQPACK048SD 48 pin 0 5 mm pitch 48P6Q A foot pattern YQ GUIDE x4 YQPAC...

Page 33: ...th the YQ GUIDE s 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M30290T2 CPE 4 Attach the M30291T 64FPD to the YQPACK064SD 64 pin 0 5 mm pitch 64P6Q A foot pattern YQ GUIDE x4 YQP...

Page 34: ...th the YQ GUIDE s 3 Attach the J1 and J2 of the M30290T PTCB to the J3 and J4 of the M30290T2 CPE 4 Attach the M30290T 80FPD to the YQPACK080SD 80 pin 0 5 mm pitch 80P6Q A foot pattern YQ GUIDE x4 YQP...

Page 35: ...onnection to the user system MCU power supply source selection jumper JP1 MCU power supply voltage selection jumper JP2 Description 3 3 V Supplied from the emulator The MCU operating voltage is 3 3 V...

Page 36: ...uit board OSC 3 or OSC 2 Yes Main XIN XOUT External Oscillator circuit on the user system Internal Internal oscillator circuit 32 768 kHz Sub XCIN XCOUT External Oscillator circuit on the user system...

Page 37: ...t to the connector of the emulator Secure the new oscillator circuit board with the screw Figure 2 16 Replacing oscillator circuit boards CAUTION Note on Replacing the Oscillator Circuit Board When re...

Page 38: ...8 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 Fig...

Page 39: ...e of the evaluation MCU into pin XIN And pin XOUT should be open Choose External in the emulator debugger to use this clock Figure 2 19 External oscillator circuit Make note that in the oscillator cir...

Page 40: ...installed and the configuration of this product Figure 2 21 Foot pattern for A D conversion bypass capacitors and the configuration of this product IMPORTANT Note on the A D Converter Function Because...

Page 41: ...s 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 sess...

Page 42: ...the information specific to the target MCU The MCU file you have selected is displayed in the MCU section of the MCU tab Cancel Help Using or not using the address match break function Specify whethe...

Page 43: ...nation When debugging in CPU rewrite mode is enabled the following functions cannot be used Software breakpoint setting in the internal ROM area Execution of COME in the internal ROM area Cancel Help...

Page 44: ...ing to the emulator and confirming the firmware the debugger will immediately start self check on the emulator This function can be enabled only when you are starting up the emulator debugger Cancel H...

Page 45: ...ve specified here remains effective the next time you start up Cancel Help Automatically executing a script command To automatically execute a script command when starting up the debugger click the Re...

Page 46: ...processor mode Select the appropriate processor mode that suits your system For the M16C 26A 28 and 29 group MCUs you can specify only the following processor mode Single Chip Mode Specifying the PM1...

Page 47: ...initialized to 0xFF 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 intac...

Page 48: ...em Check to see that the emulator debugger has been connected correctly to the emulator Checking connections of the emulator system When the emulator debugger is connected correctly to the emulator af...

Page 49: ...module Or you can select Download from the Debug menu for the same effect Editor source window The editor source window is a window that always shows the content of the source file corresponding to t...

Page 50: ...PC position Or you can select Go from Debug menu for the same effect Go Free Runs the program beginning with the current PC position The software and hardware breaks set in it are ignored Reset Go Ru...

Page 51: ...y 16 2005 Page 51 of 86 6 Stopping the user program 7 Editor Source window after you have stopped the user program STOP Stops the program Or you can select Stop from Debug menu for the same effect Edi...

Page 52: ...atch break causes the program to stop before executing the address at which a breakpoint is set Software breakpoint A software breakpoint can be set or cleared by double clicking the software breakpoi...

Page 53: ...Setup procedure for running the program up to the cursor position 2 After the execution has finished Setup procedure for running the program up to the cursor position 1 Click the line in the editor so...

Page 54: ...box 2 Hardware Break Point Setting Window in initial state 3 Opening the break event setting dialog box H W breakpoint Setting Window in initial state Select the Enable H W Break check box and this br...

Page 55: ...ed 1 Window for setting addresses Specifying the event type Select the event type that you want to set from the drop down list FETCH Detects an instruction prefetch DATA ACCESS Detects a memory access...

Page 56: ...address 2 Window for setting data Setting the address You can set eight conditions e g a specified address a specified address range etc Setting data You can set two conditions e g specified data or n...

Page 57: ...ent setting for even address byte access MOV B R0L 516h R0L 03h Low order data effective Event setting for odd address byte access MOV B R0L 515h R0L 03h High order data effective Setting a break even...

Page 58: ...tion 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...

Page 59: ...er 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 s...

Page 60: ...BIU Bus Interface Unit 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...

Page 61: ...00 July 16 2005 Page 61 of 86 2 Suspending and resuming trace measurement 1 Suspending trace measurement 2 Resuming trace measurement Stop Click this toolbar button to suspend the trace measurement i...

Page 62: ...trace point setup dialog box 2 Trace Point Setting Window in initial state Trace Point Setting Window in initial state Be sure to select Enable the trace point in the Init dialog box before you set up...

Page 63: ...4K cycles of instruction execution after a trace began is recorded Setting the trace write condition You can specify a condition for the cycles to be written into the trace memory Total All cycles are...

Page 64: ...f memory contents while the user program is executed This is accomplished by using the real time RAM monitor function and the memory contents corresponding to the RAM monitor area are displayed in dum...

Page 65: ...ndow 1 Opening RAM monitor area setting window 2 RAM monitor area setting window in initial state RAM Monitor Area Setting Window in initial state By default the monitor area is set to 000400h through...

Page 66: ...6 bytes in size 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 di...

Page 67: ...lists the specifications of target MCUs which can be debugged with this product Table 4 1 Specifications of target MCUs for the M30290T2 CPE Item Description Applicable MCU M16C 26A M16C 28 M16C 29 G...

Page 68: ...et 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...

Page 69: ...e 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 000...

Page 70: ...reference purposes Figure 4 1 Connection diagram Table 4 2 Electrical characteristics of the 74HC4066 Standard values Symbol Item Condition Min Standard Max Unit RON ON resistor Vcc 4 5V 96 200 RON O...

Page 71: ...s external dimensions of the M30290T2 CPE connected with the M30290T PTCB Figure 4 2 External dimensions of the compact emulator 85 0 11 0 60 0 37 8 Unit mm MADE SW1 COMPACT EMULATOR INT JP1 5 0V JP2...

Page 72: ...igure 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 s...

Page 73: ...LQFP 36 0 16 5 32 0 0 25 0 5 10 0 14 0 10 0 14 0 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...

Page 74: ...s emulator cannot supply the power to the user system Therefore design your system so that the user system is powered separately This emulator consumes max 500 mA of electric current from the user sys...

Page 75: ...ed 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 in...

Page 76: ...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 in...

Page 77: ...f Conformity This product complies with CE marking EN55022 1998 Class A EN55024 1998 Please use it with care described below Electrostatic Discharge Precautions must be taken when handling the product...

Page 78: ...of emulator 1 Check connection of the power supply cable See 2 4 Connecting the Power Supply for Emulator page 22 2 Check that the power is properly supplied to the user system See 2 6 Turning ON the...

Page 79: ...y supplied to the user system and that the user system is properly grounded Not connected 1 Check that both the main and sub clocks of the emulator debugger are not set to EXT See the CLK command of t...

Page 80: ...the reset pin of the user system has changed from Low to High level Target MCU cannot be reset 1 Check that pin NMI is held High 2 If the reset circuit of the user system has a watchdog timer disable...

Page 81: ...s Occur at Debugger Startup Table 5 3 Checkpoints of errors at debugger startup Error Checkpoint Target MCU is uncontrollable 1 Check that the NQPACK etc mounted on the user system is soldered properl...

Page 82: ...ormation to your local distributor http tool support renesas com eng toolnews registration support txt For prompt response please specify the following information 1 Operating environment Operating vo...

Page 83: ...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 Inadequa...

Page 84: ...Request Sheet is written in as much detail as possible to facilitate repair Distributor After checking the contents of fault the distributor should please send the faulty product along with the Repair...

Page 85: ...ublication Date Jul 16 2005 Rev 2 00 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Microcomputer Tool Development Department Renesas Solutions Corp 2005 Renesas Technolog...

Page 86: ...M30290T2 CPE User s Manual...

Reviews: