Renesas HS2378KCI01H User Manual

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 companies.
Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com) Send any inquiries to http://www.renesas.com/inquiry
Electronics Corporation took over all the business of both
Renesas Electronics website: http://www.renesas.com
st
, 2010
April 1 Renesas Electronics Corporation
.
Notice
1. 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. Also, please pay regular and careful attention to additional and different inform ation to be disclosed by Renesas Electronics such as that disclosed through our website.
2. Renesas Electronics does not assume any liability for infringement of patents, copyrig hts, or other intellectual property rights
of third parties by or arising from the use of Renesa s Electronics products or technical information described in this document. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others.
3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, w hether in whole or in part.
4. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsi bility for any losses incurred by you or third parties arising from the use of these circuits, software, or information.
5. When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You sho uld not use Renesas Electronics products or the technolog y described in this document for any purpose relating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and technology may not be used for or incorporate d into any products or systems whose manufac ture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations.
6. Renesas Electronics has used reasonable ca re in preparing the information included in this document, but Renesas Electronics
does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein.
7. Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular application. You may not use any Renesa s Electronics product for any application categorized as “Specific” without the prior written consent of Renesas Electronic s. Further, you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Spec ific” or for which the product is not intended where you have failed t o obtain the prior written consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise expressly specified in a Renesas Electronics data sheets or data books, etc.
“Standard”: Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-
“Specific”: Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
8. You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and othe r product characteristics. Renesas Elec tronics shall have no liability for malfunctions or damages arising out of the use of Renesa s Electronics products beyond such specified ranges.
9. Although Renesas Electronics endeavors to improve the quality and reliability of its products, se miconductor products have
specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further, Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measure s to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you.
10. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations.
11. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
equipment; home electronic applianc es; machine tools; personal electronic equipment; and industrial robots.
crime systems; safety equipment; and medical equipment not specifically designed for life support.
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life.
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 trouble may occur with them. T rouble 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 t he selection 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 an y third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in th ese 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 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 inaccuracies 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 evaluate all information as a total system before making a final decision on the applicability of the info rmation and products. Renesas Technology Corporation assumes no responsib ility 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 potentially at stake. Please 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, nuclear, 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.
User’s Manual
H8S/2378F E10A Emulator
User’s Manual
Rev.1.0 2002.10

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..................................................................................................81
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 sy stems 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, th rough 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 th e 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
Loading...
+ 140 hidden pages