NEC 78014Y Series User manual

www.DataSheet4U.com
1
µ
PD78014, 78014Y SUBSERIES
8-BIT SINGLE-CHIP MICROCONTROLLERS
µ
PD78011B
µ
PD78011BY
µ
PD78012B
µ
PD78012BY
µ
PD78013
µ
PD78013Y
µ
PD78014
µ
PD78014Y
µ
PD78P014
µ
PD78P014Y
µ
PD78011B (A)
µ
PD78012B (A)
µ
PD78013 (A)
µ
PD78014 (A)
User’s Manual
Printed in Japan
©
Document No. U10085EJ7V0UM00 (7th edition)
Date Published October 1997 N
1992

www.DataSheet4U.com
2
[MEMO]

www.DataSheet4U.com
3
NOTES FOR CMOS DEVICES
1 PRECAUTION AGAINST ESD FOR SEMICONDUCTORS
Note:
Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide
and ultimately degrade the device operation. Steps must be taken to stop generation of
static electricity as much as possible, and quickly dissipate it once, when it has occurred.
Environmental control must be adequate. When it is dry, humidifier should be used. It is
recommended to avoid using insulators that easily build static electricity. Semiconductor
devices must be stored and transported in an anti-static container, static shielding bag or
conductive material. All test and measurement tools including work bench and floor should
be grounded. The operator should be grounded using wrist strap. Semiconductor devices
must not be touched with bare hands. Similar precautions need to be taken for PW boards
with semiconductor devices on it.
2 HANDLING OF UNUSED INPUT PINS FOR CMOS
Note:
No connection for CMOS device inputs can be cause of malfunction. If no connection is
provided to the input pins, it is possible that an internal input level may be generated due
to noise, etc., hence causing malfunction. CMOS devices behave differently than Bipolar or
NMOS devices. Input levels of CMOS devices must be fixed high or low by using a pull-up
or pull-down circuitry. Each unused pin should be connected to VDD or GND with a resistor,
if it is considered to have a possibility of being an output pin. All handling related to the
unused pins must be judged device by device and related specifications governing the
devices.
3 STATUS BEFORE INITIALIZATION OF MOS DEVICES
Note:
Power-on does not necessarily define initial status of MOS device. Production process of
MOS does not define the initial operation status of the device. Immediately after the power
source is turned ON, the devices with reset function have not yet been initialized. Hence,
power-on does not guarantee out-pin levels, I/O settings or contents of registers. Device is
notinitializeduntiltheresetsignalisreceived. Resetoperationmustbeexecutedimmediately
after power-on for devices having reset function.

www.DataSheet4U.com
4
FIP, IEBus, and QTOP are trademarks of NEC Corporation.
MicrosoftandWindowsareeitherregisteredtrademarksortrademarksofMicrosoftCorporation
in the United States and/or other countries.
IBM DOS, PC/AT, and PC DOS are trademarks of International Business Machines Corporation.
HP9000Series300,HP9000Series700andHP-UXaretrademarks ofHewlett-PackardCompany.
SPARCstation is a trademark of SPARC International, Inc.
SunOS is a trademark of Sun Microsystems, Inc.
Ethernet is a trademark of XEROX Corporation.
NEWS, NEWS-OS are trademarks of SONY Corporation.
OSF/Motif is a trademark of Open Softwear Foundation, Inc.
TRON is an abbreviation of The Real-time Operating system Nucleus.
ITRON is an abbreviation of Industrial TRON.
License not needed :
µ
PD78P014DW, 78P014YDW
The customer must judge the need for license:
µ
PD78011BCW-×××, 78011BGC-×××-AB8,
µ
PD78011BCW(A)-×××, 78011BGC(A)-×××-AB8,
µ
PD78011BYCW-×××, 78011BYGC-×××-AB8,
µ
PD78012BCW-×××, 78012BGC-×××-AB8,
µ
PD78012BCW(A)-×××, 78012BGC(A)-×××-AB8,
µ
PD78012BYCW-×××, 78012BYGC-×××-AB8,
µ
PD78013CW-×××, 78013GC-×××-AB8,
µ
PD78013CW(A)-×××, 78013GC(A)-×××-AB8,
µ
PD78013YCW-×××, 78013YGC-×××-AB8,
µ
PD78014CW-×××, 78014GC-×××-AB8,
µ
PD78014CW(A)-×××, 78014GC(A)-×××-AB8,
µ
PD78014YCW-×××, 78014YGC-×××-AB8,
µ
PD78P014CW, 78P014GC-AB8,
µ
PD78P014YCW, 78P014YGC-AB8
The export of these products from Japan is regulated by the Japanese government. The export of some or all of these
products may be prohibited without governmental license. To export or re-export some or all of these products from a
country other than Japan may also be prohibited without a license from that country. Please call an NEC sales
representative.

www.DataSheet4U.com
5
Caution Purchase of NEC I2C components conveys a license under the Philips I2C Patent Rights to use
these components in an I2C system, provided that the system conforms to the I2C Standard
Specification as defined by Philips.
The information in this document is subject to change without notice.
Nopart of this documentmaybecopiedorreproduced in any formorbyanymeans without the priorwritten
consentof NEC Corporation. NECCorporationassumesno responsibility foranyerrorswhich may appear
in this document.
NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual
propertyrightsofthirdpartiesbyorarisingfromuseofadevicedescribedhereinoranyotherliabilityarising
from use of such device. No license, either express, implied or otherwise, is granted under any patents,
copyrights or other intellectual property rights of NEC Corporation or others.
While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor
devices, the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to
persons or property arising from a defect in an NEC semiconductor device, customers must incorporate
sufficient safety measures in its design, such as redundancy, fire-containment, and anti-failure features.
NEC devices are classified into the following three quality grades:
“Standard”, “Special”, and “Specific”. The Specific quality grade applies only to devices developed based
on a customer designated “quality assurance program” for a specific application. The recommended
applicationsofa device depend on its quality grade, asindicatedbelow. Customersmustcheckthequality
grade of each device before using it in a particular application.
Standard: Computers,officeequipment,communicationsequipment,testandmeasurementequipment,
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-
disastersystems,anti-crimesystems,safetyequipmentandmedicalequipment(notspecifically
designed for life support)
Specific: Aircrafts,aerospace equipment, submersiblerepeaters,nuclearreactor control systems,life
support systems or medical equipment for life support, etc.
The quality grade of NEC devices is “Standard” unless otherwise specified in NEC’s Data Sheets or Data
Books.
If customers intend to use NEC devices for applications other than those specified for Standard quality
grade, they should contact an NEC sales representative in advance.
Anti-radioactive design is not implemented in this product.
M7 96.5
The application circuits and their parameters are for reference only and are not intended for use in actual design-ins.

www.DataSheet4U.com
6
NEC Electronics Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
Fax: 408-588-6130
800-729-9288
NEC Electronics (Germany) GmbH
Duesseldorf, Germany
Tel: 0211-65 03 02
Fax: 0211-65 03 490
NEC Electronics (UK) Ltd.
Milton Keynes, UK
Tel: 01908-691-133
Fax: 01908-670-290
NEC Electronics Italiana s.r.1.
Milano, Italy
Tel: 02-66 75 41
Fax: 02-66 75 42 99
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 Singapore Pte. Ltd.
United Square, Singapore 1130
Tel:253-8311
Fax: 250-3583
NEC Electronics Taiwan Ltd.
Taipei, Taiwan
Tel: 02-719-2377
Fax: 02-719-5951
NEC do Brasil S.A.
Cumbica-Guarulhos-SP, Brasil
Tel: 011-6465-6810
Fax: 011-6465-6829
NEC Electronics (Germany) GmbH
Benelux Office
Eindhoven, The Netherlands
Tel:040-2445845
Fax: 040-2444580
NEC Electronics (France) S.A.
Velizy-Villacoublay, France
Tel:01-30-67 58 00
Fax: 01-30-67 58 99
NEC Electronics (France) S.A.
Spain Office
Madrid, Spain
Tel: 01-504-2787
Fax: 01-504-2860
NEC Electronics (Germany) GmbH
Scandinavia Office
Taeby, Sweden
Tel: 08-63 80 820
Fax: 08-63 80 388
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, please 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.
J97. 8

www.DataSheet4U.com
7
Main Revisions in This Edition
Pages Description
p. 43, 44, 56, 57 The following subseries were added in sections 1.6 and 2.6, “78K/0 Series Expansion.”
µ
PD78075B,78075BY,780018,780018Y,780058,780058Y,780034,780034Y,780024,780024Y,
78014H, 780964, 780924, 780228, 78044H, 78044F, 78098B, 780973 Subseries
p. 137 through 141 The illustrations were modified in Figures 6-6 and 6-8, “P20, P21, P23 to P26 Block Diagrams”, Figures
6-7 and 6-9, “P22 and P27 Block Diagrams”, and Figure 6-10, “P30 to P37 Block Diagrams”.
p. 215, 219 Figures 9-10 and 9-13, “Square Wave Output Operation Timings” were added.
p. 264, 321 Cautions were added in sections 15.1 and 16.1, “Serial Interface Channel 0 Configuration”.
p. 271, 330 Cautions were added in sections 15.3 and 16.3, “Serial Interface Channel 0 Control Register (2) Serial
operating mode register 0 (CSIM0)”.
p. 287, 310, 348, 371 Cautions were added in sections 15.4.3 and 16.4.3, “(2) (a) Bus release signal (REL), (b) Command
signal (CMD), (11) Cautions on SBI mode”.
p. 421 (3) MSB/LSB switching as the start bit was added in section 17.4.2, “3-wire serial I/O mode operation”.
p. 439 (3) (d) Busy control option, (e) Busy & strobe control option, and (f) Bit slippage detection function in
section 17.4.3 of the former edition were changed to (4) Synchronization control and the description
was improved.
p. 495 Caution was added in Table 22-1, “Differences between
µ
PD78P014, 78P014Y, and Mask ROM
Version”.
p. 521 APPENDIX A DIFFERENCES BETWEEN
µ
PD78014, 78014H, AND 78018F SUBSERIES was added.
p. 528, 529 Windows compatible 5-inch FD products was erased in APPENDIX B DEVELOPMENT TOOLS.
p. 527, 529 The following products were changed from “Under development” to “Developed”.
IE-78000-R-A
ID78K0
The mark shows major revised points.

www.DataSheet4U.com
8
[MEMO]

www.DataSheet4U.com
9
PREFACE
Readers This manual has been prepared for user engineers who want to understand the functions of the
µ
PD78014, 78014Y Subseries and design and develop its application systems and programs.
Target subseries are as follows.
•
µ
PD78014 Subseries :
µ
PD78011B, 78012B, 78013, 78014, 78P014
µ
PD78011B(A), 78012B(A), 78013(A), 78014(A)
•
µ
PD78014Y Subseries:
µ
PD78011BY, 78012BY, 78013Y, 78014Y, 78P014Y
Caution Of the above members, the
µ
PD78P014DW, 78P014YDW should be used only
for experiment or function evaluation, because they are not intended for use in
equipment that will be mass-produced and do not have enough reliability.
Purpose ThismanualisintendedtohelpusersunderstandthefunctionsdescribedfollowingtheOrganization
below.
Organization The
µ
PD78014,78014YSubseriesmanualisseparatedintotwoparts: thismanualandInstructions
(common to the 78K/0 Series)
µ
PD78014, 78014Y SUBSERIES 78K/0 SERIES
USER’S MANUAL USER’S MANUAL
(This manual) – Instructions –
• Pin functions • CPU functions
• Internal block functions • Instruction set
• Interrupts • Explanation of each instruction
• Miscellaneous on-chip peripheral functions
How to Read This Manual
Before reading this manual, you must have general knowledge of electric and logic circuits and
microcontrollers.
When using this manual as the one for the
µ
PD78011B(A), 78012B(A), 78013(A), 78014 (A):
→The
µ
PD78011, 78012B, 78013, 78014 and the
µ
PD78011B(A), 78012B(A), 78013(A),
78014(A) are different only inquality grade. For products (A), regard the product name as
follows.
µ
PD78011B →
µ
PD78011B(A)
µ
PD78012B →
µ
PD78012B(A)
µ
PD78013 →
µ
PD78013(A)
µ
PD78014 →
µ
PD78014(A)
To understand the functions in general:
→Read this manual in the order of the contents.
To interpret the register format:
→For the circled bit number, the bit name is defined as a reserved word in RA78K/0, and
in CC78K/0, already defined in the header file named sfrbit.h.

www.DataSheet4U.com
10
To confirm the details of the register whose register name is known:
→Refer to APPENDIX D REGISTER INDEX.
For the details of the
µ
PD78014, 78014Y Subseries instruction function:
→Refer to the 78K/0 SERIES USER’S MANUAL, Instructions. (IEU1372).
For the electrical specifications of the
µ
PD78014, 78014Y Subseries:
→Refer to Data Sheet.
For the application examples of
µ
PD78014, 78014Y Subseries functions:
→Refer to Application Note.
Caution The use examples in the manual apply to the general electric devices of the standard quality grade.
Touse the use examplesin the manualfor applications requiring thespecial quality grade, examine
the quality grade of the actually used parts and circuits.

www.DataSheet4U.com
11
Chapter composition Thismanualdescribespointsforwhichfunctionsof
µ
PD78014and
µ
PD78014YSubseries
are not same in different chapters. The chapters explaining the subseries are shown in
the table below.
If you use one of the subseries, you should read the chapters with √marks.
Chapter
µ
PD78014
µ
PD78014Y
Subseries Subseries
Chapter 1 Outline (
µ
PD78014 Subseries) √—
Chapter 2 Outline (
µ
PD78014Y Subseries) — √
Chapter 3 Pin Function (
µ
PD78014 Subseries) √—
Chapter 4 Pin Function (
µ
PD78014Y Subseries) — √
Chapter 5 CPU Architecture √√
Chapter 6 Port Functions √√
Chapter 7 Clock Generator √√
Chapter 8 16-bit Timer/Event Counter √√
Chapter 9 8-bit Timer Event Counter √√
Chapter 10 Watch Timer √√
Chapter 11 Watchdog Timer √√
Chapter 12 Clock Output Control Circuit √√
Chapter 13 Buzzer Output Control Circuit √√
Chapter 14 A/D Converter √√
Chapter 15 Serial Interface Channel 0 (
µ
PD78014 Subseries) √—
Chapter 16 Serial Interface Channel 0 (
µ
PD78014Y Subseries) — √
Chapter 17 Serial Interface Channel 1 √√
Chapter 18 Interrupt Functions and Test Function √√
Chapter 19 External Device Expansion Function √√
Chapter 20 Standby Function √√
Chapter 21 Reset Function √√
Chapter 22
µ
PD78P014, 78P014Y √√
Chapter 23 Instruction Set √√

www.DataSheet4U.com
12
Differences between
µ
PD78014 Subseries and
µ
PD78014Y Subseries
The
µ
PD78014 Subseries and
µ
PD78014Y Subseries differ in some of the serial interface channel 0 modes as
shown below.
Mode of Serial Interface
µ
PD78014
µ
PD78014Y
Channel 0 Subseries Subseries
3-wire serial I/O mode √√
2-wire serial I/O mode √√
SBI (serial bus interface) mode √√
I
2
C (Inter IC) bus mode — √
√: available
— : not available
Legend Data representation weight : High digits on the left and low digits on the right
Active low representations : ××× (top bar over pin or signal name)
Note : Description of “Note” in the text
Caution : Information requiring particular attention
Remark : Additionally explanatory material
Numeral representations : Binary ................×××× or ××××B
Decimal .............××××
Hexadecimal .....××××H
Document Name Document Number
Japanese Version English Version
µ
PD78014, 78014Y Subseries User’s Manual U10085J This manual
µ
PD78011B, 78012B, 78013, 78014 Data Sheet IC-8201 IC-3179
µ
PD78P014 Data Sheet IC-8111 IC-3098
µ
PD78011B(A), 78012B(A), 78013(A), 78014(A) Data Sheet IC-8874 IC-3411
µ
PD78011BY, 78012BY, 78013Y, 78014Y Data Sheet IC-8573 IC-3405
µ
PD78P014Y Data Sheet IC-8572 IC-3180
µ
PD78014, 78014Y Series Special Function Register Table IEM-5527 —
78K/0 Series User’s Manual — Instruction U12326J IEU-1372
78K/0 Series Instruction Set U10903J —
78K/0 Series Instruction Table U10904J —
µ
PD78014 Series Application Note IEA-744 IEA-1301
78K/0 Series Application Note Basic (I) IEA-715 IEA-1288
Floating Point Operation Program IEA-718 IEA-1289
Related Documents
The related documents indicated in this publication may include preliminary versions. However, preliminary
versions are not marked as such.
•Documents related to devices

www.DataSheet4U.com
13
•Document related to development tools (User’s Manual)
Document name Document Number
Japanese Version English Version
RA78K Series Assembler Package Operation EEU-809 EEU-1399
Language EEU-815 EEU-1404
RA78K Series Structured Assembler Preprocessor U12323J EEU-1402
RA78K0 Assembler Package Operation U11802J U11802E
Assembly Language U11801J U11801E
Structured Assembly Language U11789J U11789E
CC78K Series C Compiler Operation EEU-656 EEU-1280
Language EEU-655 EEU-1284
CC78K0 C Compiler Operation U11517J U11517E
Language U11518J U11518E
CC78K/0 C Compiler Application Note Programming know-how EEA-618 EEA-1208
CC78K Series Library Source File U12322J —
PG-1500 PROM Programmer U11940J EEU-1335
PG-1500 Controller PC-9800 Series (MS-DOS™ based) EEU-704 EEU-1291
PG-1500 Controller IBM PC Series (PC DOS™) based) EEU-5008 U10540E
IE-78000-R EEU-810 U11376E
IE-78000-R-A U11376J U10057E
IE-78000-R-BK EEU-867 EEU-1427
IE-78014-R-EM EEU-805 EEU-1400
IE-78014-R-EM-A EEU-962 EEU-1487
EP-78240 EEU-986 U10332E
SM78K0 System Simulator Windows™ Reference U10181J U10181E
SM78 Series System Simulator External Part User U10092J U10092E
Open Interface Specification
ID79K0 Integrated Debugger EWS based Reference U11151J —
ID78K0 Integrated Debugger PC based Reference U11539J U11539E
ID78K0 Integrated Debugger Windows based Guides U11649J U11649E
SD78K/0 Screen Debugger Basic EEU-852 —
PC-9800 Series (MS-DOS) based Reference U10952J —
SD78K/0 Screen Debugger Basic EEU-5024 U10539E
IBM PC/AT™ (PC DOS) based Reference U11279J U11279E
Document Name Document Number
Japanese Version English Version
78K/0 Series Real-Time OS Basic U11537J U11537E
Install U11536J U11536E
78K/0 Series OS MX78K0 Basic U12257J —
Fuzzy Knowledge Data Creation Tool EEU-829 EEU-1438
78K/0, 78K/II, 87AD Series Fuzzy Inference Development Support System (Translator)
EEU-862 EEU-1444
78K/0 Series Fuzzy Inference Development Support System (Fuzzy Inference Module)
EEU-858 EEU-1441
78K/0 Series Fuzzy Inference Development Support System (Fuzzy Inference Debugger)
EEU-921 EEU-1458
•Documents related to embedded software (User’s Manual)

www.DataSheet4U.com
14
•Other related documents
Document Name Document Number
Japanese Version English Version
IC Package Manual C10943X
Semiconductor Device Mounting Technology Manual C10535J C10535E
Quality Grade of NEC Semiconductor Devices C11531J C11531E
Reliability and Quality Control of NEC Semiconductor Devices C10983J C10983E
Electrostatic Discharge (ESD) Test MEM-539 —
Guide to Quality Assurance of Semiconductor Devices C11893J MEI-1202
Guide to Microcontroller-Related Products - Other Manufacturers U11416J —
Caution Thecontents oftheabovedocumentsaresubjectto changewithoutnotice. Besuretousethelatest
edition for designing.

www.DataSheet4U.com
15
CONTENTS
CHAPTER 1 OUTLINE (
µ
PD78014 Subseries)......................................................................... 35
1.1 Features .......................................................................................................................... 35
1.2 Application Fields.......................................................................................................... 36
1.3 Ordering Information..................................................................................................... 36
1.4 Quality Grade ................................................................................................................. 37
1.5 Pin Configurations (Top View)..................................................................................... 38
1.6 78K/0 Series Expansion................................................................................................ 43
1.7 Block Diagram................................................................................................................ 45
1.8 Outline of Function........................................................................................................ 46
1.9 Differences among
µ
PD78011B, 78012B, 78013, 78014 and
µ
PD78011B(A),
78012B(A), 78013(A), 78014(A) .................................................................................... 47
1.10 Mask Options.................................................................................................................. 48
CHAPTER 2 OUTLINE (
µ
PD78014Y Subseries) ...................................................................... 49
2.1 Features .......................................................................................................................... 49
2.2 Application Fields.......................................................................................................... 50
2.3 Ordering Information..................................................................................................... 50
2.4 Quality Grade ................................................................................................................. 50
2.5 Pin Configurations (Top View)..................................................................................... 51
2.6 78K/0 Series Expansion................................................................................................ 56
2.7 Block Diagram................................................................................................................ 58
2.8 Outline of Function........................................................................................................ 59
2.9 Mask Options.................................................................................................................. 61
CHAPTER 3 PIN FUNCTION (
µ
PD78014 Subseries) .............................................................. 63
3.1 Pin Function List............................................................................................................ 63
3.1.1 Normal operating mode pins ............................................................................................. 63
3.1.2 PROM programming mode pins (
µ
PD78P014 only) ........................................................ 66
3.2 Description of Pin Functions ....................................................................................... 67
3.2.1 P00 to P04 (Port 0) ............................................................................................................ 67
3.2.2 P10 to P17 (Port 1) ............................................................................................................ 68
3.2.3 P20 to P27 (Port 2) ............................................................................................................ 69
3.2.4 P30 to P37 (Port 3) ............................................................................................................ 70
3.2.5 P40 to P47 (Port 4) ............................................................................................................ 71
3.2.6 P50 to P57 (Port 5) ............................................................................................................ 71
3.2.7 P60 to P67 (Port 6) ............................................................................................................ 72
3.2.8 AVREF................................................................................................................................... 72
3.2.9 AVDD .................................................................................................................................... 72
3.2.10 AVSS .................................................................................................................................... 72
3.2.11 RESET ................................................................................................................................72
3.2.12 X1 and X2........................................................................................................................... 72
3.2.13 XT1 and XT2 ...................................................................................................................... 73

www.DataSheet4U.com
16
3.2.14 VDD ...................................................................................................................................... 73
3.2.15 VSS ....................................................................................................................................... 73
3.2.16 VPP (
µ
PD78P014 only) ....................................................................................................... 73
3.2.17 IC (Mask ROM version only) ............................................................................................. 73
3.3 Input/Output Circuit and Recommended Connection of Unused Pins.................. 74
CHAPTER 4 PIN FUNCTION (
µ
PD78014Y Subseries)............................................................ 79
4.1 Pin Function List............................................................................................................ 79
4.1.1 Normal operating mode pins ............................................................................................. 79
4.1.2 PROM programming mode pins (
µ
PD78P014Y only) ...................................................... 82
4.2 Description of Pin Functions ....................................................................................... 83
4.2.1 P00 to P04 (Port 0) ............................................................................................................ 83
4.2.2 P10 to P17 (Port 1) ............................................................................................................ 84
4.2.3 P20 to P27 (Port 2) ............................................................................................................ 85
4.2.4 P30 to P37 (Port 3) ............................................................................................................ 86
4.2.5 P40 to P47 (Port 4) ............................................................................................................ 87
4.2.6 P50 to P57 (Port 5) ............................................................................................................ 87
4.2.7 P60 to P67 (Port 6) ............................................................................................................ 88
4.2.8 AVREF................................................................................................................................... 88
4.2.9 AVDD .................................................................................................................................... 88
4.2.10 AVSS .................................................................................................................................... 88
4.2.11 RESET ................................................................................................................................88
4.2.12 X1 and X2........................................................................................................................... 88
4.2.13 XT1 and XT2 ...................................................................................................................... 89
4.2.14 VDD ...................................................................................................................................... 89
4.2.15 VSS ....................................................................................................................................... 89
4.2.16 VPP (
µ
PD78P014Y only)..................................................................................................... 89
4.2.17 IC (Mask ROM versions only) ........................................................................................... 89
4.3 Input/Output Circuit and Recommended Connection of Unused Pins.................. 90
CHAPTER 5 CPU ARCHITECTURE........................................................................................... 95
5.1 Memory Spaces.............................................................................................................. 95
5.1.1 Internal program memory space ....................................................................................... 100
5.1.2 Internal data memory space .............................................................................................. 101
5.1.3 Special function register (SFR) area................................................................................. 101
5.1.4 External memory space ..................................................................................................... 101
5.2 Processor Registers...................................................................................................... 102
5.2.1 Control registers ................................................................................................................. 102
5.2.2 General registers................................................................................................................ 106
5.2.3 Special function register (SFR) ......................................................................................... 108
5.3 Instruction Address Addressing ................................................................................. 111
5.3.1 Relative addressing............................................................................................................ 111
5.3.2 Immediate addressing........................................................................................................ 112
5.3.3 Table indirect addressing................................................................................................... 113
5.3.4 Register addressing ........................................................................................................... 114

www.DataSheet4U.com
17
5.4 Operand Address Addressing ..................................................................................... 115
5.4.1 Data memory addressing................................................................................................... 115
5.4.2 Implied addressing ............................................................................................................. 120
5.4.3 Register addressing ........................................................................................................... 121
5.4.4 Direct addressing ............................................................................................................... 122
5.4.5 Short direct addressing ...................................................................................................... 123
5.4.6 Special function register (SFR) addressing ...................................................................... 125
5.4.7 Register indirect addressing .............................................................................................. 126
5.4.8 Based addressing............................................................................................................... 127
5.4.9 Based indexed addressing ................................................................................................ 128
5.4.10 Stack addressing................................................................................................................ 128
CHAPTER 6 PORT FUNCTIONS................................................................................................ 129
6.1 Port Functions................................................................................................................ 129
6.2 Port Block Diagram ....................................................................................................... 134
6.2.1 Port 0 .................................................................................................................................. 134
6.2.2 Port 1 .................................................................................................................................. 136
6.2.3 Port 2 (
µ
PD78014 Subseries)............................................................................................ 137
6.2.4 Port 2 (
µ
PD78014Y Subseries) ......................................................................................... 139
6.2.5 Port 3 .................................................................................................................................. 141
6.2.6 Port 4 .................................................................................................................................. 142
6.2.7 Port 5 .................................................................................................................................. 143
6.2.8 Port 6 .................................................................................................................................. 144
6.3 Port Function Control Registers ................................................................................. 146
6.4 Port Function Operations ............................................................................................. 152
6.4.1 Writing to input/output port ................................................................................................ 152
6.4.2 Reading from input/output port.......................................................................................... 152
6.4.3 Operations on input/output port......................................................................................... 153
6.5 Mask Options.................................................................................................................. 154
CHAPTER 7 CLOCK GENERATOR ........................................................................................... 155
7.1 Clock Generator Functions .......................................................................................... 155
7.2 Clock Generator Configuration.................................................................................... 155
7.3 Clock Generator Control Register............................................................................... 157
7.4 System Clock Oscillator ............................................................................................... 160
7.4.1 Main system clock oscillator .............................................................................................. 160
7.4.2 Subsystem clock oscillator................................................................................................. 160
7.4.3 Divider................................................................................................................................. 163
7.4.4 When no subsystem clocks are used ............................................................................... 163
7.5 Clock Generator Operations ........................................................................................ 164
7.5.1 Main system clock operations ........................................................................................... 165
7.5.2 Subsystem clock operations .............................................................................................. 167
7.6 Changing System Clock and CPU Clock Settings.................................................... 168
7.6.1 Time required for switchover between system clock and CPU clock.............................. 168
7.6.2 System clock and CPU clock switching procedure .......................................................... 169

www.DataSheet4U.com
18
CHAPTER 8 16-BIT TIMER/EVENT COUNTER........................................................................171
8.1 Outline of On-chip Timer in
µ
PD78014, 78014Y Subseries ..................................... 171
8.2 16-Bit Timer/Event Counter Functions.......................................................................172
8.3 16-Bit Timer/Event Counter Configuration................................................................173
8.4 16-Bit Timer/Event Counter Control Registers.........................................................178
8.5 16-Bit Timer/Event Counter Operations.....................................................................186
8.5.1 Interval timer operations....................................................................................................186
8.5.2 PWM output operations.....................................................................................................188
8.5.3 Pulse width measurement operations...............................................................................190
8.5.4 External event counter operation......................................................................................193
8.5.5 Square-wave output operation..........................................................................................195
8.6 16-Bit Timer/Event Counter Operating Precautions.................................................196
CHAPTER 9 8-BIT TIMER/EVENT COUNTER..........................................................................199
9.1 8-Bit Timer/Event Counter Functions.........................................................................199
9.1.1 8-bit timer/event counter mode..........................................................................................199
9.1.2 16-bit timer/event counter mode........................................................................................202
9.2 8-Bit Timer/Event Counter Configuration..................................................................204
9.3 8-Bit Timer/Event Counter Control Registers............................................................207
9.4 8-Bit Timer/Event Counter Operations.......................................................................212
9.4.1 8-bit timer/event counter mode..........................................................................................212
9.4.2 16-bit timer/event counter mode........................................................................................216
9.5 Cautions on 8-Bit Timer/Event Counter Operating...................................................220
CHAPTER 10WATCH TIMER......................................................................................................223
10.1Watch Timer Functions.................................................................................................223
10.2Watch Timer Configuration..........................................................................................224
10.3Watch Timer Control Registers...................................................................................224
10.4Watch Timer Operations...............................................................................................228
10.4.1Watch timer operation........................................................................................................228
10.4.2Interval timer operation......................................................................................................229
CHAPTER 11WATCHDOG TIMER..............................................................................................231
11.1Watchdog Timer Functions..........................................................................................231
11.2Watchdog Timer Configuration...................................................................................232
11.3Watchdog Timer Control Registers............................................................................234
11.4Watchdog Timer Operations........................................................................................237
11.4.1Watchdog timer operation..................................................................................................237
11.4.2Interval timer operation......................................................................................................238
CHAPTER 12CLOCK OUTPUT CONTROL CIRCUIT................................................................239
12.1Clock Output Control Circuit Functions....................................................................239
12.2Clock Output Control Circuit Configuration..............................................................240

www.DataSheet4U.com
19
12.3 Clock Output Function Control Registers ................................................................. 240
CHAPTER 13 BUZZER OUTPUT CONTROL CIRCUIT .............................................................. 243
13.1 Buzzer Output Control Circuit Functions .................................................................. 243
13.2 Buzzer Output Control Circuit Configuration............................................................ 243
13.3 Buzzer Output Function Control Registers ............................................................... 244
CHAPTER 14 A/D CONVERTER .................................................................................................. 247
14.1 A/D Converter Functions .............................................................................................. 247
14.2 A/D Converter Configuration ....................................................................................... 247
14.3 A/D Converter Control Registers ................................................................................ 251
14.4 A/D Converter Operations ............................................................................................ 254
14.4.1 Basic operations of A/D converter..................................................................................... 254
14.4.2 Input voltage and conversion results ................................................................................ 256
14.4.3 A/D converter operating mode........................................................................................... 257
14.5 Cautions on A/D Converter .......................................................................................... 259
CHAPTER 15 SERIAL INTERFACE CHANNEL 0 (
µ
PD78014 Subseries)............................... 263
15.1 Serial Interface Channel 0 Functions ......................................................................... 264
15.2 Serial Interface Channel 0 Configuration................................................................... 267
15.3 Serial Interface Channel 0 Control Registers............................................................ 271
15.4 Serial Interface Channel 0 Operations ....................................................................... 277
15.4.1 Operation stop mode.......................................................................................................... 277
15.4.2 3-wire serial I/O mode operation ....................................................................................... 278
15.4.3 SBI mode operation ........................................................................................................... 283
15.4.4 2-wire serial I/O mode operation ....................................................................................... 310
15.4.5 SCK0/P27 pin output manipulation ................................................................................... 317
CHAPTER 16 SERIAL INTERFACE CHANNEL 0 (
µ
PD78014Y Subseries) ............................ 319
16.1 Serial Interface Channel 0 Functions ......................................................................... 321
16.2 Serial Interface Channel 0 Configuration................................................................... 325
16.3 Serial Interface Channel 0 Control Registers............................................................ 330
16.4 Serial Interface Channel 0 Operations ....................................................................... 338
16.4.1 Operation stop mode.......................................................................................................... 338
16.4.2 3-wire serial I/O mode operation ....................................................................................... 339
16.4.3 SBI mode operation ........................................................................................................... 344
16.4.4 2-wire serial I/O mode operation ....................................................................................... 372
16.4.5 I2C bus mode operation..................................................................................................... 378
16.4.6 Cautions on use of I2C bus mode ..................................................................................... 400
16.4.7 Restrictions on use of I2C bus mode ................................................................................ 403
16.4.8 SCK0/SCL/P27 pin output manipulation ........................................................................... 406

www.DataSheet4U.com
20
CHAPTER 17 SERIAL INTERFACE CHANNEL 1....................................................................... 409
17.1 Serial Interface Channel 1 Functions ......................................................................... 409
17.2 Serial Interface Channel 1 Configuration................................................................... 410
17.3 Serial Interface Channel 1 Control Registers............................................................ 413
17.4 Serial Interface Channel 1 Operations ....................................................................... 418
17.4.1 Operation stop mode.......................................................................................................... 418
17.4.2 3-wire serial I/O mode operation ....................................................................................... 419
17.4.3 3-wire serial I/O mode operation with automatic transmit/receive function .................... 422
CHAPTER 18 INTERRUPT FUNCTIONS AND TEST FUNCTION ............................................. 447
18.1 Interrupt Function Types .............................................................................................. 447
18.2 Interrupt Sources and Configuration.......................................................................... 447
18.3 Interrupt Function Control Registers ......................................................................... 451
18.4 Interrupt Servicing Operations .................................................................................... 459
18.4.1 Non-maskable interrupt request acknowledge operation................................................. 459
18.4.2 Maskable interrupt request acknowledge operation......................................................... 462
18.4.3 Software interrupt request acknowledge operation .......................................................... 465
18.4.4 Multiple interrupt servicing ................................................................................................. 465
18.4.5 Interrupt request reserve ................................................................................................... 468
18.5 Test Function ................................................................................................................. 469
18.5.1 Test function control registers ........................................................................................... 469
18.5.2 Test input signal acknowledge operation.......................................................................... 471
CHAPTER 19 EXTERNAL DEVICE EXPANSION FUNCTION ................................................... 473
19.1 External Device Expansion Functions ....................................................................... 473
19.2 External Device Expansion Control Register ............................................................ 476
19.3 External Device Expansion Function Timing ............................................................ 477
19.4 Example of Memory Connection ................................................................................. 482
CHAPTER 20 STANDBY FUNCTION........................................................................................... 483
20.1 Standby Function and Configuration ......................................................................... 483
20.1.1 Standby function................................................................................................................. 483
20.1.2 Standby function control register....................................................................................... 484
20.2 Standby Function Operations...................................................................................... 485
20.2.1 HALT mode......................................................................................................................... 485
20.2.2 STOP mode ........................................................................................................................ 488
CHAPTER 21 RESET FUNCTION ................................................................................................ 491
21.1 Reset Function ............................................................................................................... 491
CHAPTER 22
µ
PD78P014, 78P014Y ........................................................................................... 495
22.1 Internal Memory Size Switching Register.................................................................. 495
This manual suits for next models
43
Table of contents
Other NEC Microcontroller manuals

NEC
NEC V850/SC1 User manual

NEC
NEC V854 UPD703006 User manual

NEC
NEC 78K0/Fx2 User manual

NEC
NEC 78K0S/K 1+ Series Installation and operating instructions

NEC
NEC V850E/RS1 User manual

NEC
NEC V850E/PH2 User manual

NEC
NEC MuPD754144 User manual

NEC
NEC PD703114 User manual

NEC
NEC UPD789026 Series User manual

NEC
NEC mPD780852 Series User manual

NEC
NEC 78K0S/KB1+ User manual

NEC
NEC V850E/MA1 User manual

NEC
NEC 78K/0 Series User manual

NEC
NEC PD789860 User manual

NEC
NEC mPD780208 Subseries User manual

NEC
NEC mPD780065 Series User manual

NEC
NEC 78K0S/KA1+ User manual

NEC
NEC mPD178054 Series User manual

NEC
NEC mPD789426 Series User manual

NEC
NEC MuPD78F0132H User manual