NEW DATABASE - 350 MILLION DATASHEETS FROM 8500 MANUFACTURERS
REJ10B0153-0100H E10A-USB H8S/2339F HS2339KCU01HE H8S/2300 H8S/2339EF - Datasheet Archive
H8S Family E10A-USB Emulator Additional Document for User's Manual E10A-USB for H8S/2339F HS2339KCU01HE Renesas Microcomputer
REJ10B0153-0100H REJ10B0153-0100H H8S Family E10A-USB E10A-USB Emulator Additional Document for User's Manual E10A-USB E10A-USB for H8S/2339F H8S/2339F HS2339KCU01HE HS2339KCU01HE Renesas Microcomputer Development Environment System H8S Family / H8S/2300 H8S/2300 Series Supplementary Information on Using the H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, and H8S/2319EF H8S/2319EF Rev.1.00 Revision Date: Sep. 15, 2004 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 thirdparty'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 1.2 1.3 1.4 Components of the E10A-USB E10A-USB Emulator . 1 Connecting the E10A-USB E10A-USB Emulator with the User System . 2 Pin Assignments of the User System Connector. 4 Example of Emulator Connection . 5 Section 2 Specification of the Emulator's Software .11 2.1 2.2 Differences between the H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, H8S/2319EF H8S/2319EF, and the Emulator . 11 The H8S/2339F H8S/2339F E10A-USB E10A-USB Emulator Specific Functions and Notes . 14 2.2.1 Emulator Driver Selection . 14 2.2.2 Hardware Break Functions. 14 2.2.3 Notes on Setting the [Breakpoint] Dialog Box . 16 2.2.4 Note on Using the JTAG Clock (TCK). 16 2.2.5 Trace Function . 16 i ii Section 1 Connecting the Emulator with the User System 1.1 Components of the E10A-USB E10A-USB Emulator The H8S/2339F H8S/2339F E10A-USB E10A-USB emulator supports the H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, and H8S/2319EF H8S/2319EF (hereafter referred to as the MCU unless the description is specific to any of them). It also supports MCU operating modes 4, 5, 6, and 7 and enables realtime emulation. Table 1.1 lists the components of the E10A-USB E10A-USB emulator. Table 1.1 Components of the Emulator Classification Component Hardware Appearance Quantity Emulator box 1 User system interface cable USB cable 1 1 Remarks HS0005KCU01H HS0005KCU01H: Depth: 65.0 mm, Width: 97.0 mm, Height: 20.0 mm, Mass: 72.9 g or *1 HS0005KCU02H 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 Length: 150 cm, Mass: 50.6 g Software H8S/2339F H8S/2339F E10A-USB E10A-USB 1 HS0005KCU01SR HS0005KCU01SR, emulator setup program, H8S Family E10A-USB E10A-USB HS0005KCU01HJ-H8S HS0005KCU01HJ-H8S, Emulator User's Manual, HS0005KCU01HE-H8S HS0005KCU01HE-H8S, Supplementary HS2339KCU01HJ HS2339KCU01HJ, Information on Using the HS2339KCU01HE HS2339KCU01HE, H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, and *2 H8S/2319EF H8S/2319EF , and Test program manual for HS0005TM01HJ HS0005TM01HJ, and HS0005KCU01H HS0005KCU01H and HS0005TM01HE HS0005TM01HE HS0005KCU02H HS0005KCU02H (provided on a CD-R) Notes: 1. When HS0005KCU02H HS0005KCU02H is purchased, the 36-pin type cable is provided; however, it is not available for this MCU. 2. Additional document for the MCUs supported by the emulator is included. Check the target MCU and refer to its additional document. 1 1.2 Connecting the E10A-USB E10A-USB Emulator with the User System Before connecting an E10A-USB E10A-USB emulator (hereafter referred to as the 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 an example of recommended connection between the connector and the MCU shown in this manual. Before designing the user system, be sure to read the H8S Family E10A-USB E10A-USB Emulator User's Manual and the hardware manual for related MCUs. Connect pins 8, 9, 10, 12, 13, and 14 of the user system connector to GND firmly on the PCB. These pins are used as electrical GND and to monitor the connection of the user system connector. Note the pin arrangement of the user system connector. User system interface cable Tab GND line User system connector Pin 8 User system GND connection Pin 1 User system Figure 1.1 Connecting the User System Interface Cable to the User System Notes: The pin number assignments of the 14-pin connector differ from those of the E7 emulator; however, the physical location is the same. 2. 2 1. When designing the connector layout on the user board, do not place any components within 3 mm of the user system connector. WARNING Be sure to place the GND line of the user system interface cable on the GND of the user system with a screw, etc. Failure to do so will result in a FIRE HAZARD due to an overcurrent and will damage the user system, the emulator product, and the host computer. 3 1.3 Pin Assignments of the User System Connector Figure 1.2 shows the pin assignments of the user system connector. Signal Name Pin No. H8S/2339EF H8S/2339EF H8S/2329EF H8S/2329EF H8S/2319EF H8S/2319EF Input/Output *1 1 P34 P34 P21 Input 3 P83 P63 P31 Output RES(in)# *2,*5 RES(in)# *2,*5 RES(in)# *2,*5 Input P80 P60 P20 Input P81 P62 P33 Input 7 Pin 14 Pin 7 Input 2 6 Pin 8 Pin 1 P35 5 User system connector P61 4 Pin 1 mark P82 RES(out)# *2 RES(out)# *2 RES(out)# *2 Output 8 to 10 GND *3 GND *3 GND *3 Vcc *4 Vcc *4 Vcc *4 12 to 14 11 Top view Pin 1 mark Notes: 1. Input or output from the user system. 2. The symbol (#) means that the signal is active-low. 3. By detecting GND on the user system side, the emulator decides whether the user system is connected or not. 4. Connect Vcc with the Vcc of the MCU. 5. The port and peripheral functions assigned to pins 1 to 3 and 5 to 6 of the user system connector cannot be used. 6. RES(in) is not the pin name of the MCU. It cannot be directly connected to the MCU pins. Figure 1.2 Pin Assignments of the User System Connector 4 1.4 Example of Emulator Connection The figure shown below is an example of connecting the user system to the emulator. 14-pin connector with a 2.54-mm pitch (3M Limited: 2514-6002) Vcc Pulled-up at 4.7 k H8S/2339EF H8S/2339EF H8S/2329EF H8S/2329EF H8S/2319EF H8S/2319EF 11 EMLE EMLE EMLE 1 P82 P61 P35 2 P34 P34 P21 3 P83 P63 P31 5 P80 P60 P20 6 P81 P62 P33 RES# RES# RES# 4 User logic 7 8 to 10 12 to 14 E10A-USB E10A-USB pin No. User system · RES(in)# of pin 4 of the user system connector is a signal line in which the emulator outputs signals to the MCU. RES(in)# (pin 4) and the user logic reset circuit for the signal line must be connected to the MCU as shown above. · RES(out)# of pin 7 of the user system 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 user system connector. Figure 1.3 Example of Emulator Connection 5 Notes: 1. The emulator uses P34 and P80 to P83 in the H8S/2339EF H8S/2339EF, P34 and P60 to P63 in the H8S/2329EF H8S/2329EF, and P20 to P21, P31, P33, and P35 in the H8S/2319EF H8S/2319EF. Pull up the emulator and MCU pins and connect them to the user system connector. MCU User system connector Vcc 4.7 k Pins 1, 2, 3, 5, and 6 Figure 1.4 Connection of Emulator and MCU 2. The EMLE pin in the H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, and H8S/2319EF H8S/2319EF must be pulled up when connecting with the emulator, and connected to ground when not connecting with the emulator. Vcc The emulator is connected: MCU 4.7 k EMLE MCU EMLE The emulator is not connected: Figure 1.5 EMLE Pin and Emulator 6 3. RES(in)# of pin 4 of the user system connector is a signal line in which the emulator outputs signals to the MCU. RES(in)# of pin 4 and the user system reset circuit must be connected to the MCU, as shown in figure 1.6. RES(out)# of pin 7 of the user system 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 user system connector. Vcc 4.7 k User system connector User logic Vcc RES(in)# (pin 4) MCU 4.7 k RES(out)# (pin 7) RES# Figure 1.6 Connection of the RES# Pin 4. Connect GND of pins 8 to 10 and 12 to 14 in the user system connector to ground in the user system. 5. Connect Vcc, pin 11 of the user system connector, to the power supply (Vcc) in the user system. The input voltage, Vcc, is within the range of guaranteed operation of the microcomputer. 7 6. Figure 1.7 shows the interface circuit in the emulator. Use this figure as a reference when determining the pull-up resistance value. SW2 3.3 V 0 Emulator control circuit 1 User system connector *3 11 SN74LVC2G125 SN74LVC2G125 VCC 10 k 22 A 1 Y SN74LVC2G125 SN74LVC2G125 VCC PI74AVC164245 PI74AVC164245 A PI74AVC164245 PI74AVC164245 SN74LVC2G125 SN74LVC2G125 1.8 V Y A 10 k 22 3 A SN74LVC2G125 SN74LVC2G125 1.8 V Y 10 k 22 VCC B 2 Y VCC B 10 k 22 A 4 *1 A SN74LVC2G125 SN74LVC2G125 VCC A Y SN74LVC2G125 SN74LVC2G125 VCC 10 k 22 A 5 Y SN74LVC2G125 SN74LVC2G125 VCC A PI74AVC164245 PI74AVC164245 SN74LVC2G125 SN74LVC2G125 VCC B A Y 10 k 22 6 Y 1.8 V 10 k 22 7 *2 A SN74LVC2G125 SN74LVC2G125 VCC OE A Y Notes: 1. The emulator outputs the reset signal to pin 4. Therefore, pin 4 cannot be directly connected to pin RES# of the MCU. 2. The emulator only monitors pin 7. 3. The pin numbers and corresponding MCU pin names are listed below. Pin No. 1 2 3 4 5 6 7 11 H8S/2339EF H8S/2339EF P82 P34 P83 RES(in)# *1 P80 P81 RES(out)# *2 Vcc H8S/2329EF H8S/2329EF P61 P34 P63 RES(in)# *1 P60 P62 RES(out)# *2 Vcc H8S/2319EF H8S/2319EF P35 P21 P31 RES(in)# *1 P20 P33 RES(out)# *2 Vcc Figure 1.7 Interface Circuit in the Emulator (Reference) 8 7. In the H8S/2339 H8S/2339, H8S/2329 H8S/2329, and H8S/2319 H8S/2319 series, only H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, and H8S/2319EF H8S/2319EF can be connected to the emulator. H8S/2339F H8S/2339F, H8S/2329F H8S/2329F, and H8S/2319F H8S/2319F for general use cannot be used. 8. When H8S/2339EF H8S/2339EF and H8S/2329EF H8S/2329EF are connected to the emulator, SCI0 (serial communication interface channel 0) cannot be used. 9. When H8S/2319EF H8S/2319EF is connected to the emulator, SCI1 (serial communication interface channel 1) cannot be used. 10. When H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, and H8S/2319EF H8S/2319EF are connected to the emulator, the following pin functions cannot be used. Table 1.2 Unavailable Pin Functions H8S/2339EF H8S/2339EF H8S/2329EF H8S/2329EF H8S/2319EF H8S/2319EF P34 and P80 to P83 P34 and P60 to P63 P20, P21, P31, P33, and P35 FWE FWE FWE SCK0 SCK0 SCK1, TxD1, and RxD1 DREQ0# and DREQ1# DREQ0# and DREQ1# IRQ5# TEND0# TEND0# TIOCA3 and TIOCB3 - CS4# and CS5# - Note: The symbol "#" means that the signal is active-low. 9 10 Section 2 Specification of the Emulator's Software 2.1 Differences between the H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, H8S/2319EF H8S/2319EF, 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 value of the MCU is undefined. When the emulator is initiated from the workspace, a value to be entered is saved in a session. For the registers shown in table 2.1, values other than PC or CCR are not changed even if the CPU reset command is issued. If ER7 (SP) is changed as an odd value, it must be modified in the [Register] window. Table 2.1 Register Initial Values at Emulator Power-On Register Initial Value PC Reset vector value in the vector address table ER0 to ER6 H'0 ER7 (SP) H'10 CCR 1 for I mask, and others undefined EXR H'7F 2. 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. 3. Memory Access during Emulation If the memory contents are referenced or modified during emulation, realtime emulation cannot be performed because the user program is temporarily halted. 4. The emulator communicates with the MCU by using the pins shown in figure 1.2 (section 1.3). These pins cannot be used. 5. When the emulator is used, the power consumed by the MCU can reach several mA. This is because the user power supply drives ICs to make the communication signal level match the user-system power-supply voltage. 11 6. Do not use an MCU that has been used for debugging. If the flash memory is rewritten many times, and the MCU is left for a few days, data may be lost due to retention problems. 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. Sum Data Displayed in the Writing Flash memory Mode Sum data, which is displayed in the `Writing Flash memory' mode, is a value that data in the whole ROM areas has been added by bytes. 8. Note on Executing the User Program The set value is rewritten since the emulator uses flash memory registers during programming (Go, Step In, Step Out, or Step Over) of the flash memory. 9. MCU Operating Mode The emulator supports modes 4 and 5 (expanded mode with on-chip ROM disabled modes), mode 6 (expanded mode with on-chip ROM enabled mode), and mode 7 (single-chip mode). 10. Programming Flash Memory during Debugging The flash memory is programmed in the following functions because they use breakpoints: · When executing [Go to cursor] · When stepping over the subroutine · When executing the subroutine at step-out operation 11. Loading Sessions Information in [JTAG clock] of the [Configuration] dialog box cannot be saved by sessions. Thus the TCK value becomes the initial value when loading sessions. When HS0005KCU01H HS0005KCU01H or HS0005KCU02H HS0005KCU02H is used: TCK = 1.25 MHz 12. Note on Using the WDT If a reset occurs by an overflow of the WDT during user program halting, the emulator will not operate correctly. Do not use the reset function by the overflow of the WDT. 12 13. Value Set in the [System Clock] Dialog Box when Connecting the Emulator Input the frequency of the oscillator in use in the [System Clock] dialog box (this also applies when the MCU is multiplied by the PLL circuit). Figure 2.1 [System Clock] Dialog Box 13 2.2 The H8S/2339F H8S/2339F E10A-USB E10A-USB Emulator Specific Functions and Notes Notes: 1. Do not use an MCU that has been used for debugging. 2. 3. 2.2.1 If the flash memory is rewritten many times, and the emulator is left for a few days, data may be lost due to retention problems. 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. Emulator Driver Selection Table 2.2 shows drivers which can be selected in the [Driver Details] dialog box. Table 2.2 Type Name and Driver Type Name Driver HS0005KCU01H HS0005KCU01H, HS0005KCU02H HS0005KCU02H E7/E10 E7/E10 Emulator USB Driver 2.2.2 Hardware Break Functions Hardware Break Conditions: In the H8S/2339F H8S/2339F E10A-USB E10A-USB emulator, conditions of Break Condition 1,2 can be set. Table 2.3 lists the items that can be specified. Table 2.3 Hardware Break Condition Specification Items Items Description Address bus condition Breaks when the MCU address bus value matches the specified value. Data bus condition Breaks when the MCU data bus value matches the specified value. High or low byte or word can be specified as the access data size. Read or write condition Breaks in the read or write cycle. 14 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.5 Conditions Set by BREAKCONDITION_SET Command Condition Channel Break condition 1 Break condition 2 Address Bus Condition ( option) O O Data Condition ( option) O O Read or Write Condition ( option) O O Note: O: Can be set by the BREAKCONDITION_SET command. 15 Notes on Setting the Break Condition: 1. When [Step In], [Step Over], or [Step Out] is selected, the settings of Break Condition are disabled. 2. The settings of Break Condition are disabled when an instruction to which a BREAKPOINT has been set is executed. 3. When step over function is used, the settings of BREAKPOINT and Break Condition are disabled. 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 emulator program · An instruction in which Break Condition is satisfied 3. During step execution, a BREAKPOINT is disabled. 4. A condition set at Break Condition is disabled immediately after starting execution when an instruction at a BREAKPOINT is executed. A break does not occur even if a condition of Break Condition is satisfied immediately after starting the execution. 5. When execution resumes from the breakpoint address after the program execution stops at the BREAKPOINT, single-step execution is performed at the address before execution resumes. Therefore, realtime operation cannot be performed. 6. Settings of BREAKPOINT and Break Condition are invalid while the STEP OVER function is being used. 2.2.4 Note on Using the JTAG Clock (TCK) When the JTAG clock (TCK) is used, set the frequency to lower than that of the system clock. 2.2.5 Trace Function The emulator uses the branch-instruction trace function in the MCU, and acquires a trace by operating the user program in realtime. This function displays the four-channel branch-source address, the mnemonic, and the operand. 16 H8S Family E10A-USB E10A-USB Emulator Additional Document for User's Manual Supplementary Information on Using the H8S/2339EF H8S/2339EF, H8S/2329EF H8S/2329EF, and H8S/2319EF H8S/2319EF Publication Date: Rev.1.00, September 15, 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 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: (408) 382-7500, Fax: (408) 382-7501 Renesas Technology Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K. Tel: (1628) 585-100, Fax: (1628) 585-900 Renesas Technology Hong Kong Ltd. 7th Floor, North Tower, World Finance Centre, Harbour City, 1 Canton Road, Tsimshatsui, Kowloon, Hong Kong Tel: 2265-6688, Fax: 2730-6071 Renesas Technology Taiwan Co., Ltd. 10th Floor, No.99, Fushing North Road, Taipei, Taiwan Tel: (2) 2715-2888, Fax: (2) 2713-2999 Renesas Technology (Shanghai) Co., Ltd. Unit2607 Ruijing Building, No.205 Maoming Road (S), Shanghai 200020, China Tel: (21) 6472-1001, Fax: (21) 6415-2952 Renesas Technology Singapore Pte. Ltd. 1 Harbour Front Avenue, #06-10, Keppel Bay Tower, Singapore 098632 Tel: 6213-0200, Fax: 6278-8001 Colophon 2.0 H8S Family E10A-USB E10A-USB Emulator Additional Document for User's Manual