Page 1
On April 1 , 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.
Page 2
Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific”...
Page 3
SH-2A, SH-2 E200F Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7286, SH7285, and SH7243 Renesas Microcomputer Development Environment System SuperH™ Family / SH7280 Group E200F for SH7280 Group R0E572800EMU00E Rev.4.00 2009.02...
Page 4
Rev. 4.00 Feb. 18, 2009 Page ii of vi REJ10J1662-0400...
Page 5
Please be sure to implement safety measures to guard against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other applicable measures.
Page 6
Rev. 4.00 Feb. 18, 2009 Page iv of vi REJ10J1662-0400...
Connecting the Emulator to the User System by Using the EV-chip Unit......7 2.2.1 Connecting the EV-chip Unit to the Emulator ............7 2.2.2 Connecting the E200F External Bus Trace Unit to the EV-chip Unit....10 2.2.3 Connecting the H-UDI/AUD Probe to the EV-chip Unit........12 2.2.4 Connecting the E200F Emulation Memory Unit to the EV-chip Unit ....
Page 8
Delay Time for the User System Interface................ 64 Rev. 4.00 Feb. 18, 2009 Page vi of vi REJ10J1662-0400...
Section 1 System Configuration Section 1 System Configuration Components of the Emulator The E200F emulator supports the SH7285 group (SH7285), SH7286 group (SH7286), and SH7243 group (SH7243). Table 1.1 lists the components of the emulator. Table 1.1 Components of the Emulator...
Page 10
USB cable Length: 1500 mm, Mass: 50.6 g ware (cont) External probe E200F serial numbers: 0001 to 0113 Length: 500 mm, Pins 1 to 4: probe input pins, T: trigger output pin, G: GND pin E200F serial numbers: 0114 or later...
Page 11
Section 1 System Configuration Table 1.2 Optional Components of the Emulator Classi- Quan- fication Component Appearance tity Remarks Hard- External bus trace unit R0E0200F1ETU00: ware Depth: 90.0 mm, Width: 125.0 mm, Height: 15.2 mm, Mass: 100 g Emulation memory unit R0E0200F1MSR00 (8 Mbytes), (Memory capacity: R0E0200F1MSR01 (16 Mbytes):...
Page 12
Section 1 System Configuration Table 1.2 Optional Components of the Emulator (cont) Classi- Quan- fication Component Appearance tity Remarks Hard- SH7286 (PLQP0176KB- R0E572860CFK00: ware A) user system interface Depth: 60.0 mm, Width: 90.0 mm, (cont) board Height: 26.0 mm, Mass: 45 g SH7286 (PLQP0176LB-A) R0E572860CFL00: user system interface...
Section 1 System Configuration System Configuration Figure 1.1 shows an example of the emulator system configuration. - When the EV-chip unit is not used: Expansion profiling unit E200F High-performance Embedded Workshop USB 2.0/1.1 H-UDI port connector User system H-UDI and AUD...
Page 14
Section 1 System Configuration Table 1.3 System Configuration Supported by the SH7280 Series and SH7243 Series External Bus Emulation Memory Unit Expansion Profiling User System Interface E200F Emulator EV-chip Unit Trace Unit Unit Trace Cable Board R0E572430CFK00 R0E572850CFK00 R0E0200F1MSR00 R0E572860CFK00...
Section 2 Connecting the Emulator to the User System Section 2 Connecting the Emulator to the User System Connecting the Emulator to the User System When the emulator is connected to the user system, use the optional EV-chip unit, user system interface board, and trace cable.
Page 16
Section 2 Connecting the Emulator to the User System Figure 2.1 Connecting the Trace Cable to E200F when Using the EV-chip Unit Rev. 4.00 Feb. 18, 2009 Page 8 of 64 REJ10J1662-0400...
Page 17
Section 2 Connecting the Emulator to the User System • Connect the EV-chip unit to the trace cable (CN1 side). Figure 2.2 Connecting the Trace Cable to the EV-chip Unit CAUTION Check the orientation of pin 1 before connecting parts. Rev.
Section 2 Connecting the Emulator to the User System 2.2.2 Connecting the E200F External Bus Trace Unit to the EV-chip Unit • When the external bus trace unit is used with the EV-chip unit, connect the external bus trace unit to the EV-chip unit as shown in figure 2.3.
Page 19
Section 2 Connecting the Emulator to the User System • After checking the location of pin 1, connect the EV-chip unit, external bus trace unit, and trace cable. Figure 2.4 Connecting the EV-chip Unit, External Bus Trace Unit, and Trace Cable CAUTION Check the orientation of pin 1 before connecting parts.
Section 2 Connecting the Emulator to the User System 2.2.3 Connecting the H-UDI/AUD Probe to the EV-chip Unit • Connect the H-UDI/AUD probe to the EV-chip unit as shown in figure 2.5. Figure 2.5 Connecting the H-UDI/AUD Probe to the EV-chip Unit CAUTION Check the orientation of pin 1 before connecting parts.
Section 2 Connecting the Emulator to the User System 2.2.4 Connecting the E200F Emulation Memory Unit to the EV-chip Unit • When the emulation memory unit is used with the EV-chip unit, connect the emulation memory unit to the EV-chip unit (figure 2.6).
Page 22
Section 2 Connecting the Emulator to the User System • After checking the location of pin 1, connect the EV-chip unit, emulation memory unit, and trace cable. Figure 2.7 Connecting the Emulation Memory Unit, EV-chip Unit, and Trace Cable CAUTION Check the orientation of pin 1 before connecting parts.
Section 2 Connecting the Emulator to the User System 2.2.5 Connecting the E200F External Bus Trace Unit, Emulation Memory Unit, and EV- chip Unit • When the external bus trace unit is used with the emulation memory unit and EV-chip unit, as shown in figure 2.8, connect them in the positions of (a), (b), and (c) for the external bus trace...
Section 2 Connecting the Emulator to the User System 2.2.6 Connecting the EV-chip Unit to the User System Interface Board • After checking the location of pin 1, connect the EV-chip unit to the user system interface board. EV-chip unit Connector No.
Using the E200F Emulator as a Stand-Alone Unit • If you are using the E200F emulator unit without connecting it to a user system, refer to table 1.3 in section 1.2, System Configuration, and make connections as shown in figure 2.10 until the EV-chip unit becomes available.
Connecting the Emulator to the User System by Using the H-UDI Port Connector To connect the E200F 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.
Section 2 Connecting the Emulator to the User System Installing the H-UDI Port Connector on the User System Table 2.2 shows the recommended H-UDI port connectors for the emulator. Table 2.2 Recommended H-UDI Port Connectors Connector Type Number Manufacturer Specifications 36-pin connector DX10M-36S Hirose Electric Co., Ltd.
Page 28
Section 2 Connecting the Emulator to the User System Input/ Input/ No. Signal Signal Note Note Output Output Input Output AUDCK Input AUDATA0 Output _TRST (GND) Output Input AUDATA1 AUDATA2 Output Output _ASEBRKAK Input/ AUDATA3 Output /_ASEBRK output UVCC Output Output _AUDSYNC User reset...
Section 2 Connecting the Emulator to the User System Recommended Circuit between the H-UDI Port Connector and the 2.6.1 Recommended Circuit (36-Pin Type) Figures 2.12 and 2.13 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.
Page 30
Section 2 Connecting the Emulator to the User System VCC = I/O power supply All pulled-up at 4.7 kΩ or more H-UDI port connector (36-pin type) SH7286 AUDCK AUDCK AUDATA0 AUDATA0 AUDATA1 AUDATA1 AUDATA2 AUDATA2 AUDATA3 AUDATA3 AUDSYNC AUDSYNC N.C. N.C.
Page 31
Section 2 Connecting the Emulator to the User System VCC = I/O power supply All pulled-up at 4.7 kΩ or more H-UDI port connector (36-pin type) SH7285 or SH7243 AUDCK AUDCK AUDATA0 AUDATA0 AUDATA1 AUDATA1 AUDATA2 AUDATA2 AUDATA3 AUDATA3 AUDSYNC AUDSYNC N.C.
Using the IC Socket to Mount an MCU on the User System Figure 2.14 shows an example of the external appearance of the configuration when the IC socket is used to mount an MCU on the user system using and the E200F emulator is connected in on- chip debugging mode.
Page 33
Section 2 Connecting the Emulator to the User System CAUTION 1. Check the orientation of pin 1 before connecting parts. 2. As the IC socket and IC top cover for mounting on the user system, we recommend the following products. ⎯...
Page 34
Section 2 Connecting the Emulator to the User System Rev. 4.00 Feb. 18, 2009 Page 26 of 64 REJ10J1662-0400...
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 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 3.1.
Page 36
Section 3 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 STEP- type button. If these signals are enabled on the user system in command input wait state, they are not sent to the MCU.
Page 37
6.21, Download Function to the Flash Memory Area, in the SH-2A, SH-2 E200F Emulator User’s Manual). Neither memory write nor BREAKPOINT setting is enabled for the external flash memory area. To set the break condition for the program on the external flash memory, use the Event Condition function.
Page 38
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 3.5 Multiplexed Functions Function 1 Function 2 SH7286 _ASEBRKAK/_ASEBRK PD16/D16/IRQ0/_CS3 AUDATA0 PD17/D17/IRQ1/_POE5/SCK3/_CS2/WRxD AUDATA1 PD18/D18/IRQ2/_POE6/TXD3/_CS1/WTxD AUDATA2 PD19/D19/IRQ3/_POE7/RXD3/_CS0/WSCK AUDATA3 PD24/D24/DREQ0/TIOC4DS AUDCK PD22/D22/IRQ6/TIC5US/RXD4 _AUDSYNC SH7285 PA3/RXD1/SSI/_CS3 PA4/TXD1/SSO/_CS4 _TRST PA0/RXD0/_CS0 PA1/TXD0/_CS1 PA2/SCK0/_SCS/_CS2 _ASEBRKAK/_ASEBRK PD16/IRQ0/_CS3 AUDATA0...
Page 39
The AUD pins are multiplexed with other pins. When the AUD function is used by the SH7286, SH7285, and SH7243 E200F emulator, AUD pins are used regardless of the settings of the pin function controller (PFC). Note that the AUD function can be used regardless of the above AUD pin settings in EV-chip unit debugging mode.
Page 40
Section 3 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 (SH7285.IO or SH7243.IO) and then activate the High-performance Embedded Workshop.
Page 41
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 16. MCU operation mode Boot or the User boot mode is not supported in this emulator. Rev. 4.00 Feb. 18, 2009 Page 33 of 64 REJ10J1662-0400...
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Specific Functions for the Emulator when Using the SH7286, SH7285, and SH7243 In on-chip debugging mode, a reset must be input when the emulator is activated. 3.2.1 Event Condition Functions The emulator is used to set event conditions for the following three functions: •...
Page 43
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 3.8 lists the combinations of conditions that can be set under Ch1 to Ch11 and the software trace. Table 3.8 Dialog Boxes for Setting Event Conditions Function Address Bus Data Bus Bus State Count...
Page 44
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 The [Event Condition 11] dialog box is used to specify the count of [Event Condition 1] and becomes a reset point when the sequential condition is specified. Sequential Setting: Use the [Combination action(Sequential or PtoP)] dialog box to specify the sequential condition and the start or end of performance measurement.
Page 45
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 3.9 Conditions to Be Set (cont) Classification Item Description [Ch1, 2, 3] list box Ch2 to Ch1 PA Sets the performance measurement period during (cont) the time from the satisfaction of the condition set in Event Condition 2 (start condition) to the satisfaction of the condition set in Event Condition 1 (end condition).
Page 46
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 SH-2A, SH-2 E200F Emulator User’s Manual. The conditions of Event Condition are set as follows: 1.
Page 47
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Figure 3.1 [Source] Window at Execution Halt (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.
Page 48
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 6. If a condition of which intervals are satisfied closely is set, no sequential condition will be satisfied. • Set the Event conditions, which are satisfied closely, by the program counter with intervals of two or more instructions.
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 3.2.2 Trace Functions The emulator supports the trace functions listed in table 3.10. Table 3.10 Trace Functions Function Internal Trace AUD Trace Branch trace Supported Supported Memory access trace Supported Supported trace...
Page 50
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Internal Trace Function: When [I-Trace] is selected for [Trace type] on the [Trace mode] page of the [I-Trace/AUD-Trace acquisition] dialog box, the internal trace can be used. Figure 3.2 [I-Trace/AUD-Trace acquisition] Dialog Box (Internal Trace Function) Rev.
Page 51
Section 3 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 3.11 Information on Acquiring the Internal Trace Item Acquisition Information [M-Bus & Branch] Acquires the data and branch information on the M-bus.
Page 52
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Using the Event Condition restricts the condition; the following three items are set as the internal trace conditions. Table 3.12 Trace Conditions of the Internal Trace Item Acquisition Information Trace halt Acquires the internal trace until the Event Condition is satisfied.
Page 53
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Set [I-Trace] as [Ch4 to Ch5 PtoP] in the [Combination action (Sequential or PtoP)] dialog box. When point-to-point and trace acquisition condition are set simultaneously, they are ANDed. Notes on Internal Trace: •...
Page 54
Section 3 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. When [I-BUS, M-Bus & Branch] is selected and the trace acquisition condition is set for the M-bus and I-bus with the Event Condition, set the M-bus condition and the I-bus condition for [Event Condition 1] and [Event Condition 2], respectively.
Page 55
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 AUD Trace Functions: This function is operational when the AUD pins of the MCU are connected to the emulator. Table 3.14 shows the AUD trace acquisition mode that can be set in each trace function.
Page 56
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Figure 3.3 [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. Rev.
Page 57
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 (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.
Page 58
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 (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.
Page 59
• I-BUS: A bus cycle generated by the CPU or DMA is acquired. (c) Software Trace Function Note: This function can be supported with SuperH C/C++ compiler (manufactured by Renesas Technology Corp.; including OEM and bundle products) V7.0 or later.
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 7. The AUD trace is disabled while the profiling function is used. 8. If breaks occur immediately after executing non-delayed branch and TRAPA instructions and generating a branch due to exception or interrupt, a trace for one branch will not be acquired immediately before such breaks.
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 6. If a BREAKPOINT cannot be correctly set to an address in the ROM or flash memory area, a mark will be displayed in the [BP] area of the address on the [Source] or [Disassembly] window by refreshing the [Memory] window, etc.
Page 62
Section 3 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] dialog box can be used. Table 3.15 Measurement Period Classification Item...
Page 63
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 For measurement tolerance, • The measured value includes tolerance. • Tolerance will be generated before or after a break. 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.
Page 64
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Table 3.16 Measurement Item Selected Name Option Disabled None Elapsed time Branch instruction counts Number of execution instructions Number of execution 32bit-instructions Exception/interrupt counts Interrupt counts Data cache-miss counts Instruction cache-miss counts All area access counts All area instruction access counts...
Page 65
Section 3 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.
Page 66
Section 3 Software Specifications when Using the SH7286, SH7285, and SH7243 Rev. 4.00 Feb. 18, 2009 Page 58 of 64 REJ10J1662-0400...
Section 4 User System Interface Circuits Section 4 User System Interface Circuits User System Interface Circuits Figures 4.1 through 4.6 show user system interface circuits. Use them as a reference to determine the value of the pull-up resistance. SH7280 User system HD151015 EP1S10 EP1S10...
Page 72
Section 4 User System Interface Circuits 3.3 V SH7280 User system MAX709R 47 Ω DrVCC DrVCC DrVSS DrVSS N.C. N.C. USBXTAL USBXTAL 48 MHz USBEXTAL USBEXTAL N.C. USD+ USD+ USD- USD- VBUS VBUS EP1S10 CB3T16211 100 kΩ 220 Ω Figure 4.7 User System Interface Circuits Delay Time for the User System Interface Since the _RES and NMI signals are connected to the user system via the logic on the EV-chip unit, a delay time shown in table 4.1 will be generated until the signal is input from the user...
Page 74
Nippon Bldg., 2-6-2, Ohte-machi, Chiyoda-ku, Tokyo 100-0004, Japan http://www.renesas.com RENESAS SALES OFFICES 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.
Page 76
SH-2A, SH-2 E200F Emulator Additional Document for User’s Manual Supplementary Information on Using the SH7286, SH7285, and SH7243 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10J1662-0400...
Need help?
Do you have a question about the E200F and is the answer not in the manual?
Questions and answers