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 H8S Family E10A Emulator Additional Document for User’s Manual H8S/2378F E10A HS2378KCM01HE-U2 Renesas Microcomputer Development Environment System H8S Family / H8S/2300 Series Specific Guide for the H8S/2378F, H8S/2377F, H8S/2367F, H8S/2368F, H8S/2378RF, H8S/2377RF E10A Emulator Rev.2.0 2004.
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 Components of the E10A Emulator ..................................................................................1 Connecting the E10A Emulator with the User System .....................................................2 Pin Assignments of the E10A Connector..........................................................................3 Example of E10A Emulator Connection............................
ii
Section 1 Connecting the Emulator with the User System 1.1 Components of the E10A Emulator The H8S/2378F E10A emulator supports the H8S/2378F, H8S/2377F, H8S/2367F, H8S/2368F, H8S/2378RF, and H8S/2377RF (hereafter referred to as the MCU unless the description is specific to any of them). Table 1.1 lists the components of the E10A emulator. Table 1.
1.2 Connecting the E10A Emulator with the User System Before connecting an E10A emulator with the user system, a connector must be installed in the user system so that an user system interface cable can be connected. When designing the user system, refer to the connector and recommended circuits shown in this manual. Before designing the user system, be sure to read the E10A emulator user’s manual and the hardware manual for related MCUs.
1.3 Pin Assignments of the E10A Connector Figure 1.2 shows the pin assignments of the H-UDI port connector. Pin No. Pin 1 mark H-UDI port connector Pin 14 Pin 7 Pin 8 Pin 1 MCU Pin Name Input/Output *1 1 PG4 Input 2 P53 Input 3 WDTOVF# Output 4 RES# *2 Input 5 PG5 Input 6 PG6 Input 7 RES# *2 Output 8 to 10 GND *3 12 to 14 11 Vcc *4 Top view Pin 1 mark Notes: 1. Input to or output from the user system. 2. The symbol (#) means that the signal is active-low. 3.
1.4 Example of E10A Emulator Connection The figure shown below is an example of connecting the user system to the E10A emulator. 14-pin connector with a 2.54-mm pitch (3M Limited: 2514-6002) Vcc Pulled-up at 4.7 k MCU 11 EMLE 1 PG4 2 P53 3 WDTOVF# 5 PG5 6 PG6 4 User logic 7 RES# 8 to 10 12 to 14 E10A pin No. User system · RES# of pin 4 of the H-UDI port connector is a signal line in which the emulator outputs signals to the MCU.
Notes: 1. The E10A emulator uses WDTOVF#, P53, and PG4 to PG6 pins. Pull up the E10A emulator and MCU pins and connect them to the user system connector. Peripheral functions that are shared by those pins cannot be used. MCU H-UDI port connector Vcc 4.7 kΩ Pins 1, 2, 3, 5, and 6 Figure 1.4 Connection of E10A Emulator and the MCU 2. The EMLE pin of the MCU must be pulled up when connecting with the E10A emulator, and connected to ground when not connecting with the E10A emulator.
3. RES# of pin 4 of the H-UDI port connector is a signal line in which the emulator outputs signals to the MCU. RES# of pin 4 and the user system reset circuit must be connected to the MCU, as shown in figure 1.6. RES# of pin 7 of the H-UDI port connector is a signal line in which the emulator monitors the RES# signal of the MCU. The RES# must be pulled up before it is connected to pin 7 of the H-UDI port connector. Vcc 4.7 k H-UDI port connector User logic MCU Vcc Pin 4 4.7 k Pin 7 Figure 1.
7. When the MCU is connected to the E10A emulator, the functions listed below cannot be used. Table 1.2 Pin Functions Not Available H8S/2378F, H8S/2377F, H8S/2378RF, and H8S/2377RF H8S/2367F and H8S/2368F P53 and PG4 to PG6 P53 and PG4 to PG6 WDTOVF# WDTOVF# IRQ3# IRQ3# ADTRG# ADTRG# BREQ#, BACK#, and BREQ0# BREQ#, BACK#, and BREQ0# CS4# The symbol (#) means that the signal is active-low.
8
Section 2 Specification of the E10A Emulator’s Software 2.1 Differences between the H8S/2378F, H8S/2377F, H8S/2367F, H8S/2368F, H8S/2378RF, H8S/2377RF, and the E10A Emulator 1. When the E10A emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 2.1. Table 2.
If the flash memory is rewritten many times, the data will not be erased. If an error message is displayed, exchange the MCU for a new one. 7. MCU Operating Mode The E10A emulator does not support modes 1 and 2 (expanded mode with on-chip ROM disabled mode). Use the E10A emulator in mode 4 (expanded mode with on-chip ROM enabled) or mode 7 (single-chip mode). 8.
2.2 The H8S/2378F E10A Emulator Functions Notes: 1. Do not use an MCU that has been used for debugging. 2.2.1 2. If the flash memory is rewritten many times, and the E10A emulator is left for a few days, data may be lost due to retention problems. 3. If the flash memory is rewritten many times, the data will not be erased. If an error message is displayed, exchange the MCU for a new one. E10A Emulator Driver Selection Table 2.
Table 2.4 lists the combinations of conditions that can be set in the [Break condition] dialog box. Table 2.4 Conditions Set in [Break condition] Dialog Box Condition Dialog Box Address Bus Condition O O [Break condition 1] [Break condition 2] Data Condition O O Read or Write Condition O O Note: O: Can be set by checking the radio button in the dialog box. Table 2.5 lists the combinations of conditions that can be set by the BREAKCONDITION_SET command. Table 2.
2.2.3 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 flash memory or the RAM area. However, a BREAKPOINT cannot be set to the following addresses: • An area other than flash memory or RAM • An area occupied by the E10A emulator program • An instruction in which Break Condition is satisfied 3.
(1) Setting Acquisition The acquisition condition on the trace information is set. Figure 2.
Table 2.6 Setting Acquisition Acquisition Condition Description Trace type Sets the trace information for acquisition and display. Branch trace: Acquires and displays the branch-instruction trace information. Bus trace: Acquires and displays the bus trace information. Bus Trace mode Sets the trace acquisition condition when Bus Trace is selected as Trace type. This is not set when Branch Trace is selected. • [Full Trace] check box Indicates that all cycles are acquired.
(2) Displaying a Trace in the Bus Trace Function The contents of the trace buffer in table 2.7 are displayed in the [Trace] window. Figure 2.2 [Trace] Window Table 2.
For branch trace, items [Cycle], [Data], [R/W], [Area], [Bus_Status], [Clock], and [IRQ] are not displayed. For bus trace, items [IP] and [Type] are not displayed. The column width of the [Trace] window can be adjusted by clicking and dragging the vertical separate line between columns. When the window is closed, the new column width is automatically saved. The capacity of the trace buffer is limited. When the buffer becomes full, the oldest trace information is overwritten.
(3) Trace Filter Function The E10A emulator displays all the information that matches the specified conditions for all the trace data. The information is displayed by selecting [Filter…] from the popup menu that is displayed with the right-hand mouse button on the [Trace] window. The filter condition is set to restrict the cycle to be displayed on the trace buffer. (i) [General] Page Options Figure 2.3 [General] Page Table 2.
(ii) [Address] Page Options Figure 2.4 [Address] Page Table 2.9 [Address] Page Options Option Description [Don’t care] check box Indicates that no address condition is set. [Point] radio button Specifies the single address. [Range] radio button Sets an address range as a display condition. [From] edit box Sets the start value of the address range. [To] edit box Sets the end value of the address range.
(iii) [Data] Page Options Figure 2.5 [Data] Page Table 2.10 [Data] Page Options Option Description [Don’t care] check box Indicates that no data condition is set. [Point] radio button Specifies the single data value. [Range] radio button Sets a range of the data value as a display condition. [From] edit box Sets the start value of the data value. [To] edit box Sets the end value of the data value.
(iv) [Bus_Status] Page Options Figure 2.6 [Bus_Status] Page Table 2.11 [Bus_Status] Page Options Option Description [Don’t care] check box Indicates that no bus-status condition is set. [Setting] group box Specifies the bus status.
(v) [Area] Page Options Figure 2.7 [Area] Page Table 2.12 [Area] Page Options Option Description [Don’t care] check box Indicates that no area condition is set. [Setting] group box Specifies the area.
(vi) [R/W] Page Options Figure 2.8 [R/W] Page Table 2.13 [R/W] Page Options Option Description [Don’t care] check box Indicates that no read/write condition is set. [Setting] group box Specifies the read/write.
(vii) [IRQ] Page Options Figure 2.9 [IRQ] Page Table 2.14 [IRQ] Page Options Option Description [Don’t care] check box Indicates that no IRQ condition is set. [IRQ] drop-down list Specifies the IRQ. Don’t care: Detects no IRQ. High: IRQ is high. Low: IRQ is low.
(4) Trace Find Function The E10A emulator jumps to the information that matches the conditions specified by all the trace data on the [Trace] window. The search condition is set in the [Trace Filter] dialog box. The information is displayed by selecting [Find…] from the popup menu that is displayed with the right-hand mouse button on the [Trace] window. (i) [General] Page Options Figure 2.10 [General] Page Table 2.
(ii) [Address] Page Options Figure 2.11 [Address] Page Table 2.16 [Address] Page Options Option Description [Don’t care] check box Indicates that no address condition is set. [Value] edit box Enters the address value.
(iii) [Data] Page Options Figure 2.12 [Data] Page Table 2.17 [Data] Page Options Option Description [Don’t care] check box Indicates that no data condition is set. [Value] edit box Enters the data value.
(iv) [Bus_Status] Page Options Figure 2.13 [Bus_Status] Page Table 2.18 [Bus_Status] Page Options Option Description [Don’t care] check box Indicates that no bus-status condition is set. [String] drop-down list Specifies the bus status.
(v) [Area] Page Options Figure 2.14 [Area] Page Table 2.19 [Area] Page Options Option Description [Don’t care] check box Indicates that no area condition is set. [String] drop-down list Specifies the area.
(vi) [R/W] Page Options Figure 2.15 [R/W] Page Table 2.20 [R/W] Page Options Option Description [Don’t care] check box Indicates that no read/write condition is set. [String] drop-down list Specifies the read/write.
(vii) [IRQ] Page Options Figure 2.16 [IRQ] Page Table 2.21 [IRQ] Page Options Option Description [Don’t care] check box Indicates that no IRQ condition is set. [IRQ] drop-down list Specifies the IRQ. Don’t care: Detects no IRQ. High: IRQ is high. Low: IRQ is low.
32
H8S Family E10A Emulator Additional Document for User's Manual Specific Guide for the H8S/2378F, H8S/2377F, H8S/2367F, H8S/2368F, H8S/2378RF, H8S/2377RF E10A Emulator Publication Date: Rev.1.01, November 11, 2003 Rev.2.00, January 29, 2004 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Technical Documentation & Information Department Renesas Kodaira Semiconductor Co., Ltd. 2003, 2004 Renesas Technology Corp. All rights reserved. Printed in Japan.
H8S Family E10A Emulator Additional Document for User’s Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10B0035-0200H