User's Manual IE-780354-NS-EM1 Emulation Board Target Devices PD780344 Subseries PD780354 Subseries PD780344Y Subseries PD780354Y Subseries Document No. U16473EJ1V0UM00 (1st edition) Date Published March 2003 N CP(K) (c) Printed in Japan [MEMO] 2 User's Manual U16473EJ1V0UM Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. PC/AT is a trademark of International Business Machines Corporation. * The information in this document is current as of November, 2002. The information is subject to change without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or data books, etc., for the most up-to-date specifications of NEC Electronics products. Not all products and/or types are available in every country. Please check with an NEC Electronics sales representative for availability and additional information. * No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics. NEC Electronics assumes no responsibility for any errors that may appear in this document. * NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics or others. * Descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. The incorporation of these circuits, software and information in the design of a customer's equipment shall be done under the full responsibility of the customer. NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. * While NEC Electronics endeavors to enhance the quality, reliability and safety of NEC Electronics products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. To minimize risks of damage to property or injury (including death) to persons arising from defects in NEC Electronics products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment and anti-failure features. * NEC Electronics products are classified into the following three quality grades: "Standard", "Special" and "Specific". The "Specific" quality grade applies only to NEC Electronics products developed based on a customerdesignated "quality assurance program" for a specific application. The recommended applications of an NEC Electronics product depend on its quality grade, as indicated below. Customers must check the quality grade of each NEC Electronics product before using it in a particular application. "Standard": Computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots. "Special": Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support). "Specific": Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc. The quality grade of NEC Electronics products is "Standard" unless otherwise expressly specified in NEC Electronics data sheets or data books, etc. If customers wish to use NEC Electronics products in applications not intended by NEC Electronics, they must contact an NEC Electronics sales representative in advance to determine NEC Electronics' willingness to support a given application. (Note) (1) "NEC Electronics" as used in this statement means NEC Electronics Corporation and also includes its majority-owned subsidiaries. (2) "NEC Electronics products" means any product developed or manufactured by or for NEC Electronics (as defined above). M8E 02. 11-1 User's Manual U16473EJ1V0UM 3 Regional Information Some information contained in this document may vary from country to country. Before using any NEC Electronics product in your application, pIease contact the NEC Electronics office in your country to obtain a list of authorized representatives and distributors. They will verify: * Device availability * Ordering information * Product release schedule * Availability of related technical literature * Development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, AC supply voltages, and so forth) * Network requirements In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. NEC Electronics America, Inc. (U.S.) Santa Clara, California Tel: 408-588-6000 800-366-9782 Fax: 408-588-6130 800-729-9288 NEC Electronics (Europe) GmbH Duesseldorf, Germany Tel: 0211-65 03 01 Fax: 0211-65 03 327 * Sucursal en Espana Madrid, Spain Tel: 091-504 27 87 Fax: 091-504 28 60 * Succursale Francaise Velizy-Villacoublay, France Tel: 01-30-67 58 00 Fax: 01-30-67 58 99 * Filiale Italiana Milano, Italy Tel: 02-66 75 41 Fax: 02-66 75 42 99 NEC Electronics Hong Kong Ltd. * Branch The Netherlands Eindhoven, The Netherlands Tel: 040-244 58 45 Fax: 040-244 45 80 NEC Electronics Hong Kong Ltd. Hong Kong Tel: 2886-9318 Fax: 2886-9022/9044 Seoul Branch Seoul, Korea Tel: 02-528-0303 Fax: 02-528-4411 * Tyskland Filial Taeby, Sweden Tel: 08-63 80 820 Fax: 08-63 80 388 NEC Electronics Shanghai, Ltd. * United Kingdom Branch Milton Keynes, UK Tel: 01908-691-133 Fax: 01908-670-290 NEC Electronics Taiwan Ltd. Shanghai, P.R. China Tel: 021-6841-1138 Fax: 021-6841-1137 Taipei, Taiwan Tel: 02-2719-2377 Fax: 02-2719-5951 NEC Electronics Singapore Pte. Ltd. Novena Square, Singapore Tel: 6253-8311 Fax: 6250-3583 J02.11 4 User's Manual U16473EJ1V0UM INTRODUCTION Product Overview The IE-780354-NS-EM1 is designed to be used with the IE-78K0-NS or IE-78K0-NS-A to debug the following target devices that belong to the 78K/0 Series of 8-bit single-chip microcontrollers. * PD780344 Subseries: PD780343, 780344 * PD780354 Subseries: PD780353, 780354, 78F0354 * PD780344Y Subseries: PD780343Y, 780344Y * PD780354Y Subseries: PD780353Y, 780354Y, 78F0354Y Target Readers This manual is intended for engineers who will use the IE-780354-NS-EM1 with the IE78K0-NS or IE-78K0-NS-A to perform system debugging. Engineers who use this manual are expected to be thoroughly familiar with the target device's functions and use methods and to be knowledgeable about debugging. Organization When using the IE-780354-NS-EM1, refer to not only this manual (supplied with the IE780354-NS-EM1) but also the manual that is supplied with the IE-78K0-NS or IE-78K0NS-A. IE-78K0-NS IE-780354-NS-EM1 User's Manual User's Manual * Basic specifications * General * System configuration * Part names * External interface functions * Installation * Differences between target devices and target interface circuits IE-78K0-NS-A * Cautions User's Manual * Basic specifications * System configuration * External interface functions Purpose This manual's purpose is to explain various debugging functions that can be performed when using the IE-780354-NS-EM1. User's Manual U16473EJ1V0UM 5 Terminology The meanings of certain terms used in this manual are listed below. Term Meaning Emulation device This is a general term that refers to the device in the emulator that is used to emulate the target device. It includes the emulation CPU. Emulation CPU This is the CPU block in the emulator that is used to execute user-generated programs. Target device This is the device to be emulated. Target system This includes the target program and the hardware provided by the user. When defined narrowly, it includes only the hardware. IE system This refers to the combination of the in-circuit emulator (IE-78K0-NS or IE-78K0-NS-A) and the emulation board (IE-780354-NS-EM1). Conventions Related Documents Data significance: Higher digits on the left and lower digits on the right Note: Footnote for item marked with Note in the text Caution: Information requiring particular attention Remark: Supplementary information The related documents (user's manuals) indicated in this publication may include preliminary versions. However, preliminary versions are not marked as such. Document Name IE-78K0-NS In-Circuit Emulator U14379E IE-78K0-NS-A In-Circuit Emulator U14889E IE-780354-NS-EM1 Emulation Board This manual ID78K Series Integrated Debugger Ver. 2.30 or Later Operation WindowsTM Based U15185E PD780344, 780354, 780344Y, 780354Y Subseries U15798E Caution The documents listed above are subject to change without notice. Be sure to use the latest documents when designing. 6 Document Number User's Manual U16473EJ1V0UM CONTENTS CHAPTER 1 GENERAL............................................................................................................................10 1.1 System Configuration................................................................................................................................ 11 1.2 Hardware Configuration ............................................................................................................................ 13 1.3 Basic Specifications .................................................................................................................................. 14 CHAPTER 2 PART NAMES ....................................................................................................................15 2.1 Parts of Main Unit ...................................................................................................................................... 16 CHAPTER 3 INSTALLATION...................................................................................................................17 3.1 Connection ................................................................................................................................................. 18 3.2 Clock Settings ............................................................................................................................................ 19 3.2.1 Overview of clock settings ............................................................................................................. 19 3.2.2 Main system clock settings ............................................................................................................ 22 3.2.3 Subsystem clock settings .............................................................................................................. 26 3.3 Mask Option Settings ................................................................................................................................ 29 3.4 External Trigger ......................................................................................................................................... 30 3.3.1 LCD Step-up circuit........................................................................................................................ 29 3.5 Jumper Setting of IE-78K0-NS .................................................................................................................. 31 3.6 Jumper Setting of IE-78K0-NS-A .............................................................................................................. 31 CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICE AND TARGET INTERFACE CIRCUIT.....32 CHAPTER 5 PRECAUTIONS ...................................................................................................................36 APPENDIX A EMULATION PROBE PIN ASSIGNMENT TABLE ........................................................37 APPENDIX B CAUTIONS ON DESIGNING TARGET SYSTEM .........................................................41 User's Manual U16473EJ1V0UM 7 LIST OF FIGURES Figure No. Title Page 1-1 System Configuration ....................................................................................................................................... 11 1-2 Basic Hardware Configuration (When IE-78K0-NS Is Used) ............................................................................ 13 1-3 Basic Hardware Configuration (When IE-78K0-NS-A Is Used) ........................................................................ 13 2-1 IE-780354-NS-EM1 Part Names....................................................................................................................... 16 3-1 Connection of Emulation Probe ........................................................................................................................ 18 3-2 External Circuits Used as System Clock Oscillator .......................................................................................... 19 3-3 When Using Clock That Is Already Mounted on Emulation Board (Main System Clock) ................................. 20 3-4 When Using Clock That Is Already Mounted on Emulation Board (Subsystem Clock) .................................... 20 3-5 When Using User-Mounted Clock (Main System Clock) .................................................................................. 21 3-6 When Using User-Mounted Clock (Subsystem Clock) ..................................................................................... 21 3-7 When Supplying Pulse from Target System ..................................................................................................... 22 3-8 Connections on Parts Board (Main System Clock)........................................................................................... 23 3-9 Crystal Oscillator (Main System Clock) ............................................................................................................ 24 3-10 Pin Alignment of Crystal Oscillator and Socket (Main System Clock) .............................................................. 25 3-11 Connections on Parts Board (Subsystem Clock).............................................................................................. 27 3-12 Crystal Oscillator (Subsystem Clock) ............................................................................................................... 28 3-13 Pin Alignment of Crystal Oscillator and Socket (Subsystem Clock) ................................................................. 28 3-14 LCD MOPT Socket (RC1)................................................................................................................................. 29 3-15 External Trigger Input Position ......................................................................................................................... 30 4-1 Equivalent Circuit 1 of Emulation Circuit........................................................................................................... 33 4-2 Equivalent Circuit 2 of Emulation Circuit........................................................................................................... 34 4-3 Equivalent Circuit 3 of Emulation Circuit........................................................................................................... 35 4-4 Equivalent Circuit 4 of Emulation Circuit........................................................................................................... 35 B-1 Distance Between In-Circuit Emulator and Conversion Adapter (When 100GC Is Used) ................................ 41 B-2 Connection Conditions of Target System (When NP-100GC Is Used)............................................................. 42 B-3 Connection Conditions of Target System (When NP-H100GC-TQ Is Used) .................................................... 42 B-4 Distance Between In-Circuit Emulator and Conversion Adapter (When NP-113F1-DA3 Is Used) ................... 43 B-5 Connection Conditions of Target System (When NP-113F1-DA3 Is Used)...................................................... 43 8 User's Manual U16473EJ1V0UM LIST OF TABLES Table No Title Page 1-1 Correspondence Between Emulation Probes and Conversion Adapters ..........................................................12 1-2 Basic Specifications ..........................................................................................................................................14 3-1 Main System Clock Settings..............................................................................................................................22 3-2 Subsystem Clock Settings.................................................................................................................................26 3-3 Jumper Setting of IE-78K0-NS ..........................................................................................................................31 3-4 Jumper Setting of IE-78K0-NS-A.......................................................................................................................31 3-5 Jumper Setting on G-78K0H Option Board of IE-78K0-NS-A............................................................................31 A-1 NP-100GC, NP-H100GC-TQ Pin Assignments .................................................................................................37 A-2 NP-113F-DA3 Pin Assignments ........................................................................................................................39 B-1 Distance Between IE System and Conversion Adapter ....................................................................................41 User's Manual U16473EJ1V0UM 9 CHAPTER 1 GENERAL The IE-780354-NS-EM1 is a development tool for efficient debugging of hardware or software when using one of the following target devices that belong to the 78K/0 Series of 8-bit single-chip microcontrollers. This chapter describes the IE-780354-NS-EM1's system configuration and basic specifications. * Target devices * PD780344 Subseries * PD780354 Subseries * PD780344Y Subseries * PD780354Y Subseries 10 User's Manual U16473EJ1V0UM CHAPTER 1 GENERAL 1.1 System Configuration Figure 1-1 illustrates the IE-780354-NS-EM1's system configuration. Figure 1-1. System Configuration Device fileNote 1 (available separately) Debugger ID78K0-NS (sold separately) Control software Host machine PC-9800 Series, IBM PC/ATTM or compatibles Interface board IE-70000-98-IF-C (sold separately) Interface board IE-70000-PC-IF-C (sold separately) Interface board IE-70000-PCI-IF-A (sold separately) Interface card or Interface cable Interface cable (NS IF Cable) IE-78K0-NS or IE-78K0-NS-A (sold separately) In-circuit emulator NS CARD MC CARD Cable Cable IE-70000-CD-IF-A (sold separately) FG Cable IE-780354-NS-EM1 (this product) AC adapter IE-70000-MC-PS-B (sold separately) Emulation probeNote 2 (sold separately) Conversion socket/conversion adapterNote 3 (sold separately) User's Manual U16473EJ1V0UM 11 CHAPTER 1 GENERAL Notes 1. The device file is as follows, in accordance with the subseries. SxxxxDF780354: PD780344, 780354, 780344Y, 780354Y Subseries The device file can be downloaded from the website of NEC Electronics (http://www.necel.com/micro/) 2. The emulation probes NP-100GC, NP-H100GC-TQ, and NP-113F1-DA3 are products of Naito Densei Machida Mfg. Co., Ltd. For further information, contact Naito Densei Machida Mfg. Co., Ltd. (TEL: +81-45-475-4191) 3. The conversion adapters TGC-100SDW, LSPACK113A1110NO1, CSSOCKET113A1110NO1, and CSSOCKET113A1110NO1N are products of TOKYO ELETECH CORPORATION. For further information, contact Daimaru Kogyo Co., Ltd. Tokyo Electronics Department (TEL: +81-3-3820-7112) Osaka Electronics Department (TEL: +81-6-6244-6672) Table 1-1. Correspondence Between Emulation Probes and Conversion Adapters Package 100-pin plastic LQFP (GC type) 113-pin plastic FBGA 12 Emulation Probe NP-100GC (probe length: 200 mm) Conversion Adapter TGC-100SDW NP-H100GC-TQ (probe length: 400 mm) NP-113F1-DA3 (probe length: 253 mm) User's Manual U16473EJ1V0UM LSPACK113A1110NO1 + CSSOCKET113A1110NO1 or CSSOCKET113A1110NO1N CHAPTER 1 GENERAL 1.2 Hardware Configuration Figures 1-2 and 1-3 show the IE-780354-NS-EM1's position in the basic hardware configuration. Figure 1-2. Basic Hardware Configuration (When IE-78K0-NS Is Used) Dedicated bus interface IE system IE-78K0-NS Host machine Interface board (sold separately) 78K0 main board (sold separately) Interface card (sold separately) IE-780354-NS-EM1 Emulation board (this product) Emulation probe (sold separately) Figure 1-3. Basic Hardware Configuration (When IE-78K0-NS-A Is Used) IE system IE-78K0-NS-A IE-780354-NS-EM1 Interface board (sold separately) Dedicated bus interface 78K0 main board Host machine 78K0 performance board Emulation board (this product) External sense probe Emulation probe (sold separately) Interface card (sold separately) User's Manual U16473EJ1V0UM 13 CHAPTER 1 GENERAL 1.3 Basic Specifications The basic specifications of the IE-780354-NS-EM1 are listed in Table 1-2. Table 1-2. Basic Specifications Parameter Description Target device PD780344, 780354, 780344Y, 780354Y Subseries System clock Main system clock: 10.0 MHz Subsystem clock: 32.768 kHz Main system clock supply External: Input via an emulation probe from the target system Internal: Mounted on the emulation board (10.0 MHz), or mounted on the parts board by the user Subsystem clock supply External: Input via an emulation probe from the target system Internal: Mounted on the emulation board (1.048576 MHz), or mounted on the parts board by the user Low-voltage support VDD = 1.8 to 5.5 V (same as target device) 14 User's Manual U16473EJ1V0UM CHAPTER 2 PART NAMES This chapter introduces the parts of the IE-780354-NS-EM1 main unit. The packing box contains the emulation board (IE-780354-NS-EM1), packing list, user's manual, and guarantee card. If there are any missing or damaged items, please contact an NEC Electronics sales representative. Fill out and return the guarantee card that comes with the main unit. User's Manual U16473EJ1V0UM 15 CHAPTER 2 PART NAMES 2.1 Parts of Main Unit Figure 2-1 shows the part names of the IE-780354-NS-EM1. CP24 CP25 Figure 2-1. IE-780354-NS-EM1 Part Names EXTOUT EXTIN External trigger CN5 Probe connector CN5 Main system clock UMCLK LCD mask option LCD MOPT 16 User's Manual U16473EJ1V0UM LED1 RC1 OSC1 OSC2 Subsystem clock USCLK USER VDD CHAPTER 3 INSTALLATION This chapter describes methods for connecting the IE-780354-NS-EM1 to the IE-78K0-NS or IE-78K0-NS-A, emulation probe, etc. Mode setting methods are also described. Caution Connecting or removing components to or from the target system, or making switch or other setting changes must be carried out after the power supply to both the IE system and the target system has been switched OFF. User's Manual U16473EJ1V0UM 17 CHAPTER 3 INSTALLATION 3.1 Connection (1) Connection with IE-78K0-NS or IE-78K0-NS-A main unit See the IE-78K0-NS User's Manual (U14379E) for a description of how to connect the IE-780354-NS-EM1 to Note the IE-78K0-NS . Note When using the IE-78K0-NS-A, see the IE-78K0-NS-A User's Manual (U14889E). (2) Connection with emulation probe See the IE-78K0-NS User's Manual (U14379E) for a description of how to connect an emulation probe to the IE780354-NS-EM1 Note . On this board, connect the emulation probe to CN5. Note When using the IE-78K0-NS-A, see the IE-78K0-NS-A User's Manual (U14889E). Caution Incorrect connection may damage the IE system. Be sure to read the emulation probe's user's manual for a detailed description of the connection method. Figure 3-1. Connection of Emulation Probe Emulation probe (sold separately) CN5 IE-780354-NS-EM1 Main board of IE-78K0-NS (sold separately) or IE-78K0-NS-A (sold separately) 18 User's Manual U16473EJ1V0UM CHAPTER 3 INSTALLATION 3.2 Clock Settings 3.2.1 Overview of clock settings The main system clock and subsystem clock to be used during debugging can be selected from (1) to (3) below. (1) Clock that is already mounted on emulation board (2) Clock that is mounted by user (3) Pulse input from target system If the target system includes a clock oscillator, select either (1) Clock that is already mounted on emulation board or (2) Clock that is mounted by user. For the clock oscillator, a resonator is connected to the target device and the target device's internal oscillator is used. An example of the external circuit is shown in part (a) of Figure 3-2. During emulation, the oscillator that is mounted on the target system is not used. Instead, the clock that is mounted on the emulation board installed in the IE-78K0-NS or IE-78K0-NS-A is used. If the target system includes an external clock, select either (1) Clock that is already mounted on emulation board, (2) Clock that is mounted by user, or (3) Pulse input from target system. For the external clock, a clock signal is supplied from outside of the target device and the target device's internal oscillator is not used. An example of the external circuit is shown in part (b) of Figure 3-2. Caution The IE system will be hung-up if the main system clock is not supplied normally. Moreover, be sure to input a rectangular wave as the pulse from the target system. There is no need to supply a clock to the X2 and XT2 pins. Also, even if a crystal resonator is connected directly to X1 (for the main system clock) or XT1 (for the subsystem clock), the target device will not operate. Figure 3-2. External Circuits Used as System Clock Oscillator (a) Clock oscillator (b) External clock Target device Target device External clock VSS X1 or XT1 X1 or XT1 X2 or XT2 X2 or XT2 Crystal or ceramic resonator User's Manual U16473EJ1V0UM 19 CHAPTER 3 INSTALLATION (1) Clock that is already mounted on emulation board The crystal oscillator mounted on the IE-780354-NS-EM1 can be used. (a) Main system clock A crystal oscillator (UMCLK) is already mounted on the emulation board. Its frequency is 10.0 MHz. Figure 3-3. When Using Clock That Is Already Mounted on Emulation Board (Main System Clock) IE-78K0-NS or IE-78K0-NS-A Target system IE-780354-NS-EM1 UMCLK Emulation probe Mounted oscillator (used) Clock oscillator or external clock (not used) Remark The clock that is supplied by the oscillator of the IE-780354-NS-EM1 (encircled in the figure) is used. (b) Subsystem clock A crystal oscillator (USCLK) is already mounted on the emulation board. Its frequency is 1.048576 MHz Figure 3-4. When Using Clock That Is Already Mounted on Emulation Board (Subsystem Clock) IE-78K0-NS or IE-78K0-NS-A Target system IE-780354-NS-EM1 USCLK Emulation probe Mounted oscillator (used) Clock oscillator or external clock (not used) Remark The clock that is supplied by the oscillator of the IE-780354-NS-EM1 (encircled in the figure) is used. 20 User's Manual U16473EJ1V0UM CHAPTER 3 INSTALLATION (2) Clock that is mounted by user The user can mount any clock supported by the set specifications on the IE-780354-NS-EM1. This feature is effective when debugging at a different frequency than the clock already mounted. (a) Main system clock Remove the crystal oscillator (UMCLK) that is already mounted on the emulation board, and mount the parts board on which the resonator to be used is mounted or mount the oscillator to be used. Figure 3-5. When Using User-Mounted Clock (Main System Clock) IE-78K0-NS or IE-78K0-NS-A Target system IE-780354-NS-EM1 UMCLK Emulation probe Parts board + resonator or oscillator (used) Clock oscillator or external clock (not used) Remark The clock that is supplied by the resonator of the IE-780354-NS-EM1 (encircled in the figure) or the oscillator is used. (b) Subsystem clock Remove the crystal oscillator (USCLK) that is already mounted on the emulation board, and mount the parts board on which the resonator to be used is mounted or mount the oscillator to be used. Figure 3-6. When Using User-Mounted Clock (Subsystem Clock) IE-78K0-NS or IE-78K0-NS-A Target system IE-780354-NS-EM1 USCLK Emulation probe Parts board + resonator or oscillator (used) Clock oscillator or external clock (not used) Remark The clock that is supplied by the resonator of the IE-780354-NS-EM1 (encircled in the figure) or the oscillator is used. User's Manual U16473EJ1V0UM 21 CHAPTER 3 INSTALLATION (3) Pulse input from target system An external clock on the target system can be used as both the main system clock and subsystem clock via an emulation probe. Figure 3-7. When Supplying Pulse from Target System IE-78K0-NS or IE-78K0-NS-A Target system IE-780354-NS-EM1 UMCLK Emulation probe Mounted oscillator and resonator (not used) USCLK External clock (used) Remark The pulse that is supplied by the external clock on the target system (encircled in the figure) or the oscillator is used. 3.2.2 Main system clock settings Table 3-1 shows the settings of the IE-780354-NS-EM1 when the main system clocks in (1) to (3) are used. Table 3-1. Main System Clock Settings Frequency of Main System Clock IE-780354-NS-EM1 UMCLK (1) When using clock that is already mounted on emulation board 10.0 MHz Oscillator (2) When using clock mounted by user Other than 10.0 MHz Oscillator configured by user (3) When inputting pulse from target system Caution Oscillator (not used) CPU Clock Source Selection (ID78K0-NS) Internal External When inputting a pulse from the target system, open the configuration dialog box when starting the integrated debugger (ID78K0-NS) and select "External" in the area (Clock) for selecting the CPU's clock source (this selects the user's clock). Remark The factory settings of the IE-780354-NS-EM1 are those listed above under "when using clock that is already mounted on emulation board". (1) When using clock that is already mounted on emulation board When the IE-780354-NS-EM1 is shipped, a 10.0 MHz crystal oscillator is already mounted in the IE-780354-NSEM1's socket (UMCLK). When using the factory-set mode settings, there is no need to make any other hardware settings. When starting the integrated debugger (ID78K0-NS), open the configuration dialog box and select "Internal" in the area (Clock) for selecting the CPU's clock source (this selects the emulator's internal clock). 22 User's Manual U16473EJ1V0UM CHAPTER 3 INSTALLATION (2) When using clock mounted by user Perform the settings described under either (a) or (b), depending on the type of clock to be used. When starting the integrated debugger (ID78K0-NS), open the configuration dialog box and select "Internal" in the area (Clock) for selecting the CPU's clock source (this selects the emulator's internal clock). (a) When using a ceramic resonator or crystal resonator * Items to be prepared * Parts board * Capacitor CA * Ceramic resonator or crystal resonator * Capacitor CB * Resistor Rx * Solder kit <1> Solder the target ceramic resonator or crystal resonator, resistor Rx, capacitor CA, and capacitor CB (all with suitable oscillation frequencies) onto the parts board (as shown below). Figure 3-8. Connections on Parts Board (Main System Clock) Parts board (UMCLK) Pin No. Connection 1 14 2 13 2-13 Capacitor CA 3 12 3-12 Capacitor CB 4 11 4-11 Ceramic resonator or crystal resonator 5 10 5-10 Resistor Rx 6 9 8-9 Shorted 7 8 Circuit diagram 1 M HCU04 HCU04 5 Rx 10 4 3 CB 12 Remark 98 CLOCK OUT 11 13 CA 2 The sections enclosed in broken lines indicate parts that are attached to the parts board. User's Manual U16473EJ1V0UM 23 CHAPTER 3 INSTALLATION <2> Prepare the IE-780354-NS-EM1. <3> Remove the crystal oscillator that is mounted in the IE-780354-NS-EM1's socket (UMCLK). <4> Connect the parts board (from <1> above) to the socket (UMCLK) from which the crystal oscillator was removed. Check the pin 1 mark to make sure the board is mounted in the correct direction. <5> Make sure that the parts board is wired as shown in Figure 3-8 above. <6> Install the IE-780354-NS-EM1 in the IE-78K0-NS or IE-78K0-NS-A. The above steps configure the following circuit and enable supply of the clock from the mounted resonator to the emulation device. (b) When using a crystal oscillator * Items to be prepared * Crystal oscillator (see pinouts shown in Figure 3-9) Figure 3-9. Crystal Oscillator (Main System Clock) NC GND VCC CLOCK OUT <1> Prepare the IE-780354-NS-EM1. <2> Remove the crystal oscillator that is mounted in the IE-780354-NS-EM1's socket (UMCLK). <3> Connect a crystal oscillator to the socket (UMCLK) from which the crystal oscillator was removed (in <2> above). Insert the pins of the crystal oscillator into the socket aligning the pins as shown in the figure below. 24 User's Manual U16473EJ1V0UM CHAPTER 3 INSTALLATION Figure 3-10. Pin Alignment of Crystal Oscillator and Socket (Main System Clock) Crystal oscillator NC GND Socket VCC CLOCK OUT Crystal Oscillator Pin Name Socket Pin No. 1 14 NC 1 2 13 GND 7 3 12 CLOCK OUT 8 4 11 5 10 VCC 14 6 9 7 8 <4> Install the IE-780354-NS-EM1 in the IE-78K0-NS or IE-78K0-NS-A. (3) When inputting pulse from target system No hardware settings are required for this situation. When starting the integrated debugger (ID78K0-NS), open the configuration dialog box and select "External" in the area (Clock) for selecting the CPU's clock source (this selects the user's clock). User's Manual U16473EJ1V0UM 25 CHAPTER 3 INSTALLATION 3.2.3 Subsystem clock settings Table 3-2 shows the settings of the IE-780354-NS-EM1 when the subsystem clocks in (1) to (3) are used. Table 3-2. Subsystem Clock Settings IE-780354-NS-EM1 IE-78K0-NS or IE-78K0-NS-A USCLK JP8 Frequency of Subsystem Clock (1) When using clock (USCLK) that is already mounted on emulation board 32.768 kHz Oscillator (2) When using clock mounted by user Other than 32.768 kHz Oscillator configured by user (3) When inputting pulse from target system Caution Not used 1 and 2 shorted 3 and 4 shorted Before setting JP8 to switch between the clock on the board and external clock, turn off the power of the IE-78K0-NS or IE-78K0-NS-A. Remark The factory settings of the IE-780354-NS-EM1 are those listed above under "when using clock that is already mounted on emulation board". (1) When using clock that is already mounted on emulation board When the IE-780354-NS-EM1 is shipped, a 1.048576 MHz crystal oscillator (USCLK) is already mounted on the IE-780354-NS-EM1. Short 1 and 2 of the jumper (JP8) on the IE-78K0-NS or IE-78K0-NS-A. No settings are required on the integrated debugger (ID78K0-NS). (2) When using clock mounted by user Perform the settings in (a) or (b) below, depending on the type of clock to be used. Short 1 and 2 of the jumper (JP8) on the IE-78K0-NS or IE-78K0-NS-A. No settings are required on the integrated debugger (ID78K0-NS). Set the frequency for the socket (USCLK) to the value of the frequency to be used by the actual chip multiplied by 32. (a) When using a ceramic resonator or crystal resonator * Items to be prepared * Ceramic resonator or crystal resonator * Capacitor CB * Resistor Rx * Solder kit * Capacitor CA <1> Prepare the IE-780354-NS-EM1. <2> Solder the target ceramic resonator or crystal resonator, resistor Rx, capacitor CA, and capacitor CB (all with suitable oscillation frequencies) onto the parts board (USCLK). 26 User's Manual U16473EJ1V0UM CHAPTER 3 INSTALLATION Figure 3-11. Connections on Parts Board (Subsystem Clock) Parts board (XT1) Pin No. Connection 1 14 2-13 Capacitor CA 2 13 3-12 Capacitor CB 3 12 4-11 Ceramic resonator or crystal resonator 4 11 5-10 Resistor Rx 5 10 8-9 Shorted 6 9 7 8 Circuit Diagram 10 M HCU04 HCU04 9 CLOCK OUT 8 5 Rx 10 4 10 M 6 HCU04 11 HCU04 3 12 13 CB 32.768 kHz CA 2 22 pF 470 k 22 pF Remark The sections enclosed in broken lines indicate parts that are attached to the parts board. <3> Make sure that the parts board (USCLK) is wired as shown in Figure 3-11 above. <4> Install the IE-780354-NS-EM1 in the IE-78K0-NS or IE-78K0-NS-A. User's Manual U16473EJ1V0UM 27 CHAPTER 3 INSTALLATION (b) When using a crystal oscillator * Items to be prepared * Crystal oscillator (see pinouts shown in Figure 3-12) Figure 3-12. Crystal Oscillator (Subsystem Clock) VCC NC GND CLOCK OUT <1> Prepare the IE-780354-NS-EM1. <2> Remove the crystal oscillator that is mounted in the socket (USCLK) of the IE-780354-NS-EM1. <3> Connect a crystal oscillator to the socket (USCLK) from which the crystal oscillator was removed (in <2> above). Insert the crystal oscillator pins into the socket aligning the pins as shown in the figure below. Figure 3-13. Pin Alignment of Crystal Oscillator and Socket (Subsystem Clock) Crystal oscillator NC GND Socket VCC CLOCK OUT Crystal Oscillator Pin Name Socket Pin No. NC 1 12 GND 7 4 11 CLOCK OUT 8 5 10 VCC 14 6 9 7 8 1 14 2 13 3 <4> Install the IE-780354-NS-EM1 in the IE-78K0-NS or IE-78K0-NS-A. (3) When inputting pulse from target system Short 3 and 4 of the jumper (JP8) on the IE-78K0-NS or IE-78K0-NS-A. No settings are required on the integrated debugger (ID78K0-NS). Set the frequency input by the target to the value of the frequency used by the target device multiplied by 4. 28 User's Manual U16473EJ1V0UM CHAPTER 3 INSTALLATION 3.3 Mask Option Settings 3.3.1 LCD step-up circuit When the IE-780354-NS-EM1 is shipped, a step-up circuit for driving an LCD is mounted on the parts board of the LCD MOPT socket (RC1) of the IE-780354-NS-EM1. When modifying the step-up circuit for LCD driving, mount the resistors and capacitors required for the parts board and other parts that come with the IE-780354-NS-EM1 on the LCD MOPT socket. When setting the gain adjustment to x1.0 (GAIN = 0) and x1.5 (GAIN = 1), change RA and RB, and RC and RD, respectively. Figure 3-14 shows the step-up circuit for LCD driving. Caution The step-up circuit on the target system cannot be used. Change RA and RB, or RC and RD so that the gain adjustment is between x1.0 and x1.5. Note that the IE system may be damaged if a value outside this range is set. Figure 3-14. LCD MOPT Socket (RC1) GAIN 1 16 VLCDC RA 2 15 RB 3 14 RC 4 ADG734 VLC0 13 RD 5 12 CA 6 VLC1 11 CB 7 VLC2 10 CC 8 CAPH 9 CAPL CD Connection Pin Part Used Parts Board After Shipment Remark Gain adjustment x1.0 supported 1-16 Resistor RA Shorted 2-15 Resistor RB 3 M 3-14 Resistor RC 1 M 4-13 Resistor RD 2 M 5-12 Capacitor CA 0.47 F (fixed) - 6-11 Capacitor CB 0.47 F (fixed) - 7-10 Capacitor CC 0.47 F (fixed) - 8-9 Capacitor CD 0.47 F (fixed) - User's Manual U16473EJ1V0UM Gain adjustment x1.5 supported 29 CHAPTER 3 INSTALLATION 3.4 External Trigger To set an external trigger, connect the IE-780354-NS-EM1's check pins EXTOUT and EXTIN as shown below. See the IE-78K0-NS User's Manual (U14379E) or IE-78K0-NS-A User's Manual (U14889E) for pin characteristics. For the use methods, see the ID78K Series Ver.2.30 or Later Operation Windows Based User's Manual (U15185E). (1) EXTOUT The EXTOUT pin on the IE-780354-NS-EM1 outputs a low level for 1.3 s when a break event occurs. Caution Connect a pull-up resistor on the target system because this is an open drain output. (2) EXTIN An event signal can be input from the EXTIN pin on the IE-780354-NS-EM1. Input a high-level pulse signal for 2 CPU operation clocks or more. Figure 3-15. External Trigger Input Position CN5 CP24 CP25 LED1 EXTOUT EXTIN 30 User's Manual U16473EJ1V0UM External trigger CHAPTER 3 INSTALLATION 3.5 Jumper Setting of IE-78K0-NS When using the IE-780354-NS-EM1 combined with the IE-78K0-NS, set the jumpers on the IE-78K0-NS as follows. For the locations of jumpers, refer to the IE-78K0-NS User's Manual (U13731E). Caution Incorrect jumper setting may damage the IE-780354-NS-EM1. Table 3-3. Jumper Setting of IE-78K0-NS Setting JP2 JP3 JP4 JP6 JP7 JP8 2 and 3 shorted 1 and 2 shorted 1 and 2 shorted 3 and 4 shorted 1 and 2 shorted Note Note The setting of JP8 is as follows. 1 and 2 shorted: (Internal selection of subsystem clock) 3 and 4 shorted: (External selection of subsystem clock) 3.6 Jumper Setting of IE-78K0-NS-A When using the IE-780354-NS-EM1 combined with the IE-78K0-NS-A, set the jumpers on the IE-78K0-NS-A as follows. For the locations of jumpers, refer to the IE-78K0-NS-A User's Manual (U14889E). Caution Incorrect jumper setting may damage the IE-780354-NS-EM1. Table 3-4. Jumper Setting of IE-78K0-NS-A Setting JP2 JP3 JP4 JP6 JP7 JP8 2 and 3 shorted 1 and 2 shorted 1 and 2 shorted 3 and 4 shorted 1 and 2 shorted Note Note The setting of JP8 is as follows. 1 and 2 shorted: (Internal selection of subsystem clock) 3 and 4 shorted: (External selection of subsystem clock) Table 3-5. Jumper Setting on G-78K0H Option Board of IE-78K0-NS-A JP2 Setting 2 and 3 shorted User's Manual U16473EJ1V0UM 31 CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICE AND TARGET INTERFACE CIRCUIT This chapter describes differences between the target device's signal lines and the signal lines of the target interface circuit of the IE system. The target interface circuit of the IE system realizes emulation via an emulation circuit configured by an emulation CPU, TTL, CMOS-IC, and other components. The electrical characteristics are different from those of the target device because a protector and other circuits are provided. (1) Signals directly input to or output from the emulation CPU (PD7880) (2) Signals input/output from the emulation CPU (PD78F0338) (3) Signals input/output from the emulation CPU (PD7880, 78F0338) (4) Other signals The circuits of the IE-780354-NS-EM1 are used as follows for signals listed in (1) to (4) above. The same applies to handling alternate-function pins, for which no circuit is provided in the IE system. 32 User's Manual U16473EJ1V0UM CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICE AND TARGET INTERFACE CIRCUIT (1) Signals directly input to or output from the emulation CPU (PD7880) Refer to Figure 4-1 Equivalent Circuit 1 of Emulation Circuit. * P02 to P00 * P07 to P04 * P27 to P20 * P35 to P30 * P43 to P40 * P73 to P70 * X1 * XT1 * RESET Figure 4-1. Equivalent Circuit 1 of Emulation Circuit * Probe side (Target system) P02 to P00 P07 to P04 P27 to P20 P35 to P32 P43 to P40 * IE system side 100 1 M 100 P31 to P30 P73 to P70 LVDD PD7880 ISS12 100 emulation CPU X1, XT1 ISS12 LVDD 100 HC4066 4.7 k RESET User's Manual U16473EJ1V0UM 33 CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICE AND TARGET INTERFACE CIRCUIT (2) Signals input/output from the emulation CPU (PD78F0338) Refer to Figure 4-2 Equivalent Circuit 2 of Emulation Circuit. * P17 to P10 * S11 to S0 * COM3 to COM0 * SCOM0 * AVREF * AVSS Figure 4-2. Equivalent Circuit 2 of Emulation Circuit * Probe side * IE system side (Target system) P17 to P10 S11 to S0 COM3 to COM0 SCOM0 AVREF AVSS PD78F0338 emulation CPU (3) Signals directly input/output from the emulation CPU Refer to Figure 4-3 Equivalent Circuit 3 of Emulation Circuit. * P87 to P80/S19 to S12 * P97 to P90/S27 to S20 * P107 to P100/S35 to S28 * P113 to P110/S39 to S36 * P03/INTP3/ADTRG 34 User's Manual U16473EJ1V0UM CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICE AND TARGET INTERFACE CIRCUIT Figure 4-3. Equivalent Circuit 3 of Emulation Circuit * Probe side * IE system side (Target system) PF signal PD780009 emulation CPU Port I/O PD7880 emulation CPU P87 to P80/S19 to S12 P97 to P90/S27 to S20 P107 to P100/S35 to S28 PD78F0338 ADG734 Segment output emulation CPU P113 to P110/S39 to S36 P03/INTP3 P03/INTP3/ADTRG PD7880 emulation CPU ADTRG PD78F0338 emulation CPU (4) Other signals Refer to Figure 4-4 Equivalent Circuit 4 of Emulation Circuit. * VLC2 to VLC0 CAPH, CAPL, X2, XT2, VDD0, VDD1, VSS0, VSS1, VPP Figure 4-4. Equivalent Circuit 4 of Emulation Circuit * Probe side * IE system side (Target system) VCC 3.3 k 1.5 k - + PC393G Power supply detection VDD0 VDD1 VSS0 VSS1 VLC2 to VLC0, CAPH, CAPL, X2, XT2, VPP OPEN User's Manual U16473EJ1V0UM 35 CHAPTER 5 CAUTIONS The following must be noted when using the IE-780354-NS-EM1. (1) Connection with the IE-78001-R-A is not supported. (When connected with the IE-78001-R-A, port trace results will not be correctly indicated.) (2) Use a device file of version E1.00h or later. (With device files earlier than E1.00h, the mask option functions of P30, P31, and P70 to P73 cannot be used.) 36 User's Manual U16473EJ1V0UM APPENDIX A EMULATION PROBE PIN ASSIGNMENT TABLE Table A-1. NP-100GC, NP-H100GC-TQ Pin Assignments (1/2) Emulation Probe CN5 Pin No. Emulation Probe CN5 Pin No. 1 118 35 57 2 117 36 58 3 114 37 59 4 113 38 60 5 108 39 55 6 107 40 56 7 104 41 49 8 103 42 50 9 100 43 45 10 99 44 46 11 94 45 41 12 93 46 42 13 30 47 35 14 29 48 36 15 24 49 31 16 23 50 32 17 20 51 4 18 19 52 3 19 16 53 8 20 15 54 7 21 10 55 14 22 9 56 13 23 6 57 18 24 5 58 17 25 33 59 22 26 34 60 21 27 37 61 28 28 38 62 27 29 43 63 92 30 44 64 91 31 47 65 98 32 48 66 97 33 51 67 102 34 52 68 101 Remarks 1. NP-100GC and NP-H100GC-TQ are products of Naito Densei Machida Mfg. Co., Ltd. 2. The numbers in the "Emulation probe" column indicate the corresponding pin number on the emulation probe tip. User's Manual U16473EJ1V0UM 37 APPENDIX A EMULATION PROBE PIN ASSIGNMENT TABLE Table A-1. NP-100GC, NP-H100GC-TQ Pin Assignments (2/2) Emulation Probe CN5 Pin No. Emulation Probe CN5 Pin No. 69 106 85 63 70 105 86 64 71 112 87 61 72 111 88 62 73 116 89 65 74 115 90 66 75 87 91 71 76 88 92 72 77 83 93 75 78 84 94 76 79 77 95 79 80 78 96 80 81 73 97 85 82 74 98 86 83 69 99 89 84 70 100 90 Remarks 1. NP-100GC and NP-H100GC-TQ are products of Naito Densei Machida Mfg. Co., Ltd. 2. The numbers in the "Emulation probe" column indicate the corresponding pin number on the emulation probe tip. 38 User's Manual U16473EJ1V0UM APPENDIX A EMULATION PROBE PIN ASSIGNMENT TABLE Table A-2. NP-113F-DA3 Pin Assignments (1/2) Emulation Probe CN5 Pin No. Emulation Probe CN5 Pin No. A1 - B4 79 B1 117 C4 85 C1 - D4 108 D1 107 E4 30 E1 103 F4 29 F1 93 G4 19 G1 24 H4 44 H1 16 J4 52 J1 - K4 43 K1 33 L4 47 L1 - A5 66 A2 90 B5 71 B2 118 C5 80 C2 114 D5 75 D2 113 E5 - E2 104 H5 60 F2 94 J5 57 G2 23 K5 48 H2 15 L5 51 J2 5 A6 61 K2 34 B6 64 L2 37 C6 72 A3 - D6 65 B3 89 H6 55 C3 86 J6 50 D3 100 K6 58 E3 99 L6 59 F3 20 A7 69 G3 10 B7 74 H3 9 C7 63 J3 6 D7 62 K3 38 H7 45 L3 - J7 42 A4 76 K7 49 Remarks 1. NP-113F1-DA3 is a product of Naito Densei Machida Mfg. Co., Ltd. 2. The numbers in the "Emulation probe" column indicate the corresponding pin number on the emulation probe tip. User's Manual U14362EJ2V0UM 39 APPENDIX A EMULATION PROBE PIN ASSIGNMENT TABLE Table A-2. NP-113F-DA3 Pin Assignments (2/2) Emulation Probe CN5 Pin No. Emulation Probe CN5 Pin No. L7 56 A10 83 A8 73 B10 88 B8 77 C10 115 C8 70 D10 105 D8 78 E10 97 E8 101 F10 28 F8 91 G10 18 G8 92 H10 7 H8 14 J10 8 J8 35 K10 4 K8 41 L10 32 L8 46 A11 - A9 - B11 87 B9 84 C11 - C9 116 D11 106 D9 111 E11 98 E9 112 F11 27 F9 102 G11 17 G9 21 H11 13 H9 22 J11 - J9 36 K11 3 K9 31 L11 - L9 - Remarks 1. NP-113F1-DA3 is a product of Naito Densei Machida Mfg. Co., Ltd. 2. The numbers in the "Emulation probe" column indicate the corresponding pin number on the emulation probe tip. 40 User's Manual U16473EJ1V0UM APPENDIX B NOTES ON TARGET SYSTEM DESIGN The following shows the conditions when connecting the emulation probe to the conversion adapter. Follow the configuration below and consider the shape of parts to be mounted on the target system when designing a system. Among the products described in this appendix, NP-100GC, NP-H100GC-TQ, and NP-113F1-DA3 are products of Naito Densei Machida Mfg. Co., Ltd, and TGC-100SDW, LSPACK113A1110NO1, CSSOCKET113A1110NO1, and CSSOCKET113A1110NO1N are products of TOKYO ELETECH CORPORATION. Table B-1. Distance Between IE System and Conversion Adapter Emulation Probe NP-100GC Conversion Adapter 170 mm TGC-100SDW NP-H100GC-TQ NP-113F1-DA3 Distance Between IE System and Conversion Adapter 370 mm LSPACK113A1110NO1 + CSSOCKET113A1110NO1 or 228.5 mm CSSOCKET113A1110NO1N Figure B-1. Distance Between In-Circuit Emulator and Conversion Adapter (When 100GC Is Used) In-circuit emulator IE-78K0-NS or IE-78K0-NS-A Target system Emulation board IE-780354-NS-EM1 170 mm Note CN1 Emulation probe NP-100GC NP-H100GC-TQ Note Conversion adapter: TGC-100SDW Distance when NP-100GC is used. When NP-H100GC-TQ is used, the distance is 370 mm. User's Manual U16473EJ1V0UM 41 APPENDIX B NOTES ON TARGET SYSTEM DESIGN Figure B-2. Connection Conditions of Target System (When NP-100GC Is Used) Emulation board IE-780354-NS-EM1 Emulation probe NP-100GC 23 mm Conversion adapter TGC-100SDW 11 mm 25 mm 21.55 mm Pin 1 40 mm 21.55 mm 34 mm Target system Figure B-3. Connection Conditions of Target System (When NP-H100GC-TQ Is Used) Emulation board IE-780354-NS-EM1 Emulation probe NP-H100GC-TQ 23 mm Conversion adapter TGC-100SDW 25 mm 11 mm 21.55 mm 42 mm Pin 1 21.55 mm 45 mm Target system 42 User's Manual U16473EJ1V0UM APPENDIX B NOTES ON TARGET SYSTEM DESIGN Figure B-4. Distance Between In-Circuit Emulator and Conversion Adapter (When NP-113F1-DA3 Is Used) In-circuit emulator IE-78K0-NS or IE-78K0-NS-A Target system Emulation board IE-780354-NS-EM1 228.5 mm CN5 Emulation probe NP-113F1-DA3 Conversion adapter: LSPACK113A1110NO1 + CSSOCKET113A1110NO1 or CSSOCKET113A1110NO1N Figure B-5. Connection Conditions of Target System (When NP-113F1-DA3 Is Used) Emulation board IE-780354-NS-EM1 Emulation probe NP-113F1-DA3 21 mm Conversion adapter LSPACK113A1110NO1 + CSSOCKET113A1110NO1 or CSSOCKET113A1110NO1N 20 mm 23 mm 27 mm 23 mm 33 mm Target system User's Manual U16473EJ1V0UM 43