User’s Manual
Target Devices
µ
µµ
µ
PD789167 Subseries
µ
µµ
µ
PD789167Y Subseries
µ
µµ
µ
PD789177 Subseries
µ
µµ
µ
PD789177Y Subseries
IE-789177-NS-EM1
Emulation Board
Document No. U14621EJ2V0UM00 (2nd edition)
Date Published May 2002 N CP(K)
Printed in Japan
User’s Manual U14621EJ2V0UM
2
[MEMO]
User’s Manual U14621EJ2V0UM 3
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.
M8E 00. 4
The information in this document is current as of January, 2002. The information is subject to
change without notice. For actual design-in, refer to the latest publications of NEC's data sheets or
data books, etc., for the most up-to-date specifications of NEC semiconductor products. Not all
products and/or types are available in every country. Please check with an NEC 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 prior
written consent of NEC. NEC assumes no responsibility for any errors that may appear in this document.
NEC 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 semiconductor 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 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 customer's equipment shall be done under the full
responsibility of customer. NEC assumes no responsibility for any losses incurred by customers or third
parties arising from the use of these circuits, software and information.
While NEC endeavours to enhance the quality, reliability and safety of NEC semiconductor 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
semiconductor products, customers must incorporate sufficient safety measures in their design, such as
redundancy, fire-containment, and anti-failure features.
NEC semiconductor products are classified into the following three quality grades:
"Standard", "Special" and "Specific". The "Specific" quality grade applies only to semiconductor products
developed based on a customer-designated "quality assurance program" for a specific application. The
recommended applications of a semiconductor product depend on its quality grade, as indicated below.
Customers must check the quality grade of each semiconductor 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 semiconductor products is "Standard" unless otherwise expressly specified in NEC's
data sheets or data books, etc. If customers wish to use NEC semiconductor products in applications not
intended by NEC, they must contact an NEC sales representative in advance to determine NEC's willingness
to support a given application.
(Note)
(1) "NEC" as used in this statement means NEC Corporation and also includes its majority-owned subsidiaries.
(2) "NEC semiconductor products" means any semiconductor product developed or manufactured by or for
NEC (as defined above).
Users Manual U14621EJ2V0UM
4
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, pIease contact the NEC 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 Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
Fax: 408-588-6130
800-729-9288
NEC Electronics Hong Kong Ltd.
Hong Kong
Tel: 2886-9318
Fax: 2886-9022/9044
NEC Electronics Hong Kong Ltd.
Seoul Branch
Seoul, Korea
Tel: 02-528-0303
Fax: 02-528-4411
NEC Electronics Shanghai, Ltd.
Shanghai, P.R. China
Tel: 021-6841-1138
Fax: 021-6841-1137
NEC Electronics Taiwan Ltd.
Taipei, Taiwan
Tel: 02-2719-2377
Fax: 02-2719-5951
NEC Electronics Singapore Pte. Ltd.
Novena Square, Singapore
Tel: 253-8311
Fax: 250-3583
NEC do Brasil S.A.
Electron Devices Division
Guarulhos-SP, Brasil
Tel: 11-6462-6810
Fax: 11-6462-6829
J02.4
NEC Electronics (Europe) GmbH
Duesseldorf, Germany
Tel: 0211-65 03 01
Fax: 0211-65 03 327
Sucursal en España
Madrid, Spain
Tel: 091-504 27 87
Fax: 091-504 28 60
Vélizy-Villacoublay, France
Tel: 01-30-67 58 00
Fax: 01-30-67 58 99
Succursale Française
Filiale Italiana
Milano, Italy
Tel: 02-66 75 41
Fax: 02-66 75 42 99
Branch The Netherlands
Eindhoven, The Netherlands
Tel: 040-244 58 45
Fax: 040-244 45 80
Branch Sweden
Taeby, Sweden
Tel: 08-63 80 820
Fax: 08-63 80 388
United Kingdom Branch
Milton Keynes, UK
Tel: 01908-691-133
Fax: 01908-670-290
Users Manual U14621EJ2V0UM 5
Major Revisions in This Edition
Page Description
Throughout Addition of description of IE-78K0S-NS-A as supported in-circuit emulator
Addition of NP-H44GB-TQ as supported emulation probe
pp. 12, 13 Figure 1-1 System Configuration
Modification of supply medium of debugger ID78K0S-NS to CD-ROM
Modification of Notes 1 to 3
p. 15 Modification of part of Table 1-1 Basic Specifications
pp. 20 to 22 3.2.1 Overview of clock settings
Modification of internal clock to clock oscillator
Figure 3-2 External Circuits Used as System Clock Oscillator
Addition of VSS pin to the figure of (a) Clock oscillator
Figure 3-3 When Using Clock That Is Already Mounted on Emulation Board and Figure 3-4
When Using User-Mounted Clock
Modification of resonator in target system to clock oscillator or external clock
Modification of clock generator to external clock in Figure 3-5 When Using an External Clock
p. 34 in previous
revision
Deletion of 3.4 Low-Voltage Emulation Setting
p. 33 Addition of 3.4 Power Supply Voltage Setting of Target Interface
p. 35 3.6 Switch and Jumper Settings
Addition of (2) Switch and jumper settings on the IE-78K0S-NS-A
p. 42 Addition of APPENDIX B CAUTIONS ON DESIGNING TARGET SYSTEM
The mark shows major revised points.
User’s Manual U14621EJ2V0UM
6
INTRODUCTION
Product Overview The IE-789177-NS-EM1 is designed to be used with the IE-78K0S-NS or IE-78K0S-NS-A
to debug the following target devices that belong to the 78K/0S Series of 8-bit single-chip
microcontrollers.
µ
PD789167 Subseries:
µ
PD789166, 789167
µ
PD789177 Subseries:
µ
PD789176, 789177, 78F9177, 78F9177A
µ
PD789167Y Subseries:
µ
PD789166Y, 789167Y
µ
PD789177Y Subseries:
µ
PD789176Y, 789177Y, 78F9177Y, 78F9177AY
Target Readers This manual is intended for engineers who will use the IE-789177-NS-EM1 with the IE-
78K0S-NS or IE-78K0S-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-789177-NS-EM1, refer to not only this manual (supplied with the IE-
789177-NS-EM1) but also the manual that is supplied with the IE-78K0S-NS or IE-
78K0S-NS-A.
IE-78K0S-NS IE-789177-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-78K0S-NS-A
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-789177-NS-EM1.
User’s Manual U14621EJ2V0UM 7
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 (a real chip).
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 IE-78K0S-NS or IE-78K0S-NS-A and the IE-789177-NS-
EM1.
Conventions 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
Related Documents The related documents (user’s manuals) indicated in this publication may include
preliminary versions. However, preliminary versions are not marked as such.
Document Name Document Number
IE-78K0S-NS U13549E
IE-78K0S-NS-A U15207E
IE-789177-NS-EM1 U14621E
ID78K0-NS, ID78K0S-NS Integrated Debugger Ver. 2.20 or Later Operation (WindowsTM Based) U14910E
µ
PD789167, 789177, 789167Y, 789177Y Subseries U14186E
Caution The documents listed above are subject to change without notice. Be sure to use the latest
documents when designing.
User’s Manual U14621EJ2V0UM
8
CONTENTS
CHAPTER 1 GENERAL..............................................................................................................................11
1.1 System Configuration................................................................................................................................12
1.2 Hardware Configuration ............................................................................................................................14
1.3 Basic Specifications ..................................................................................................................................15
CHAPTER 2 PART NAMES........................................................................................................................16
2.1 Parts of Main Unit.......................................................................................................................................17
CHAPTER 3 INSTALLATION .....................................................................................................................18
3.1 Connection .................................................................................................................................................19
3.2 Clock Settings ............................................................................................................................................20
3.2.1 Overview of clock settings .............................................................................................................20
3.2.2 Main system clock settings ............................................................................................................22
3.2.3 Subsystem clock settings...............................................................................................................27
3.3 Mask Option Settings ................................................................................................................................32
3.4 Power Supply Voltage Setting of Target Interface ..................................................................................33
3.5 External Trigger..........................................................................................................................................34
3.6 Switch and Jumper Settings .....................................................................................................................35
CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICES AND TARGET INTERFACE CIRCUITS ..36
APPENDIX A. EMULATION PROBE PIN ASSIGNMENT TABLE.............................................................40
APPENDIX B. CAUTIONS ON DESIGNING TARGET SYSTEM...............................................................42
User’s Manual U14621EJ2V0UM 9
LIST OF FIGURES
Figure No. Title Page
1-1 System Configuration ..........................................................................................................................................12
1-2 Basic Hardware Configuration .............................................................................................................................14
2-1 IE-789177-NS-EM1 Part Names..........................................................................................................................17
3-1 Connection of Emulation Probe ...........................................................................................................................19
3-2 External Circuits Used as System Clock Oscillator .............................................................................................20
3-3 When Using Clock That Is Already Mounted on Emulation Board.......................................................................21
3-4 When Using User-Mounted Clock .......................................................................................................................21
3-5 When Using an External Clock ............................................................................................................................22
3-6 Connections on Parts Board (When Using Main System Clock or User-Mounted Clock) ...................................23
3-7 Crystal Oscillator (When Using Main System Clock or User-Mounted Clock).....................................................25
3-8 Pin Alignment of Crystal Oscillator and Socket ...................................................................................................25
3-9 Connections on Parts Board (When Using Subsystem Clock or User-Mounted Clock) ......................................28
3-10 Crystal Oscillator (When Using Subsystem Clock or User-Mounted Clock)........................................................30
3-11 Pin Alignment of Crystal Oscillator and Socket ...................................................................................................30
3-12 Mask Option Setting ............................................................................................................................................32
3-13 Connection of TP1 and Power Supply Voltage of Target System .......................................................................33
3-14 External Trigger Input Position ............................................................................................................................34
4-1 Equivalent Circuit 1 of Emulator ..........................................................................................................................38
4-2 Equivalent Circuit 2 of Emulator ..........................................................................................................................39
B-1 Distance Between In-Circuit Emulator and Conversion Socket (NP-44GB, NP-44GB-TQ).................................42
B-2 Connction Condition of Target System (NP-H44GB-TQ).....................................................................................43
B-3 Distance Between In-Circuit Emulator and Conversion Socket (NP-48GA) ........................................................44
B-4 Connection Condition of Target System (NP-48GA) ...........................................................................................45
User’s Manual U14621EJ2V0UM
10
LIST OF TABLES
Table No. Title Page
1-1 Basic Specifications ............................................................................................................................................ 15
3-1 Main System Clock Settings ............................................................................................................................... 22
3-2 Subsystem Clock Settings .................................................................................................................................. 27
3-3 SW1 Switch Setting ............................................................................................................................................ 32
3-4 Switch and Jumper Settings on IE-78K0S-NS.................................................................................................... 35
3-5 Switch and Jumper Settings on IE-78K0S-NS-A ................................................................................................ 35
3-6 Initialize Settings of Switch and Jumper on IE-789177-NS-EM1 ........................................................................ 35
A-1 NP-44GB, NP-44GB-TQ, NP-H44GB-TQ Pin Assignments................................................................................ 40
A-2 NP-48GA Pin Assignments................................................................................................................................. 41
User’s Manual U14621EJ2V0UM 11
CHAPTER 1 GENERAL
The IE-789177-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/0S Series of 8-bit single-chip microcontrollers.
This chapter describes the IE-789177-NS-EM1’s system configuration and basic specifications.
Target devices
µ
PD789167 Subseries
µ
PD789177 Subseries
µ
PD789167Y Subseries
µ
PD789177Y Subseries
CHAPTER 1 GENERAL
User’s Manual U14621EJ2V0UM
12
1.1 System Configuration
Figure 1-1 illustrates the IE-789177-NS-EM1’s system configuration.
Figure 1-1. System Configuration
FG Cable
IE-78K0S-NS
or
IE-78K0S-NS-A
(sold separately)
IE-70000-CD-IF-A
(sold separately)
Debugger
ID78K0S-NS
(sold separately)
Device file
Note 1
(obtain separately)
Control software
Host machine
PC-9800 Series,
IBM PC/AT
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)
or
Interface cable
(NS IF Cable)
In-circuit emulator
IE-789177-NS-EM1
(This product)
AC adapter
IE-70000-MC-PS-B
(sold separately)
Emulation probe
Note 2
(sold separately)
Conversion socket/conversion adapter
Note 3
(sold separately)
NS CARD
Cable MC CARD
Cable
Interface
cable
Interface card
CHAPTER 1 GENERAL
Users Manual U14621EJ2V0UM 13
Notes 1. The device file is as follows.
µ
S××××DF789178:
µ
PD789167, 789167Y, 789177, 789177Y Subseries
Device files can be downloaded from the NEC Electron Devices Web site
(URL: http://www.ic.nec.co.jp/micro).
2. The emulation probe is as follows.
NP-44GB: 44-pin plastic QFP (GB-8ES type)
NP-44GB-TQ: 44-pin plastic QFP (GB-8ES type)
NP-H44GB-TQ: Long type for 44-pin plastic QFP (GB-8ES type)
NP-48GA: 48-pin plastic TQFP (GA-9EU type)
The NP-44GB, NP-44GB-TQ, NP-H44GB-TQ, and NP-48GA are products of Naito Densei Machida
Mfg. Co., Ltd.
For further information, contact Naito Densei Machida Mfg. Co., Ltd. (+81-45-475-4191)
3. The conversion socket/conversion adapter are as follows.
EV-9200G-44: 44-pin plastic LQFP (GB-8ES type)
TGB-044SAP: 44-pin plastic LQFP (GB-8ES type)
TGA-048SDP: 48-pin plastic TQFP (GA-9EU type)
The TGB-044SAP and TGA-048SDP are products of TOKYO ELETECH CORPORATION.
For further information, contact Daimaru Kogyo Co., Ltd.
Tokyo Electronics Department (+81-3-3820-7112)
Osaka Electronics Department (+81-6-6244-6672)
CHAPTER 1 GENERAL
Users Manual U14621EJ2V0UM
14
1.2 Hardware Configuration
Figure 1-2 shows the IE-789177-NS-EM1s position in the basic hardware configuration.
Figure 1-2. Basic Hardware Configuration
IE-78K0S-NS/IE-78K0S-NS-A IE-789177-NS-EM1
Emulation probe
(sold separately)
Dedicated bus interface
IE system
Host machine Interface board
(sold separately)
78K0S main board
(sold separately)
Emulation board
(This product)
Interface card
(sold separately)
CHAPTER 1 GENERAL
Users Manual U14621EJ2V0UM 15
1.3 Basic Specifications
The IE-789177-NS-EM1s basic specifications are listed in Table 1-1.
Table 1-1. Basic Specifications
Parameter Description
Target device
µ
PD789167, 789177, 789167Y, 789177Y Subseries
System clock 10.0 MHz
Main clock supply External: Input via an emulation probe from the target system
Internal: Mounted on emulation board (5.0 MHz), or mounted on the board by the user
Subsystem clock supply Internal: Mounted on emulation board (32.768 kHz), or mounted on the board by the
user
Target interface voltage VDD = 1.8 to 5.5 V (same as target device)
Operates on internal power supply (5 V) when target system not connected
User’s Manual U14621EJ2V0UM
16
CHAPTER 2 PART NAMES
This chapter introduces the parts of the IE-789177-NS-EM1 main unit.
The packing box contains the emulation board (IE-789177-NS-EM1), packing list, user’s manual, and guarantee
card.
If there are any missing or damaged items, please contact an NEC sales representative.
Fill out and return the guarantee card that comes with the main unit.
CHAPTER 2 PART NAMES
User’s Manual U14621EJ2V0UM 17
2.1 Parts of Main Unit
Figure 2-1. IE-789177-NS-EM1 Part Names
X1 UMCLK socket
XT1 USCLK socket
JP1
XTC1
GND
LowVolt
EXTOUT (CP7)
EXTIN (CP8)
Probe connector
CN1 44GB,
44GB-TQ, H44GB-TQ,
48GA
LED1
TP1
SW1
SW1
CN1 TP1
User’s Manual U14621EJ2V0UM
18
CHAPTER 3 INSTALLATION
This chapter describes methods for connecting the IE-789177-NS-EM1 to the IE-78K0S-NS or IE-78K0S-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.
CHAPTER 3 INSTALLATION
User’s Manual U14621EJ2V0UM 19
3.1 Connection
(1) Connection with IE-78K0S-NS or IE-78K0S-NS-A main unit
See the IE-78K0S-NS User’s Manual (U13549E) for a description of how to connect the IE-789177-NS-EM1 to
the IE-78K0S-NSNote.
Note See the IE-78K0S-NS-A User’s Manual (U15207E) when using the IE-78K0S-NS-A.
(2) Connection with emulation probe
See the IE-78K0S-NS User’s Manual (U13549E) for a description of how to connect an emulation probe to the
IE-789177-NS-EM1Note.
On this board, connect the emulation probe to CN1.
Note See the IE-78K0S-NS-A User’s Manual (U15207E) when using the IE-78K0S-NS-A.
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)
CN1 44GB,
44GB-TQ, H44GB-TQ, 48GA
Emulation board
(IE-789177-NS-EM1)
Main board
(IE-78K0S-NS or IE-78K0S-NS-A)
CHAPTER 3 INSTALLATION
User’s Manual U14621EJ2V0UM
20
3.2 Clock Settings
3.2.1 Overview of clock settings
The main system and subsystem clocks 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-78K0S-NS or IE-78K0S-NS-A is used.
If the target system includes an external clock, select “(3) Pulse input from target system”.
For the external clock, a clock signal is supplied from outside 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 clock from the target. There is no need to supply a clock
to the X2 pin.
Figure 3-2. External Circuits Used as System Clock Oscillator
(a) Clock oscillator (b) External clock
X1 or XT1
VSS
External
clock
X2 or XT2
X1 or XT1
X2 or XT2
Target device Target device
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM 21
(1) Clock that is already mounted on emulation board
A crystal oscillator is already mounted on the emulation board. Its frequency is 5.0 MHz.
Figure 3-3. When Using Clock That Is Already Mounted on Emulation Board
IE-78K0S-NS or IE-78K0S-NS-A
IE-789177-NS-EM1
Mounted oscillator
(to be used)
Emulation probe
Target system
Clock oscillator or
external clock (not used)
Remark The clock that is supplied by the IE-789177-NS-EM1s oscillator (encircled in the figure) is used.
(2) Clock that is mounted by user
The user is able to mount any clock supported by the set specifications on the IE-789177-NS-EM1. Either attach
the parts board on which the resonator to be used is mounted or an oscillator to the IE-789177-NS-EM1. This
method is useful when using a different frequency from that of the premounted clock.
Figure 3-4. When Using User-Mounted Clock
IE-78K0S-NS or IE-78K0S-NS-A
Target system
Emulation probe
Clock oscillator or
external clock (not used)
IE-789177-NS-EM1
Parts board
+ resonator
or
oscillator
Remark The clock that is supplied by the parts board on which the IE-789177-NS-EM1s resonator is mounted
(encircled in the figure) or by the oscillator is used.
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM
22
(3) Pulse input from target system
An external clock connected to the target system can be used via an emulation probe.
Figure 3-5. When Using an External Clock
IE-78K0S-NS or IE-78K0S-NS-A
External clock
(to be used)
Target system
Emulation probe
IE-789177-NS-EM1
Remark The clock supplied by the target systems external clock (encircled in the figure) is used.
3.2.2 Main system clock settings
Table 3-1. Main System Clock Settings
IE-789177-NS-EM1Frequency of Main System Clock
Parts Board (X1 UMCLK)
CPU Clock Source
Selection (ID)
When using clock that is
already mounted on
emulation board
5.0 MHz Oscillator used
When using clock mounted
by user
Oscillator assembled by user
Internal
When inputting pulse from
target system
Other than 5.0 MHz
Oscillator not used External
Caution When inputting pulse from the target system, open the configuration dialog box when starting the
integrated debugger (ID78K0S-NS) and select “External” in the area (Clock) for selecting the CPU’s
clock source (this selects the user’s clock).
Remark The IE-789177-NS-EM1s factory settings 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-789177-NS-EM1 is shipped, a 5.0 MHz crystal oscillator is already mounted in the IE-789177-NS-
EM1s X1 UMCLK socket. When using the factory-set mode settings, there is no need to make any other
hardware settings.
When starting the integrated debugger (ID78K0S-NS), open the configuration dialog box and select Internal in
the area (Clock) for selecting the CPUs clock source (this selects the emulators internal clock).
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM 23
(2) When using clock mounted by user
The settings described under either (a) or (b) are required, depending on the type of clock to be used.
When starting the integrated debugger (ID78K0S-NS), open the configuration dialog box and select Internal in
the area (Clock) for selecting the CPUs clock source (this selects the emulators 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
<Steps>
<1> Solder the target ceramic resonator or crystal resonator, resistor Rx, capacitor CA, and capacitor
CB (all with suitable oscillation frequency) onto the parts board (as shown below).
Figure 3-6. Connections on Parts Board (When Using Main System Clock or User-Mounted Clock)
Parts board (X1 UMCLK)
Pin No. Connection
2-13 Capacitor CA
3-12 Capacitor CB
4-11 Ceramic resonator or crystal resonator
5-10 Resistor Rx
8-9 Short
Circuit diagram
1 M
11
4
3
12
CB CA
13
2
5
10
Rx
98CLOCK OUT
HCU04 HCU04
Remark The sections enclosed in broken lines indicate parts that are attached to the parts board.
1
2
3
4
5
6
7
14
13
12
11
10
9
8
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM
24
<2> Prepare the IE-789177-NS-EM1.
<3> Remove the crystal oscillator that is mounted in the IE-789177-NS-EM1s socket (X1 UMCLK).
<4> Connect the prepared parts board to the socket (X1 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 mounted in the socket (X1 UMCLK) on the emulation board is wired
as shown in Figure 3-6 above.
<6> Install the IE-789177-NS-EM1 in the IE-78K0S-NS or IE-78K0S-NS-A.
The above steps configure the following circuit and enable supply of the clock from the mounted resonator to the
emulation device.
1 M
11
4
3
12
CB CA
13
2
5
10
Rx
98
6
HCU04 LVCC
4.7 k
HC157
X1
LVCC
HSK120
1 M
100
X1
HCU04
X
PD789009
PD789009
IE-78K0S-NS or IE-78K0S-NS-A side
(Emulation device)
µ
µ
Remark The sections enclosed in broken lines indicate parts that are attached to the parts board.
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM 25
(b) When using a crystal oscillator
Items to be prepared
Crystal oscillator (see pinouts shown in Figure 3-7)
Figure 3-7. Crystal Oscillator (When Using Main System Clock or User-Mounted Clock)
VCC
CLOCK OUTGND
NC
<Steps>
<1> Prepare the IE-789177-NS-EM1.
<2> Remove the crystal oscillator that is mounted in the IE-789177-NS-EM1s socket (X1 UMCLK).
<3> Connect the prepared crystal oscillator to the socket (X1 UMCLK) from which the crystal oscillator
was removed. Insert the crystal oscillator pin into the socket aligning the pins as shown in the
figure below.
Figure 3-8. Pin Alignment of Crystal Oscillator and Socket
Crystal Oscillator Pin Name Socket Pin No.
NC 1
GND 7
CLOCK OUT 8
VCC 14
<4> Install the IE-789177-NS-EM1 in the IE-78K0S-NS or IE-78K0S-NS-A.
14
13
12
11
10
9
8
V
CC
CLOCK OUT
GND
NC 1
2
3
4
5
6
7
Crystal oscillator Socket
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM
26
The above steps configure the following circuit and enable supply of the clock from the mounted
resonator to the emulation device.
V
CC
Crystal oscillator LV
CC
4.7 k
HC157
X1
LV
CC
HSK120
1 M
100
X1
PD789009
PD789009
IE-78K0S-NS or IE-78K0S-NS-A side
(Emulation device)
µ
µ
(3) When inputting pulse from target system
No hardware settings are required for this situation.
When starting the integrated debugger (ID78K0S-NS), open the configuration dialog box and select External in
the area (Clock) for selecting the CPUs clock source (this selects the users clock).
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM 27
3.2.3 Subsystem clock settings
Table 3-2. Subsystem Clock Settings
IE-789177-NS-EM1Frequency of Subsystem Clock
Parts board (XT1 USCLK) JP1
When using clock that is
already mounted on
emulation board
32.768 kHz 6 and 8 shorted
When using clock mounted
by user
Oscillator assembled by user
Short 2 and 3
When inputting pulse from
target system
Other than 32.768 kHz
Not used Short 1 and 2
Caution Jumper JP1, which is used to select the board’s clock or an external clock, should be set only after
turning off the power of IE-78K0S-NS or IE-78K0S-NS-A.
Remark When the IE-789177-NS-EM1 is shipped, the settings for when using clock that is already mounted on
emulation board are preset.
(1) When using clock that is already mounted on emulation board
When the IE-789177-NS-EM1 is shipped, a 32.768 kHz crystal resonator (XTC1) and a parts board (XT1
USCLK) on which pins 6 and 8 are shorted are already mounted on the IE-789177-NS-EM1. Short pins 2 and 3
on the IE-789177-NS-EM1s jumper (JP1). There is no need to make any other settings via the integrated
debugger (ID78K0S-NS).
(2) When using the clock mounted by user
The settings described under either (a) or (b) are required, depending on the type of clock to be used. Short pins
2 and 3 on the IE-789177-NS-EM1s jumper (JP1).
There is no need to make any other settings via the integrated debugger (ID78K0S-NS).
(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
<Steps>
<1> Solder the target ceramic resonator or crystal resonator, resistor Rx, capacitor CA, and capacitor CB (all with
suitable oscillation frequency) onto the parts board (as shown in the following diagram).
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM
28
Figure 3-9. Connections on Parts Board (When Using Subsystem Clock or User-Mounted Clock)
Parts board (XT1 USCLK)
Pin No. Connection
2-13 Capacitor CA
3-12 Capacitor CB
4-11 Ceramic resonator or crystal resonator
5-10 Resistor Rx
8-9 Short
Circuit diagram
10 M
11
4
3
12
CB CA
13
2
5
10
Rx
98CLOCK OUT
HCU04 HCU04
Remark The sections enclosed in broken lines indicate parts that are attached to the parts board.
1
2
3
4
5
6
7
14
13
12
11
10
9
8
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM 29
<2> Prepare the IE-789177-NS-EM1.
<3> Remove the parts board that is mounted in the IE-789177-NS-EM1s socket (XT1 USCLK).
<4> Connect the prepared parts board to the socket (XT1 USCLK) from which the parts board was removed.
Check the pin 1 mark to make sure the board is mounted in the correct direction.
<5> Install the IE-789177-NS-EM1 in the IE-78K0S-NS or IE-78K0S-NS-A.
The above steps configure the following circuit and enable supply of the clock from the mounted resonator to the
emulation device.
10 M
HCU04 HCU04
9 8
5
Rx
10
114
13
CB
2
3
CA
12
IE-78K0S-NS or IE-78K0S-NS-A side
(Emulation device)
Target
system
1
3
2
LV
CC
4.7 k
JP1
HC04
XT1
LV
CC
HSK120
1 M
100
XT1
PD789009
PD789009
µ
µ
Remark The section enclosed in broken lines indicates parts that are attached to the parts board.
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM
30
(b) When using a crystal oscillator
Items to be prepared
Crystal oscillator (see pinouts shown in Figure 3-10)
Figure 3-10. Crystal Oscillator (When Using Subsystem Clock or User-Mounted Clock)
<Steps>
<1> Prepare the IE-789177-NS-EM1.
<2> Remove the parts board that is mounted in the IE-789177-NS-EM1s socket (XT1 USCLK).
<3> Connect the prepared crystal oscillator to the socket (XT1 USCLK) from which the parts board was removed.
Insert the crystal oscillator into the socket aligning the pins as shown below.
Figure 3-11. Pin Alignment of Crystal Oscillator and Socket
Crystal Oscillator Pin Name Socket Pin No.
NC 1
GND 7
CLOCK OUT 8
VCC 14
<4> Install the IE-789177-NS-EM1 in the IE-78K0S-NS or IE-78K0S-NS-A.
NC
GND CLOCK OUT
VCC
14
13
12
11
10
9
8
V
CC
CLOCK OUT
GND
NC 1
2
3
4
5
6
7
Crystal oscillator Socket
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM 31
The above steps configure the following circuit and enable supply of the clock from the mounted oscillator to
the emulation device.
Crystal oscillator
+5 V
8
7
14 Parts board
IE-78K0S-NS or IE-78K0S-NS-A side
(Emulation device)
1
3
2
LV
CC
4.7 k
JP1
XT1
LV
CC
HSK120
1 M
100
XT1
PD789009
PD789009
HC04
µ
µ
(3) When inputting pulse from target system
Short pins 1 and 2 on the IE-789177-NS-EM1s jumper (JP1). There is no need to make any settings via the
integrated debugger (ID78K0S-NS).
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM
32
3.3 Mask Option Settings
By setting the DIP switch (SW1) in the IE-789177-NS-EM1, a 33 k pull-up resistor can be connected to P50 to
P53 by a mask option.
Table 3-3. SW1 Switch Setting
SW1
1234
Destination pin P50 P51 P52 P53
When the DIP switch is ON, the corresponding pin is pulled-up by the target VDD pin. When it is OFF, the
corresponding pull-up resistor is disconnected. Set the DIP switch to OFF for ports that do not exist.
Figure 3-12. Mask Option Setting
P50
P51
P52
P53
P50
Emulation CPU Probe
Target VDD
P51
P52
P53
P50 P51 P52 P53
100
1 M
33 k
Initial setting is OFF
SW1
ON
OFF
O
F
F2
1
3
4
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM 33
3.4 Power Supply Voltage Setting of Target Interface
In the IE system, emulation is possible with a voltage of the same level as the power supply voltage of the target
system.
When the target system is not connected, the IE system automatically operates with the emulators internal power
supply (5 V). When debugging with a voltage that is the same level as that of the target system, supply the same
voltage as that of the target system to the TP1 terminal pin of the IE-789177-NS-EM1 (the same applies when the
voltage is 5 V). Set the target voltage to between 1.8 and 5.0 V.
Maximum current consumption of TP1
1.8 to 5.0 V: Approximately 100 mA
Figure 3-13. Connection of TP1 and Power Supply Voltage of Target System
GND
VDD
Emulation probe
Target system
CN1
Power supply voltage of
target system
TP1
GND
LowVolt
Caution Connect TP1 on the board and the power supply voltage of the target system after turning off
the power of the IE-78K0S-NS or IE-78K0S-NS-A.
Remark The VDD pin of the target system is only used for controlling LED1 (TVCC), which monitors whether the
power supply of the target system is connected in IE-789177-NS-EM1.
CHAPTER 3 INSTALLATION
Users Manual U14621EJ2V0UM
34
3.5 External Trigger
To set up an external trigger, connect it to the IE-789177-NS-EM1s check pins EXTOUT and EXTIN as shown
below.
For the pin characteristics, see the IE-78K0S-NS User’s Manual (U13549E) or IE-78K0S-NS-A User’s Manual
(U15207E). For the use methods, see the ID78K0-NS, ID78K0S-NS Integrated Debugger Ver. 2.20 or Later
Operation (Windows Based) User’s Manual (U14910E).
(1) EXTOUT
Output a low level from the EXTOUT pin on the IE-789177-NS-EM1 for 1.3
µ
s upon the occurrence of a break
event.
Caution Connect a pull-up resistor on the target system since this is an open-drain output.
(2) EXTIN
An event signal can be input from the EXTIN pin on the IE-789177-NS-EM1. Input a high-level pulse signal for 2
CPU operation clocks or more.
Figure 3-14. External Trigger Input Position
EXTOUT (CP7)
EXTIN (CP8)
CN1 TP1
CHAPTER 3 INSTALLATION
User’s Manual U14621EJ2V0UM 35
3.6 Switch and Jumper Settings
(1) Switch and jumper settings on the IE-78K0S-NS
When using the IE-789177-NS-EM1, set the switches and jumpers on the IE-78K0S-NS as shown in Table 3-4.
For details of these switch and jumper settings, refer to the IE-78K0S-NS User’s Manual (U13549E).
Table 3-4. Switch and Jumper Settings on IE-78K0S-NS
SW1 SW3 SW4 JP1 JP4
Setting OFF All switches ON All switches ON 2 and 3 shorted 1 and 2 shorted
Caution Incorrect settings may damage the IE-789177-NS-EM1.
(2) Switch and jumper settings on the IE-78K0S-NS-A
When using the IE-789177-NS-EM1, set the switches and jumpers on the IE-78K0S-NS-A as shown in Table 3-5.
For details of these switch and jumper settings, refer to the IE-78K0S-NS-A User’s Manual (U15207E).
Table 3-5. Switch and Jumper Settings on IE-78K0S-NS-A
SW1 JP1 JP3
Setting OFF 1 and 2 shorted Shorted
Caution Incorrect settings may damage the IE-78K0S-NS-A.
(3) Initial settings of switch and jumper on the IE-789177-NS-EM1
The initial settings of switch and jumper on the IE-789177-NS-EM1 are shown in Table 3-6.
Table 3-6. Initialize Settings of Switch and Jumper on IE-789177-NS-EM1
SW1 JP1
Setting All switches OFF 2 and 3 shorted
For details, refer to 3.2 Clock Settings or 3.3 Mask Option Settings.
User’s Manual U14621EJ2V0UM
36
CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICES AND TARGET INTERFACE CIRCUITS
This chapter describes the differences between the target device’s signal lines and the signal lines of the IE-
789177-NS-EM1’s target interface circuit.
Although the target device is a CMOS circuit, the IE-789177-NS-EM1’s target interface circuit consists of
emulators such as an emulation CPU, TTL, and CMOS-IC.
When the IE system is connected with the target system for debugging, the IE system performs emulation so as to
operate as the actual target device would operate in the target system.
However, some minor differences exist since the operations are performed via the IE system’s emulation.
(1) Signals directly input/output to/from the evaluation chip and peripheral evaluation chip
(2) Signals input from the target system via a gate
(3) Analog signals
(4) Other signals
The IE system’s circuit is used as follows for signals listed in (1) to (4) above.
(1) Signals directly input/output to/from the evaluation chip and peripheral evaluation chip
The following signals perform the same operations as in the
µ
PD789167, 789177 Subseries. However, a 1 M
pull-down resistor and 100 resistor are inserted in series.
Signals related to port 0
Signals related to port 1
Signals related to port 2
Signals related to port 3
Signals related to port 5
(2) Signals input from the target system via a gate
Since the following signals are input via a gate, their timing shows a delay compared to the
µ
PD789167, 789177
Subseries.
RESET signal
X1, XT1 signals
CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICES AND TARGET INTERFACE CIRCUITS
User’s Manual U14621EJ2V0UM 37
(3) Analog signals
Because the following signals input/output analog-related signals, special processing is not performed in the IE-
789177-NS-EM1.
AVDD pin
AVREF pin
Signals related to port 6
(4) Other signals
VDD, VDD1 pins
When the target system is not connected, the internal power supply voltage (5 V) of the IE-789177-NS-EM1 is
supplied to the emulation CPU. When the target system is connected, power is supplied from the voltage
supply pin (TP1). The VDD0, VDD1 pins of the target system are only used to control the LED1 in the IE-789177-
NS-EM1 that monitors the input of the target system’s power supply (TVCC).
VSS0, VSS1, AVSS pins
The VSS0, VSS1, and AVSS pins are connected to GND in the IE-789177-NS-EM1.
TEST/VPP pin
The TEST/VPP pin is not used in the IE-789177-NS-EM1.
X2, XT2 pins
The X2, XT2 pins are not used in the IE-789177-NS-EM1.
CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICES AND TARGET INTERFACE CIRCUITS
User’s Manual U14621EJ2V0UM
38
Figure 4-1. Equivalent Circuit 1 of Emulator
1 M
1 M
100
100
100
100
100
33 k
SW1
4.7 k
4.7 k
HC4066
HC157
PD789009
PD789009
PD789009
PD789009
1 M
LV
CC
LV
CC
LV
CC
4.7 k
JP1
HC04
LV
CC
LV
CC
LV
CC
HSK120
HSK120
Probe side IE-789177-NS-EM1 side
Port 5
XT1
X1
Port 0
Port 1
Port 2
Port 3
Port 0
Port 1
Port 2
Port 3
Port 5
RESET
X1
XT1
AV
DD
AV
REF
Port 6
AV
DD
AV
REF
Port 6
1 M
X1
XT1
RESET
µ
µ
µ
µ
CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICES AND TARGET INTERFACE CIRCUITS
Users Manual U14621EJ2V0UM 39
Figure 4-2. Equivalent Circuit 2 of Emulator
+
Filter
22 F
1 M
100 PC393 Power detection
+
G6H-2F (Relay)
Probe side IE-789177-NS-EM1 side
V
DD0
V
DD1
X2
XT2
V
SS0
V
SS1
AV
SS
TEST/V
PP
OPEN
LV
CC
Emulation device
TEST/V
PP
OPEN
µ
µ
User’s Manual U14621EJ2V0UM
40
APPENDIX A. EMULATION PROBE PIN ASSIGNMENT TABLE
Table A-1. NP-44GB, NP-44GB-TQ, NP-H44GB-TQ Pin Assignments
Emulation Probe CN1 Pin No. Emulation Probe CN1 Pin No.
1 104 23 18
2 103 24 17
3 100 25 22
4 992621
5 942728
6 932827
7 302992
8 293091
9 243198
10 23 32 97
11 20 33 102
12 47 34 73
13 48 35 72
14 51 36 69
15 52 37 70
16 57 38 63
17 58 39 64
18 59 40 61
19 60 41 62
20 55 42 65
21 56 43 66
22 49 44 71
Remarks 1. NP-44GB, NP-44GB-TQ, and NP-H44GB-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.
APPENDIX A. EMULATION PROBE PIN ASSIGNMENT TABLE
User’s Manual U14621EJ2V0UM 41
Table A-2. NP-48GA Pin Assignments
Emulation Probe CN1 Pin No. Emulation Probe CN1 Pin No.
1 104 25 18
2 103 26 17
3 100 27 22
4992821
5942928
6933027
7 30 31 101
8293292
9243391
10 23 34 98
11 20 35 97
12 19 36 102
13 47 37 73
14 48 38 72
15 51 39 69
16 52 40 70
17 57 41 63
18 58 42 64
19 50 43 61
20 59 44 74
21 60 45 62
22 55 46 65
23 56 47 66
24 49 48 71
Remarks 1. NP-48GA 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 U14621EJ2V0UM
42
APPENDIX B. CAUTIONS ON DESIGNING TARGET SYSTEM
The following shows the conditions when connecting the emulation probe to the conversion connector or
conversion socket. Follow the configuration below and consider the shape of parts to be mounted on the target
system when designing a system.
Figure B-1. Distance Between In-Circuit Emulator and Conversion Socket (NP-44GB, NP-44GB-TQ)
170 mm
Note
In-circuit emulator
IE-78K0S-NS or IE-78K0S-NS-A
Emulation board
IE-789177-NS-EM1
Conversion socket: EV-9200G-44
Conversion adapter: TGB-044SAP
Target system
CN1
Emulation probe
NP-44GB, NP-44GB-TQ
NP-H44GB-TQ
Note Distance when NP-44GB and NP-44GB-TQ are used. When NP-H44GB-TQ is used, the distance is 370
mm.
Remarks 1. NP-44GB, NP-44GB-TQ, and NP-H44GB-TQ are products of Naito Densei Machida Mfg. Co., Ltd.
2. TGB-044SAP is a product of TOKYO ELETECH CORPORATION.
APPENDIX B. CAUTIONS ON DESIGNING TARGET SYSTEM
Users Manual U14621EJ2V0UM 43
Figure B-2. Connection Condition of Target System (NP-H44GB-TQ)
Extension probe
NP-H44GB-TQ
Emulation board
IE-789177-NS-EM1
23 mm
10 mm
40 mm 34 mm
Target system
11 mm
Conversion adapter
TGB-044SAP
Remarks 1. NP-H44GB-TQ are products of Naito Densei Machida Mfg. Co., Ltd.
2. TGB-044SAP is a product of TOKYO ELETECH CORPORATION.
APPENDIX B. CAUTIONS ON DESIGNING TARGET SYSTEM
Users Manual U14621EJ2V0UM
44
Figure B-3. Distance Between In-Circuit Emulator and Conversion Socket (NP-48GA)
170 mm
Incircuit emulator
IE-78K0S-NS or IE-78K0S-NS-A
Emulation board
IE-789177-NS-EM1
Conversion adapter: TGA-048SDP
Target system
CN1
Emulation probe
NP-48GA
Remarks 1. NP-48GA is a product of Naito Densei Machida Mfg. Co., Ltd.
2. TGA-048SDP is a product of TOKYO ELETECH CORPORATION.
APPENDIX B. CAUTIONS ON DESIGNING TARGET SYSTEM
Users Manual U14621EJ2V0UM 45
Figure B-4. Connection Condition of Target System (NP-48GA)
Extension probe
NP-48GA
Emulation board
IE-789177-NS-EM1
23 mm
10 mm
40 mm 34 mm
Target system
11 mm
Conversion adapter
TGA-048SDP
Remarks 1. NP-48GA is a product of Naito Densei Machida Mfg. Co., Ltd.
2. TGA-048SDP is a product of TOKYO ELETECH CORPORATION.
Users Manual U14621EJ2V0UM
46
[MEMO]
Although NEC has taken all possible steps
to ensure that the documentation supplied
to our customers is complete, bug free
and up-to-date, we readily accept that
errors may occur. Despite all the care and
precautions we've taken, you may
encounter problems in the documentation.
Please complete this form whenever
you'd like to report errors or suggest
improvements to us.
Hong Kong, Philippines, Oceania
NEC Electronics Hong Kong Ltd.
Fax: +852-2886-9022/9044
Korea
NEC Electronics Hong Kong Ltd.
Seoul Branch
Fax: +82-2-528-4411
P.R. China
NEC Electronics Shanghai, Ltd.
NEC Electronics Taiwan Ltd.
Fax: +86-21-6841-1137
Address
North America
NEC Electronics Inc.
Corporate Communications Dept.
Fax: +1-800-729-9288
+1-408-588-6130
Europe
NEC Electronics (Europe) GmbH
Market Communication Dept.
Fax: +49-211-6503-274
South America
NEC do Brasil S.A.
Fax: +55-11-6462-6829
Taiwan
Asian Nations except Philippines
NEC Electronics Singapore Pte. Ltd.
Fax: +886-2-2719-5951
Fax: +65-250-3583
Japan
NEC Semiconductor Technical Hotline
Fax: +81- 44-435-9608
I would like to report the following error/make the following suggestion:
Document title:
Document number: Page number:
Thank you for your kind support.
If possible, please fax the referenced page or drawing.
Excellent Good Acceptable PoorDocument Rating
Clarity
Technical Accuracy
Organization
CS 02.3
Name
Company
From:
Tel. FAX
Facsimile
Message