Renesas HS2378KCM01H, H8S-2378F, HS2378KCI01H User Manual

To all our customers
Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp.
The semiconductor operations of Mitsubishi Electric and Hitachi were transferred to Renesas Technology Corporation on April 1st 2003. These operations include microcomputer, logic, analog and discrete devices, and memory chips other than DRAMs (flash memory, SRAMs etc.) Accordingly, although Hitachi, Hitachi, Ltd., Hitachi Semiconductors, and other Hitachi brand names are mentioned in the document, these names have in fact all been changed to Renesas Technology Corp. Thank you for your understanding. Except for our corporate trademark, logo and corporate statement, no changes whatsoever have been made to the contents of the document, and these changes do not constitute any alteration to the contents of the document itself.
Renesas Technology Home Page: http://www.renesas.com
Renesas Technology Corp. Customer Support Dept. April 1, 2003
Cautions
Keep safety first in your circuit designs!
1. Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is al ways the possibility that t rouble 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 th e sel ection of the Renesas Technology Corporation 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 Corporation or a third party.
2. Renesas Technology Corporation 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 materi als.
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 Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical i naccuracies or typographical errors. Renesas Technology Corporation 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 Corporation by various means, including the Renesas Technology Corporation 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 evaluat e al l information as a total system before making a final decision on the applicability of the information and products. Renesas Technology Corporation assumes no responsibility for any damage, liability or other loss resulting from the information contained herein.
5. Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is po t entially at stake. P l ease contact Renesas Technology Corporation or an authorized Renesas Technology Corporation 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, n uclear, or undersea repeater use.
6. The prior written approval of Renesas Technology Corporation 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 Corporation for further details on these materials or the products contained therein.
H8S/2378F E10A Emulator
User’s Manual
ADE-702-359
Rev. 1.0 10/18/02 Hitachi, Ltd.
HS2378KCM01HE

Cautions

1. Hitachi neither warrants nor grants licenses of any rights of Hitachi’s or any third party’s patent, copyright, trademark, or other intellectual property rights for information contained in this document. Hitachi bears no responsibility for problems that may arise with third party’s rights, including intellectual property rights, in connection with use of the information contained in this document.
2. Products and product specifications may be subject to change without notice. Confirm that you have received the latest product standards or specifications before final design, purchase or use.
3. Hitachi makes every attempt to ensure that its products are of high quality and reliability. However, contact Hitachi’s sales office before using the product in an application that demands especially high quality and reliability or where its failure or malfunction may directly threaten human life or cause risk of bodily injury, such as aerospace, aeronautics, nuclear power, combustion control, transportation, traffic, safety equipment or medical equipment for life support.
4. Design your application so that the product is used within the ranges guaranteed by Hitachi particularly for maximum rating, operating supply voltage range, heat radiation characteristics, installation conditions and other characteristics. Hitachi bears no responsibility for failure or damage when used beyond the guaranteed ranges. Even within the guaranteed ranges, consider normally foreseeable failure rates or failure modes in semiconductor devices and employ systemic measures such as fail-safes, so that the equipment incorporating Hitachi product does not cause bodily injury, fire or other consequential damage due to operation of the Hitachi product.
5. This product is not designed to be radiation resistant.
6. No one is permitted to reproduce or duplicate, in any form, the whole or part of this document without written approval from Hitachi.
7. Contact Hitachi’s sales office for any questions regarding this document or Hitachi semiconductor products.

IMPORTANT INFORMATION

READ FIRST
• READ this user's manual before using this emulator product.
• KEEP the user's manual handy for future reference.
Do not attempt to use the emula t or product until you fully understand its mechanism.
Emulator Product:
Throughout this document, the term "emulator product" shall be defined as the following products produced only by Hitachi, Ltd. excluding all subsidiary products.
• Emulator
• User system interface cable
The user system or a host computer is not included in this definition.
Purpose of the Emulator Product:
This emulator product is a software and hardware development tool for systems employing the Hitachi microcomputer. This emulator product must only be used for the above purpose.
Limited Applications:
This emulator product is not authorized for use in MEDICAL, atomic energy, aeronautical or space technology applications without consent of the appropriate officer of a Hitachi sales company. Such use includes, but is not limited to, use in life support systems. Buyers of this emulator product must notify the relevant Hitachi sales offices before planning to use the product in such applications.
Improvement Policy:
Hitachi, Ltd. (including its subsidiaries, hereafter collectively referred to as Hitachi) pursues a policy of continuing improvement in design, performance, and safety of the emulator product. Hitachi reserves the right to change, wholly or partially, the specifications, design, user's manual, and other documentation at any time without notice.
Target User of the Emulator Product:
This emulator product should only be used by those who have carefully read and thoroughly understood the information and restrictions contained in the user's manual. Do not attempt to use the emulator product until you fully understand its mechanism.
It is highly recommended that first-time users be instructed by users that are well versed in the operation of the emulator product.
I
LIMITED WARRANTY
Hitachi warrants its emulator products to be manufactured in accordance with published specifications and free from defects in material and/or workmanship. Hitachi, at its option, will replace any emulator products returned intact to the factory, transportation charges prepaid, which Hitachi, upon inspection, shall determine to be defective in material and/or workmanship. The foregoing shall constitute the sole remedy for any breach of Hitachi's warranty. See the Hitachi warranty booklet for details on the warranty period. This warranty extends only to you, the original Purchaser. It is not transferable to anyone who subsequently purchases the emulator product from you. Hitachi is not liable for any claim made by a third party or made by you for a third party.
DISCLAIMER
HITACHI MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, ORAL OR WRITTEN, EXCEPT AS PROVIDED HEREIN, INCLUDING WITHOUT LIMITATION THEREOF, WARRANTIES AS TO MARKETABILITY, MERCHANTABILITY, FITNESS FOR ANY PARTICULAR PURPOSE OR USE, OR AGAINST INFRINGEMENT OF ANY PATENT. IN NO EVENT SHALL HITACHI BE LIABLE FOR ANY DIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY NATURE, OR LOSSES OR EXPENSES RESULTING FROM ANY DEFECTIVE EMULATOR PRODUCT, THE USE OF ANY EMULATOR PRODUCT, OR ITS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. EXCEPT AS EXPRESSLY STATED OTHERWISE IN THIS WARRANTY, THIS EMULATOR PRODUCT IS SOLD "AS IS ", AND YOU MUST ASSUME ALL RISK FOR THE USE AND RESULTS OBTAINED FROM THE EMULATOR PRODUCT.
II
State Law:
Some states do not allow the exclusion or limitation of implied warranties or liability for incidental or consequential damages, so the above limitation or exclusion may not apply to you. This warranty gives you specific legal rights, and you may have other rights which may vary from state to state.
The Warranty is Void in the Following Cases:
Hitachi shall have no liability or legal responsibility for any problems caused by misuse, abuse, misapplication, neglect, improper handling, installation, repair or modifications of the emulator product without Hitachi's prior written consent or any problems caused by the user system.
All Rights Reserved:
This user's manual and emulator product are copyrighted and all rights are reserved by Hitachi. No part of this user's manual, all or part, may be reproduced or duplicated in any form, in hard­copy or machine-readable form, by any means available without Hitachi's prior written consent.
Other Important Things to Keep in Mind:
1. Circuitry and other examples described herein are meant merely to indicate the characteristics and performance of Hitachi's semiconductor products. Hitachi assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples described herein.
2. No license is granted by implication or otherwise under any patents or other rights of any third party or Hitachi.
Figures:
Some figures in this user's manual may show items different from your actual system.
MCU names:
This user’s manual uses H8S/xxxx as an example of the MCU names.
Limited Anticipation of Danger:
Hitachi cannot anticipate every possible circumstance that might involve a potential hazard. The warnings in this user's manual and on the emulator product are therefore not all inclusive. Therefore, you must use the emulator product safely at your own risk.
III

SAFETY PAGE

READ FIRST
• READ this user's manual before using this emulator product.
• KEEP the user's manual handy for future reference. Do not attempt to use the emula t or product until you fully understand its mechanism.
DEFINITION OF SIGNAL WORDS
This is the safety alert symbol. It is used to alert you to potential personal injury hazards. Obey all safety messages that follow this symbol to avoid possible injury or death.
DANGER
WARNING
CAUTION
CAUTION
NOTE
emphasizes essential information.
DANGER
avoided, will result in death or serious injury.
WARNING
avoided, could result in death or serious injury.
CAUTION
avoided, may result in minor or moderate injury.
CAUTION
potentially hazardous situation which, if not avoided, may result in property damage.
indicates an imminently hazardous situation which, if not
indicates a potentially hazardous situation which, if not
indicates a potentially hazardous situation which, if not
used without the safety alert symbol indicates a
IV
WARNING
Observe the precautions listed below. Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY. The USER PROGRAM will be LOST.
1. Do not repair or remodel the emulator product by
yourself for electric shock prevention and quality
assurance.
2. Always switch OFF the host computer and user system before connecting or disconnecting any CABLES or
PARTS.
3. Connect the connectors in the user system and in the user interface cable by confirming the correct direction.
4. If the E10A emulator PCMCIA and PCI cards are mounted on the same host computer, the connectors may be illegally connected.
V

Warnings on Emulator Usage

Be sure to read and understand the warnings below before using this emulator. Note that these are the main warnings, not the complete list.
WARNING
Always switch OFF the host computer and user system
before connecting or disconnecting any CABLES or PARTS.
Failure to do so will result in a FIRE HAZARD and will damage the user system and the emulator product or will result in PERSONAL INJURY. The USER PROGRAM will be LOST.
CAUTION
Place the host computer and user system so that no cable is bent or twisted. A bent or twisted cable will impose stress on the user interface leading to connection or contact failure.
Make sure that the host computer and the user system are placed in a secure position so that they do not move during use nor impose stress on the user interface.
VI
CAUTION
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instruction manual, may cause harmful interference to radio communications. Operation of this equipment in a residential area is likely to cause harmful interference in which case the user will be required to correct the interference at his own expense.
VII
VIII

Preface

Thank you for purchasing the E10A emulator.
CAUTION
READ section 2, Preparation before Use, of this User’s Manual before using the emulator product. Incorrect operation will damage the user system and the emulator product.
This emulator is an efficient development tool for software and hardware of user systems based on Hitachi’s original microprocessor. The emulator operates using the Hitachi debugging interface (hereafter referred to as the HDI), which is the interface program that runs on Microsoft Windows
98, Microsoft Windows
Me, Microsoft Windows NT, or Microsoft Windows
2000, operating system. This manual describes the functions and operating procedures of the E10A emulator. Sections 1 to
5 describe common features of all types of E10A emulators. Section 6 describes supplements to the E10A emulator.
This manual consists of six sections. The information contained in each section is summarized below:
Section 1, Overview, gives the emulator overview.
Section 2, Preparation before Use, gives instructions for first-time users, such as preparation
before use and system connection. Section 3, Tutorial, describes HDI operating examples.
Section 4, Descriptions of Windows, describes HDI windows for operating the emulator.
Section 5, Command-line Functions describes how to input HDI commands and command
types. Section 6, H8S/xxxx E10A Emulator Specifications describes the features of the E10A
emulator for each MCU. Section 7 describes the important information of the E10A emulator according to emulator products. Read these sections before using the E10A emulator.
The HDI installation disks are provided by the CD-R. Refer to the descriptions in the manuals of the host computer or operating system.
i
Related Manuals:
• Supplementary Informations
• Hitachi Debugging Interface User's Manual (HS6400DIIW5SE)
• H8S, H8/300 Series C/C++ Compiler, Assembler, Optimizing Linkage Editor User's Manual
• Hardware Manual for each MCU
• Programming Manual for each MCU
Notes: 1. IBM PC is a registered trademark of International Business Machines
Corporation.
2. Microsoft Microsoft Corporation in the United States and/or other countries. Microsoft user's manual. Microsoft Windows Microsoft this user's manual. Microsoft
®
, Windows®, and Windows NT® are registered trademarks of
®
Windows® 98 operating system is referred to as Windows® 98 in this
®
Windows® Millennium Edition operating system is referred to as
®
Me in this user's manual.
®
Windows NT® operating system is referred to as Windows NT® in
®
Windows® 2000 operating system is referred to as Windows® 2000 in
this user's manual.
ii

Contents

Section 1 Overview........................................................................................... 1
1.1 Warnings...........................................................................................................................3
1.2 Environmental Conditions ................................................................................................4
1.3 Components ......................................................................................................................6
Section 2 Preparation before Use....................................................................... 7
2.1 Emulator Preparation ........................................................................................................7
2.2 HDI Installation.................................................................................................................8
2.2.1 Installing under Windows
2.2.2 Installing under Windows NT
2.2.3 Installing under Windows
2.3 Connecting the Host Computer with the Card Emulator ..................................................11
2.4 Connecting the Card Emulator with the User System.......................................................12
2.5 System Check....................................................................................................................14
2.5.1 H8S/xxxx E10A Emulator Mode...........................................................................17
2.5.2 Writing H8S/xxxx E10A Flash memory Mode......................................................20
2.6 Ending the HDI.................................................................................................................23
2.7 Uninstalling the HDI.........................................................................................................24
Section 3 Tutorial............................................................................................... 25
3.1 Introduction.......................................................................................................................25
3.2 Running the HDI...............................................................................................................26
3.3 [HDI] Window..................................................................................................................27
3.4 Setting up the Emulator.....................................................................................................28
3.5 Setting the [Configuration] Dialog Box............................................................................28
3.6 Downloading the Tutorial Program ..................................................................................30
3.6.1 Downloading the Tutorial Program .....................................................................30
3.6.2 Displaying the Source Program ...........................................................................31
3.7 Setting the Software Breakpoint.......................................................................................33
3.8 Setting Registers ...............................................................................................................34
3.9 Executing the Program......................................................................................................36
3.10 Reviewing Breakpoints.....................................................................................................39
3.11 Viewing Memory..............................................................................................................40
3.12 Watching Variables...........................................................................................................41
3.13 Stepping Through a Program............................................................................................44
3.13.1 Executing [Step In] Command.............................................................................45
3.13.2 Executing [Step Out] Command..........................................................................46
3.13.3 Executing [Step Over] Command........................................................................48
3.14 Displaying Local Variables...............................................................................................50
98 and Windows
4.0 Operating System.........................................9
2000 Operating System ............................................10
Me Operating Systems................8
iii
3.15 Break Function..................................................................................................................51
3.15.1 Software Break Function .....................................................................................51
3.16 Hardware Break Function.................................................................................................57
3.17 Trace Function..................................................................................................................64
3.18 What Next? .......................................................................................................................65
Section 4 Descriptions of Windows....................................................................67
4.1 HDI Windows...................................................................................................................67
4.2 Descriptions of Each Window..........................................................................................70
4.2.1 [Configuration] Dialog Box.................................................................................70
4.2.2 [E10A Driver Details] Dialog Box ......................................................................75
4.2.3 [Breakpoints] Window.........................................................................................76
4.2.4 [Break] Dialog Box..............................................................................................78
4.2.5 [Breakpoint] Dialog Box .....................................................................................84
4.2.6 [Break condition] Dialog Box..............................................................................86
4.2.7 [Break condition] Dialog Box Pages ...................................................................88
4.2.8 [Trace] Window...................................................................................................92
4.2.9 [System Status] Window......................................................................................94
Section 5 Command-line Functions....................................................................97
5.1 Table and Symbol Description..........................................................................................97
5.1.1 Format.................................................................................................................. 97
5.1.2 Parameter Input....................................................................................................97
5.1.3 Examples..............................................................................................................98
5.1.4 Related Items .......................................................................................................98
5.2 Command Descriptions.....................................................................................................99
5.2.1 BREAKCONDITION_CLEAR: BCC.................................................................100
5.2.2 BREAKCONDITION_DISPLAY: BCD.............................................................101
5.2.3 BREAKCONDITION_ENABLE: BCE ..............................................................102
5.2.4 BREAKCONDITION_SET: BCS.......................................................................103
5.2.5 BREAKPOINT: BP.............................................................................................106
5.2.6 BREAKPOINT_CLEAR: BC.............................................................................. 107
5.2.7 BREAKPOINT_DISPLAY: BD..........................................................................108
5.2.8 BREAKPOINT_ENABLE: BE ...........................................................................109
5.2.9 DEVICE_TYPE: DE ...........................................................................................110
5.2.10 GO_OPTION: GP................................................................................................111
5.2.11 JTAG_CLOCK: JCK...........................................................................................112
5.2.12 REFRESH: RF.....................................................................................................114
5.2.13 RESET: RE..........................................................................................................115
5.2.14 STATUS: STS .....................................................................................................116
5.2.15 STEP_INTERRUPT: SI.......................................................................................117
5.2.16 TRACE_DISPLAY: TD......................................................................................118
iv
Section 6 H8S/2378F E10A Emulator Specifications........................................ 119
6.1 Overview of the Emulator.................................................................................................119
6.2 Pin Arrangement of the Hitachi-UDI Port Connector.......................................................120
6.3 Differences between the MCUs and the Emulator............................................................125
6.4 The H8S/2378F E10A Emulator Functions......................................................................126
6.4.1 Emulator Driver Selection ...................................................................................126
6.4.2 Hardware Break Functions...................................................................................126
6.4.3 Notes on Setting the [Breakpoint] Dialog Box ....................................................128
6.4.4 Trace Function.....................................................................................................129
6.4.5 Notes on HDI.......................................................................................................140
v

Figures

Figure 1.1 System Configuration with the Emulator (PCMCIA Card Emulator Used) ............1
Figure 1.2 System Configuration with the Emulator (PCI Card Emulator Used) .....................2
Figure 2.1 Emulator Preparation Flow Chart.............................................................................7
Figure 2.2 Inserting the PCMCIA Card Emulator into the Host Computer...............................11
Figure 2.3 Inserting the PCI Card Emulator into the Host Computer........................................11
Figure 2.4 Connecting the User System Interface Cable to the User System............................12
Figure 2.5 [Start] Menu .............................................................................................................14
Figure 2.6 [Select Session] Dialog Box.....................................................................................15
Figure 2.7 [E10A Driver Details] Dialog Box...........................................................................16
Figure 2.8 [System Clock] Dialog Box .....................................................................................17
Figure 2.9 [ID Code] Dialog Box..............................................................................................17
Figure 2.10 [HDI] Status Bar.....................................................................................................17
Figure 2.11 [H-UDI Connector Disconnected] Dialog Box...................................................... 18
Figure 2.12 [Can not find /RESET signal] Dialog Box.............................................................18
Figure 2.13 [Check the connection] Dialog Box.......................................................................19
Figure 2.14 [COMMUNICATION TIMEOUT ERROR] Dialog Box......................................19
Figure 2.15 [INVALID ASERAM FIRMWARE!] Dialog Box................................................19
Figure 2.16 [Unable to restore the previous driver settings] Dialog Box..................................20
Figure 2.17 [System Clock] Dialog Box ...................................................................................20
Figure 2.18 [Load Program] Dialog Box...................................................................................21
Figure 2.19 Checksum Value after Downloading the Program.................................................21
Figure 2.20 [HDI] Dialog Box...................................................................................................21
Figure 2.21 [Continue?] Window..............................................................................................22
Figure 2.22 [Connector disconnected] Dialog Box...................................................................22
Figure 2.23 [Flash memory erase error!] Dialog Box ...............................................................22
Figure 2.24 [Exit HDI] Dialog Box...........................................................................................23
Figure 2.25 [Save session] Dialog Box .....................................................................................23
Figure 3.1 [Start] Menu .............................................................................................................26
Figure 3.2 [HDI] Window.........................................................................................................27
Figure 3.3 [Configuration] Dialog Box.....................................................................................28
Figure 3.4 [Load Program] Dialog Box.....................................................................................30
Figure 3.5 [HDI] Dialog Box.....................................................................................................30
Figure 3.6 [Open] Dialog Box...................................................................................................31
Figure 3.7 [Program] Window (Displaying the Source Program).............................................32
Figure 3.8 [Program] Window (Setting a Software Breakpoint)...............................................33
Figure 3.9 [Registers] Window..................................................................................................34
Figure 3.10 [Register] Dialog Box (PC)....................................................................................34
Figure 3.11 [Register] Dialog Box (ER7)..................................................................................35
Figure 3.12 [Go] Button ............................................................................................................36
Figure 3.13 [Reset Go] Button...................................................................................................36
vi
Figure 3.14 [Program] Window (Break Status).........................................................................36
Figure 3.15 [System Status] Window........................................................................................37
Figure 3.16 [Breakpoints] Window...........................................................................................39
Figure 3.17 [Open Memory Window] Dialog Box....................................................................40
Figure 3.18 [Memory] Window.................................................................................................40
Figure 3.19 [Instant Watch] Dialog Box....................................................................................41
Figure 3.20 [Watch] Window (Displaying the Array)...............................................................42
Figure 3.21 [Add Watch] Dialog Box .......................................................................................42
Figure 3.22 [Watch] Window (Displaying the Variable) ..........................................................43
Figure 3.23 [Watch] Window (Displaying Array Elements).....................................................43
Figure 3.24 [Step In] Button......................................................................................................45
Figure 3.25 [Program] Window (Step In)..................................................................................45
Figure 3.26 [Step Out] Button ...................................................................................................46
Figure 3.27 [Program] Window (Step Out)...............................................................................46
Figure 3.28 [Program] Window (Step In −> Step In)................................................................47
Figure 3.29 [Program] Window (Before Step Over Execution)................................................48
Figure 3.30 [Step Over] Button .................................................................................................48
Figure 3.31 [Program] Window (Step Over).............................................................................49
Figure 3.32 [Locals] Window....................................................................................................50
Figure 3.33 [Breakpoints] Window (Before Software Breakpoint Setting)...............................51
Figure 3.34 [Point] Page ([Break] Dialog Box).........................................................................52
Figure 3.35 [Breakpoint] Dialog Box........................................................................................53
Figure 3.36 [Point] Page ([Break] Dialog Box) (After Software Breakpoint Setting) ..............54
Figure 3.37 [Breakpoints] Window (Software Breakpoint Setting)..........................................55
Figure 3.38 [Program] Window at Execution Stop (Software Break).......................................55
Figure 3.39 Displayed Contents of the [System Status] Window (Software Break).................56
Figure 3.40 [Breakpoints] Window (Before Hardware Break Condition Setting) ....................57
Figure 3.41 [Condition] Page ([Break] Dialog Box)................................................................. 5 8
Figure 3.42 [condition] Page ([Break condition 1] Dialog Box)...............................................59
Figure 3.43 [Break] Dialog Box (After Hardware Break Condition Setting)............................60
Figure 3.44 [Breakpoints] Window ([Break condition 1] Setting)............................................61
Figure 3.45 [Program] Window at Execution Stop (Break condition 1)...................................62
Figure 3.46 Displayed Contents of the [System Status] Window (Break condition 1)..............63
Figure 3.47 [Trace] Window .....................................................................................................64
Figure 4.1 [Configuration] Dialog Box .....................................................................................70
Figure 4.2 [General] Page ([Configuration] Dialog Box)..........................................................72
Figure 4.3 Warning Message Box .............................................................................................74
Figure 4.4 [E10A Driver Details] Dialog Box ...........................................................................75
Figure 4.5 [Breakpoints] Window.............................................................................................76
Figure 4.6 [Break] Dialog Box..................................................................................................78
Figure 4.7 [Point] Page ([Break] Dialog Box)...........................................................................80
Figure 4.8 [Condition] Page ([Break] Dialog Box)................................................................... 82
Figure 4.9 [Breakpoint] Dialog Box..........................................................................................84
vii
Figure 4.10 [Break condition 1] Dialog Box.............................................................................86
Figure 4.11 [condition] Page.....................................................................................................89
Figure 4.12 [Trace] Window.....................................................................................................92
Figure 4.13 [System Status] Window........................................................................................ 94
Figure 6.1 Pin Arrangement of the Hitachi-UDI Port Connector..............................................120
Figure 6.2 Example of Emulator Connection............................................................................121
Figure 6.3 Connection of Emulator...........................................................................................122
Figure 6.4 EMLE Pin and Emulator..........................................................................................122
Figure 6.5 Connection of #RES Pin ..........................................................................................123
Figure 6.6 Interface Circuit in the Emulator (Reference Figure)...............................................123
viii

Tables

Table 1.1 Environmental Conditions.........................................................................................4
Table 1.2 Operating Environments............................................................................................5
Table 2.1 Recommended Connector..........................................................................................12
Table 3.1 Tutorial Program: Configuration and Parts ...............................................................25
Table 3.2 Setting the [Configuration] Dialog Box.....................................................................29
Table 3.3 Contents of the [System Status] Window..................................................................38
Table 3.4 Step Option................................................................................................................44
Table 4.1 HDI Window Menus and Related Manual Entries....................................................67
Table 4.2 [Configuration] Dialog Box Page..............................................................................71
Table 4.3 [General] Page Options..............................................................................................73
Table 4.4 [E10A Driver Details] Dialog Box Option................................................................75
Table 4.5 [Breakpoints] Window Display Items.......................................................................77
Table 4.6 [Breakpoints] Window Pop-up Menu Operation.......................................................77
Table 4.7 [Break] Dialog Box Pages.........................................................................................79
Table 4.8 [Point] Page Options..................................................................................................8 1
Table 4.9 [Condition] Page Options..........................................................................................83
Table 4.10 [Address] Page Options...........................................................................................85
Table 4.11 Setting Conditions in [Break condition] Dialog Box...............................................88
Table 4.12 [Break condition] Dialog Box Pages....................................................................... 88
Table 4.13 [Address] Group Box Options.................................................................................90
Table 4.14 Radio Button Options..............................................................................................90
Table 4.15 [Data] Group Box Options.......................................................................................90
Table 4.16 [Read/Write] Group Box Options............................................................................91
Table 4.17 [Trace] Window Display Items................................................................................93
Table 4.18 [System Status] Window Display Items ..................................................................95
Table 5.1 E10A HDI Commands...............................................................................................99
Table 5.2 BREAKCONDITION_CLEAR Command Parameter..............................................100
Table 5.3 BREAKCONDITION_DISPLAY Command Parameter ..........................................101
Table 5.4 BREAKCONDITION_ENABLE Command Parameter ...........................................102
Table 5.5 BREAKCONDITION_SET Command Parameters ..................................................104
Table 5.6 BREAKPOINT Command Parameter .......................................................................106
Table 5.7 BREAKPOINT_CLEAR Command Parameter ........................................................107
Table 5.8 BREAKPOINT_DISPLAY Command Parameter.....................................................108
Table 5.9 BREAKPOINT_ENABLE Command Parameters....................................................109
Table 5.10 DEVICE_TYPE Command Parameter....................................................................110
Table 5.11 GO_OPTION Command Parameter........................................................................111
Table 5.12 JTAG_CLOCK Command Parameter .....................................................................112
Table 5.13 REFRESH Command Parameter.............................................................................114
Table 5.14 RESET Command Parameter ..................................................................................115
Table 5.15 STATUS Command Parameter ...............................................................................116
Table 5.16 STEP_INTERRUPT Command Parameter .............................................................117
ix
Table 5.17 TRACE_DISPLAY Command Parameter...............................................................118
Table 6.1 Components of the Emulator (HS2378KCM01H or HS2378KCI01H)....................119
Table 6.2 Unavailable Pin Functions.........................................................................................124
Table 6.3 Register Initial Values at Emulator Power-On ..........................................................125
Table 6.4 Type Name and Driver..............................................................................................126
Table 6.5 Hardware Break Condition Specification Items........................................................126
Table 6.6 Conditions Set in [Break condition] Dialog Box.......................................................127
Table 6.7 Conditions Set by BREAKCONDITION_SET Command........................................127
Table 6.8 Setting Trace Acquisition..........................................................................................129
Table 6.9 Items in the [Trace] Window ..................................................................................... 130
Table 6.10 Trace Search Function.............................................................................................131
Table 6.11 [Address] Group Box Options................................................................................. 131
Table 6.12 [Data] Group Box Options ......................................................................................131
Table 6.13 [Bus status] Group Box Options..............................................................................132
Table 6.14 [Area] Group Box Options......................................................................................132
Table 6.15 [Read/Write] Group Box Options............................................................................132
Table 6.16 [IRQ] Group Box Options.......................................................................................132
Table 6.17 Commands for the Trace Function..........................................................................133
Table 6.18 TRACE_DISPLAY Command Parameter...............................................................133
Table 6.19 TRACE_MODE Command Parameter....................................................................135
Table 6.20 TRACE_SEARCH Command Parameter................................................................138
x

Section 1 Overview

The E10A emulator (hereafter referred to as the emulator) is a software and hardware development support tool for application systems using the microprocessor developed by Hitachi, Ltd.
The PCMCIA card emulator or PCI card emulator (hereafter referred to as the card emulator), which is the main unit of the emulator, is connected, through the Hitachi-UDI (user debug interface) port to the actual application conditions. The emulator enables debugging anywhere indoors or out. The host computer for controlling the emulator must be an IBM PC compatible machine with a PCMCIA type II or PCI slot.
Figures 1.1 and 1.2 show the system configuration using the emulator.
Note: The Hitachi-UDI is an interface compatible with the Joint Test Action Group
*
, to the user system. The user system can be debugged under the conditions similar
(JTAG) specifications.
Host computer (PC with PCMCIA TYPE II slot)
PCMCIA card emulator
PC
PC
Card
Insert into the PCMCIA TYPE II slot
Connect to the Hitachi-UDI port connector
User system interface cable
H8S/xxxx
User system
Figure 1.1 System Configuration with the Emulator (PCMCIA Card Emulator Used)
1
User system interface cable
PCI card emulator
H8S/xxxx
Insert into the PCI slot
User system
Host computer (PC with PCI slot)
Figure 1.2 System Configuration with the Emulator (PCI Card Emulator Used)
The emulator provides the following features:
• Excellent cost-performance card emulator
Compactness and low price are implemented using the PCMCIA interface or the PCI interface.
• Realtime emulation
Realtime emulation of the user system is enabled at the m aximum operating frequency of the CPU.
• Excellent operability
Using the Hitachi Debugging Interface (HDI) on the Microsoft
®
Windows® 98, Microsoft Windows® Me, Microsoft® Windows NT®, and Microsoft® Windows® 2000 operating systems enable user program debugging using a pointing device such as a mouse. The HDI enables high-speed downloading of load module files.
• Various debugging functions
Various break and trace functions enable efficient debugging. Breakpoints and break conditions can be set by the specific window, trace information can be displayed on a window, and command-line functions can be used.
• Memory access during emulation
During emulation, the memory contents can be read and modified.
• Debugging of the user system in the final development stage
The user system can be debugged under conditions similar to the actual application conditions.
• Compact debugging environment
When the card emulator specific to the PCMCIA interface is used, a laptop computer can be used as a host computer, creating a debugging environment in any place.
®
2

1.1 Warnings

CAUTION
READ the following warnings before using the emulator product. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST.
1. Check all components against the component list after unpacking the emulator.
2. Never place heavy objects on the casing.
3. Protect the emulator from excessive impacts and stresses. For details, refer to section 1.2, Environmental Conditions.
4. Do not insert the emulator into any slot (PCMCIA TYPE II slot or PCI slot) other than the specified one.
5. When moving the host computer or user system, take care not to vibrate or damage it.
6. After connecting the cable, check that it is connected correctly. For details, refer to section 2, Preparation before Use.
7. Supply power to the connected equipment after connecting all cables. Cables must not be connected or removed while the power is on.
3

1.2 Environmental Conditions

CAUTION
Observe the conditions listed in tables 1.1 and 1.2 when using the emulator. Failure to do so will damage the user system and the emulator product. The USER PROGRAM will be LOST.
Table 1.1 Environmental Conditions
Item Specifications
Temperature Operating: +10°C to +35°C
Storage: –10°C to +50°C
Humidity Operating: 35% RH to 80% RH, no condensation
Storage: 35% RH to 80% RH, no condensation
Vibration Operating: 2.45 m/s2 max.
Storage: 4.9 m/s Transportation: 14.7 m/s
Ambient gases There must be no corrosive gases present
Table 1.2 lists the acceptable operating environments.
2
max.
2
max.
4
Table 1.2 Operating Environments
Item Description
Host computer Built-in Pentium or higher-performance CPU (200 MHz or higher
recommended); IBM PC or compatible machine with the PCMCIA
TYPE II slot or the PCI slot. OS Windows® 98, Windows® Me, Windows NT®, or Windows® 2000 Minimum memory
capacity Hard-disk capacity Installation disk capacity: 10 Mbytes or more. (Prepare an area at
Pointing device such as mouse
Power voltage 5.0 ± 0.25 V Current consumption HS0005KCM05H: 60 mA (max)
CD-ROM drive Required to install the emulator or refer to the emulator user’s manual.
32 Mbytes or more (double of the load module size recommended)
least double the memory capacity (four-times or more recommended)
as the swap area.)
Connectable to the host computer; compatible with Windows® 98,
Windows
®
Me, Windows NT®, and Windows® 2000.
HS0005KCI05H: 55 mA (max)
5

1.3 Components

Check all the components unpacking. For details on the E10A emulator components, refer to section 6.1, Components of the Emulator. If the components are not complete, contact a Hitachi sales agency.
6

Section 2 Preparation before Use

2.1 Emulator Preparation

WARNING
READ the reference sections shaded in figure 2.1 before using the emulator product. Incorrect operation will damage the user system and the emulator product. The USER PROGRAM will be LOST.
Unpack the emulator and prepare it for use as follows:
Reference
Unpack the emulator
Check the components against the component list
Turn on the host computer
Install the HDI
Turn off the host computer
Insert the card emulator into the host computer and connect the emulator to the user system
Turn on the host computer
Start the HDI
Turn on the user system
Figure 2.1 Emulator Preparation Flow Chart
Component list
Section 2.2
Section 2.3
Section 3
When the emulator is used first.
When the emulator is used for second time or later.
7

2.2 HDI Installation

When the CD-R is inserted in the host computer’s CD-ROM d r ive, the HDI installation wizard is automatically activated (holding the Shift key down while the CD-R is inserted cancels this automatic activation). To run the installation wizard when it has not been automatically activated, execute Setup.exe from the root directory of the CD-R.
Follow the cues given by the in stallation wizard to install the HDI.
Since hardware settings are also made during installation, the installation procedure differs according to the operating system or interface (PCI or PCMCIA) being used. Follow the installation steps carefully according to the environment you are using.
2.2.1 Installing under Windows
98 and Windows
Me Operating Systems
(1) When the emulator is a PCI card:
1. Install the HDI (when the component type has to be selected during installation, be sure to select [PCI Card Driver]).
2. Shut the operating system down and turn off the power to the host computer.
3. Insert the PCI-card emulator in a slot on the host computer. Refer to section 2.3, Connecting the Host Computer with the Card Emulator.
4. Restart the host computer. The hardware is now recognized and the driver is automatically installed.*
(2) When the emulator is a PCMCIA card:
1. Install the HDI (when the component type has to be selected during installation, be sure to select [PC Card Driver (PCMCIA)]).
2. Insert the PCMCIA-card emulator in the host computer’s slot. Refer to section 2.3, Connecting the Host Computer with the Card Emulator.
3. The hardware is now recognized and the driver is automatically installed.*
Note: When [Add New Hardware Wizard] is displayed, select the [Search for the best driver for
your device. (Recommended)] radio button and then the [Specify a location] check box to select the path to be searched for drivers. The location must be specified according to the emulator type, as indicated below: When using the PCI-card emulator: <Drive>:\DRIVERS\PCI\95 When using the PCMCIA-card emulator: <Drive>:\DRIVERS\PCMCIA\95 (<Drive> is the CD-ROM drive name.)
8
Loading...
+ 138 hidden pages