Renesas SH7343, HS7343KCU01HE, E10A-USB User Manual

REJ10J1147-0100
SuperHTMFamily E10A-USB Emulator
Renesas Microcomputer Development Environment System
Additional Document for User’s Manual
Supplementary Information on Using the SH7343
TM
SuperH
Family
E10A-USB for SH7343 HS7343KCU01HE
Rev.1.00 Revision Date: Nov. 02, 2005

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. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap.

Notes regarding these materials

1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corp. product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corp. or a third party.
2. Renesas Technology Corp. assumes no responsibility for any damage, or infringement of any third- party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials.
3. All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by Renesas Technology Corp. without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical errors. Renesas Technology Corp. assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology Corp. by various means, including the Renesas Technology Corp. Semiconductor home page (http://www.renesas.com).
4. When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. Renesas Technology Corp. assumes no responsibility for any damage, liability or other loss resulting from the information contained herein.
5. Renesas Technology Corp. semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Renesas Technology Corp. or an authorized Renesas Technology Corp. product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
6. The prior written approval of Renesas Technology Corp. is necessary to reprint or reproduce in whole or in part these materials.
7. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited.
8. Please contact Renesas Technology Corp. for further details on these materials or the products contained therein.

Contents

Section 1 Connecting the Emulator with the User System ................................1
1.1 Components of the Emulator ............................................................................................ 1
1.2 Connecting the Emulator with the User System ............................................................... 2
1.3 Installing the H-UDI Port Connector on the User System ................................................ 3
1.4 Pin Assignments of the H-UDI Port Connector................................................................ 3
1.5 Recommended Circuit between the H-UDI Port Connector and the MPU....................... 6
1.5.1 Recommended Circuit (36-Pin Type).................................................................. 6
1.5.2 Recommended Circuit (14-Pin Type).................................................................. 8
Section 2 Software Specifications when Using the SH7343 .............................11
2.1 Differences between the SH7343 and the Emulator ......................................................... 11
2.2 Specific Functions for the Emulator when Using the SH7343..........................................16
2.2.1 Event Condition Functions ..................................................................................16
2.2.2 Trace Functions.................................................................................................... 24
2.2.3 Notes on Using the JTAG (H-UDI) Clock (TCK) and AUD Clock (AUDCK)... 34
2.2.4 Notes on Setting the [Breakpoint] Dialog Box .................................................... 34
2.2.5 Notes on Setting the [Event Condition] Dialog Box and
the BREAKCONDITION_ SET Command ........................................................36
2.2.6 Note on Setting the UBC_MODE Command ...................................................... 36
2.2.7 Note on Setting the PPC_MODE Command ....................................................... 36
2.2.8 Performance Measurement Function ................................................................... 37
i
ii

Section 1 Connecting the Emulator with the User System

1.1 Components of the Emulator

The E10A-USB emulator supports the SH7343. Table 1.1 lists the components of the emulator.
Table 1.1 Components of the Emulator
Classi­fication Component
Hard­ware
User system interface
User system interface
USB cable 1 Length: 150 cm, Mass: 50.6 g
Soft­ware
Note: Additional document for the MPUs supported by the emulator is included. Check the target
Emulator box 1 HS0005KCU01H:
cable
cable
E10A-USB emulator setup program, SuperHTM Family E10A­USB Emulator User’s Manual, Supplementary Information on Using the SH7343*, and Test program manual for HS0005KCU01H and HS0005KCU02H
MPU and refer to its additional document.
Appearance
Quan­tity Remarks
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
1 14-pin type:
Length: 20 cm, Mass: 33.1 g
1 36-pin type:
Length: 20 cm, Mass: 49.2 g (only for HS0005KCU02H)
1 HS0005KCU01SR,
HS0005KCU01HJ, HS0005KCU01HE,
HS7343KCU01HJ, HS7343KCU01HE,
HS0005TM01HJ, and HS0005TM01HE (provided on a CD-R)
1

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.2 shows the type number of the emulator, the corresponding connector type, and the use of AUD function.
Table 1.2 Type Number, AUD Function, and Connector Type
Type Number Connector AUD Function
HS0005KCU02H 36-pin connector Available
HS0005KCU01H, HS0005KCU02H 14-pin connector Not available
The H-UDI port connector has the 36-pin and 14-pin types as described below. Use them according to the purpose of the usage.
1. 36-pin type (with AUD function) The AUD trace function is supported. A large amount of trace information can be acquired in realtime. The window trace function is also supported for acquiring memory access in the specified range (memory access address or memory access data) by tracing.
2. 14-pin type (without AUD function) The AUD trace function cannot be used because only the H-UDI function is supported. Since the 14-pin type connector is smaller than the 36-pin type (1/2.5), the area where the connector is installed on the user system can be reduced.
2

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
14-pin connector 2514-6002 Minnesota Mining &
DX10M-36S Screw type
DX10M-36SE, DX10G1M-36SE
Hirose Electric Co., Ltd.
Lock-pin type
14-pin straight type
Manufacturing Ltd.
Note: When designing the 36-pin connector layout on the user board, do not connect any
components under the H-UDI connector. When designing the 14-pin connector layout on the user board, do not place any components within 3 mm of the H-UDI port connector.

1.4 Pin Assignments of the H-UDI Port Connector

Figures 1.1 and 1.2 show the pin assignments of the 36-pin and 14-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.
3
Pin No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Signal
AUDC K
Input/ Output
Output
SH7343
*1
Pin No.
Y13
GND
AU DATA 0
Output
AA14
GND
AU DATA 1
Output
V14
GND
AU DATA 2
Output
AB14
GND
AU DATA 3
Output
W13
GND
/AUDSYNC
*2
Output
V13
GND
N.C.
GND
N.C.
GND
TCK
Input
AB15
GND
Notes:
1. Input to or output from the user system.
Note
Pin No.
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Signal
TMS
GND
*2
/TRST
*4
(GND)
TDI
GND
TDO
GND
/ASEBRK / BRKACK
GND
UVCC
GND
/RESETP /RESETA /RESETMFI
GND
*3
GND
GND
N.C.
GND
Input/ Output
*2
*2
Output
Input
Input
Input
Output
Input/ output
Output
Output Output Output
SH7343
*1
Pin No.
W15
W14
V15
Y14
AA13
V16
V16 AB17 E11
2. The symbol (/) 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. When the user system interface cable is connected to this pin and the MPMD pin is set to 0, do not connect to GND but to the MPMD pin directly.
5. Connect /RESETP, /RESETA, and /RESETMFI to the user system if required, as shown in figure 1.3.
Note
User reset
*5
4.09
Edge of the board (connected to the connector)
4
+0.2
2
φ
2.8
0
3
1
: Pattern inhibited area
H-UDI port connector (top view)
21.59
37.61
43.51
1.27
+0.1
36
φ
0.7
0
4.5
1.1
9.0
1.905
35
H-UDI port connector (front view)
H-UDI port connector
(Pin 1 mark)
(top view)
M
2.6
x 0.45
3.9
Unit: mm
9.0
0.3
4.8
Figure 1.1 Pin Assignments of the H-UDI Port Connector (36 Pins)
4
1
SH7343 Pin No.
AB15
W14
Y14
AA13
W15
V15
V16
AB17
E11
Input/
Pin No. Signal
1
2
3
4
5
6
7
8
9
11
10, 12,
and 13
14
Notes:
TCK
/TRST
TDO
/ASEBRK /
BRKACK
TMS
TDI
/RESETP
/RESETA
/RESETMFI
N.C.
(GND)
UVCC
GND
GND
1. Input to or output from the user system.
2. The symbol (/) 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.
When the user system interface cable is connected to
4.
this pin and the MPMD pin is set to 0, do not connect to GND but to the MPMD pin directly.
5.
Connect /RESETP, /RESETA, and /RESETMFI to
the user system if required, as shown in figure 1.4.
Pin 1 mark
Output*
Input
*2
Input
Output
*2
Input/
output
Input
Input
*2
Output
Output
Output
*4
Output
*3
Output
H-UDI port connector
Note
User reset
*5
(top view)
Pin 8 Pin 1
Pin 1 mark
25.0
23.0
6 x 2.54 = 15.24
(2.54)
H-UDI port connector
(top view)
Pin 14 Pin 7
0.45
Unit: mm
Figure 1.2 Pin Assignments of the H-UDI Port Connector (14 Pins)
5
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.
Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector.
2. The MPMD pin must be 0 when the emulator is connected and 1 when the emulator is
not connected, respectively. (1) When the emulator is used: MPMD = 0 (2) When the emulator is not used: MPMD = 1 Figures 1.3 shows an examples of circuits that allow the MPMD pin to be GND (0) whenever the emulator is connected by using the user system interface cable.
3. When a network resistance is used for pull-up, it may be affected by a noise. Separate
TCK from other resistances.
4. The /TRST pin must be at the low level for a certain period when the power is
supplied whether the H-UDI is used or not. Reduce the power supplied to the /TRST pin by pulling the pin down by a resistance of 1 kilo-ohm and setting PUL15 = 0 in the PULCR register after a reset.
5. The pattern between the H-UDI port connector and the MPU must be as short as
possible. Do not connect the signal lines to other components on the board.
6. Since the H-UDI and the AUD of the MPU operate with the VccQ, supply only the
VccQ to the UVCC pin. Make the emulator’s switch settings so that the user power will be supplied (SW2 = 1 and SW3 = 1).
7. The resistance values shown in figure 1.3 are reference.
8. For the pin processing in cases where the emulator is not used, refer to the hardware
manual of the related MPU.
9. For the AUDCK pin, guard the pattern between the H-UDI port connector and the
MPU at GND level.
6
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 SuperH
TM
Family E10A-USB Emulator User’s Manual.
VccQ = 2.85-V I/O power supply
H-UDI port connector (36-pin type)
2
GND
4
GND
AUDATA0
6
AUDATA1
GND
8
GND
GND
GND
GND
GND
GND
GND
(GND)
GND
GND
GND
GND
GND
GND
GND
AUDATA2
AUDATA3
AUDSYNC
ASEBRK / BRKACK
10
12
14
16
18
20
22
24
26
28
30
32
34
36
AUDCK
N.C.
N.C.
TCK
TMS
TRST
TDI
TDO
UVCC
RESET
GND
N.C.
All pulled-up at 4.7 kΩ or more
VccQ
VccQ
1
3
5
7
9
11
13
15
17
19
21
23
25
27
29
31
33
1 kΩ
35
VccQ
VccQ
VccQ
*2
Level-
*2
shift circuit
*3
VccQ
SH7343
AUDCK
AUDATA0
AUDATA1
AUDATA2
AUDATA3
AUDSYNC
TCK
TMS
TRST
TDI
TDO
ASEBRK /BRKACK
RESETP RESETA RESETMFI
MPMD
*1
Power-on reset signal
Reset signal
MFI reset signal
User system
Figure 1.3 Recommended Circuit for Connection between the H-UDI Port Connector and
MPU when the Emulator is in Use (36-Pin Type)
Notes: 1. Do not use /RESETP in the emulator after the user system has been activated.
When reset signals are used for debugging, use /RESETA or /RESETMFI.
2. Fix /RESETA and /RESETMFI as high levels when they are not used.
3. When VccQ_MFI is used at 1.8 V, the level-shift circuit in figure 1.3 is required to adjust the signal levels.
7

1.5.2 Recommended Circuit (14-Pin Type)

Figure 1.4 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.
Notes: 1. Do not connect anything to the N.C. pins of the H-UDI port connector.
2. The MPMD pin must be 0 when the emulator is connected and 1 when the emulator is
not connected, respectively. (1) When the emulator is used: MPMD = 0 (2) When the emulator is not used: MPMD = 1 Figures 1.3 shows an examples of circuits that allow the MPMD pin to be GND (0) whenever the emulator is connected by using the user system interface cable.
3. When a network resistance is used for pull-up, it may be affected by a noise. Separate
TCK from other resistances.
4. The /TRST pin must be at the low level for a certain period when the power is
supplied whether the H-UDI is used or not. Reduce the power supplied to the /TRST pin by pulling the pin down by a resistance of 1 kilo-ohm and setting PUL15 = 0 in the PULCR register after a reset.
5. The pattern between the H-UDI port connector and the MPU must be as short as
possible. Do not connect the signal lines to other components on the board.
6. Since the H-UDI of the MPU operates with the VccQ, supply only the VccQ to the
UVCC pin. Make the emulator’s switch settings so that the user power will be supplied (SW2 = 1 and SW3 = 1).
7. The resistance values shown in figure 1.4 are reference.
8. For the pin processing in cases where the emulator is not used, refer to the hardware
manual of the related MPU.
8
When the circuit is connected as shown in figure 1.4, 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 SuperH
TM
Family E10A-USB Emulator User’s Manual.
VccQ = 2.85-V I/O power supply
All pulled-up at 4.7 kΩ or more
VccQ
VccQ
VccQ
VccQ
VccQ
VccQ
H-UDI port connector (14-pin type)
9
(GND)
10
GND
ASEBRK
GND
GND
GND
/ BRKACK
RESET
12
13
14
TCK
TRST
TDO
TMS
TDI
N.C.
UVCC
1
2
3
4
5
6
7
8
11
1 kΩ
User system
*2
Level-
*2
shift circuit
*3
SH7343
TCK
TRST
TDO
ASEBRK/BRKACK
TMS
TDI
*1
RESETP RESETA RESETMFI
MPMD
Power-on reset signal
Reset signal
MFI reset signal
Figure 1.4 Recommended Circuit for Connection between the H-UDI Port Connector and
MPU when the Emulator is in Use (14-Pin Type)
Notes: 1. Do not use /RESETP in the emulator after the user system has been activated.
When reset signals are used for debugging, use /RESETA or /RESETMFI.
2. Fix /RESETA and /RESETMFI as high levels when they are not used.
3. When VccQ_MFI is used at 1.8 V, the level-shift circuit in figure 1.4 is required to adjust the signal levels.
9
10

Section 2 Software Specifications when Using the SH7343

2.1 Differences between the SH7343 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 SH7343 registers are undefined. When the emulator is initiated from the workspace, a value to be entered is saved in a session.
Table 2.1 Register Initial Values at Emulator Link Up
Register Emulator at Link Up
R0 to R14 H'00000000
R15 (SP) H'A0000000
R0_BANK to R7_BANK H'00000000
PC H'A0000000
SR H'700000F0
GBR H'00000000
VBR H'00000000
MACH H'00000000
MACL H'00000000
PR H'00000000
SPC H'00000000
SSR H'000000F0
RS H'00000000
RE H'00000000
MOD H'00000000
A0G, A1G H'00000000
A0, A1 H'00000000
X0, X1 H'00000000
Y0, Y1 H'00000000
M0, M1 H'00000000
DSR H'00000000
2. The emulator uses the H-UDI; do not access the H-UDI.
11
3. Low-Power States (Sleep, Software Standby, Module Standby, U Standby, and R Standby)
For low-power consumption, the SH7343 has sleep, software standby, module standby, U standby, and R standby states.
The sleep, software standby, and module standby states are switched using the SLEEP instruction. When the emulator is used, the sleep and software standby states 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. Reset Signals
The SH7343 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 SH7343.
Note: Do not break the user program when the /RESETA, /RESETMFI, or /BREQ signal is
being low and the wait control signal is being active. A TIMEOUT error will occur. If the wait control signal becomes active or the /BREQ signal is fixed to low during break, a TIMEOUT error will occur at memory access.
5. Direct Memory Access Controller (DMAC)
The DMAC operates even when the emulator is used. When a data transfer request is generated, the DMAC executes DMA transfer.
6. Memory Access during User Program Execution
When a memory is accessed from the memory window, etc. during user program execution, the user program is resumed after it has stopped in the E10A-USB emulator to access the memory. Therefore, realtime emulation cannot be performed.
The stopping time of the user program is as follows:
Environment: Host computer: 800 MHz (Pentium
®
III)
JTAG clock: 10 MHz (TCK clock)
When a one-byte memory is read from the command-line window, the stopping time will be about 42 ms.
7. Memory Access during User Program Break
The emulator can download the program for the flash memory area (for details, refer to section
6.22, Download Function to the Flash Memory Area, in the SuperH
TM
Family E10A-USB Emulator User’s Manual). Other memory write operations are enabled for the RAM area. Therefore, an operation such as memory write or BREAKPOINT should be set only for the RAM area.
12
Loading...
+ 39 hidden pages