NEC uPD78055 User manual

Category
Networking
Type
User manual
µ
PD78054, 78054Y SUBSERIES
8-BIT SINGLE-CHIP MICROCONTROLLERS
µ
PD78052
µ
PD78052Y
µ
PD78053
µ
PD78053Y
µ
PD78054
µ
PD78054Y
µ
PD78P054
µ
PD78055Y
µ
PD78055
µ
PD78056Y
µ
PD78056
µ
PD78058Y
µ
PD78058
µ
PD78P058Y
µ
PD78P058
µ
PD78052(A)
µ
PD78053(A)
µ
PD78054(A)
Document No. U11747EJ5V0UM00 (5th edition)
Date Published April 1998 N CP (K)
1992
User’s Manual
Printed in Japan
©
2
[MEMO]
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 V
DD 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 not initialized until the
reset signal is received. Reset operation must be executed immediately after power-on for devices
having reset function.
4
FIP, EEPROM, IEBus, QTOP are trademarks of NEC Corporation.
MS-DOS, Windows, and Widows NT are either registered trademarks or trademarks of Microsoft
Corporation in the United States and/or other countries.
IBM DOS, PC/AT and PC DOS are trademarks of International Business Machines Corporation.
HP9000 Series 700 and HP-UX are trademarks of Hewlett-Packard Company.
SPARCstation is a trademark of SPARC International, Inc.
Sun OS is a trademark of Sun Microsystems, Inc.
Ethernet is a trademark of XEROX Corporation.
NEWS and NEWS-OS are trademarks of SONY Corporation.
OSF/Motif is a trademark of Open Software Foundation, Inc.
TRON is an abbreviation of The Realtime Operating system Nucleus.
ITRON is an abbreviation of Industrial TRON.
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.
License not needed:
µ
PD78P054KK-T, 78P058KK-T, 78P058YKK-T
The customer must judge the need for license:
µ
PD78052GC-×××-8BT, 78052GK-×××-BE9, 78052YGC-×××-8BT
µ
PD78053GC-×××-8BT, 78053GK-×××-BE9, 78053YGC-×××-8BT
µ
PD78054GC-×××-8BT, 78054GK-×××-BE9, 78054YGC-×××-8BT
µ
PD78P054GC-3B9, 78P054GC-8BT, 78P054GK-BE9
µ
PD78055GC-×××-8BT, 78055GK-×××-BE9, 78055YGC-×××-8BT
µ
PD78056GC-×××-8BT, 78056GK-×××-BE9, 78056YGC-×××-8BT
µ
PD78058GC-×××-8BT, 78058GK-×××-BE9, 78058YGC-×××-8BT
µ
PD78P058GC-8BT, 78P058YGC-8BT
µ
PD78052GC(A)-×××-3B9, 78053GC(A)-×××-3B9, 78054GC(A)-×××-3B9
5
The application circuits and their parameters are for reference only and are not intended for use in actual design-ins.
Purchase of NEC I
2
C components conveys a license under the Philips I
2
C Patent Rights to use these
components in an I
2
C system, provided that the system conforms to the I
2
C Standard Specification as defined
by Philips.
The information in this document is subject to change without notice.
No part of this document may be copied or reproduced in any form or by any means without the prior written
consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in
this document.
NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual property
rights of third parties by or arising from use of a device described herein or any other liability arising 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 applications of
a device depend on its quality grade, as indicated below. Customers must check the quality grade of each device
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: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor 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
6
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 (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 (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
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: 65-253-8311
Fax: 65-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
J98. 2
7
Major Revisions in This Edition
Page Description
Throughout Addition of
µ
PD78052(A),78053(A), 78054(A) to the applicable types
Deletion of
µ
PD78P054Y from the applicable types
Deletion of the following package from the
µ
PD78052, 78053, 78054, 78055, 78056, 78058, 78P058, 78054Y
Subseries:
• 80-pin plastic QFP (14 × 14 mm, resin thickness 2.7 mm)
p. 233 Addition of Figure 9-10. Square-Wave Output Operation Timing
p. 238 Addition of Figure 9-13. Square-Wave Output Operation Timing
p. 296 Addition of Note to Figure 16-4. Serial Operating Mode Register 0 Format
p. 430, 435 Addition of (4) Synchronization control and (5) Automatic transmit/receive Interval time to 18.4.3 3-wire
serial I/O mode operation with automatic transmit/receive function
p. 439 Addition of precaution to 19.1 (3) 3-wire serial I/O mode (MSB-/LSB-first switchable)
p. 444 Change of Figure 19-3. Serial Operating Mode Register 2 Format
p. 446 Change of Table 19-2. Serial Interface Channel 2 Operating Mode Settings
p. 465 Correction of Figure 19-10. Receive Error Timing
p. 474 Addition of 19.4.4 Limitations when UART mode is used
p. 577, 578 Addition of APPENDIX A DIFFERENCES BETWEEN
µ
PD78054, 78054Y SUBSERIES AND
µ
PD78058F,
78058FY SUBSERIES
p. 579 to APPENDIX B DEVELOPMENT TOOL
592 Entire revision: Support for in-circuit emulator IE-78K0-NS
p. 593, 594 APPENDIX C EMBEDDED SOFTWARE
Entire revision: Deletion of fuzzy inference development support system
The mark shows major revised points.
8
[MEMO]
9
PREFACE
Readers This manual has been prepared for user engineers who want to understand the
functions of the
µ
PD78054 and 78054Y Subseries and design and develop its
application systems and programs.
The target products are the products of the following subseries.
µ
PD78054 Subseries :
µ
PD78052, 78053, 78054, 78P054, 78055, 78056,
µ
PD78058, 78P058, 78052(A), 78053(A), 78054(A)
µ
PD78054Y Subseries :
µ
PD78052Y, 78053Y, 78054Y, 78055Y, 78056Y,
µ
PD78058Y, 78P058Y
Caution Of the above members, the following devices with the suffix KK-T should be
used only for experiment or function evaluation, because they are not intended
for use in equipment that will be mass-produced and require high reliability.
µ
PD78P054KK-T, 78P058KK-T, 78P058YKK-T
Purpose This manual is intended for users to understand the functions described in the
Organization below.
Organization The
µ
PD78054, 78054Y Subseries manual is separated into two parts: this manual
and the instruction edition (common to the 78K/0 Series).
µ
PD78054, 78054Y 78K/0 Series
Subseries User’s Manual
User’s Manual Instruction
(This manual)
Pin functions CPU functions
Internal block functions Instruction set
Interrupt Explanation of each instruction
Other on-chip peripheral functions
10
How to Read This Manual Before reading this manual, you should have general knowledge of electric and logic
circuits and microcontrollers.
For users who use this document as the manual for the
µ
PD78052(A), 78053(A),
and 78054(A):
The only differences between the
µ
PD78052, 78053, and 78054 and the
µ
PD78052(A), 78053(A), 78054(A) are the quality grades and packages. (refer
to 1.9 Differences between Standard Quality Grade Products and (A) Products).
For the (A) products, read the part numbers in the following manner.
µ
PD78052
µ
PD78052(A)
µ
PD78053
µ
PD78053(A)
µ
PD78054
µ
PD78054(A)
When you want to understand the functions in general:
Read this manual in the order of the contents.
To know the
µ
PD78054 and 78054Y Subseries instruction function in detail:
Refer to the 78K/0 Series User's Manual: Instructions (U12326E)
How 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.
To learn the function of a register whose register name is known:
Refer to Appendix D Register Index.
To know the electrical specifications of the
µ
PD78054 and 78054Y Subseries:
Refer to separately available Data Sheet.
To know application examples of the functions provided in the
µ
PD78054 and
78054Y Subseries:
Refer to Application Note separately provided.
Caution The application examples in this manual are created for “Standard” quality
grade products for general electric equipment. When using the application
examples in this manual for purposes which require “Special” quality grades,
thoroughly examine the quality grade of each part and circuit actually used.
11
Chapter Organization: This manual divides the descriptions for the
µ
PD78054 and 78054Y Subseries into different
chapters as shown below. Read only the chapters related to the device you use.
Chapter
µ
PD78054
µ
PD78054Y
Subseries Subseries
Chapter 1 Outline (
µ
PD78054 Subseries)
Chapter 2 Outline (
µ
PD78054Y Subseries)
Chapter 3 Pin Function (
µ
PD78054 Subseries)
Chapter 4 Pin Function (
µ
PD78054Y 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 Counters 1 and 2 √√
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 D/A Converter √√
Chapter 16 Serial Interface Channel 0 (
µ
PD78054 Subseries)
Chapter 17 Serial Interface Channel 0 (
µ
PD78054Y Subseries)
Chapter 18 Serial Interface Channel 1 √√
Chapter 19 Serial Interface Channel 2 √√
Chapter 20 Real-Time Output Port √√
Chapter 21 Interrupt and Test Functions √√
Chapter 22 External Device Expansion Function √√
Chapter 23 Standby Function √√
Chapter 24 Reset Function √√
Chapter 25 ROM Correction √√
Chapter 26
µ
PD78P054,
µ
PD78P058 √√
Chapter 27 Instruction Set √√
12
Differences between
µ
PD78054 and
µ
PD78054Y Subseries:
The
µ
PD78054 and
µ
PD78054Y Subseries are different in the following functions
of the serial interface channel 0.
Modes of serial interface channel 0
µ
PD78054
µ
PD78054Y
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
: Supported
: Not supported
Legend Data significant : Left: higher digit, right: lower digit
Active low : ××× (top bar over pin or signal name)
Note : Footnote
Caution : Important information
Remark : Supplement
Numerical notation : Binary ... ×××× or ××××B
Decimal ... ××××
Hexadecimal ... ××××H
13
Related Documents The related documents indicated in this publication may include preliminary
versions. However, preliminary versions are not marked as such.
Related documents for
µ
PD78054 Subseries
Document name
Document No.
Japanese English
µ
PD78052, 78053, 78054, 78055, 78056, 78058 Data Sheet U12327J U12327E
µ
PD78052(A), 78053(A), 78054(A) Data Sheet U12171J U12171E
µ
PD78P054, 78P058 Data Sheet U10417J U10417E
µ
PD78054, 78054Y Subseries User’s Manual U11747J This manual
78K/0 Series User’s Manual, Instruction U12326J U12326E
78K/0 Series Instruction Table U10903J
78K/0 Series Instruction Set U10904J
µ
PD78054 Subseries Special Function Register Table U10102J
78K/0 Series Application Note Basics (III) U10182J U10182E
Floating-point operation program IEA-718 IEA-1289
Related documents for
µ
PD78054Y Subseries
Document name
Document No.
Japanese English
µ
PD78052Y, 78053Y, 78054Y, 78055Y, 78056Y, 78058Y Data Sheet U10906J U10906E
µ
PD78P058Y Data Sheet U10907J U10907E
µ
PD78054, 78054Y Subseries User’s Manual U11747J This manual
78K/0 Series User’s Manual, Instruction U12326J U12326E
78K/0 Series Instruction Table U10903J
78K/0 Series Instruction Set U10904J
µ
PD78054Y Subseries Special Function Register Table U10087J
78K/0 Series Application Note Basics (III) U10182J U10182E
Caution The above documents are subject to change without prior notice. Be sure to use the latest version
document when starting design.
14
Development Tool Documents (User’s Manuals)
Document name
Document No.
Japanese English
RA78K0 Assembler Package Operation U11802J U11802E
Assembly Language U11801J U11801E
Structured Assembly U11789J U11789E
RA78K Series Structured Assembler Preprocessor U12323J EEU-1402
CC78K0 C Compiler Operation U11517J U11517E
Language U11518J U11518E
CC78K0 C Compiler Application Note Programming know-how U13034J EEA-1208
CC78K Series Library Source File U12322J
PG-1500 PROM Programmer U11940J U11940E
PG-1500 Controller PC-9800 Series (MS-DOS™) Base EEU-704 EEU-1291
PG-1500 Controller IBM PC Series (PC DOS™) Base EEU-5008 U10540E
IE-78K0-NS
To be prepared To be prepared
IE-78001-R-A
To be prepared To be prepared
IE-780308-NS-EM1
To be prepared To be prepared
IE-780308-R-EM U11362J U11362E
EP-78230 EEU-985 EEU-1515
EP-78054GK-R EEU-932 EEU-1468
SM78K0 System Simulator Windows™ Base Reference U10181J U10181E
SM78K Series System Simulator External component user U10092J U10092E
open interface specifications
ID78K0-NS Integrated Debugger Reference U12900J
To be prepared
ID78K0 Integrated Debugger EWS Base Reference U11151J
ID78K0 Integrated Debugger PC Base Reference U11539J U11539E
ID78K0 Integrated Debugger Windows Base Guide U11649J U11649E
Caution The above documents are subject to change without prior notice. Be sure to use the latest version
document when starting design.
15
Documents for Embedded Software (User’s Manual)
Document name
Document No.
Japanese English
78K/0 Series Real-Time OS Basics U11537J U11537E
Installation U11536J U11536E
OS for 78K/0 Series MX78K0 Basics U12257J U12257E
Other Documents
Document name
Document No.
Japanese English
IC PACKAGE MANUAL C10943X
Semiconductor Device Mounting Technology Manual C10535J C10535E
Quality Grade on NEC Semiconductor Devices C11531J C11531E
NEC Semiconductor Device Reliability/Quality Control System C10983J C10983E
Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD) C11892J C11892E
Guide to Quality Assurance for Semiconductor Devices MEI-1202
Microcontroller Related Product Guide—Third Party Manufacturers U11416J
Caution The above documents are subject to change without prior notice. Be sure to use the latest version
document when starting design.
16
[MEMO]
17
TABLE OF CONTENTS
CHAPTER 1 GENERAL (
µ
PD78054 Subseries) ............................................................................ 37
1.1 Features ............................................................................................................................. 37
1.2 Applications ...................................................................................................................... 38
1.3 Ordering Information ........................................................................................................ 38
1.4 Quality Grade .................................................................................................................... 39
1.5 Pin Configuration (Top View)........................................................................................... 40
1.6 78K/0 Series Expansion ................................................................................................... 43
1.7 Block Diagram................................................................................................................... 45
1.8 Outline of Function ........................................................................................................... 46
1.9 Differences between Standard Quality Grade Products and (A) Products ................. 48
1.10 Mask Options .................................................................................................................... 48
CHAPTER 2 GENERAL (
µ
PD78054Y Subseries).......................................................................... 49
2.1 Features ............................................................................................................................. 49
2.2 Applications ...................................................................................................................... 50
2.3 Ordering Information ........................................................................................................ 50
2.4 Quality Grade .................................................................................................................... 50
2.5 Pin Configuration (Top View)........................................................................................... 51
2.6 78K/0 Series Expansion ................................................................................................... 54
2.7 Block Diagram................................................................................................................... 56
2.8 Outline of Function ........................................................................................................... 57
2.9 Mask Options .................................................................................................................... 58
CHAPTER 3 PIN FUNCTION (
µ
PD78054 Subseries) .................................................................... 59
3.1 Pin Function List............................................................................................................... 59
3.1.1 Normal operating mode pins ............................................................................................... 59
3.1.2 PROM programming mode pins (PROM versions only) ...................................................... 63
3.2 Description of Pin Functions ........................................................................................... 64
3.2.1 P00 to P07 (Port 0) .............................................................................................................. 64
3.2.2 P10 to P17 (Port 1) .............................................................................................................. 65
3.2.3 P20 to P27 (Port 2) .............................................................................................................. 65
3.2.4 P30 to P37 (Port 3) .............................................................................................................. 66
3.2.5 P40 to P47 (Port 4) .............................................................................................................. 67
3.2.6 P50 to P57 (Port 5) .............................................................................................................. 67
3.2.7 P60 to P67 (Port 6) .............................................................................................................. 67
3.2.8 P70 to P72 (Port 7) .............................................................................................................. 68
3.2.9 P120 to P127 (Port 12) ........................................................................................................ 69
3.2.10 P130 and P131 (Port 13) ..................................................................................................... 69
3.2.11 AV
REF0 .................................................................................................................................. 69
3.2.12 AVREF1 .................................................................................................................................. 69
3.2.13 AV
DD ..................................................................................................................................... 70
3.2.14 AVSS ..................................................................................................................................... 70
3.2.15 RESET................................................................................................................................. 70
3.2.16 X1 and X2 ............................................................................................................................ 70
3.2.17 XT1 and XT2 ....................................................................................................................... 70
18
3.2.18 V
DD ....................................................................................................................................... 70
3.2.19 VSS ....................................................................................................................................... 70
3.2.20 V
PP (PROM versions only) ................................................................................................... 70
3.2.21 IC (Mask ROM version only)................................................................................................70
3.3 Input/output Circuits and Recommended Connection of Unused Pins ...................... 71
CHAPTER 4 PIN FUNCTION (
µ
PD78054Y Subseries).................................................................. 75
4.1 Pin Function List............................................................................................................... 75
4.1.1 Normal operating mode pins ............................................................................................... 75
4.1.2 PROM programming mode pins (PROM versions only) ...................................................... 79
4.2 Description of Pin Functions ........................................................................................... 80
4.2.1 P00 to P07 (Port 0) .............................................................................................................. 80
4.2.2 P10 to P17 (Port 1) .............................................................................................................. 81
4.2.3 P20 to P27 (Port 2) .............................................................................................................. 81
4.2.4 P30 to P37 (Port 3) .............................................................................................................. 82
4.2.5 P40 to P47 (Port 4) .............................................................................................................. 82
4.2.6 P50 to P57 (Port 5) .............................................................................................................. 83
4.2.7 P60 to P67 (Port 6) .............................................................................................................. 83
4.2.8 P70 to P72 (Port 7) .............................................................................................................. 84
4.2.9 P120 to P127 (Port 12) ........................................................................................................ 84
4.2.10 P130 and P131 (Port 13) ..................................................................................................... 85
4.2.11 AV
REF0 .................................................................................................................................. 85
4.2.12 AVREF1 .................................................................................................................................. 85
4.2.13 AV
DD ..................................................................................................................................... 85
4.2.14 AVSS ..................................................................................................................................... 85
4.2.15 RESET................................................................................................................................. 85
4.2.16 X1 and X2 ............................................................................................................................ 86
4.2.17 XT1 and XT2 ....................................................................................................................... 86
4.2.18 V
DD ....................................................................................................................................... 86
4.2.19 V
SS ....................................................................................................................................... 86
4.2.20 VPP (PROM versions only) ................................................................................................... 86
4.2.21 IC (Mask ROM version only)................................................................................................86
4.3 Input/output Circuits and Recommended Connection of Unused Pins ...................... 87
CHAPTER 5 CPU ARCHITECTURE................................................................................................ 91
5.1 Memory Spaces................................................................................................................. 91
5.1.1 Internal program memory space.......................................................................................... 99
5.1.2 Internal data memory space ................................................................................................ 100
5.1.3 Special Function Register (SFR) area ................................................................................. 100
5.1.4 External memory space ....................................................................................................... 100
5.1.5 Data memory addressing .................................................................................................... 101
5.2 Processor Registers ......................................................................................................... 109
5.2.1 Control registers .................................................................................................................. 109
5.2.2 General registers ................................................................................................................. 112
5.2.3 Special Function Register (SFR) ......................................................................................... 114
5.3 Instruction Address Addressing ..................................................................................... 118
5.3.1 Relative addressing ............................................................................................................. 118
5.3.2 Immediate addressing ......................................................................................................... 119
19
5.3.3 Table indirect addressing..................................................................................................... 120
5.3.4 Register addressing............................................................................................................. 120
5.4 Operand Address Addressing ......................................................................................... 121
5.4.1 Implied addressing .............................................................................................................. 121
5.4.2 Register addressing............................................................................................................. 122
5.4.3 Direct addressing................................................................................................................. 123
5.4.4 Short direct addressing........................................................................................................ 124
5.4.5 Special-Function Register (SFR) addressing ...................................................................... 125
5.4.6 Register indirect addressing ................................................................................................ 126
5.4.7 Based addressing ................................................................................................................ 127
5.4.8 Based indexed addressing .................................................................................................. 128
5.4.9 Stack addressing ................................................................................................................. 128
CHAPTER 6 PORT FUNCTIONS .................................................................................................... 129
6.1 Port Functions................................................................................................................... 129
6.2 Port Configuration ............................................................................................................ 134
6.2.1 Port 0 ................................................................................................................................... 134
6.2.2 Port 1 ................................................................................................................................... 136
6.2.3 Port 2 (
µ
PD78054 Subseries).............................................................................................. 137
6.2.4 Port 2 (
µ
PD78054Y 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.2.9 Port 7 ................................................................................................................................... 146
6.2.10 Port 12 ................................................................................................................................. 148
6.2.11 Port 13 ................................................................................................................................. 149
6.3 Port Function Control Registers ..................................................................................... 150
6.4 Port Function Operations................................................................................................. 156
6.4.1 Writing to input/output port................................................................................................... 156
6.4.2 Reading from input/output port ............................................................................................ 156
6.4.3 Operations on input/output port ........................................................................................... 157
6.5 Selection of Mask Option ................................................................................................. 157
CHAPTER 7 CLOCK GENERATOR ................................................................................................ 159
7.1 Clock Generator Functions.............................................................................................. 159
7.2 Clock Generator Configuration ....................................................................................... 159
7.3 Clock Generator Control Register................................................................................... 161
7.4 System Clock Oscillator................................................................................................... 165
7.4.1 Main system clock oscillator ................................................................................................ 165
7.4.2 Subsystem clock oscillator .................................................................................................. 166
7.4.3 Scaler................................................................................................................................... 168
7.4.4 When no subsystem clocks are used .................................................................................. 168
7.5 Clock Generator Operations ............................................................................................ 169
7.5.1 Main system clock operations ............................................................................................. 170
7.5.2 Subsystem clock operations ................................................................................................ 171
7.6 Changing System Clock and CPU Clock Settings......................................................... 171
7.6.1 Time required for switchover between system clock and CPU clock .................................. 171
7.6.2 System clock and CPU clock switching procedure.............................................................. 173
20
CHAPTER 8 16-BIT TIMER/EVENT COUNTER ............................................................................. 175
8.1 Outline of Timers Incorporated in the
µ
PD78054, 78054Y Subseries .......................... 175
8.2 16-Bit Timer/Event Counter Functions ........................................................................... 177
8.3 16-Bit Timer/Event Counter Configuration ..................................................................... 179
8.4 16-Bit Timer/Event Counter Control Registers .............................................................. 182
8.5 16-Bit Timer/Event Counter Operations.......................................................................... 191
8.5.1 Interval timer operations ...................................................................................................... 191
8.5.2 PWM output operations ....................................................................................................... 193
8.5.3 PPG output operations ........................................................................................................ 196
8.5.4 Pulse width measurement operations ................................................................................. 197
8.5.5 External event counter operation......................................................................................... 204
8.5.6 Square-wave output operation ............................................................................................ 206
8.5.7 One-shot pulse output operation ......................................................................................... 208
8.6 16-Bit Timer/Event Counter Operating Precautions ...................................................... 212
CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1 AND 2 .............................................................. 215
9.1 8-Bit Timer/Event Counters 1 and 2 Functions .............................................................. 215
9.1.1 8-bit timer/event counter mode ............................................................................................ 215
9.1.2 16-bit timer/event counter mode .......................................................................................... 218
9.2 8-Bit Timer/Event Counters 1 and 2 Configurations...................................................... 220
9.3 8-Bit Timer/Event Counters 1 and 2 Control Registers ................................................. 223
9.4 8-Bit Timer/Event Counters 1 and 2 Operations ............................................................ 228
9.4.1 8-bit timer/event counter mode ............................................................................................ 228
9.4.2 16-bit timer/event counter mode .......................................................................................... 234
9.5 Cautions on 8-Bit Timer/Event Counters 1 and 2 .......................................................... 238
CHAPTER 10 WATCH TIMER ........................................................................................................... 241
10.1 Watch Timer Functions .................................................................................................... 241
10.2 Watch Timer Configuration .............................................................................................. 242
10.3 Watch Timer Control Registers ....................................................................................... 242
10.4 Watch Timer Operations................................................................................................... 246
10.4.1 Watch timer operation.......................................................................................................... 246
10.4.2 Interval timer operation ........................................................................................................ 246
CHAPTER 11 WATCHDOG TIMER ................................................................................................... 247
11.1 Watchdog Timer Functions.............................................................................................. 247
11.2 Watchdog Timer Configuration ....................................................................................... 249
11.3 Watchdog Timer Control Registers................................................................................. 250
11.4 Watchdog Timer Operations ............................................................................................ 253
11.4.1 Watchdog timer operation.................................................................................................... 253
11.4.2 Interval timer operation ........................................................................................................ 254
CHAPTER 12 CLOCK OUTPUT CONTROL CIRCUIT ..................................................................... 255
12.1 Clock Output Control Circuit Functions ......................................................................... 255
12.2 Clock Output Control Circuit Configuration................................................................... 256
12.3 Clock Output Function Control Registers ...................................................................... 257
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524
  • Page 525 525
  • Page 526 526
  • Page 527 527
  • Page 528 528
  • Page 529 529
  • Page 530 530
  • Page 531 531
  • Page 532 532
  • Page 533 533
  • Page 534 534
  • Page 535 535
  • Page 536 536
  • Page 537 537
  • Page 538 538
  • Page 539 539
  • Page 540 540
  • Page 541 541
  • Page 542 542
  • Page 543 543
  • Page 544 544
  • Page 545 545
  • Page 546 546
  • Page 547 547
  • Page 548 548
  • Page 549 549
  • Page 550 550
  • Page 551 551
  • Page 552 552
  • Page 553 553
  • Page 554 554
  • Page 555 555
  • Page 556 556
  • Page 557 557
  • Page 558 558
  • Page 559 559
  • Page 560 560
  • Page 561 561
  • Page 562 562
  • Page 563 563
  • Page 564 564
  • Page 565 565
  • Page 566 566
  • Page 567 567
  • Page 568 568
  • Page 569 569
  • Page 570 570
  • Page 571 571
  • Page 572 572
  • Page 573 573
  • Page 574 574
  • Page 575 575
  • Page 576 576
  • Page 577 577
  • Page 578 578
  • Page 579 579
  • Page 580 580
  • Page 581 581
  • Page 582 582
  • Page 583 583
  • Page 584 584
  • Page 585 585
  • Page 586 586
  • Page 587 587
  • Page 588 588
  • Page 589 589
  • Page 590 590
  • Page 591 591
  • Page 592 592
  • Page 593 593
  • Page 594 594
  • Page 595 595
  • Page 596 596
  • Page 597 597
  • Page 598 598
  • Page 599 599
  • Page 600 600
  • Page 601 601
  • Page 602 602
  • Page 603 603

NEC uPD78055 User manual

Category
Networking
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI