REJ10J1271-0300 SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7125 and SH7124 Renesas Microcomputer Development Environment System SuperH™ Family / SH/Tiny Series E10A-USB for SH7125 HS7125KCU01HE Rev.3.00 Revision Date: Apr.
Notes regarding these materials 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document. 2.
Contents Section 1 Connecting the Emulator with the User System ................................1 1.1 1.2 1.3 1.4 1.5 Components of the Emulator ............................................................................................ 1 Connecting the Emulator with the User System ............................................................... 2 Installing the H-UDI Port Connector on the User System ................................................ 2 Pin Assignments of the H-UDI Port Connector ..........
ii
Section 1 Connecting the Emulator with the User System 1.1 Components of the Emulator The E10A-USB emulator supports the SuperH™ family SH/Tiny series (SH7125/SH7124). Table 1.1 lists the components of the emulator. Table 1.1 Components of the Emulator Classification Component Hardware Appearance Quantity Emulator box 1 User system interface cable User system interface cable 1 USB cable 1 1 Remarks HS0005KCU01H: Depth: 65.0 mm, Width: 97.0 mm, Height: 20.0 mm, Mass: 72.
1.2 Connecting the Emulator with the User System To connect the E10A-USB emulator (hereinafter referred to as the emulator), the H-UDI port connector must be installed on the user system to connect the user system interface cable. When designing the user system, refer to the recommended circuit between the H-UDI port connector and the MCU. In addition, read the E10A-USB emulator user's manual and hardware manual for the related device. Table 1.
Signal Input/ Output*1 1 TCK Input 28 20 2 _TRST Input 32 23 3 TDO Output 26 16 4 _ASEBRKAK Input/ 45 33 Pin No. *2 *2 SH7125 Pin No. SH7124 Pin No. / _ASEBRK output 5 TMS Input 31 22 6 TDI Input 27 18 7 _RES Output 39 27 8 N.C. 9 (GND) 11 UVCC 10, 12, GND *2 Note User reset *4 Output and 13 14 GND *3 Output Notes: 1. Input to or output from the user system. 2. The symbol (_) means that the signal is active-low. 3.
1.5 Recommended Circuit between the H-UDI Port Connector and the MCU 1.5.1 Recommended Circuit (14-Pin Type) Figure 1.2 shows a recommended circuit for connection between the H-UDI port connector and the MCU when the emulator is in use. Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector. 4 2. The _ASEMD0 pin must be 0 when the emulator is connected and 1 when the emulator is not connected, respectively.
When the circuit is connected as shown in figure 1.2, the switches of the emulator are set as SW2 TM = 1 and SW3 = 1. For details, refer to section 3.8, Setting the DIP Switches, in the SuperH Family E10A-USB Emulator User’s Manual. Vcc = I/O power supply All pulled-up at 4.7 kΩ or more Vcc Vcc Vcc Vcc Vcc Vcc Vcc H-UDI port connector (14-pin type) TCK 9 (GND) 10 GND TRST TDO Target MCU 1 TCK 2 TRST 3 TDO ASEBRKAK 4 /ASEBRK 5 12 GND TMS 6 13 TDI GND 14 GND RES N.C.
6
Section 2 Software Specifications when Using the SH7125 or SH7124 2.1 Differences between the MCU and the Emulator 1. When the emulator system is initiated, it initializes the general registers and part of the control registers. The initial values of the MCU are undefined. When the emulator is initiated from the workspace, a value to be entered is saved in a session. Table 2.
5. Memory Access during User Program Execution During execution of the user program, memory is accessed by the following two methods, as shown in table 2.2. Table 2.2 Memory Access during User Program Execution Method Description H-UDI read/write The stopping time of the user program is short because memory is accessed by the dedicated bus master. Short break This method is not used in this product. (Do not set short break.
Table 2.4 Watchdog Timer Register Register Name Usage Register WTCSR (W) Write Watchdog timer control/status register WTCNT (W) Write Watchdog timer counter WTCSR(R) Read Watchdog timer control/status register WTCNT(R) Read Watchdog timer counter • Customization of the I/O-register definition file After the I/O-register definition file is created, the MCU’s specifications may be changed.
11. Multiplexing the Emulator Pins The emulator pin is assigned as shown in table 2.5. Table 2.5 Multiplexed Functions MCU Function 1 Function 2 SH7125 FWE _ASEBRKAK/_ASEBRK PA3/_IRQ1/RXD1 _TRST SH7124 PA4/_IRQ2/TXD1 TMS PA7/TCLKB/SCK2 TCK PA8/TCLKC/RXD2 TDI PA9/TCLKD/TXD2/POE8 TDO FWE _ASEBRKAK/_ASEBRK PA3/_IRQ1/RXD1 _TRST PA4/_IRQ2/TXD1 TMS PA7/TCLKB/SCK2 TCK PA8/TCLKC/RXD2 TDI PA9/TCLKD/TXD2/POE8 TDO The emulator pins are multiplexed with other pins.
2.2 Specific Functions for the Emulator when Using the SH7125 or SH7124 2.2.1 Event Condition Functions The emulator is used to set event conditions for the following function: • Break of the user program Table 2.6 lists the types of Event Condition. Table 2.6 Types of Event Condition Event Condition Type Description Address bus condition (Address) Sets a condition when the address bus (data access) value or the program counter value (before or after execution of instructions) is matched.
Table 2.7 lists the combinations of conditions that can be set under Ch1 to Ch10. Table 2.
Sequential Setting: Using the [Combination action (Sequential PtoP)] dialog box specifies the sequential condition. Table 2.8 Conditions to Be Set Classification Item [Ch1, 2, 3] list box Sets the sequential condition and the start or end of performance measurement using Event Conditions 1 to 3. [Ch4, 5] list box Description Don’t care Sets no sequential condition or the start or end of performance measurement.
The program is executed up to the condition of Ch1 and halted. Here, the condition is satisfied in the order of Ch3 -> 2 -> 1. Figure 2.1 [Source] Window at Execution Halted (Sequential Break) If the sequential condition, performance measurement start/end, or point-to-point for the internal trace is set, conditions of Event Condition to be used will be disabled. Such conditions must be enabled from the popup menu by clicking the right mouse button on the [Event Condition] sheet. Notes: 1.
5. If the settings of the Event condition or the sequential conditions are changed during execution of the program, execution will be suspended. (The number of clocks to be suspended during execution of the program is a maximum of about 52 bus clocks (Bφ). If the bus clock (Bφ) is 10.0 MHz, the program will be suspended for 5.2 μs.) 6.
5. If an address of a BREAKPOINT cannot be correctly set in the ROM or external flash memory area, a mark z will be displayed in the [BP] area of the address on the [Source] or [Disassembly] window by refreshing the [Memory] window, etc. after Go execution. However, no break will occur at this address. When the program halts with the event condition, the mark z disappears. 2.2.5 Notes on Setting the [Event Condition] Dialog Box and the BREAKCONDITION_ SET Command 1.
SuperH™ Family E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the SH7125 and SH7124 Publication Date: Rev.1.00, February 28, 2006 Rev.3.00, April 4, 2007 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Customer Support Department Global Strategic Communication Div. Renesas Solutions Corp. © 2007. Renesas Technology Corp., All rights reserved. Printed in Japan.
Sales Strategic Planning Div. Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan RENESAS SALES OFFICES http://www.renesas.com Refer to "http://www.renesas.com/en/network" for the latest and detailed information. Renesas Technology America, Inc. 450 Holger Way, San Jose, CA 95134-1368, U.S.A Tel: <1> (408) 382-7500, Fax: <1> (408) 382-7501 Renesas Technology Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K.
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7125 and SH7124