User’s Manual SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7286 SH7285, and SH7243 SuperH™ Family E10A-USB for SH7280 HS7280KCU01HE 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. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information. 2.
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.
Table of 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 .......................................................................................................
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Section 1 Connecting the Emulator with the User System 1.1 Components of the Emulator The E10A-USB emulator supports the SH7286, SH7285, and SH7243. Table 1.1 lists the components of the emulator. R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System Table 1.1 Components of the Emulator Classification Component Hardware Emulator box Appearance Quantity 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.7 g Software User system interface cable 1 14-pin type: Length: 20 cm, Mass: 33.
SuperH™ Family E10A-USB Emulator 1.2 Section 1 Connecting the Emulator with the User System 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.
SuperH™ Family E10A-USB Emulator 1.3 Section 1 Connecting the Emulator with the User System 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 Lock-pin type DX10M-36SE, DX10G1M-36SE 14-pin connector 2514-6002 Minnesota Mining & Manufacturing Ltd.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System E10A-USB optional 38-pin user system interface cable 50 mm 1 38 2 20 mm 37 5 mm 2-5767004-2 : Area to be kept free of other components Target system H-UDI port connector (top view) Figure 1.1 Restriction on Component Mounting R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator 1.4 Section 1 Connecting the Emulator with the User System Pin Assignments of the H-UDI Port Connector Figures 1.2 through 1.4 show the pin assignments of the 36-pin, 14-pin, and 38-pin H-UDI port connectors, respectively. Note: Note that the pin number assignments of the H-UDI port connector shown on the following pages differ from those of the connector manufacturer. R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Pin No. Input/ *1 SH7286 SH7285 Output Pin No. Pin No. Signal Output 1 AUDCK 2 GND 3 AUDATA0 4 GND 5 AUDATA1 6 GND 7 8 AUDATA2 9 AUDATA3 10 GND Output Output Output 65 Section 1 Connecting the Emulator with the User System SH7243 Pin No. 64 57 57 58 58 59 59 Pin No.
SuperH™ Family E10A-USB Emulator Pin No. Signal Section 1 Connecting the Emulator with the User System Input/ Output*1 SH7286 SH7285 SH7243 Pin No. Pin No. Pin No. TCK Input 91 133 8 2 TRST# Input 93 135 10 3 TDO Output 90 132 7 134 114 77 92 134 9 89 131 6 133 113 76 1 *2 ASEBRKAK# Input/ /ASEBRK#*2 Output 5 TMS Input 6 TDI 7 RES# 8 N.C.
SuperH™ Family E10A-USB Emulator Pin No. N.C. 2 N.C. 3 4 5 Input/ *1 SH7286 SH7285 SH7243 Note Output Pin No. Pin No. Pin No. Signal 1 Section 1 Connecting the Emulator with the User System Pin No. 20 N.C. 21 TRST# 22 N.C. 23 N.C. 24 AUDATA3 25 N.C. 26 AUDATA2 27 N.C. 28 AUDATA1 29 N.C. 30 AUDATA0 31 N.C. 32 AUDSYNC# 33 N.C. 34 N.C. 35 N.C. *4 ASEMD#(GND) N.C. *3 UCON#(GND) 6 AUDCK 7 N.C. 8 ASEBRKAK#/ ASEBRK# *2 9 RES# 10 N.C.
SuperH™ Family E10A-USB Emulator 1.5 1.5.1 Section 1 Connecting the Emulator with the User System Recommended Circuit between the H-UDI Port Connector and the MCU Recommended Circuit (36-Pin Type) Figures 1.5 and 1.6 show recommended circuits for connection between the H-UDI and AUD port connectors (36 pins) 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. 2.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.5, 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. R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System VCC=I/O power supply All pulled-up at 4.7 kΩ or more VCC VCC VCC VCC H-UDI port connector (36-pin type) 2 4 6 8 10 12 14 16 18 GND AUDCK GND AUDATA0 GND AUDATA1 GND AUDATA2 GND AUDATA3 GND AUDSYNC GND N.C. GND N.C.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.6, 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.
SuperH™ Family E10A-USB Emulator 1.5.2 Section 1 Connecting the Emulator with the User System Recommended Circuit (14-Pin Type) Figures 1.7 and 1.8 show recommended circuits for connection between the H-UDI port connectors (14 pins) 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. 2. The ASEMD0# pin must be 0 when the emulator is connected and 1 when the emulator is not connected, respectively.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.7, 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.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.8, 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.
SuperH™ Family E10A-USB Emulator 1.5.3 Section 1 Connecting the Emulator with the User System Recommended Circuit (38-Pin Type) Figures 1.9 and 1.10 show recommended circuits for connection between the H-UDI port connectors (38 pins) 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. 2. The ASEMD0# pin must be 0 when the emulator is connected and 1 when the emulator is not connected, respectively.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.9, 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.
SuperH™ Family E10A-USB Emulator Section 1 Connecting the Emulator with the User System When the circuit is connected as shown in figure 1.10, 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.
SuperH™ Family E10A-USB Emulator R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 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 as shown in table 2.1. The initial values of the MCU are undefined.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 4. Reset Signals The MCU reset signals are only valid during emulation started with clicking the GO or STEPtype button. If these signals are enabled on the user system in command input wait state, they are not sent to the MCU. Note: Do not break the user program when the _RES, _BREQ, or _WAIT signal is being low. A TIMEOUT error will occur.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 7. Memory Access to the External Flash Memory Area The emulator can download the load module to the external flash memory area (for details, TM refer to section 6.22, Download Function to the Flash Memory Area, in the SuperH Family E10A-USB Emulator User’s Manual). Other memory write operations are enabled for the RAM area.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Note: Function 1 can be used when the AUD pins of the device are not connected to the emulator. The AUD pins are multiplexed with other pins. When the AUD function is used by the SH7286, SH7285, or SH7243 E10A-USB emulator, AUD pins are used regardless of the settings of the pin function controller (PFC). 10. Using WDT The WDT does not operate during break. 11.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 ⎯ Customization of the I/O-register definition file The internal I/O registers can be accessed from the [IO] window. However, note the following when accessing the SDMR register of the bus-state controller. Before accessing the SDMR register, specify addresses to be accessed in the I/O-register definition file (SH7286.IO, SH7285.IO, or SH7243.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 17. Exceptions of Register Bank Underflows Emulation of exceptions of register bank underflows is not supported. R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator 2.2 2.2.1 Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Specific Functions for the Emulator when Using the SH7286, SH7285, or SH7243 Event Condition Functions The emulator is used to set event conditions for the following three functions: • Break of the user program • Internal trace • Start or end of performance measurement Note: The internal trace function is not supported for the SH7243.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Using the [Combination action (Sequential or PtoP)] dialog box, which is opened by selecting [Combination action (Sequential or PtoP)] from the pop-up menu on the [Event Condition] sheet, specifies the sequential condition and the start or end of performance measurement. Table 2.8 lists the combinations of conditions that can be set under Ch1 to Ch11 and the software trace. R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Sequential Setting: Using the [Combination action (Sequential or PtoP)] dialog box specifies the sequential condition and the start or end of performance measurement. Table 2.9 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 and 11.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 2.9 Conditions to Be Set (cont) Classification Item Description [Ch1, 2, 3] list box (cont) Ch1 to Ch2 PA Sets the performance measurement period during the time from the satisfaction of the condition set in Event Condition 1 (start condition) to the satisfaction of the condition set in Event Condition 2 (end condition).
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Usage Example of Sequential Break Extension Setting: A tutorial program provided for the product is used as an example. For the tutorial program, refer to section 6, Tutorial, in the TM SuperH Family E10A-USB Emulator User’s Manual. The conditions of Event Condition are set as follows: 1. Ch3 Breaks address H’00001068 when the condition [Only program fetched address after] is satisfied. 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 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.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 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 102 bus clocks (Bφ). If the bus clock (Bφ) is 20 MHz, the program will be suspended for 5.1 μs.) 6.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 2.11 shows the type numbers that the AUD function can be used. Table 2.11 Type Number and AUD Function Type Number AUD Function HS0005KCU01H Not supported HS0005KCU02H Supported The internal and AUD traces are set in the [Acquisition] dialog box of the [Trace] window.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 The following three items can be selected as the internal trace from [Type] of [I-Trace mode]. Table 2.12 Information on Acquiring the Internal Trace Item Acquisition Information [M-Bus & Branch] Acquires the data and branch information on the M-bus. • Data access (read/write) • PC-relative access • Branch information [I-Bus] Acquires the data on the I-bus.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 To restrict trace acquisition to access for only a specific address or specific function of a program, an Event Condition can be used. Typical examples are described below. • Example of halting a trace with a write access (M-bus) to H’FFF80000 by the user program as a condition (trace halt): Set the condition to be acquired on [I-Trace mode].
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Notes on Internal Trace: • Timestamp The timestamp is the clock counts of Bφ (48-bit counter). Table 2.14 shows the timing for acquiring the timestamp. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 • Trace acquisition condition Do not set the trace end condition for the sleep instruction and the branch instruction according to which the delay slot becomes the sleep instruction.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 AUD Trace Functions: This function is operational when the AUD pin of the device is connected to the emulator. Table 2.15 shows the AUD trace acquisition mode that can be set in each trace function. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 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.3 [Trace mode] Page R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 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.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Figure 2.4 [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. The read, write, or read/write cycle can be selected as the bus cycle for trace acquisition. R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 [Setting Method] (i) Select the [Channel A] and [Channel B] check boxes in the [AUD function] group box of the [Trace mode] page. Each channel will become valid. (ii) Open the [Window trace] page and specify the bus cycle, memory range, and bus type that are to be set for each channel. Figure 2.
SuperH™ Family E10A-USB Emulator (c) Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Software Trace Function Note: This function can be supported with SHC/C++ compiler (manufactured by Renesas Electronics 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.
SuperH™ Family E10A-USB Emulator 2.2.3 Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Notes on Using the JTAG (H-UDI) Clock (TCK) 1. Set the JTAG clock (TCK) frequency to lower than the frequency of the peripheral module clock (CKP) and to under 25 MHz. 2. The initial value for the JTAG clock (TCK) is 5 MHz. 3. A value to be set for the JTAG clock (TCK) is initialized after executing [Reset CPU] or [Reset Go]. Thus the TCK value will be 5 MHz. 2.2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 2.2.5 Notes on Setting the [Event Condition] Dialog Box and the BREAKCONDITION_ SET Command 1. When [Go to cursor], [Step In], [Step Over], or [Step Out] is selected, the settings of Event Condition 3 are disabled. 2. When an Event Condition is satisfied, emulation may stop after two or more instructions have been executed. 2.2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 (a) Specifying the measurement start/end conditions The measurement start/end conditions are specified by using Event Condition 1,2. The [Ch1,2,3] list box of the [Combination action (Sequential or PtoP)] dialog box can be used. Table 2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Note: When [Ch2 to Ch1 PA] or [Ch1 to Ch2 PA] is selected, to execute the user program, specify conditions set in Event Condition 2 and Event Condition 1 and one or more items for performance measurement. (b) Measurement item Items are measured with [Channel 1 to 4] in the [Performance Analysis] dialog box. Maximum four conditions can be specified at the same time. R20UT2161EJ0200 Rev.2.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 2.17 Measurement Item Selected Name Option Disabled None Elapsed time AC (The number of execution cycles (Iφ) is set as the measurement item.
SuperH™ Family E10A-USB Emulator Section 2 Software Specifications when Using the SH7286, SH7285, and SH7243 Notes: 1. In the non-realtime trace mode of the AUD trace, normal counting cannot be performed because the generation state of the stall or the execution cycle is changed. 2. If the internal ROM is not installed on the product, do not set the measurement item for the internal ROM area. 3.
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7286, SH7285, and SH7243 Publication Date: Published by: Rev.1.00, October 15, 2007 Rev.2.
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.
SuperH™ Family E10A-USB Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7286, SH7285, and SH7243 R20UT2161EJ0200