NEC IE-784937-NS-EM1 User manual

User’s Manual
Target devices
µ
µµ
µ
PD784938A Subseries
IE-784937-NS-EM1
Emulation Board
Document No. U16556EJ1V0UM00 (1st edition)
Date Published May 2003 N CP(K)
Printed in Japan
2003

User’s Manual U16556EJ1V0UM
2
[MEMO]

User’s Manual U16556EJ1V0UM 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.
The information in this document is current as of January, 2003. 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 customer-
designated "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 U16556EJ1V0UM
4
Regional Information
•
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.
[GLOBAL SUPPORT]
http://www.necel.com/en/support/support.html
NEC Electronics America, Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
NEC Electronics Hong Kong Ltd.
Hong Kong
Tel: 2886-9318
NEC Electronics Hong Kong Ltd.
Seoul Branch
Seoul, Korea
Tel: 02-558-3737
NEC Electronics Shanghai, Ltd.
Shanghai, P.R. China
Tel: 021-6841-1138
NEC Electronics Taiwan Ltd.
Taipei, Taiwan
Tel: 02-2719-2377
NEC Electronics Singapore Pte. Ltd.
Novena Square, Singapore
Tel: 6253-8311
J03.4
N
EC Electronics (Europe) GmbH
Duesseldorf, Germany
Tel: 0211-65 03 01
• Sucursal en España
Madrid, Spain
Tel: 091-504 27 87
Vélizy-Villacoublay, France
Tel: 01-30-67 58 00
• Succursale Française
• Filiale Italiana
Milano, Italy
Tel: 02-66 75 41
• Branch The Netherlands
Eindhoven, The Netherlands
Tel: 040-244 58 45
• Tyskland Filial
Taeby, Sweden
Tel: 08-63 80 820
• United Kingdom Branch
Milton Keynes, UK
Tel: 01908-691-133
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:

User’s Manual U16556EJ1V0UM 5
INTRODUCTION
Product Overview The IE-784937-NS-EM1 is designed to be used with the IE-78K4-NS to debug the
following target devices that belong to the 78K/IV Series of 16-bit single-chip
microcontrollers.
•
µ
PD784938A Subseries:
µ
PD784935A, 784936A, 784937A, 784938A, 78F4938A
Target Readers This manual is intended for engineers who will use the IE-784937-NS-EM1 with the IE-
78K4-NS 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-784937-NS-EM1, refer to not only this manual (supplied with the IE-
784937-NS-EM1) but also the manual that is supplied with the IE-78K4-NS.
IE-78K4-NS IE-784937-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
•Restrictions
•Cautions
Purpose This manual’s purpose is to explain various debugging functions that can be performed
when using the IE-784937-NS-EM1.

User’s Manual U16556EJ1V0UM
6
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 (a real chip) that is the target for emulation.
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-78K4-NS and the IE-784937-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 No.
IE-78K4-NS In-Circuit Emulator U13356E
IE-784937-NS-EM1 Emulation Board This manual
ID78K Series Integrated Debugger Ver. 2.30 or Later WindowsTM Based Operation U15185E
µ
PD784938A Subseries Hardware U15609E
Caution The related documents listed above are subject to change without notice. Be sure to use the
latest version of each document for designing.

User’s Manual U16556EJ1V0UM 7
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.....................................................................................................................18
3.1 Connection ................................................................................................................................................. 19
3.2 Selection of Emulator Main Unit............................................................................................................... 20
3.3 Clock Settings ............................................................................................................................................ 20
3.3.1 Overview of clock settings ............................................................................................................. 20
3.3.2 Main system clock settings............................................................................................................ 22
3.3.3 Timer clock settings ....................................................................................................................... 26
3.4 Pin Mask Function Settings ...................................................................................................................... 29
3.4.1 NMI interrupt mask setting............................................................................................................. 29
3.4.2 Wait (WAIT)/hold (HOLD) mask function ....................................................................................... 29
3.4.3 Wait display function setting .......................................................................................................... 29
3.4.4 Hold display function setting.......................................................................................................... 30
3.5 Low-Voltage Emulation Setting ................................................................................................................ 30
3.6 External Trigger ......................................................................................................................................... 31
CHAPTER 4 DIFFERENCES BETWEEN TARGET DEVICES AND TARGET INTERFACE CIRCUITS..32
CHAPTER 5 RESTRICTIONS ....................................................................................................................36
CHAPTER 6 CAUTIONS ............................................................................................................................37
APPENDIX A EMULATION PROBE PIN ASSIGNMENT TABLE ............................................................. 38
APPENDIX B PROGRAM WAIT CONTROL REGISTER SETTINGS IN IN-CIRCUIT EMULATOR.........40
APPENDIX C NOTES ON TARGET SYSTEM DESIGN ............................................................................42

User’s Manual U16556EJ1V0UM
8
LIST OF FIGURES
Figure No. Title Page
1-1 System Configuration .................................................................................................................................. 11
1-2 Basic Hardware Configuration..................................................................................................................... 13
2-1 IE-784937-NS-EM1 Part Names ................................................................................................................. 16
2-2 4937 PROBE Board 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)............................................. 24
3-8 Pin Alignment of Crystal Oscillator and Socket........................................................................................... 25
3-9 Connections on Parts Board (When Using Timer Clock or User-Mounted Clock) ...................................... 27
3-10 Crystal Oscillator (When Using Timer Clock or User-Mounted Clock) ........................................................ 28
3-11 External Trigger Input Position .................................................................................................................... 31
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
C-1 Distance Between IE System and Conversion Adapter .............................................................................. 42
C-2 Connection Conditions of Target System (When NP-100GF-TQ Is Used).................................................. 43
C-3 Connection Conditions of Target System (When NP-H100GF-TQ Is Used) ............................................... 43

User’s Manual U16556EJ1V0UM 9
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 DIP Switch Setting for NMI Interrupt Mask...................................................................................................29
3-4 DIP Switch Setting for Wait (WAIT)/Hold (HOLD) Mask Function................................................................29
3-5 DIP Switch Setting for Wait Display Function ..............................................................................................29
3-6 DIP Switch Setting for Hold Display Function ..............................................................................................30
6-1 SW1 Setting When Using IE-784000-R .......................................................................................................37
6-2 SW1-7 Setting When Using IE-784000-R ....................................................................................................37
A-1 NP-100GF, NP-100GF-TQ, NP-H100GF-TQ Pin Assignments ...................................................................38
C-1 Distance Between IE System and Conversion Adapter ...............................................................................42

User’s Manual U16556EJ1V0UM
10
CHAPTER 1 GENERAL
The IE-784937-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/IV Series of 16-bit single-chip microcontrollers.
This chapter describes the IE-784937-NS-EM1’s system configuration and basic specifications.
•Target devices
•
µ
PD784938A Subseries

CHAPTER 1 GENERAL
User’s Manual U16556EJ1V0UM 11
1.1 System Configuration
Figure 1-1 illustrates the IE-784937-NS-EM1’s system configuration.
Figure 1-1. System Configuration
FG Cable
IE-78K4-NS
(sold separately)
NS CARD
Cable
MC CARD
Cable
IE-70000-CD-IF-A
(sold separately)
Debugger
ID78K4-NS
(sold separately)
Device fileNote 1
(sold separately)
Control software
Host machine
PC-9800 Series
or 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 card
Interface
cable
Interface cable
(NS IF Cable)
In-circuit emulator
IE-784937-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)

CHAPTER 1 GENERAL
User’s Manual U16556EJ1V0UM
12
Notes 1. The device file is as follows.
µ
S××××DF784937:
µ
PD784938A Subseries
The device file can be downloaded from the website of NEC Electronics (http://www.necel.com/micro/).
2. The emulation probes NP-100GF, NP-100GF-TQ, and NP-H100GF-TQ 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 adapter TGF-100RBP is a product 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 shows the correspondence between emulation probes and conversion adapters that are sold
separately.
Table 1-1. Correspondence Between Emulation Probes and Conversion Adapters
Package Emulation Probe Conversion Adapter
NP-100GF (Probe length: 200 mm) EV-9200GF-100100-pin plastic QFP
(GF-3BA type) NP-100GF-TQ (Probe length: 200 mm)
NP-H100GF-TQ (Probe length: 400 mm)
TGF-100RBP

CHAPTER 1 GENERAL
User’s Manual U16556EJ1V0UM 13
1.2 Hardware Configuration
Figure 1-2 shows the IE-784937-NS-EM1’s position in the basic hardware configuration.
Figure 1-2. Basic Hardware Configuration
IE-78K4-NS (sold separately) IE-784937-NS-EM1
Emulation probe
(sold separately)
Dedicated bus interface
IE system
Host machine Interface board
(sold separately)
78K4 main board
(G-78K4 MAIN Board)
78K4 emulation board
(G-78K4 EM Board)
Emulation board
(This product)
Interface card
(sold separately)

CHAPTER 1 GENERAL
User’s Manual U16556EJ1V0UM
14
1.3 Basic Specifications
The IE-784937-NS-EM1’s basic specifications are listed in Table 1-1.
Table 1-2. Basic Specifications
Parameter Description
Target device
µ
PD784935A, 784936A, 784937A, 784938A, 78F4938A Subseries
System clock 12.58 MHz
Main system clock supply External: Input via an emulation probe from the target system
Internal: Mounted on emulation board (12.58 MHz), or mounted on the board by the user
Timer clock supply External: Input via an emulation probe from the target system
Internal: Mounted on emulation board (32.768 kHz), or mounted on the board by the user
Low-voltage support 2.7 to 5.5 V (at 6.29 MHz operation)
4.5 to 5.5 V (at 12.58 MHz operation)

User’s Manual U16556EJ1V0UM 15
CHAPTER 2 PART NAMES
This chapter introduces the parts of the IE-784937-NS-EM1 main unit.
The packing box contains the emulation board (IE-784937-NS-EM1), 4937 PROBE Board (GC), and 4937 PROBE
Board (GF).
If there are any missing or damaged items, please contact an NEC sales representative.
Fill out and return the guarantee document that comes with the main unit.

CHAPTER 2 PART NAMES
User’s Manual U16556EJ1V0UM
16
2.1 Parts of Main Unit
Figure 2-1. IE-784937-NS-EM1 Part Names
GND
LowVolt
Probe connector
ACN1 100GF
EXTOUT
EXTIN
USER VDD
LED
TP3
JP3
USCLK
SW1
UMCLK
TP1
External sense
Probe connector
ACN2 (for expansion)
Connector for IE-784000-R
RCN3
TP2
TP1
HOLD LED3
WAIT LED2
IE-784937-NS-EM1

CHAPTER 2 PART NAMES
User’s Manual U16556EJ1V0UM 17
Figure 2-2. 4937 PROBE Board Part Names
(a) 4937 PROBE Board (GF) (b) 4937 PROBE Board (GC)
RCN3
ACN1
RCN3
ACN2
Caution The 4937 PROBE Board (GF) is used when the IE-784937-NS-EM1 and IE-78K4-R-EX3 are
combined to connect to the IE-784000-R. The 4937 PROBE Board (GF) is not used for
connection with the IE-78K4-NS, the 4937 PROBE Board (GC) is used for expansion.

User’s Manual U16556EJ1V0UM
18
CHAPTER 3 INSTALLATION
This chapter describes methods for connecting the IE-784937-NS-EM1 to the IE-78K4-NS, 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 U16556EJ1V0UM 19
3.1 Connection
(1) Connection with IE-78K4-NS main unit
See the IE-78K4-NS User’s Manual (U13356E) for a description of how to connect the IE-784937-NS-EM1 to the
IE-78K4-NS.
(2) Connection with emulation probe
See the IE-78K4-NS User’s Manual (U13356E) for a description of how to connect an emulation probe to the IE-
784937-NS-EM1.
Connect the emulation probe to ACN1 on this board.
Cautions 1. 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.
2. Do not use ACN2, which is for expansion.
Figure 3-1. Connection of Emulation Probe
Emulation board
(IE-784937-NS-EM1)
Main board
(G-78K4 MAIN Board)
Emulation board
(G-78K4 EM Board)
Emulation probe
(sold separately)
ACN2 for expansion
ACN1 100GF
RCN3 for IE-784000-R
(3) Mounting 4937 PROBE Board
The 4937 PROBE Board need not be mounted when the IE-78K4-NS is used.
Mount the 4937 PROBE Board when using the IE-784000-R. Refer to CHAPTER 6 CAUTIONS.

CHAPTER 3 INSTALLATION
User’s Manual U16556EJ1V0UM
20
3.2 Selection of Emulator Main Unit
JP3 in the IE-784937-NS-EM1 must be set in accordance with the emulator main unit to be used as follows.
Using IE-784937-NS-EM1 in combination with IE-78K4-NS: Short 1 and 2 (shipment setting)
Using IE-784000-R in combination with IE-784937-NS-EM1 and IE-78K4-R-EX3: Short 2 and 3
3.3 Clock Settings
3.3.1 Overview of clock settings
The main system clock to be used during debugging can be selected from (1) to (3) below, and the timer clock
from (1) and (2) below.
(1) Clock that is already mounted on emulation board
(2) Clock that is mounted by user
(3) External clock
If the target system includes an internal clock, select either “(1) Clock that is already mounted on emulation board”
or “(2) Clock that is mounted by user”. For an internal clock, the target device is connected to a resonator 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 resonator that is mounted on the target system is not used. Instead, it uses the clock that is mounted
on the emulation board, which is installed for the IE-78K4-NS.
If the target system includes an external clock, select “(3) External clock”.
For an 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.
Figure 3-2. External Circuits Used as System Clock Oscillator
(a) Internal clock (b) External clock
X2 or XT2 X2 or XT2
Target device Target device
External
clock
X1 or XT1 X1 or XT1
Table of contents
Other NEC Computer Hardware manuals

NEC
NEC uPD75P308 User manual

NEC
NEC VMware ESXi N8106-010 User manual

NEC
NEC FDl165 Technical specifications

NEC
NEC TTS 58AXPJ User manual

NEC
NEC N8151-78A User guide

NEC
NEC DS2000 IntraMail User manual

NEC
NEC N8106-019 VMware ESXi User manual

NEC
NEC PD789488 User manual

NEC
NEC N8151-106 User guide

NEC
NEC PD754144 User manual

NEC
NEC NE3703-001 Operating instructions

NEC
NEC V850/SV1 User manual

NEC
NEC IE-703116-MC-EM1 User manual

NEC
NEC VR4181 mPD30181 User manual

NEC
NEC N8104-128 User manual

NEC
NEC IE-78K0-NS-P04 User manual

NEC
NEC SB3-DB1 User manual

NEC
NEC Express 5800 120Eg User manual

NEC
NEC IE-70000-MC-NW-A User manual

NEC
NEC N8104-206 User manual