background image

M3028BT2-CPE User’s Manual 

2. Setup 

REJ10J1457-0300  Rev.3.00  July 22, 2009 

 

Page 24 of 90 

 
 

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

 

MADE

POWER

SW1

COMPACT EMULATOR

IN

T

JP

1

5.

0V

JP

2

3.3V

EX

T

CLOCK

RESET

RUN

LED3

LED6

LE

D

5

LE

D

4

POWER

LED1

SAFE

LED2

Connect the USB interface cable to 
connector J2.

Connect the power cable to connector J 1.

To host machine

To emulator power supply

J1

J2

M3028BT2-CPE

POWER USB

5.0V

5.0V

3.3V

MC

PO

WER

EXT

INT

JP2

JP1

STATUS

SYSTEM

STATUS

TARGET

MADE IN JAPAN

COMPACT EMULATOR

POWER

SAFE

POWER

CLOCK

RESET

RUN

 

 

Figure 2.5 Connecting the emulator system 
 

Summary of Contents for M3028BT2-CPE

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

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

Page 3: ...M3028BT2 CPE User s Manual User s Manual Rev 3 00 2009 07 Compact Emulator for M16C Tiny Series...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Page 92: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M3028BT2 CPE REJ10J1457 0300 T User s Manual...

Reviews: