To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took 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 Electronics website: http://www.renesas.
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.
User’s Manual SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual SH7710 E10A-USB HS7710KCU01HE Renesas Microcomputer Development Environment System SuperH™ Family / SH7700 Series Supplementary Information on Using the SH7710 Rev.1.0 2003.
Cautions Keep safety first in your circuit designs! 1. Renesas Technology Corp. puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage.
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 ................................................3 Pin Assignments of the H-UDI Port Connector .............
ii
Section 1 Connecting the Emulator with the User System 1.1 Components of the Emulator 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.9 g or HS0005KCU02H: Depth: 65.0 mm, Width: 97.0 mm, Height: 20.0 mm, Mass: 73.
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 MPU. In addition, read the E10A-USB emulator user's manual and hardware manual for the related device. Table 1.
1.3 Installing the H-UDI Port Connector on the User System Table 1.3 shows the recommended H-UDI port connectors for the emulator. Table 1.3 Recommended H-UDI Port Connectors Connector Type Number Manufacturer Specifications 36-pin connector DX10M-36S Hirose Electric Co., Ltd. Screw type DX10M-36SE, DX10G1M-36SE 14-pin connector 2514-6002 Lock-pin type Minnesota Mining & Manufacturing Ltd.
Pin No. Signal Input/ SH7710 Output *1 Pin No. Note Pin No. Signal 1 AUDCK Output 19 TMS 2 GND 20 GND 3 AUDATA0 21*2 /TRST 4 GND 5 AUDATA1 6 GND 7 AUDATA2 8 GND 9 AUDATA3 10 GND 11*2 /AUDSYNC 12 GND 30 13 NC 31*2 /RESETP 14 GND 32 15 NC 33*3 GND 16 GND 34 GND 17 TCK 35 NC 18 GND 36 GND Output 205 213 Input/ Output *1 SH7710 Pin No.
SH7710 Pin No. Signal Input/ Output*1 1 TCK Input 202 2 /TRST Input 201 3 TDO Output 200 4 /ASEBRKAK Output 203 5 TMS Input 199 6 TDI Input 198 7 /RESETP I/O 215 8 N.C. 9 (GND) *5 11 UVCC *4 Output 10, 12, GND *3 Output Pin No. *2 *2 *2 Note User reset and 13 14 GND Notes: 1. Input to or output from the user system. 2. The slash (/) means that the signal is active-low. 3.
1.5 Recommended Circuit between the H-UDI Port Connector and the MPU 1.5.1 Recommended Circuit (36-Pin Type) Figure 1.3 shows a recommended circuit for connection between the H-UDI and AUD port connectors (36 pins) and the MPU when the emulator is in use. Figure 1.4 shows a circuit for connection when UVCC is not connected. Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector. 6 2.
When the circuit is connected as shown in figure 1.3, the switches of the emulator are set as SW2 = 1 and SW3 = 1. For details, refer to section 3.8, Setting the DIP Switches, in the Debugger Part TM of the SuperH Family E10A-USB Emulator User’s Manual. VccQ = 3.3 V (I/O power supply) Pulled-up at 4.
When the circuit is connected as shown in figure 1.4, the switches of the emulator are set as SW2 = 0 and SW3 = 1. For details, refer to section 3.8, Setting the DIP Switches, in the Debugger Part TM of the SuperH Family E10A-USB Emulator User’s Manual. VccQ = 3.3 V (I/O power supply) Pulled-up at 4.
1.5.2 Recommended Circuit (14-Pin Type) Figure 1.5 shows a recommended circuit for connection between the H-UDI and AUD port connectors (14 pins) and the MPU when the emulator is in use. Figure 1.6 shows a circuit for connection when UVCC is not connected. Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector. 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.5, the switches of the emulator are set as SW2 = 1 and SW3 = 1. For details, refer to section 3.8, Setting the DIP Switches, in the Debugger Part TM of the SuperH Family E10A-USB Emulator User’s Manual. VccQ = 3.3 V (I/O power supply) VccQ Pulled-up at 4.7 kΩ or more (all) VccQ VccQ VccQ VccQ VccQ H-UDI port connector (14-pin type) TCK 9 (GND) 10 GND TRST TDO ASEBRKAK 12 13 GND GND 14 GND TMS TDI RESET N.C.
When the circuit is connected as shown in figure 1.6, the switches of the emulator are set as SW2 = 0 and SW3 = 1. For details, refer to section 3.8, Setting the DIP Switches, in the Debugger Part TM of the SuperH Family E10A-USB Emulator User’s Manual. VccQ = 3.3 V (I/O power supply) Pulled-up at 4.7 kΩ or more (all) VccQ VccQ VccQ VccQ VccQ H-UDI port connector (14-pin type) TCK 9 (GND) 10 GND TRST TDO ASEBRKAK 12 13 GND GND 14 GND TMS TDI RESET N.C. N.C.
12
Section 2 Software Specifications when Using the SH7710 2.1 Differences between the SH7710 and the Emulator 1. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 2.1. The initial values of the actual SH7710 registers are undefined. When the emulator is initiated from the workspace, a value to be entered is saved in a session. Table 2.
3. Low-Power States (Sleep, Software Standby, and Module Standby) For low-power consumption, the SH7710 has sleep, software standby, and module standby states. The sleep, software standby, and module standby states are switched using the SLEEP instruction. When the emulator is used, only the sleep state can be cleared with either the normal clearing function or with the [STOP] button, and a break will occur. Note: The memory must not be accessed or modified in sleep state. 4.
8. Cache Operation during User Program Break When cache is enabled, the emulator accesses the memory by the following methods: • At memory write: Writes through the cache, then writes to the memory. • At memory read: Does not change the cache write mode that has been set. Therefore, when memory read or write is performed during user program break, the cache state will be changed. 9.
Table 2.2 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 • The watchdog timer operates only when the user program is executed. Do not change the value of the frequency change register in the [IO] window or [Memory] window. • The internal I/O registers can be accessed from the [IO] window.
2.2 Specific Functions for the Emulator when Using the SH7710 In the SH7710, a reset must be input when the emulator is activated. Do not use the activation TM method described in section 3.11 in the SuperH Family E10A-USB Emulator User’s Manual. 2.2.1 Break Condition Functions In addition to BREAKPOINT functions, the emulator has Break Condition functions. Three types of conditions can be set under Break Condition 1, 2, 3. Table 2.3 lists these conditions of Break Condition. Table 2.
Table 2.4 lists the combinations of conditions that can be set under Break Condition 1, 2, 3. Table 2.
AUD Trace Functions: This function is operational when the AUD pin of the device is connected to the emulator. Table 2.7 shows the AUD trace acquisition mode that can be set in each trace function. Table 2.7 AUD Trace Acquisition Mode Type Mode Description Continuous trace occurs Realtime trace When the next branch occurs while the trace information is being output, all the information may not be output. The user program can be executed in realtime, but some trace information will be lost.
To set the AUD trace acquisition mode, click the [Trace] window with the right mouse button and select [Setting] from the pop-up menu to display the [Acquisition] dialog box. The AUD trace acquisition mode can be set in the [AUD mode1] or [AUD mode2] group box in the [Trace mode] page of the [Acquisition] dialog box. Figure 2.1 [Trace mode] Page When the AUD trace function is used, select the [AUD function] radio button in the [Trace type] group box of the [Trace mode] page.
(a) Branch Trace Function The branch source and destination addresses and their source lines are displayed. Branch trace can be acquired by selecting the [Branch trace] check box in the [AUD function] group box of the [Trace mode] page. The branch type can be selected in the [AUD Branch trace] page. Figure 2.2 [AUD Branch trace] Page (b) Window Trace Function Memory access in the specified range can be acquired by trace. Two memory ranges can be specified for channels A and B.
Figure 2.3 [Window trace] Page Notes: 1. When the [L-bus] or [I-bus] radio button is selected, the following bus cycles will be traced. • L-bus: A bus cycle generated by the CPU is acquired. A bus cycle is also acquired when the cache has been hit. • I-bus: A bus cycle generated by the CPU or DMA is acquired. A bus cycle is not acquired when the cache has been hit. The address information acquired by the Ibus is 28 bits and the upper 4 bits are displayed as ‘*’.
(c) Software Trace Function Note: This function can be supported with SHC/C++ compiler (manufactured by Renesas Technology Corp.; including OEM and bundle products) V7.0 or later. When a specific instruction is executed, the PC value at execution and the contents of one general register are acquired by trace. Describe the Trace(x) function (x is a variable name) to be compiled and linked beforehand. For details, refer to the SHC manual.
Internal Trace Function: This function is activated by selecting the [Internal trace] radio button in the [Trace type] group box of the [Trace mode] page. This function traces and displays the branch instructions. The branch source address and branch destination address for the eight latest branch instructions are displayed. See figure 2.1, [Trace mode] Page. Notes: 1. If an interrupt is generated at the program execution start or end, including a step operation, the emulator address may be acquired.
5. When execution resumes from the address where a BREAKPOINT is specified, single-step operation is performed at the address before execution resumes. Therefore, realtime operation cannot be performed. 6. When a BREAKPOINT is set to the slot instruction of a delayed branch instruction, the PC value becomes an illegal value. Accordingly, do not set a BREAKPOINT to the slot instruction of a delayed branch instruction. 7.
termination displayed in the status bar and the [Output] window is ILLEGAL INSTRUCTION, not BREAKPOINT. 13. If an address of a BREAKPOINT cannot be correctly set in the ROM or flash memory area, a mark l 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 break condition, the mark l disappears. 2.2.
2.2.7 Performance Measurement Function The emulator supports the performance measurement function. 1. Setting the performance measurement conditions To set the performance measurement conditions, use the [Performance Analysis] dialog box and the PERFORMANCE_SET command. When any line on the [Performance Analysis] window is clicked with the right mouse button, the popup menu is displayed and the [Performance Analysis] dialog box is displayed by selecting [Setting].
Figure 2.4 [Performance Analysis] Dialog Box (b) Measurement range One of the following ranges can be specified. This depends on the item selected for [Mode] in the [Performance Analysis] dialog box. 1. From the start to the end of the user program execution (When Normal Break is selected for [Mode]) 2. From the satisfaction of the condition set in Break Condition 1 to the satisfaction of the condition set in Break Condition 2 (When Break condition 1->2 is selected for [Mode]) 3.
Notes: 1. When the second and third ranges are specified, execute the user program after the measurement start condition is set to Break Condition 1 (or Break Condition 2) and the measurement end condition to Break Condition 2 (or Break Condition 1). 2. Step operation is not possible when Break condition 1->2 or Break condition 2->1 is selected for the PERFORMANCE_SET command or in [Mode] of the [Performance Analysis] dialog box. 3.
Table 2.9 Measurement Item Selected Name Option Disabled None Elapsed time AC Number of execution states VS Branch instruction counts BT Number of execution instructions I DSP-instruction execution counts DI (Devices incorporating the DSP function can only be measured.) Instruction/data conflict cycle MAC Other conflict cycles than instruction/data OC Exception/interrupt counts EA Data-TLB miss cycle MTS (Devices incorporating the MMU function can only be measured.
Table 2.
3. Initializing the measured result To initialize the measured result, select [Initialize] from the popup menu in the [Performance Analysis] window or specify INIT with the PERFORMANCE_ANALYSIS command.
SuperH Family E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the SH7710 Publication Date: Rev.1.00, December 3, 2003 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Technical Documentation & Information Department Renesas Kodaira Semiconductor Co., Ltd. 2003 Renesas Technology Corp. All rights reserved. Printed in Japan.
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10B0073-0100H