REJ10B0149-0100H SuperH Family E10A-USB Emulator Additional Document for User’s Manual E10A-USB for SH7047F HS7047KCU01HE Renesas Microcomputer Development Environment System SuperH Family / SH7040 Series Supplementary Information on Using the SH7047F Rev.1.00 Revision Date: Aug.
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 E10A-USB Emulator with the User System ............................................ 3 Installing the H-UDI Port Connector on the User System ................................................ 4 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 SH7047F. The supported operating modes are as follows: MCU expansion mode 2 Single-chip mode Note: When the SH7047F is used, set the FWP pin to 0 (low). To select MCU expansion mode 2, select the clock mode in FWP = 0 and MD3,2, and set MD1 = 1 and MD0 = 0. To select the single-chip mode, select the clock mode in FWP = 0 and MD3,2, and set MD1 = 1 and MD0 = 1. Table 1.
Table 1.1 Components of the Emulator Classification Component Hardware Software 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.7 g 14-pin type: Length: 20 cm, Mass: 33.1 g 36-pin type: Length: 20 cm, Mass: 49.2 g (only for HS0005KCU02H) Length: 150 cm, Mass: 50.
1.2 Connecting the E10A-USB 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.
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.
SH7047F Pin No. Pin No. Signal Input/ Output *1 1 AUDCK I/O 79 2 GND 3 AUDATA0 I/O 92 4 GND 5 AUDATA1 6 GND 7 AUDATA2 8 GND 9 AUDATA3 10 GND Note Pin No. Signal Input/ Output *1 19 TMS Input 59 20 GND Input 58 Input 61 Output 60 27 *2 /ASEBRKAK Output 11 21 *2 /TRST SH7047F Pin No.
Pin No. Input/ Output*1 SH7047F Pin No. 1 Signal TCK Input 63 2* 2 /TRST Input 58 3 TDO Output 60 4*2 /ASEBRKAK Output 11 5 TMS Input 59 6 TDI Input 61 7*2 /RES Output 87 8 N.C. 9*5 11*4 (GND) UVCC 10, 12, GND and 13 Output GND 14*3 1. Input to or output from the user system. Notes: 2. The slash (/) means that the signal is active-low. 3. The emulator monitors the GND signal of the user system and detects whether or not the user system is connected. 4.
1.5 Recommended Circuit between the H-UDI Port Connector and the MCU 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 MCU 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. 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 = 5.0 V (I/O power supply) VccQ 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 = 5.0 V (I/O power supply) VccQ 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 MCU 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. 10 2. The /DBGMD 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 = 5.0 V (I/O power supply) VccQ Pulled-up at 4.
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 = 5.0 V (I/O power supply) Pulled-up at 4.7 kΩ or more (all) VccQ H-UDI port connector (14-pin type) TCK 9 10 (GND) GND TRST 13 GND TMS GND TDI 14 GND 63 2 58 3 60 4 11 5 59 6 61 7 87 TDO ASEBRKAK 12 SH7047F 1 RESET N.C. N.C.
Section 2 Specifications of the Software when Using the SH7047F 2.1 Differences between the SH7047F 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 SH7047F 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 SH7047F has sleep, software standby, and module standby states. When the emulator is used, the sleep mode can be cleared with either the normal clearing function or with the forced break. Note that, however, if a command has been entered in software standby mode or module standby mode, no commands can be used from the emulator since the mode is cleared only with the normal clearing function.
7. Memory Access during User Program Break Memory write operations are enabled for the RAM area and the internal flash memory. Therefore, an operation such as memory write or BREAKPOINT should be set only for the RAM area and the internal flash memory. 8. Multiplexed Functions The AUD and H-UDI pins are multiplexed as shown in table 2.2. Those functions cannot be used when the emulator is used. Table 2.
Table 2.3 Watchdog Timer Registers Register Name Usage Register TCSR (R) Read Watchdog timer control/status register TCNT (R) Read Watchdog timer counter RSTCSR (R) Read Reset control/status register TCSR (W) Write Watchdog timer control/status register TCNT (W) Write Watchdog timer counter RSTCSR (W) Write Reset control/status register • The internal I/O registers can be accessed from the [IO] window.
2.2 Specific Functions for the Emulator when Using the SH7047F The SH7047F does not support the following functions: • MMU-related functions (The SH7047F does not mount the MMU.
2.2.1 Break Condition Functions The emulator can set conditions of Break Condition. Table 2.4 lists these conditions. Table 2.4 Types of Break Conditions Items Description Address bus condition (Address) Breaks when the MCU address bus value or program counter value matches the specified value. Data size condition (Size) Breaks when the data size that has been accessed matches the specified value. Byte, word, or longword can be specified as the access data size.
Table 2.6 lists the combinations of conditions that can be set with the BREAKCONDITION_SET command. Table 2.6 Conditions Set with the BREAKCONDITION_SET Command Type Channel Break Condition 1 Break Condition 2 Break Condition 3 Break Condition 4 Break Condition R Access Type Condition ( option), Address Bus Condition Read or Write Condition ( option), Data Size Condition ( option) ( option) O O O O O O O O O - Note: O: Can be set by the BREAKCONDITION_SET command.
2.2.2 AUD Functions In the emulator, the functions listed in table 2.7 using the AUD function can be used. These functions are operational when the AUD pin is connected to the emulator. To enable the AUD function, select [Options -> Emulator -> System…] or set [AUD used] in the [AUD Port] combo box of the [Configuration] dialog box that is opened by clicking the [Emulator System] toolbar button ( ). Note: Select [AUD used] and set the following before using the AUD function in the user program.
(2) Realtime Memory Access Function Realtime memory reading or writing is enabled during user program execution. The specified memory address contents (maximum three) can be displayed on the status bar. The memory contents can be changed by the command line, and can be referenced in the [Memory] window. Memory can be read or written as follows: 1. When the [Memory] window is used: Memory can be read or written during user program execution. Open the address to be referenced in the [Memory] window.
2.2.3 Notes on Displaying the [Trace] Window 1. The AUD trace outputs the differences between newly output branch destination addresses and the previously output branch destination addresses. If the previous branch destination address is the same as the upper 16 bits, the lower 16 bits are output. If it matches the upper 24 bits, the lower 8 bits are output. If it matches the upper 28 bits, the lower 4 bits are output.
2.2.5 Notes on Setting the [Breakpoint] Dialog Box 1. When an odd address is set, the address is rounded down to an even address. 2. A BREAKPOINT is accomplished by replacing instructions. Accordingly, it can be set only to the RAM area and the internal flash memory.
24
SuperHTM Family E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the SH7047F Publication Date: Rev.1.00, August 25, 2004 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Technical Documentation & Information Department Renesas Kodaira Semiconductor Co., Ltd. 2004. 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 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, United Kingdom Tel: <44> (1628) 585 100, Fax: <44> (1628) 585 900 Renesas Technology Europe GmbH Dornacher Str.
SuperH Family E10A-USB Emulator Additional Document for User’s Manual