background image

M3028BT2-CPE User’s Manual 

Terminology 

REJ10J1457-0300  Rev.3.00  July 22, 2009 

 

Page 13 of 90 

 

Terminology 

Some 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. 
 

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

#

 
 

Содержание M3028BT2-CPE

Страница 1: ...ok over all the business of both companies Therefore although the old company name remains in this document it is a valid Renesas Electronics document We appreciate your understanding Renesas Electron...

Страница 2: ...t for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas...

Страница 3: ...M3028BT2 CPE User s Manual User s Manual Rev 3 00 2009 07 Compact Emulator for M16C Tiny Series...

Страница 4: ...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 co...

Страница 5: ...l device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This eq...

Страница 6: ...product are shown in 1 1 Package Components page 14 If there is any question or doubt about this product contact your local distributor The related manuals for using this product are listed below You...

Страница 7: ...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 s...

Страница 8: ...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...

Страница 9: ...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...

Страница 10: ...sconnect power immediately by unplugging the AC power cable from the outlet Do not use this as it is because of the danger of electric shock and or fire In this case contact your local distributor z B...

Страница 11: ...imultaneously as possible z Do not leave either the emulator or user system powered on because of leakage current the internal circuits may be damaged z When turning on the power again after shutting...

Страница 12: ...Supply to the User System 26 2 6 4 Turning ON OFF the Power 26 2 6 5 LED Display When the Emulator Starts Up Normally 27 2 7 Self check 29 2 7 1 Self check Procedure 29 2 7 2 If an Error is Detected...

Страница 13: ...Dimensions of the Converter Board M30260T 48FPD 75 4 4 4 External Dimensions of the Converter Board M30291T 64FPD 76 4 4 5 External Dimensions of the Converter Board M30290T 80FPD 76 4 4 6 External D...

Страница 14: ...mulation probe rewrite an emulator name and serial number in the text file you filled in earlier to register your new hardware products Your registered information is used for only after sale services...

Страница 15: ...o 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 develo...

Страница 16: ...Customer Registration Sheet English 1 H W Tool Customer Registration Sheet Japanese 1 Repair Request Sheet English 1 Repair Request Sheet Japanese 1 M3028BT2 CPE User s Manual this manual 1 M3028BT2...

Страница 17: ...tor 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...

Страница 18: ...User system power POWER LED4 Clock oscillation CLOCK LED5 MCU RESET RESET LED6 Program execution RUN System status LEDs LED1 Emulator power POWER LED2 Emulator startup SAFE JP1 MCU power supply sourc...

Страница 19: ...Table 1 4 shows the functions of the system reset switch depending on the state of the emulator Table 1 4 Functions of the system reset switch State of Emulator Function When the user s program is hal...

Страница 20: ...2 6 1 MCU Power Supply Source Selection Jumper MCU Power Supply Voltage Selection Jumper page 25 7 MCU Power Supply Voltage Selection Jumper JP2 This is a jumper switch to select the power supply vol...

Страница 21: ...on 1 024 bytes 256 bytes x4 Data last access result Hardware break function 2 points Address match bus match max 255 pass counts 1 Execution time measurement function Time between program start and st...

Страница 22: ...s OS Windows XP Windows 2000 1 CPU Pentium III 600MHz or more recommended Host machine interface USB 1 1 full speed 2 Memory 128MB or more recommended Pointing device such as mouse Mouse or any other...

Страница 23: ...USB 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 P...

Страница 24: ...ncluded 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 informa...

Страница 25: ...and an applicable plug respectively Electrode Electrode 4 75mm 1 7mm Inside diameter Figure 2 3 Power connector specifications Figure 2 4 Applicable plug specifications CAUTION Notes on Connecting a...

Страница 26: ...f the host machine see Figure 2 5 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 the USB interface cable to connector J2 Con...

Страница 27: ...TOR POWER SAFE POWER CLOCK RESET RUN 3 3V EXT JP1 INT 5 0V 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...

Страница 28: ...red 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...

Страница 29: ...atus 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...

Страница 30: ...he user system ON OFF POWER RESET CLOCK RUN LED3 LED5 LED4 LED6 After turning the power ON After starting up the emulator debugger Figure 2 9 Target status LEDs display when the emulator starts up nor...

Страница 31: ...check terminated normally Table 2 3 Switch settings for the self check Switch Setting MCU power supply source selection jumper JP1 INT MCU power supply voltage selection jumper JP2 5V LED3 LED4 LED5...

Страница 32: ...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 bloc...

Страница 33: ...package 4 These products are included with the M30290T 80FPD package 5 These products are included with the M30280T 85LGF package Compact emulator M3028BT2 CPE Socket frame x2 1 M3T SSOP42B 450 1 Soc...

Страница 34: ...the M30290T PTCB to the J3 and J4 of the M3028BT2 CPE 4 Attach the M30263T 42SSB to the M3T SSOP42B 450 1 M3028BT2 CPE No 1 pin These products are included with the M30263T 42SSB pakcage 42 pin 0 8mm...

Страница 35: ...28BT2 CPE 4 Attach the M30260T 48FPD to the YQPACK048SD No 1 pin These products are included with the M30260T 48FPD package 48 pin 0 5mm pitch 48P6Q A foot pattern YQ GUIDE x4 YQPACK048SD NQPACK048SD...

Страница 36: ...3028BT2 CPE 4 Attach the M30291T 64FPD to the YQPACK064SD No 1 pin These products are included with the M30291T 64FPD package 64 pin 0 5mm pitch 64P6Q A foot pattern YQ GUIDE 4 YQPACK064SD NQPACK064SD...

Страница 37: ...3028BT2 CPE 4 Attach the M30290T 80FPD to the YQPACK080SD No 1 pin These products are included with the M30290T 80FPD package 80 pin 0 5mm pitch 80P6Q A foot pattern YQ GUIDE x4 YQPACK080SD NQPACK080S...

Страница 38: ...65mm pitch No A1 pin User system MCU CSSOCKET085B1007RE01 LSPACK not included These corners are not round M30290T PTCB M30280T 85LGF 1 2 3 LSPACK085B1007RE01 Top cover Spacer M3028BT2 CPE No A1 pin Th...

Страница 39: ...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...

Страница 40: ...cuit board OSC 3 or OSC 2 Yes Main XIN XOUT External Oscillator circuit on the user system Internal Internal oscillator circuit 32 768kHz Sub XCIN XCOUT External Oscillator circuit on the user system...

Страница 41: ...STATUS TARGET MADE IN JAPAN COMPACT EMULATOR POWER SAFE POWER CLOCK RESET RUN The oscillator circuit board of the emulator is in the lower right corner of the board Unscrew the screw securing the osc...

Страница 42: ...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 Fi...

Страница 43: ...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 20 External oscillator circuit Make note that in the oscillator cir...

Страница 44: ...e configuration of this product Component side of the M3028BT EPBM VREF AVSS bypass capacitor AVSS VREF C2 AVCC AVSS bypass capacitor AVCC AVSS C1 M30290T EPBM REV C Figure 2 22 Foot pattern for A D c...

Страница 45: ...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...

Страница 46: ...the information specific to the target MCU The MCU file you have selected is displayed in the MCU section of the MCU tab Using or not using the address match break function Specify whether or not to...

Страница 47: ...n debugging in CPU rewrite mode is enabled the following functions cannot be used Software breakpoint setting in the internal ROM area Execution of COME in the internal ROM area Using or not using the...

Страница 48: ...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 spe...

Страница 49: ...ve specified here remains effective the next time you start up Automatically executing a script command To automatically execute a script command when starting up the debugger click the Refer button a...

Страница 50: ...cifying the processor mode Select the appropriate processor mode that suits your system For this product you can specify only the following processor mode Single Chip Mode Specifying the PM10 area bit...

Страница 51: ...alized 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 unles...

Страница 52: ...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...

Страница 53: ...dule Or you can select Download module from the Debug menu for the same effect Editor source window The editor source window is a window that always shows the content of the source file corresponding...

Страница 54: ...t 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 R...

Страница 55: ...y 22 2009 Page 53 of 90 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...

Страница 56: ...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...

Страница 57: ...er the execution has finished Larger view Setup procedure for running the program up to the cursor position 1 Click the line in the editor source window that you want to be executed 2 Click the execut...

Страница 58: ...reakpoint 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 function will be e...

Страница 59: ...indow 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 BIT S...

Страница 60: ...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...

Страница 61: ...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...

Страница 62: ...t 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 b...

Страница 63: ...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...

Страница 64: ...able signal If this signal 0 the odd address data is valid BIU Shows the status between the BIU Bus Interface Unit and memory or I O Symbol Status Non active DMA Data access by other than the CPU e g...

Страница 65: ...00 July 22 2009 Page 63 of 90 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...

Страница 66: ...x 1 Opening the 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 H...

Страница 67: ...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...

Страница 68: ...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...

Страница 69: ...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...

Страница 70: ...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...

Страница 71: ...Us which can be debugged with this product Table 4 1 Specifications of target MCUs for the M3028BT2 CPE Item Description Applicable MCU M16C Tiny Series Applicable MCU mode Single chip mode Max ROM RA...

Страница 72: ...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 z A low input...

Страница 73: ...ange data in the reset vector area only when the user program is stopped z Do not access the reset vector area as data It may not be accessed properly Note on Accessing Addresses 00000h and 00001h z W...

Страница 74: ...loping 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 z With this product the initial value of main clock stop bit CM05 is differen...

Страница 75: ...for reference purposes IC11 Emulation Mode P00 P07 P10 P17 P20 P27 P30 P37 P60 P67 P70 P77 P80 P84 P90 P93 P95 P97 P100 P107 P00 P07 P10 P17 P20 P27 P30 P37 P60 P67 P70 P77 P80 P84 P90 P93 P95 P97 P10...

Страница 76: ...s external dimensions of the M3028BT2 CPE connected with the M30290T PTCB 85 0 10 0 60 0 37 8 Unit mm MADE SW1 COMPACT EMULATOR INT JP1 5 0V JP2 3 3V EXT RUN LED3 LED6 LED5 LED4 LED2 M3028BT2 CPE POWE...

Страница 77: ...pin 0 8mm pitch SSOP 32 0 6 5 Max9 0 Min14 5 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 48F...

Страница 78: ...2 CPE 3 for a 64 pin 0 5mm pitch LQFP 16 5 32 0 10 0 14 0 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...

Страница 79: ...ns 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...

Страница 80: ...art 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 z When the user system is connected be sure to...

Страница 81: ...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 immedia...

Страница 82: ...e emulator do not use it in a user program z 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...

Страница 83: ...aration of Conformity z Please use this product with care as described below Electrostatic Discharge Precautions must be taken when handling the product Must not be used within 30 meters of a domestic...

Страница 84: ...Front panel LED of emulator 1 Check connection of the power supply cable See 2 4 Connecting the Power Supply for Emulator Init dialog box of emulator debugger displayed 1 Check the operating environm...

Страница 85: ...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...

Страница 86: ...that 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 dis...

Страница 87: ...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...

Страница 88: ...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...

Страница 89: ...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...

Страница 90: ...Sheet downloadable from the following URL And email the sheet and send the product to your local distributor http www renesas com repair CAUTION Note on Transporting the Product z When sending your p...

Страница 91: ...lication Date Jul 22 2009 Rev 3 00 Published by Sales Strategic Planning Div Renesas Technology Corp Edited by Microcomputer Tool Development Department Renesas Solutions Corp 2009 Renesas Technology...

Страница 92: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M3028BT2 CPE REJ10J1457 0300 T User s Manual...

Отзывы: