User’s Manual M30850T2-EPB User's Manual Supported Devices: M16C Family / M32C/80 Series M32C/80, 84, 85, 86 and 8A Groups All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice.
Notice 1. 2. 3. 4. 5. 6. 7. All information included in this document is current as of the date this document is issued. Such information, however, is subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office.
Regulatory Compliance Notices European Union regulatory notices This product complies with the following EU Directives. (These directives are only valid in the European Union.) CE Certifications: ・Electromagnetic Compatibility (EMC) Directive 2004/108/EC EN 55022 Class A WARNING: This is a Class A product. In a domestic environment this product may cause radio interference in which case the user may be required to take adequate measures.
M30850T2-EPB User’s Manual Preface Preface The M30850T2-EPB is an emulation probe for M32C/80, 84, 85, 86 and 8A Group MCUs. The M30850T2-EPB is used by connecting to the PC7501 emulator main unit. This user's manual mainly describes specifications of the M30850T2-EPB emulation probe and how to setup it. For details on the emulator main unit and emulator debugger, which are used with the M30850T2-EPB, refer to each product's user's manual. All the components of this product are shown in "1.
M30850T2-EPB 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.
M30850T2-EPB User’s Manual Important Usage restrictions: This emulator has been developed as a means of supporting system development by users. Therefore, do not use it as a device used for equipment-embedded applications.
M30850T2-EPB User’s Manual Precautions for Safety Precautions for Safety This chapter describes the precautions which should be taken in order to use this product safely and properly. Be sure to read and understand this chapter before using this product. Contact us if you have any questions about the precautions described here. WARNING WARNING indicates a potentially dangerous situation that will cause death or heavy wound unless it is avoided.
M30850T2-EPB User’s Manual Precautions for Safety WARNING Warnings for AC Power Supply: • If the attached AC power cable does not fit the receptacle, do not alter the AC power cable and do not plug it forcibly. Failure to comply may cause electric shock and/or fire. • Use an AC power cable which complies with the safety standard of the country. • Do not touch the plug of the AC power cable when your hands are wet. This may cause electric shock. • This product is connected signal ground with frame ground.
M30850T2-EPB User’s Manual Precautions for Safety CAUTION Cautions to Be Taken for Turning On the Power: • Turn ON the power of the emulator and user system as simultaneously as possible. Turn 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.
M30850T2-EPB User’s Manual Contents Contents Page Preface..........................................................................................................................................................................4 Important.......................................................................................................................................................................5 Precautions for Safety ................................................................................
M30850T2-EPB User’s Manual Contents 4. Hardware Specifications .........................................................................................................................................76 4.1 Target MCU Specifications............................................................................................................................76 4.2 Differences between the Actual MCU and Emulator.....................................................................................77 4.
M30850T2-EPB User’s Manual User Registration User Registration When you install debugger software, a text file for user registration is created on your PC. Fill it in and email it to your local distributor. If you have replaced an emulator main unit or emulation 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, and not for any other purposes.
M30850T2-EPB User’s Manual Terminology Terminology Some specific words used in this user's manual are defined as follows: • Emulator system This means an emulator system built around the PC7501 emulator. The PC7501 emulator system is configured with an emulator main unit, emulation probe, host machine and emulator debugger. • Emulator main unit (Hereafter PC7501) This means an emulator main unit for M16C Family MCUs.
M30850T2-EPB User’s Manual 1. Outline 1. Outline This chapter describes the package components, the system configuration and the preparation for using this product for the first time. 1.1 Package Components The M30850T2-EPB package consists of the following items. When unpacking it, check to see if your M30850T2-EPB contains all of these items. Table 1.
M30850T2-EPB User’s Manual 1. Outline 1.3 System Configuration 1.3.1 System Configuration Figure 1.1 shows a configuration of the M30850T2-EPB system. Emulator PC7501 Host machine LPT parallel, USB or LAN interface (1) Emulation probe M30850T2-EPB (2) Converter board M30800T-PTC User system Figure 1.1 System configuration (1) Emulation probe M30850T2-EPB (this product) This emulation probe contains an evaluation MCU.
M30850T2-EPB User’s Manual 1. Outline 1.3.2 Names and Functions of the PC7501 Upper Panel LEDs Figure 1.2 shows the names of the LEDs on the upper panel of the emulator. Figure 1.2 Names of the LEDs on the upper panel of the PC7501 (1) System Status LEDs The system status LEDs indicate the emulator PC7501's power supply, firmware operating status, etc. Table 1.3 lists the definition of each system status LED. Table 1.
M30850T2-EPB User’s Manual 1. Outline (2) Target Status LEDs The target status LEDs indicate the target MCU's operating status and target board's power supply. Table 1.4 lists the definition of each target status LED. Table 1.4 Definitions of the target status LEDs Name POWER CLOCK RESET RUN WARNING Status ON OFF ON OFF ON OFF ON OFF ON OFF Meaning Power is supplied to the target MCU. Power is not supplied to the target MCU. Target MCU clock is oscillating. Target MCU clock is not oscillating.
M30850T2-EPB User’s Manual 1. Outline 1.4 Specifications Tables 1.5 and 1.6 list the specifications of the M30850T2-EPB. Table 1.
M30850T2-EPB User’s Manual 1. Outline Table 1.6 M30850T2-EPB specifications (2/2) Host machine interface - LPT parallel (ECP, EPP, Byte/compatibility and Nibble/compatibility modes) - USB (USB 1.1, full-speed *1) - LAN (10BASE-T) Emulator power supply Supplied from included AC adapter (power supply voltage: 100--240 V, 50/60 Hz) For 144-pin 0.5mm pitch LQFP (PLQP0144KA-A, previously: 144P6Q-A): Connection to user system M3T-FLX-144NSD (not included) (see "2.9 Connecting the User System" For 100-pin 0.
M30850T2-EPB User’s Manual 2. Setup 2. Setup This chapter describes the preparation for using this product, the procedure for starting up the emulator and how to change settings. 2.1 Flowchart of Starting Up the Emulator The procedure for starting up the emulator is shown in Figure 2.1. For details, refer to each section hereafter. And, when the emulator does not start up normally, refer to “5. Troubleshooting” (page 91). Check the package components. Refer to “1.1 Package Components (page 14).
M30850T2-EPB User’s Manual 2. Setup 2.2 Installing the Emulator Debugger If the OS used in your host machine is Windows XP or 2000, this installation must be executed by a user with administrator rights. Be aware that users without administrator rights cannot complete the installation. Install the emulator debugger (M32C PC7501 Emulator Debugger or M3T-PD308F) following the procedure described below.
M30850T2-EPB User’s Manual 2. Setup 2.3 Connecting the Host Machine When connecting the emulator PC7501 to a host machine, you can choose your desired interface from LPT parallel interface, USB interface and LAN interface. Use the interface selection switch on the emulator PC7501's rear panel to specify your desired interface. Figure 2.2 shows the outline to connect each interface cable. Figure 2.2 Outline for interface cable connections R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s Manual 2. Setup 2.4 Connecting the PC7501 Figure 2.3 shows how to connect the PC7501 and the emulation probe. M3T-FLX160-EPB M30850T2-EPB Note: Connect the PCA7501EPBA board side to the M3T-FLX160-EPB. Figure 2.3 Connecting the PC7501 and emulation probe CAUTION Cautions for Connecting the PC7501: • When connecting the emulation probe, be sure to hold the both sides of the emulation probe horizontally and insert it directly. • Connect the PCA7501EPBA board to the M3T-FLX160-EPB.
M30850T2-EPB User’s Manual 2. Setup 2.5 Connecting the Power Supply for the Emulator The power is supplied from AC adapter to the emulator PC7501. Here following explains how to connect the AC adapter. (1) (2) (3) (4) Turn OFF the power to the PC7501. Connect the DC cable of AC adapter to the PC7501. Connect the AC power cable to the AC adapter. Connect the AC power cable to the receptacle. CAUTION Cautions for AC Adapter: • Use only the AC adapter included in PC7501 package.
M30850T2-EPB User’s Manual 2. Setup 2.6 Turning ON the Power 2.6.1 Checking the Connections of the Emulator System Before turning the power ON, check the connection of the interface cable with host machine, PC7501, emulation probe, and user system. 2.6.2 Turning ON/OFF the Power z Turn ON the power of the emulator and user system as simultaneously as possible. z Turn OFF the power of the emulator and user system as simultaneously as possible.
M30850T2-EPB User’s Manual 2. Setup 2.6.4 LED Display When the Emulator Starts Up Normally Figure 2.4 shows upper panel LED lighting status when the emulator started up properly. Check it when starting up the emulator system. - If this LED does not light, check the power supply voltage of the user system. , - Check to make sure that power is supplied to all the power pins. - When the user system is not connected, this LED does not light.
M30850T2-EPB User’s Manual 2. Setup 2.7 Downloading Firmware 2.7.1 When It is Necessary to Download Firmware It is necessary to download the firmware when: (1) you use this product for the first time (2) the firmware has been upgraded (3) the emulator debugger has been upgraded (4) you use this product with a PC7501 which was used with other emulation probe before If downloading firmware is not completed in the cases below, redownload the firmware.
M30850T2-EPB User’s Manual 2. Setup 2.8 Self-check 2.8.1 Self-check Procedure To run the emulator self-check, do so as explained here below. While the self-check is in progress, LEDs will change as shown in Figure 2.6. (1) If the user system is connected, disconnect it. (2) Set the switches as the factory-settings to execute the self-check (see Table 2.1).
M30850T2-EPB User’s Manual 2. Setup 2.8.2 If an Error is Detected in the Self-check If the self-check does not result normally (ERROR 1 to ERROR 4 in Figure 2.6), check the following. (1) Recheck the connection of the emulation probe and PC7501. (2) Redownload the proper firmware. IMPORTANT Note on the Self-check: • If the self-check does not result normally (excluding user system errors), the emulation probe may be damaged. Then contact your local distributor. R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s Manual 2. Setup 2.9 Connecting the User System There are eight ways available to connect the emulation probe to user systems as shown in Figure 2.7. Emulation probe 100-pin 144-pin 0.5mm pitch 0.5mm pitch 0.
M30850T2-EPB User’s Manual 2. Setup 2.9.1 Connecting to a 100-pin LCC Socket When connecting the emulation probe to a 100-pin LCC socket (Yamaichi Electronics Co., Ltd.: IC61-1004-051 etc.) on the user system, following the procedure below. (1) Attach the CN2 side of the M30850T2-EPB to the CN2 side of the M30800T-PTC. (2) Attach the M30800T-PTC to the 100-pin LCC socket. M3T-FLX160-EPB M30850T2-EPB CN2 side (1) M30800T-PTC (2) 100-pin LCC socket No.1 pin User system Figure 2.
M30850T2-EPB User’s Manual 2. Setup 2.9.2 Connecting to a 100-pin 0.65mm pitch Foot Pattern (Part 1) Figure 2.9 shows how to connect the emulation probe to a 100-pin 0.65mm pitch foot pattern on the user system with the M3TF160-100NRB (not included), and here following is its procedure. For details on the M3T-F160-100NRB, refer to its user's manual. (1) Mount the NQPACK100RB included with M3T-F160-100NRB on the user system.
M30850T2-EPB User’s Manual 2. Setup 2.9.3 Connecting to a 100-pin 0.65mm pitch Foot Pattern (Part 2) Figure 2.10 shows how to connect the emulation probe to a 100-pin 0.65mm pitch foot pattern on the user system with the M3T-DIRECT100S (not included) (discontinued), and here following is its procedure. For details on the M3T-100LCC-DMS and M3T-DIRECT100S, refer to each user's manual. (1) (2) (3) (4) Attach the M3T-DIRECT100S to the user system. Attach the M3T-100LCC-DMS to the M3T-DIRECT100S.
M30850T2-EPB User’s Manual 2. Setup 2.9.4 Connecting to a 100-pin 0.65mm pitch Foot Pattern (Part 3) Figure 2.11 shows how to connect the emulation probe to a 100-pin 0.65mm pitch foot pattern on the user system with the M3T-DUMMY100S (not included) (discontinued), and here following is its procedure. For details on the M3T-100LCC-DMS and M3T-DUMMY100S, refer to each user's manual. (1) (2) (3) (4) Attach the M3T-DUMMY100S to the user system. Attach the M3T-100LCC-DMS to the M3T-DUMMY100S.
M30850T2-EPB User’s Manual 2. Setup 2.9.5 Connecting to a 100-pin 0.5mm pitch Foot Pattern Figure 2.12 shows how to connect the emulation probe to a 100-pin 0.5mm pitch foot pattern on the user system with the M3TF160-100NSD (not included), and here following is its procedure. For details on the M3T-F160-100NSD, refer to its user's manual. (1) (2) (3) (4) (5) Mount the NQPACK100SD included with the M3T-F160-100NSD to the user system.
M30850T2-EPB User’s Manual 2. Setup 2.9.6 Connecting to a 144-pin 0.5mm pitch Foot Pattern Figure 2.13 shows how to connect the emulation probe to a 144-pin 0.5mm pitch foot pattern on the user system with the M3TFLX-144NSD (not included), and here following is its procedure. For details on the M3T-FLX-144NSD, refer to its user's manual. (1) (2) (3) (4) (5) Attach the NQPACK144SD included with the M3T-FLX-144NSD to the user system.
M30850T2-EPB User’s Manual 2. Setup 2.10 Setting Switches 2.10.1 Setting Switches of Emulation Probe O N Set the switches of the emulation probe according to the condition. Figure 2.14 shows the positions of the switches of the M30850T2-EPBM. M30850T2-EPBM REV.B C4 C3 C1 C2 RENESAS MADE IN JAPAN 1 2 3 4 5 6 7 8 SW5 JP1 INT P87 SW3 XCIN VCONT P86 SW4 NC VSS NC XOUT VCC1>2 AVCC AVSS EXT SW2 VCC1=2 SW1 Figure 2.14 Positions of the switches R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s Manual 2. Setup (1) Setting JP1, SW1 to SW4 on the M30850T2-EPBM Table 2.2 shows the settings of JP1, SW1 to SW4 on the M30850T2-EPBM. Table 2.2 Switch settings of the M30850T2-EPBM (JP1, SW1 to SW4) Setting AVCC AVSS EXT SW1 AVCC AVSS 3.0 V ≤ VCC1 = VCC2 ≤ 5.5 V (Factory-setting) VCC1>2 VDDIO VCC1=2 JP1* Description VCC1>2 Switch name VCC1=2 Switch 4.8 V ≤ VCC1 ≤ 5.2 V and 3.3 V ≤ VCC2 < VCC1 Connects pins AVCC and AVSS of the MCU to the user system.
M30850T2-EPB User’s Manual 2. Setup (2) Setting SW5 on the M30850T2-EPBM Table 2.3 lists the examples of setting the switch SW5. It is necessary to change the setting if using the analog input port selection function of the A/D converter. Setting the SW5 enables to set each analog input pin for selecting an analog input port. When selecting AN00 to AN07 or AN20 to AN27 for the analog input port select bits (bit 2 and bit 1 of 0394h), set the pins used for A/D conversion to ON, the pins not used to OFF.
M30850T2-EPB User’s Manual 2. Setup IMPORTANT Notes on Switch JP1: • If using this product when the voltage of VCC1 is higher than that of VCC2, set the JP1 of the M30850T2EPBM to VCC1>2. • When the JP1 of the M30850T2-EPBM is set to VCC1>2, the voltage of VCC2 on the user system should be 3.3 V or more.
M30850T2-EPB User’s Manual 2. Setup 2.10.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.4 lists the factory-settings of each clock supply. Table 2.
M30850T2-EPB User’s Manual 2. Setup 2) Replacing an Oscillator Circuit Board Remove the four screws of both sides of this product and lift off the upper cover (see Figure 2.15). Figure 2.15 Removing the upper cover R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s Manual 2. Setup Unscrew the screw of the oscillator circuit board of the PC7501 and replace it (see Figure 2.16). The oscillator circuit board of the PC7501 is in the lower right corner of the board. Unscrew the screw securing the oscillator circuit board. Lift off the oscillator circuit board. Attach another oscillator circuit board to the connector. Secure the new oscillator circuit board with the screw. Figure 2.
M30850T2-EPB User’s Manual 2. Setup 3) Using the 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.17 shows an external view of the OSC-2 oscillator circuit bare board and the connector pin locations. Figure 2.18 shows the circuitry of the oscillator circuit bare board OSC-2. Use the number of oscillator circuits recommended by the oscillator manufacturer.
M30850T2-EPB User’s Manual 2. Setup (2) Using the Oscillator Circuit on the User System To operate this product with an oscillator circuit of the user system, input the oscillator output at 50% duty (within the operating range of the evaluation MCU) into pin XIN as shown in Figure 2.21. Pin XOUT should be open. Choose "External" in the emulator debugger to use this clock. Figure 2.19 External oscillator circuit In the oscillator circuit shown in Figure 2.
M30850T2-EPB User’s Manual 2. Setup 2.10.3 A/D Conversion Bypass Capacitors O N There is a foot pattern on the M30850T2-EPBM board for mounting bypass capacitors for the A/D conversion circuit. Mount applicable bypass capacitors as occasion demands. Figure 2.21 shows where they are installed. M30850T2-EPBM REV.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3. Usage (Emulator Debugger) This chapter describes how to start up the emulator debugger and how to use the major windows, taking the M3T-PD308F as an example. The following can apply to the M32C PC7501 emulator debugger. 3.1 Starting Up the Emulator Debugger (Init Dialog Box) To launch the emulator debugger, click the Start menu of Windows and then select Program (P) >> [RENESAS-TOOLS] >> [PD308F V.xx.xx Release x] >> [PD308F].
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3. Specifying the communication interface (LAN communication) Specifying the communication interface (LAN communication) For selecting the LAN communication, click the radio button “LAN” of the MCU tab. Specify the IP address of the emulator at the IP address area. Specify the IP address by one byte of decimal number separating each four bytes with a period. Specify the port number at the Port area. Cancel Help 4.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 5. Using or not using the address match break function Using or not using the address match break function Specify whether or not to use the address match break function. - To use the address match break function (default), select the check box (marked by a check mark when selected). In this case, the address match interrupt is used by the emulator, and cannot be used in the user program.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 7. Using or not using the CPU rewrite mode Using or not using CPU rewrite mode Specify whether or not to debug in CPU rewrite mode. To debug the user system that uses CPU rewrite mode, select the check box. This option can be selected or deselected only when you are starting up the emulator debugger.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Debugging Information tab 1. Specifying the compiler used and the object format Specifying the compiler used and the object format Specify the compiler you are using and the format of the object file output by the compiler. - Compiler Select the compiler you are using. (By default, the C compiler from Renesas is selected.) - Object Format Select the format of the object file that is output by the compiler you are using.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (4) Emulator tab 1. Specifying the target clock Specifying the target clock Specify the clock sources supplied to the MCU (main clock and sub clock). Select the appropriate clock sources according to the clock used by your target MCU.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (5) Resume tab 1. Automatically executing a script command Automatically executing a script command To automatically execute a script command when starting up the debugger, click the “Refer...” button and specify the script file to be executed. 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.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.2 Starting Up the Emulator Debugger (EMEM Dialog Box) (1) Status tab 1. Specifying the processor mode Specifying the processor mode Select the appropriate processor mode that suits your system. Cancel Help IMPORTANT Notes on Selecting a Processor Mode: • When setting single-chip mode or memory expansion mode, the level of pin CNVSS of the MCU status should be "L". The MCU status shows the pin level of the user system.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 2. Referring to the MCU Status Referring to the MCU Status It shows the status of each MCU pin. Check it to see if the MCU status matches the selected processor mode. If a slider of any pin is at the center, it means that the pin status is indeterminate. Cancel Help IMPORTANT Notes on Selecting a Processor Mode: • The MCU status is shown in “MCU Status” of the EMEM dialog box. Check that it is matching the specified processor mode.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Emulation Memory tab 1. Setting the Bank Address of the Debug Monitor Setting the Bank Address of the Debug Monitor The debug monitor uses contiguous 64 KB as a work area of the emulator. Specify the bank address of the debug monitor. (e.g.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 2. Emulation Memory Allocation as Expansion Area Emulation Memory Allocation as Expansion Area When selecting the memory expansion mode and microprocessor mode, it is possible to allocate the emulation memory at the expansion area for debugging (max. 4 areas). In this dialog box, set the memory allocation at the area for debugging and specify the mapping information.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) Flash Clear tab 1. Setting to clear the MCU’s internal flash ROM 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 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.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.3 Program Window (1) Downloading the program 1. Initial screen of the program window Initial screen of the program window The program window is a window that always shows the content of the source file corresponding to the current position of the program counter. It automatically opens when the emulator starts up. The program counter position is identified by the yellow background color.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) Program execution 1. Resetting the user program RESET Resets the program. 2. Executing the user program GO Executes the program from the current PC position. STEP Single-steps the program, stepping subroutines. OVER Single-steps the program, skipping over subroutines. RETURN Executes the program up to the high-order subroutine. 3. Stopping the user program STOP Stops the program. 4.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (3) Setting breakpoints 1. Screen after breakpoint setup Breakpoint setup screen There are three types of breakpoints as described below. - Address match breakpoint (A) This breakpoint can be set only when you chose to use the address match break function on the MCU tab of the Init dialog box. A breakpoint can be set or cleared by double-clicking in the breakpoint display area. Up to eight breakpoints can be set.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (4) Executing up to the cursor position (Come command) 1. Specifying the Come command Setup procedure for executing COME command (1) Click the line in the program display area at which you want the program to execute. (2) Click the Come button. 2. After the Come command has finished R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.4 Hardware Breakpoint Setting Window (1) Breakpoint setup dialog box 1. Opening the hardware breakpoint setup dialog box Hardware Break Point Clicking this button opens the hardware breakpoint setup dialog box. 2.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 4. Opening the break event setting dialog box Specifying the event type Click to select the event type you want to set. - FETCH Detects an instruction prefetch. - DATA ACCESS Detects a memory access. - BIT SYMBOL Detects a bit access. - INTERRUPT Detects an interrupt occurrence or interrupt termination. - TRIGGER Detects a signal from the external trace signal input cable. (2) When FETCH is selected 1.
M30850T2-EPB 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 specified address range, etc. 2. Window for setting data Setting data You can set eight conditions, e.g., a specified data, a specified data range, etc. Setting the access condition You can set three conditions, e.g., read, write, and read/write.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3. Example Data Settings Event setting for even-address word access Setting a break event MOV.W A1 R0,512h(R0=0203h) High-order and low-order data effective Event setting for odd-address word access MOV.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (4) Setting the combinatorial event condition 1. Window for setting the combinatorial event condition Setting the combinatorial event condition There are following four conditions that you can choose for the combinatorial events. - 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.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.5 Trace Window (1) Trace window 1. Trace window Menu OptionalWindows Menu item Trace Window Function Opens the trace window. Trace window The trace window is used to show the results of real-time trace measurements. It has the following four display modes: - Bus mode Bus information per cycle can be inspected. The contents are displayed in order of execution paths.
M30850T2-EPB User’s Manual 2. Trace window (bus display) Bus display 3. Usage (How to Use the Emulator Debugger) Explanation of the trace window (bus display) The following explains the displayed contents, from left to right. - 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 emulator, only “16b” for 16 bits wide bus is displayed. - BHE* Shows the status (0 or 1) of the BHE (Byte High Enable) signal.
M30850T2-EPB User’s 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 in progress. 2. Resuming trace measurement Re-Start Click this toolbar button to resume the trace measurement in progress. R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s 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 Be sure to enable the trace point function in the Init dialog box before you set up in this window. Here, you can set events in the same way as for the hardware breakpoints.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3. Specifying a trace range Specifying a trace range You can specify a trace range for the trace event. - Break 256K cycles of instruction execution before the user program stopped is recorded. - Before 256K cycles of instruction execution before a trace point condition was met is recorded. - About 128K cycles of instruction execution before and after a trace point condition was met is recorded.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3.6 RAM Monitor Window (1) RAM monitor window 1. RAM monitor window Menu Menu item BasicWindows RAM Monitor Window Function Opening the RAM monitor window RAM monitor window This window shows changes of 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 dump form.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) (2) RAM monitor area setting window 1. Opening RAM monitor area setting window Base Clicking this toolbar button opens the 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 0007FFh. To change it, click the line you want to set. R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s Manual 3. Usage (How to Use the Emulator Debugger) 3. RAM monitor area setting dialog box 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.
M30850T2-EPB User’s Manual 4. Hardware Specifications 4. Hardware Specifications This chapter describes specifications of this product. 4.1 Target MCU Specifications Table 4.1 lists the specifications of target MCUs which can be debugged with this product. Table 4.1 Specifications of target MCUs for the M30850T2-EPB Item Applicable MCU Applicable MCU mode Maxi. ROM/RAM capacity Description M32C/80, 84, 85, 86 and 8A Groups Single-chip mode, memory expansion mode, microprocessor mode 1.
M30850T2-EPB User’s Manual 4. Hardware Specifications 4.2 Differences between the Actual MCU and Emulator Differences between the actual MCU and emulator are shown below. When debugging the MCU using this product, be careful about the following precautions. IMPORTANT Notes on Power Supply to the User System: • Pin Vcc of the emulator is connected to the user system to observe the voltage of the user system. Therefore design your system so that the user system is powered separately.
M30850T2-EPB User’s Manual 4. Hardware Specifications IMPORTANT Note on Differences between the Actual MCU and Emulator: • Operations of the emulator system differ from those of actual MCUs as listed below. (1) Reset condition (2) Initial values of internal resource data of an MCU at power-on (3) Interrupt stack pointer (ISP) after a reset is released (4) Capacities of the internal memories (ROM and RAM) The MCU whose RAM size is 24 KB (400h--63FFh) is mounted on this product.
M30850T2-EPB User’s Manual 4. Hardware Specifications IMPORTANT Notes on Reset Vector Area: • For a reset vector area, memory of the emulator is always selected regardless of the setting of the EMEM dialog box. Therefore when setting a microprocessor mode, to use a ROM of the user system etc. as an area including a reset vector area, set a reset vector using a dump window etc. • A reset vector area can be changed only when a program is stopped.
M30850T2-EPB User’s Manual 4. Hardware Specifications 4.3 Connection Diagrams Figures 4.1 and 4.2 show the connection diagrams of the M30850T2-EPB. These connection diagrams mainly show the interface section. The signals not shown in Figures 4.1 and 4.2 connect the evaluation MCU and the user system directly. The circuits not connected to the user system such as the emulator's control system are omitted. Table 4.2 shows IC electric characteristics of this product for reference purposes.
M30850T2-EPB User’s Manual AP150 * AP151 * AP152 * AP153 * 4.
M30850T2-EPB User’s Manual 4. Hardware Specifications 4.4 External Dimensions 4.4.1 External Dimensions of the Emulation Probe Figure 4.3 shows external dimensions of the M30850T2-EPB connected with the M30800T-PTC and LCC socket. 85.0 10.0 9.0 60.0 21.0 9.0 10.0 PCA7501EPBA REV.A MADE IN JAPAN 30.0 5.5 10.8 15.0 55.0 16.3 15.0 Unit : mm Figure 4.3 External dimensions of the emulation probe R20UT0208EJ0300 Rev.3.
M30850T2-EPB User’s Manual 4. Hardware Specifications 4.4.2 External Dimensions of the M30800T-PTC Figure 4.4 shows external dimensions of the converter board M30800T-PTC for a 100-pin LCC. Unit : mm Figure 4.4 External dimensions of the M30800T-PTC 4.4.3 External Dimensions of the M3T-F160-100NRB Figure 4.5 shows external dimensions of the converter board M3T-F160-100NRB for a 100-pin QFP (PRQP0100JB-A). 21.8 55.0 51 50 100 31 CN2 81 CN1 40.
M30850T2-EPB User’s Manual 4. Hardware Specifications 4.4.4 External Dimensions of the M3T-F160-100NSD Figure 4.6 shows external dimensions of the converter board M3T-F160-100NSD for a 100-pin LQFP (PLQP0100KB-A). Unit : mm Figure 4.6 External dimensions of the M3T-F160-100NSD 4.4.5 External Dimensions of the M3T-FLX-144NSD Figure 4.7 shows external dimensions of the converter board M3T-FLX-144NSD for a 144-pin LQFP (PLQP0144KA-A). Unit : mm Figure 4.
M30850T2-EPB User’s Manual 4. Hardware Specifications 4.5 Notes on Using This Product Notes on using this product are listed below. Be sure to read these notes before using this product. IMPORTANT Notes on Downloading Firmware: • Before using this product for the first time, it is necessary to download the dedicated firmware (control software built into the PC7501). Please note that, to do this, it is necessary to start up the PC7501 in maintenance mode. For firmware download procedures, see "2.
M30850T2-EPB User’s Manual 4. Hardware Specifications IMPORTANT Notes on Using the CPU Clock at Less than 16 MHz: • To use the CPU clock at less than 16 MHz, execute the command shown below in the Script Window after starting the emulator debugger M3T-PD308F. [Command] _settimeout ,300 Once this command is executed, it remains effective the next time you start the emulator debugger M3TPD308F. Therefore, you do not need to execute this command again.
M30850T2-EPB User’s Manual 4. Hardware Specifications IMPORTANT Notes on EMEM Dialog Box: Observe the following when setting up EMEM dialog box of the emulator debugger. (1) Debug Monitor Bank Address • When "F0" is specified, 64 KB of area starting from F00000h are allocated for use by the debug monitor. • The 64 KB allocated for the debug monitor cannot be used. • The below areas cannot be set for the debug monitor.
M30850T2-EPB User’s Manual 4. Hardware Specifications IMPORTANT Notes on Debugging in CPU Rewrite Mode: • To debug a program in CPU rewrite mode, select the check box "Debug the program using the CPU Rewrite Mode" in the MCU tab of the Init dialog box. When you do not debug a program in CPU rewrite mode, clear the check box. • When you debug a program in CPU rewrite mode, the block 0 area (FFF000h--FFFFFFh) must not be rewritten. Otherwise, the emulator will be out of control.
M30850T2-EPB User’s Manual 4. Hardware Specifications IMPORTANT Note on Protect Resistor: • A protect is not canceled when protect register bit 2 (PRC2), which enables writing in the port P9 direction register and the function select register A3, is changed with the below procedure.
M30850T2-EPB User’s Manual 4. Hardware Specifications IMPORTANT Notes on A/D Conversion: • When setting the register below to use the analog input port selection function, you need to set the direction register of port P15 for a pin that performs A/D conversion to "input". And you need to set the function selection register of port P15 for a pin that performs A/D conversion to "I/O port".
M30850T2-EPB User’s Manual 5. Troubleshooting 5. Troubleshooting This chapter describes how to troubleshoot when this product does not work properly. 5.1 Flowchart to Remedy the Troubles Figure 5.1 shows the flowchart to remedy the troubles from when power to the emulator is activated until the emulator debugger starts up. Check this while the user system is disconnected. For the latest FAQs visit the Renesas Tools Homepage. http://www.renesas.
M30850T2-EPB User’s Manual 5. Troubleshooting 5.2 When the Emulator Debugger Does Not Start Up Properly (1) When the LEDs of the PC7501 Do Not Display Normally Table 5.1 Errors LEDs show and their checkpoints LEDs do not light up. Connection to the user system - All LEDs remain lit. - Error Checkpoint Check that the power cable is connected. See "2.5 Connecting the Power Supply for the Emulator" (page 24) and the user's manual of the PC7501.
M30850T2-EPB User’s Manual 5. Troubleshooting (2) EMEM Dialog Box Does Not Appear at Debugger Startup Table 5.2 Checkpoints of errors at debugger startup Error Communication error occurred. Data was not sent to the target. Checkpoint Check all emulator debugger settings, interface cable settings and switches on the rear of the PC7501 match. See the user's manuals of PC7501 and emulator debugger. User system cannot be properly built. (1) Download the proper firmware. See "2.
M30850T2-EPB User’s Manual 5. Troubleshooting (3) Errors Occur at Debugger Startup Table 5.3 Checkpoints of errors at debugger startup Error Target MCU is uncontrollable. R20UT0208EJ0300 Rev.3.00 Sep 16, 2010 Checkpoint (1) Check that the NQPACK etc. mounted on the user system is soldered properly. (2) Check that the connector is installed properly to the user system. (3) Check pin NMI# is held high. (4) If in memory expansion mode or microprocessor mode, check pins RDY# and HOLD# are held high.
M30850T2-EPB User’s Manual 5. Troubleshooting 5.3 How to Request for Support After checking the items in "5 Troubleshooting", fill in the text file which is downloaded from the following URL, then send the information to your local distributor. http://tool-support.renesas.com/eng/toolnews/registration/support.
M30850T2-EPB 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 12) of this user's manual. 6.2 Maintenance (1) If dust or dirt collects on this product, wipe it off with a dry soft cloth.
M30850T2-EPB User’s Manual 6. Maintenance and Guarantee 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. 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 a Repair Request Sheet downloadable from the following URL.
M30850T2-EPB User's Manual Publication Date: Sep 16, 2010 Rev.3.00 Published by: Renesas Electronics Corporation Edited by: Microcomputer Tool Development Department 2 Renesas Solutions Corp.
http://www.renesas.com SALES OFFICES Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada Tel: +1-905-898-5441, Fax: +1-905-898-3220 Renesas Electronics Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.
M30850T2-EPB User’s Manual R20UT0208EJ0300 (Previous Number: REJ10J1005-0200)