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 E8/E8a Emulator Additional Document for User’s Manual Notes on Connecting the H8/38024F and H8/38004F Renesas Microcomputer Development Environment System H8 Family / H8/300L Super Low Power Series R0E000080KCE00EP10 Rev.4.00 2007.
Notes regarding these materials 1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. Renesas neither makes warranties or representations with respect to the accuracy or completeness of the information contained in this document nor grants any license to any intellectual property rights or any other rights of Renesas or any third party with respect to the information in this document. 2.
Contents Section 1 Inside the E8/E8a Emulator User’s Manual.......................................1 Section 2 Connecting the Emulator with the User System ................................3 Section 3 Pin Assignments of the E8/E8a Connector........................................5 Section 4 Example of Emulator Connection......................................................7 Section 5 Differences between the MCUs (H8/38024F and H8/38004F) and the Emulator.......................................................
ii
Section 1 Inside the E8/E8a Emulator User’s Manual The E8 or E8a emulator (hereafter referred to as E8/E8a in this document) manual consists of two documents: the E8/E8a User’s Manual and the E8/E8a Additional Document for User’s Manual (this document). Be sure to read BOTH documents before using the E8/E8a emulator. (1) E8/E8a Emulator User’s Manual The E8/E8a Emulator User’s Manual describes the hardware specifications and how to use the emulator debugger.
2
Section 2 Connecting the Emulator with the User System Before connecting an E8/E8a emulator (hereafter referred to as emulator) with the user system, a connector must be installed in the user system so that a 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 E8/E8a emulator user’s manual and the hardware manual for related MCUs. Table 2.
Notes: 4 1. The pin number assignments of the 14-pin connector differ from those of the E10A-USB emulator; however, the physical location is the same. 2. Do not place any components within 3 mm of the connector. 3. When the emulator is used in the [Program Flash] mode, connect the emulator similarly to the user system.
Section 3 Pin Assignments of the E8/E8a Connector Figure 3.1 shows the pin assignments of the connector. Pin 1 mark Connector Pin 14 Pin 13 Pin 2 Pin 1 Top view Pin 1 mark Pin No. MCU Signal 1 P33 2 Vss 3 N.C. *2 4 Vss 5 P35 6 Vss 7 P95 8 Vcc 9 N.C. *2 10 Vss 11 P34 12 Vss 13 RES# *1 14 Vss Notes: 1. The symbol (#) means that the signal is active-low. 2. These pins are not used in the H8/300L Super Low Power series. Do not connect anything to these pins. Figure 3.
6
Section 4 Example of Emulator Connection Figure 4.1 shows an example of emulator connection to the MCU. Pulled up at 4.7 kΩ or more Vcc Vcc Vcc Vcc Vcc Vcc P95 P95 P34 P34 P35 P35 P33 MCU P33 Vcc User logic * /RES /RES Pulled up at 4.7 kΩ or more Vss User system *: Open-collector buffer Connector 14 pins with a 2.54-mm pitch Figure 4.
Notes: 1. P33 to P35 pins are used by the emulator. Pull up and connect the emulator and MCU pins. MCU User system connector Vcc 4.7 kΩ Pins 1, 5, and 11 P33 to P35 Figure 4.2 Connection of Emulator and P33 to P35 Pins 2. The P95 pin is used for forced break control by the emulator. Connect the emulator and MCU pins directly. MCU User system connector Vcc 4.7 kΩ P95 Pin 7 Figure 4.3 Connection of Emulator and P95 Pin 3. The RES# pin is used by the emulator.
4. Connect Vss and Vcc with the Vss and Vcc of the MCU, respectively (within the guaranteed range of the microcomputer). When the power-supply mode is used, the power is supplied to the user system. Check that the power consumption or voltage of the user system is within the available range of E8/E8a and avoid a problem such as closing of the power-supply circuit. 5. Connect nothing with N.C.
User system connector Power-supply circuit (only used for the power-supply mode) Vcc 100 kΩ x3 Emulator control circuit 1 MΩ 8 100 kΩ 22 Ω P33 1 74LVC125A 22 Ω P34 11 74LVC125A 22 Ω P95 7 74LVC125A 74LVC125A (3.3 V) 74LVC125A (3.3 V) 22 Ω P35 5 74LVC125A (3.3 V) 22 Ω RES# 13 3.3 V 100 kΩ 2CS2462LC 100 kΩ Notes: 1. This figure omits the test circuits and pin numbers 3, 4, 9, and 14 for the user connector that are not used when H8/Tiny series is connected. 2.
User system connector Power-supply circuit (only used for the power-supply mode) Vcc 100 kΩ x3 Emulator control circuit 1 MΩ 8 100 kΩ 22 Ω P33 1 74LVC125B 22 Ω P34 11 74LVC125B 22 Ω P95 7 74LVC125B Vcc 3.3 V SN74LVC2T45 Vcc 3.3 V 22 Ω P35 5 SN74LVC2T45 3.3 V Vcc 22 Ω RES# 13 SN74LVC2T45 3.3 V 10 kΩ 2CS2462 10 kΩ Notes: 1. This figure omits the test circuits and pin numbers 3, 4, 9, and 14 for the user connector that are not used when H8/Tiny series is connected. 2.
12
Section 5 Differences between the MCUs (H8/38024F and H8/38004F) and the Emulator This section describes the differences between the emulator and MCU operations. 1. [Emulator Setting] Dialog Box The [Emulator Setting] dialog box is provided for setting the items that need to be set when the emulator starts up (settings are saved in the session). Figure 5.
To keep the [Emulator Setting] dialog box closed next time the emulator is started, check "Do not show this dialog box again." at the bottom of the [Emulator Setting] dialog box. You can open the [Emulator Setting] dialog box using either one of the following methods: ⎯ After the emulator gets started, select Menu - [Setup] -> [Emulator] -> [Emulator Setting...]. ⎯ Start the emulator while holding down the Ctrl key. ⎯ After the emulator gets started and an error occurred, restart the emulator.
• Program Flash This mode is used when the emulator is used for programming the flash memory. Debugging the program is disabled. To download the load module, register it in the workspace. Note: In the H8/Tiny or H8/Super Low Power device, the ID code is not entered in the Program Flash mode. ⎯ Power Supply When [Power Target from emulator. (MAX 300mA)] is checked, power will be supplied to the user system up to 300 mA. Then select 3.3 V or 5.0 V according to the power voltage of the user system. 3.
Figure 5.3 [ID Code] Dialog Box Note: For the E8a emulator, the initial value is H’0E8a. 4. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in table 5.1. Table 5.1 Register Initial Values at Emulator Power-On Register Initial Value PC Reset vector value in the vector address table R0 to R6 H’0000 R7 (SP) H'FF80 CCR H’80 5.
7. System Control Register In the emulator, the internal I/O registers can be accessed from the [IO] window. However, be careful when accessing the system control register. The emulator saves the register value of the system control register at a break and returns the value when the user program is executed. Since this is done during a break, do not rewrite the system control register in the [IO] window. 8.
Table 5.2 Program Area for the E8/E8a Emulator MCU Name Program Area H8/38024F Flash memory: H’7000 to H’7FFF H8/38004F Internal RAM: H’F780 to H’FB7F Vector, etc.: H’0002 to H’0007, H’0014 to H’0015, H’7FF8 to H’7FF9 14. The emulator uses a two-word stack pointer for values stored on a user program break. Therefore, the stack area must accept two-word addresses. 15. Do not use an MCU that has been used for debugging.
16. Items Set in the [Configuration] Dialog Box The emulator operation conditions are set in the [Configuration] dialog box. Figure 5.
Items that can be displayed in this dialog box are listed below. [Device] combo box Displays the MCU name. [Emulation mode] combo box Selects the emulation mode at user program execution. Select Normal to perform normal emulation. Select No break to disable PC breakpoint or break condition settings during emulation. [Step option] combo box Sets the step interrupt option. Disable interrupts during single step execution: Disables *1 interrupts during step execution.
If there is no problem with the state that the program in the flash memory has been replaced as the PC break code, the position where the PC break is set needs not be put back as the original code. Disable: Read or program is not performed for the flash memory except when the emulator is activated, the flash memory area is modified, and the settings of the PC break to the flash memory area are changed.
[Short break] group box Enables or disables memory access during user program execution. Disable: Disables memory access during user program execution. Enable: Enables memory access during user program execution. Notes: 1. Includes interrupts in a break. 2. When Step Over is performed after selecting [No Programming of the flash memory] for [Step Over option], the instruction that follows a JSR, BSR, or TRAPA instruction will also be executed.
E8/E8a Emulator Additional Document for User's Manual Notes on Connecting the H8/38024F and H8/38004F Publication Date: Rev.1.00, October 6, 2005 Rev.4.00, July 20, 2007 Published by: Sales Strategic Planning Div. Renesas Technology Corp. Edited by: Customer Support Department Global Strategic Communication Div. Renesas Solutions Corp. © 2007. 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 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.
E8/E8a Emulator Additional Document for User’s Manual Notes on Connecting the H8/38024F and H8/38004F 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REJ10B0212-0400