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.
2HANDLING 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
being an output pin. All handling related to the unused pins must be judged device by device and
related specifications governing the devices.
DD or GND with a resistor, if it is considered to have a possibility of
3STATUS 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.
FIP, EEPROM, IEBus, and QTOP are trademarks of NEC Corporation.
MS-DOS, Windows, and WindowsNT are either registered trademarks or trademarks of Microsoft
Corporation in the United States and/or other countries.
IBM DOS, IBM 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.
SunOS is a trademark of Sun Microsystems, Inc.
Ethernet is a trademark of XEROX Corporation.
OSF/Motif is a trademark of Open Software Foundation, Inc.
NEWS and NEWS-OS are trademarks of Sony Corporation.
TRON is an abbreviation of The Realtime Operating System Nucleus.
ITRON is an abbreviation of Industrial TRON.
3
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:
The customer must judge the need for license:
The application circuits and their parameters are for reference only and are not intended for use in actual design-ins.
Purchase of NEC I2C components conveys a license under the Philips I2C Patent Rights to use these
components in an I
2
C 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.
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
4
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.
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
J97. 8
5
Major Revisions in This Edition
PageDescription
ThroughoutThe following products have been changed from “under development” to “already developed”.
µ
PD78078Y Subseries: µPD78076Y, 78078Y, 78P078Y
The following packages have been added to the µPD78078Y Subseries.
100-pin plastic LQFP (Fine pitch) (14 × 14 mm, resin thickness 1.4 mm)
p. 139 to 143,Block diagrams of ports have been changed.
149, 153Figure 6-5. Block Diagram of P20, P21, P23 to P26, Figure 6-6. Block Diagram of P22 and P27,
Figure 6-7. Block Diagram of P20, P21, P23 to P26, Figure 6-8. Block Diagram of P22 and P27,
Figure 6-9. Block Diagram of P30 to P37, Figure 6-16. Block Diagram of P71 and P72,
Figure 6-20. Block Diagram of P100 and P101
p. 169Table 7-2. Relationship between CPU Clock and Minimum Instruction Execution Time has been
added.
p. 1818.1 Outline of Timers Incorporated into µPD78078, 78078Y Subseries has been added.
p. 241Figure 9-10. Square Wave Output Operation Timing has been added.
p. 262Figure 10-13. Square Wave Output Operation Timing has been added.
p. 277Figure 12-1. Block Diagram of Watchdog Timer has been corrected.
p. 316, 366Precautions have been added to 17.1, 18.1 Serial Interface Channel 0 Functions.
p. 323, 374Precautions have been added to 17.3 (2), 18.3 (2) Serial Operating Mode Register 0 (CSIM0).
p. 372Note about the BSYE flag in Figure 17-5. Serial Bus Interface Control Register Format has been
changed.
p. 336Precautions have been added to 17.4.3 (2) (a) Bus release signal (REL), (b) Command signal
(CMD).
p. 44919.4.3 (3) (d) Busy control option, (e) Busy & strobe control option, and (f) Bit slippage
detection function have been changed to (4) Synchronization control, and the explanation has
been improved.
p. 48120.4.2 (2) (d) Reception
Conditions of INTSR generation when receive error occurrs has been corrected.
p. 482Figure 20-10. Receive Error Timing has been corrected, and note has been added.
p. 49020.4.3 (3) MSB/LSB switching as the start bit has been added.
p. 49120.4.4 Restrictions on using UART mode has been added.
p. 569Precautions have been added to Table 27-1. Differences between µPD78P078, 78P078Y and Mask
ROM Versions.
p. 597APPENDIX A DIFFERENCES BETWEEN µPD78078, 78075B SUBSERIES AND µPD78070A has
Entirely revised: Fuzzy inference developing support system has been deleted.
The mark shows major revised points.
6
INTRODUCTION
ReadersThis manual has been prepared for user engineers who understand the functions
of the
µ
PD78078 and 78078Y Subseries and design and develop its application
systems and programs.
The µPD78078 and 78078Y Subseries consist of the following members.
• µPD78078 Subseries: µPD78076, 78078, 78P078
µ
PD78078Y Subseries: µPD78076Y, 78078Y, 78P078Y
•
CautionOf the above members, the following devices with the suffix
KL-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 do not have enough reliability.
•µPD78P078KL-T and 78P078YKL-T
PurposeThis manual is intended for users to understand the functions described in the
Organization below.
OrganizationThe
How to Read This ManualBefore reading this manual, you should have general knowledge of electric and
µ
PD78078 and 78078Y Subseries manual is separated into two parts: this
manual and the instructions edition (common to the 78K/0 Series).
µ
PD78078, 78078Y Subseries78K/0 Series
User’s ManualUser’s Manual
(This manual)— Instructions —
• Pin functions• CPU functions
• Internal block functions• Instruction set
• Interrupt• Explanation of each instruction
• Other on-chip peripheral functions
logic circuits and microcontroller.
When you want to understand the functions in general:
→ Read this manual in the order of the contents.
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.
When you know a register name and want to confirm its details:
→ Read “APPENDIX D REGISTER INDEX”
To know the differences between the µPD78054 and 78054Y Subseries:
µ
→ See sections 1.10 and 2.10, titled “Differences with
and “Differences with
To know the µPD78078 and 78078Y Subseries instruction function in detail:
→ Refer to “78K/0 Series User’s Manual—Instructions (U12326E)”
To know the application example of each function of the µPD78078 and 78078Y
Subseries:
→ Refer to separately available Application Note.
µ
PD78054Y Subseries”, respectively.
PD78054 Subseries”
7
Chapter Organization: This manual divides the descriptions for the µPD78078 and 78078Y Subseries into different
chapters as shown below. Read only the chapters related to the device you use.
Chapter 16 D/A Converter√√
Chapter 17 Serial Interface Channel 0 (µPD78078 Subseries)√—
Chapter 18 Serial Interface Channel 0 (µPD78078Y Subseries)—√
Chapter 19 Serial Interface Channel 1√√
Chapter 20 Serial Interface Channel 2√√
Chapter 21 Real-Time Output Port√√
Chapter 22 Interrupt and Test Functions√√
Chapter 23 External Device Expansion Function√√
Chapter 24 Standby Function√√
Chapter 25 Reset Function√√
Chapter 26 ROM Correction√√
Chapter 27µPD78P078, µPD78P078Y√√
Chapter 28 Instruction Set√√
8
Differences between µPD78078 and µPD78078Y Subseries
The µPD78078 and µPD78078Y Subseries are different in the following functions of the serial
interface channel 0.
Mode of serial interface channel 0
3-wire serial I/O mode√√
2-wire serial I/O mode√√
SBI (serialbusinterface) mode√—
I2C (Inter IC) busmode—√√: Supported
— : Not supported
µ
PD78078µPD78078Y
SubseriesSubseries
LegendData significance: High digits on the left and low digits on the right
Active low representations: xxx (line over the pin and signal names)
Note: Description of note in the text
Caution: Information requiring particular attention
Remark:Additional explanatory material
Numeral representations: Binary ... xxxx or xxxxB
Decimal ... xxxx
Hexadecimal ... xxxxH
Related DocumentsThe related documents indicated in this publication may include preliminary
versions. However, preliminary versions are not marked as such.
PD78P078Y Data SheetU10606EU10606J
78K/0 Series User’s Manual—InstructionsU12326EU12326J
78K/0 Series Instruction Table—U10903J
78K/0 Series Instruction Set—U10904J
µ
PD78078 Subseries Special Function Register Table—IEM-5607
µ
PD78078Y Subseries Special Function Register Table—IEM-5601
78K/0 Series Application Note Basics (III)U10182EU10182J
Caution The above documents are subject to change without prior notice. Be sure to use the latest
version when starting design.
9
• Development Tool Documents (User’s Manuals)
Document NameDocument No.
EnglishJapanese
RA78K Series Assembler PackageOperationEEU-1399EEU-809
LanguageEEU-1404EEU-815
RA78K Series Structured Assembler PreprocessorEEU-1402U12323J
RA78K0 Assembler PackageOperationU11802EU11802J
LanguageU11801EU11801J
Structured AssemblyU11789EU11789J
Language
CC78K Series C CompilerOperationEEU-1280EEU-656
LanguageEEU-1284EEU-655
CC78K0 C CompilerOperationU11517EU11517J
LanguageU11518EU11518J
CC78K0 C Compiler Application Note
CC78K Series Library Source File—U12322J
PG-1500 PROM ProgrammerEEU-1335U11940J
PG-1500 Controller PC-9800 Series (MS-DOSTM)-BasedEEU-1291EEU-704
PG-1500 Controller IBM PC Series (PC DOSTM)-BasedU10540EEEU-5008
IE-78K0-NS
IE-78001-R-A
IE-78K0-R-EX1
IE-78078-NS-EM1
Programming Know-how
EEA-1208U13034J
To be preparedTo be prepared
To be preparedTo be prepared
To be preparedTo be prepared
To be preparedTo be prepared
IE-78078-R-EMU10775EU10775J
EP-78064EEU-1469EEU-934
SM78K0 System Simulator WindowsTM-BasedReferenceU10181EU10181J
SM78K Series System Simulator External Part User Open Interface SpecificationsU10092EU10092J
ID78K0-NS Integrated DebuggerReference
ID78K0 Integrated Debugger EWS BasedReference—U11151J
ID78K0 Integrated Debugger PC BasedReferenceU11539EU11539J
ID78K0 Integrated Debugger Windows BasedGuidesU11649EU11649J
To be prepared
U12900J
Caution The above documents are subject to change without prior notice. Be sure to use the latest
version when starting design.
10
• Documents for Embedded Software (User’s Manuals)
Document NameDocument No.
EnglishJapanese
78K/0 Series Real-time OSBasicsU11537EU11537J
InstallationU11536EU11536J
78K/0 Series OS MX78K0BasicsU12257EU12257J
• Other Documents
Document NameDocument No.
EnglishJapanese
IC Package ManualC10943X
Semiconductor Device Mounting Technology ManualC10535EC10535J
Quality Grades on NEC Semiconductor DevicesC11531EC11531J
NEC Semiconductor Device Reliability/Quality Control SystemU10983EU10983J
Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD)C11892EC11892J
Guide to Quality Assurance for Semiconductor DevicesMEI-1202—
Microcomputer Product Series Guide—U11416J
Caution The above documents are subject to change without prior notice. Be sure to use the latest
6.2.10 Port 8 ......................................................................................................................................... 150
6.2.11 Port 9 ......................................................................................................................................... 151
6.2.12 Port 10 .......................................................................................................................................153
6.2.13 Port 12 .......................................................................................................................................155
6.2.14 Port 13 .......................................................................................................................................156
18-20Wait Signal .................................................................................................................................. 39 4
Notes 1. The capacity of internal PROM can be changed by means of the internal memory size switching
register (IMS).
2. The capacity of internal high-speed RAM can be changed by means of the internal expansion RAM
size switching register (IXS).
External Memory Expansion Space: 64 Kbytes
Minimum instruction execution time changeable from high speed (0.4 µs: @ 5.0-MHz operation with main
µ
system clock) to ultra-low speed (122
s: @ 32.768-kHz operation with subsystem clock)
Instruction set suited to system control
•Bit manipulation possible in all address spaces
•Multiply and divide instructions incorporated
88 I/O port pins: (including eight N-ch open-drain port pins)
8-bit resolution A/D converter: 8 channels
8-bit resolution D/A converter: 2 channels
Serial interface: Three channels
•3-wire serial I/O/SBI/2-wire serial I/O mode: 1 channel
•3-wire serial I/O mode (automatic transmit/receive function): 1 channel
•3-wire serial I/O/UART mode: 1 channel
Timer: Seven channels
•16-bit timer/event counter : 1 channel
•8-bit timer/event counter: 4 channels
•Watch timer: 1 channel
•Watchdog timer: 1 channel
24 vectored interrupt sources
Two test inputs
Two types of on-chip clock oscillator circuits (main system clock and subsystem clock)
Power supply voltage: 1.8 to 5.5 V
33
CHAPTER 1 OUTLINE (µPD78078 SUBSERIES)
1.2 Application Fields
Cellular phones, cordless telephones, printers, AV equipment, air conditioners, cameras, PPCs, fuzzy home
appliances, vending machines, etc.
1.3 Ordering Information
Part numberPackageInternal ROM
µ
PD78076GC-xxx-7EA100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)Mask ROM
µ
PD78076GC-xxx-8EU
µ
PD78076GF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Mask ROM
µ
PD78078GC-xxx-7EA100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)Mask ROM
µ
PD78078GC-xxx-8EU
µ
PD78078GF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Mask ROM
µ
PD78P078GC-7EA100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)One-time PROM
µ
PD78P078GC-8EU
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Mask ROM
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Mask ROM
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)One-time PROM
µ
PD78P078GF-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)One-time PROM
µ
PD78P078KL-T100-pin ceramic WQFN (14 x 20 mm)EPROM
NoteUnder development
Caution Two types of packages are available for the µPD78076GC, 78078GC, and 78P078GC. For the
suppliable package, contact an NEC sales representative.
Remark xxx indicates ROM code suffix.
34
CHAPTER 1 OUTLINE (µPD78078 SUBSERIES)
1.4 Quality Grade
Part numberPackageQuality grades
µ
PD78076GC-xxx-7EA100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)Standard
µ
PD78076GC-xxx-8EU
µ
PD78076GF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Standard
µ
PD78078GC-xxx-7EA100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)Standard
µ
PD78078GC-xxx-8EU
µ
PD78078GF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Standard
µ
PD78P078GC-7EA100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)Standard
µ
PD78P078GC-8EU
µ
PD78P078GF-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Standard
µ
PD78P078KL-T100-pin ceramic WQFN (14 x 20 mm)
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Standard
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Standard
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Standard
(for function evaluation only)
Not assured
NoteUnder development
Caution Of the above members, the following device with the suffix KL-T should be used only for
experiment or function evaluation, because it is not intended for use in equipment that will be
mass-produced and require high reliability.
µ
PD78P078KL-T
•
Remark xxx indicates ROM code suffix.
Please refer to “Quality Grades on NEC Semiconductor Devices”(C11531E) published by NEC Corporation to know the
specification of quality grade on the devices and its recommended applications.
Cautions 1. Connect IC (Internally Connected) pin to V
2. Connect AVDD pin to VDD.
3. Connect AV
Remark Pin connection in parentheses is for the
SS pin to VSS.
µ
PD78P078.
P24/BUSY
SS directly.
P27/SCK0
P25/SI0/SB0
P26/SO0/SB1
P80/A0
P81/A1
Pin Identifications
CHAPTER 1 OUTLINE (µPD78078 SUBSERIES)
A0 to A15:Address Bus
AD0 to AD7:Address/Data Bus
ANI0 to ANI7:Analog Input
ANO0, ANO1:Analog Output
ASCK: Asynchronous Serial Clock
ASTB: Address Strobe
DD: Analog Power Supply
AV
AVREF0, AVREF1:Analog Reference Voltage
AVSS:Analog Ground
BUSY: Busy
BUZ: Buzzer Clock
IC: Internally Connected
INTP0 to INTP6: Interrupt from Peripherals
P00 to P07:Port 0
P10 to P17:Port 1
P20 to P27:Port 2
P30 to P37:Port 3
P40 to P47:Port 4
P50 to P57:Port 5
P60 to P67:Port 6
P70 to P72:Port 7
P80 to P87:Port 8
P90 to P96:Port 9
P100 to P103:Port 10
P120 to P127:Port 12
P130, P131: Port 13
PCL: Programmable Clock
RD: Read Strobe
RESET: Reset
RTP0 to RTP7: Real-time Output Port
RxD: Receive Data
SB0, SB1:Serial Bus
SCK0 to SCK2: Serial Clock
SI0 to SI2: Serial Input
SO0 to SO2:Serial Output
STB: Strobe
TI00, TI01: Timer Input
TI1, TI2, TI5, TI6:Timer Input
TO0 to TO2, TO5, TO6 : Timer Output
TxD: Transmit Data
DD: Power Supply
V
VPP:Programming Power Supply
SS:Ground
V
WAIT: Wait
WR: Write Strobe
X1, X2: Crystal (Main System Clock)
XT1, XT2: Crystal (Subsystem Clock)
39
CHAPTER 1 OUTLINE (µPD78078 SUBSERIES)
(2) PROM programming mode
100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)
µ
PD78P078GC-7EA
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)
Cautions 1. (L): Connect independently to VSS via a pull-down resistor.
2. VSS: Connect to the ground.
3. RESET : Set to the low level.
4. Open: Leave open.
A0 to A16: Address BusRESET: Reset
CE: Chip EnableV
DD: Power Supply
D0 to D7: Data BusVPP: Programming Power Supply
OE: Output EnableVSS: Ground
PGM: Program
41
CHAPTER 1 OUTLINE (µPD78078 SUBSERIES)
1.6 78K/0 Series Expansion
The products in the 78K/0 Series are listed below. The names in boxes are subseries names.
Mass-produced products
Products under development
The subseries whose name ends with Y support
2
C bus specifications.
the I
Control
100-pin
100-pinAdded timers to µPD78054 and enhanced external interface
100-pin
100-pin
80-pinEnhanced serial I/O of µPD78054, reduced EMI noise version
80-pin
80-pin
64-pin
64-pin
64-pin
64-pin
64-pin
64-pin
64-pin
42-/44-pin
µPD78075B
µPD78078µPD78078Y
µPD78070AµPD78070AY
µ
PD780018AY
µPD780058
µPD78058F
µPD78054
µPD780034
µPD780024
µPD780058Y
µPD78058FY
µPD78054Y
µPD780034Y
µPD780024Y
µPD78014H
µPD78018F
µPD78014
µPD78018FY
µPD78014Y
µPD780001
µPD78002
µPD78002Y
µPD78083
Reduced EMI noise version of µPD78078
ROM-less version of µPD78078
Enhanced serial I/O of µPD78078Y and functions are defined.
Note
Reduced EMI noise version of µPD78054
Added UART and D/A to µPD78014 and enhanced I/Os
Enhanced A/D of µPD780024
Enhanced serial I/O of µPD78018F
Reduced EMI noise version of µPD78018F
Low-voltage (1.8 V) version of µPD78014 and enhanced ROM/RAM size options
Added A/D and 16-bit timer to µPD78002
Added A/D to µPD78002
Basic subseries for control applications
Equipped with UART and operates at low-voltage (1.8 V)
78K/0
Series
64-pin
64-pin
100-pin
100-pin
80-pin
100-pin
100-pin
100-pin
80-pin
Inverter control
µPD78098864-pin
µPD780964
µPD780924
Enhanced inverter control, timer, and SIO of µPD780964, expanded ROM and RAM
Enhanced A/D of µPD780924
Equipped with inverter control circuit and UART, reduced EMI noise version
FIPTM driving
µPD780208
µPD780228
µPD78044H
Enhanced I/O and FIP C/D of µPD78044F, 53 display outputs
Enhanced I/O and FIP C/D of µPD78044H, 48 display outputs
Added N-ch open-drain I/O to µPD78044F, 34 display outputs
µPD78044F80-pinBasic subseries for driving FIPs, 34 display outputs
LCD driving
µPD780308
µPD78064B
µPD78064
TM
supported
IEBus
µPD78098B
µPD780308Y
µPD78064Y
Enhanced SIO of µPD78064, expanded ROM and RAM
Reduced EMI noise version of µPD78064
Basic subseries for driving LCDs, equipped with UART
Reduced EMI noise version of µPD78098
µPD7809880-pinAdded IEBus controller to µPD78054
Meter control
µPD78097380-pin
Equipped with controller/driver for driving automobile meters
NotePlanned
42
CHAPTER 1 OUTLINE (µPD78078 SUBSERIES)
The following shows the major differences between subseries products.
Power supply voltageVDD = 1.8 to 5.5 V
Operating ambient temperatureT A = –40 to +85°C
Package• 100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)
µ
PD78076
External: 1
•
100-pin plastic LQFP
• 100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)
• 100-pin ceramic WQFN (14 x 20 mm) (µPD78P078 only)
Note
µ
PD78078
(Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)
µ
PD78P078
NoteUnder development
46
CHAPTER 1 OUTLINE (µPD78078 SUBSERIES)
1.9 Mask Options
The mask ROM versions (µPD78076, 78078) provide pull-up register mask options which allow users to specify
whether to connect a pull-up register to a specific port pin when the user places an order for the device production.
Using this mask option when pull-up resistors are required reduces the number of components to add to the device,
resulting in board space saving.
µ
The mask options provided in the
PD78078 Subseries are shown in Table 1-1.
Table 1-1. Mask Options of Mask ROM Versions
Pin NamesMask Options
P60 to P63, P90 to P93Pull-up resistor connection can be specified
in 1-bit units.
1.10 Differences with µPD78054 Subseries
The µPD78078 Subseries is upward-compatible with the µPD78054 Subseries. The differences between the two
subseries are shown in the table below. The functions and specifications other than those shown in this table are
common to these two series.
µ
Table 1-2. Differences between
Subseries
Item
No. of I/O ports6988
8-bit timer/event counter2 channnels4 channels
External deviceAddress bus separate functionAddress bus separate function
expansion functionis not provided.is provided. (P80/A0 to P87/A7)
Power supply voltageVDD = 2.0 to 6.0 VVDD = 1.8 to 5.5 V
Package80-pin plastic TQFP (12 x 12 mm)100-pin plastic TQFP (14 x 14 mm)
80-pin plastic QFP (14 x 14 mm)100-pin plastic LQFP (14 x 14 mm)
80-pin plastic WQFP (14 x 14 mm)*100-pin plastic QFP (14 x 20 mm)
* : Only for PROM version* : Only for PROM version
PD78078 Subseries and µPD78054 Subseries
µ
PD78054 Subseries
100-pin plastic WQFP (14 x 20 mm)*
µ
PD78078 Subseries
47
[MEMO]
48
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
2.1 Features
Internal high-capacity ROM and RAM
Type
Part Number
µ
PD78076Y
µ
PD78078Y
µ
PD78P078Y
Program Memory
(ROM)
48 Kbytes
60 Kbytes
60 Kbytes
Note 1
Internal High-Speed RAM
1024 bytes32 bytes
Data Memory
Internal Buffer RAM
Internal Expansion RAM
1024 bytes
1024 bytes
Note 2
Notes1. The capacity of internal PROM can be changed using the internal memory size switching register
(IMS).
2. The capacity of internal high-speed RAM can be changed using the internal expansion RAM size
switching register (IXS).
External memory expansion space: 64 Kbytes
Minimum instruction execution time changeable from high speed (0.4 µs: @ 5.0-MHz operation with main
µ
system clock) to ultra-low speed (122
s: @ 32.768-kHz operation with subsystem clock)
Instruction set suited to system control
•Bit manipulation possible in all address spaces
•Multiply and divide instructions incorporated
88 I/O port pins: (including eight N-ch open-drain port pins)
8-bit resolution A/D converter: 8 channels
8-bit resolution D/A converter: 2 channels
Serial interface: Three channels
2
•3-wire serial I/O/2-wire serial I/O/I
C bus mode: 1 channel
•3-wire serial I/O mode (Automatic transmit/receive function): 1 channel
•3-wire serial I/O/UART mode: 1 channel
Timer: Seven channels
•16-bit timer/event counter : 1 channel
•8-bit timer/event counter: 4 channels
•Watch timer: 1 channel
•Watchdog timer: 1 channel
24 vectored interrupt sources
Two test inputs
Two types of on-chip clock oscillation circuits (main system clock and subsystem clock)
Power supply voltage: 1.8 to 5.5 V
49
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
2.2 Application Fields
Cellular phones, cordless telephones, printers, AV equipment, air conditioners, cameras, PPCs, fuzzy home
appliances, vending machines, etc.
2.3 Ordering Information
Part numberPackageInternal ROM
µ
PD78076YGC-xxx-8EU
µ
PD78076YGF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Mask ROM
µ
PD78078YGC-xxx-8EU
µ
PD78078YGF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Mask ROM
µ
PD78P078YGC-8EU
µ
PD78P078YGF-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)One-time PROM
µ
PD78P078YKL-T100-pin ceramic WQFN (14 x 20 mm)EPROM
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Mask ROM
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Mask ROM
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)One-time PROM
NoteUnder development
Remark xxx indicates ROM code suffix.
50
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
2.4 Quality Grade
Part numberPackageQuality grades
µ
PD78076YGC-xxx-8EU
µ
PD78076YGF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Standard
µ
PD78078YGC-xxx-8EU
µ
PD78078YGF-xxx-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Standard
µ
PD78P078YGC-8EU
µ
PD78P078YGF-3BA100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)Standard
µ
PD78P078YKL-T100-pin ceramic WQFN (14 x 20 mm)
NoteUnder development
Caution Of the above members, the following device with the suffix KL-T should be used only for
experiment or function evaluation, because it is not intended for use in equipment that will be
mass-produced and require high reliability.
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Standard
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Standard
Note
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)Standard
µ
PD78P078YKL-T
•
Not assured
(for function evaluation only)
Remark xxx indicates ROM code suffix.
Please refer to “Quality Grades on NEC Semiconductor Devices”(C11531E) published by NEC Corporation to know the
specification of quality grade on the devices and its recommended applications.
51
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
2.5 Pin Configuration (Top View)
(1) Normal operating mode
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)
Cautions 1. Connect IC (Internally Connected) pin to V
2. Connect AVDD pin to VDD.
3. Connect AVSS pin to VSS.
Remark Pin connection in parentheses is for the
µ
PD78P078Y.
P23/STB
P21/SO1
P22/SCK1
P24/BUSY
SS directly.
P80/A0
P81/A1
P27/SCK0/SCL
P25/SI0/SB0/SDA0
P26/SO0/SB1/SDA1
Pin Identifications
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
A0 to A15: Address Bus
AD0 to AD7: Address/Data Bus
ANI0 to ANI7: Analog Input
ANO0, ANO1: Analog Output
ASCK: Asynchronous Serial Clock
ASTB: Address Strobe
DD: Analog Power Supply
AV
AVREF0,AVREF1: Analog Reference Voltage
AVSS: Analog Ground
BUSY: Busy
BUZ: Buzzer Clock
IC: Internally Connected
INTP0 to INTP6: Interrupt from Peripherals
P00 to P07: Port 0
P10 to P17: Port 1
P20 to P27: Port 2
P30 to P37: Port 3
P40 to P47: Port 4
P50 to P57: Port 5
P60 to P67: Port 6
P70 to P72: Port 7
P80 to P87: Port 8
P90 to P96: Port 9
P100 to P103: Port 10
P120 to P127: Port 12
P130, P131: Port 13
PCL: Programmable Clock
RD: Read Strobe
RESET: Reset
RTP0 to RTP7: Real-time Output Port
RxD: Receive Data
SB0, SB1: Serial Bus
SCK0 to SCK2: Serial Clock
SCL: Serial Clock
SDA0, SDA1: Serial Data
SI0 to SI2: Serial Input
SO0 to SO2: Serial Output
STB: Strobe
TI00, TI01: Timer Input
TI1, TI2, TI5, TI6: Timer Input
TO0 to TO2, TO5, TO6
: Timer Output
TxD: Transmit Data
DD: Power Supply
V
VPP: Programming Power Supply
SS: Ground
V
WAIT: Wait
WR: Write Strobe
X1, X2: Crystal (Main System Clock)
XT1, XT2: Crystal (Subsystem Clock)
55
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
(2) PROM programming mode
100-pin plastic QFP (Fine pitch) (14 x 14 mm, resin thickness 1.45 mm)
µ
PD78P078YGC-7EA
100-pin plastic LQFP (Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)
Cautions 1. (L): Connect independently to VSS via a pull-down resistor.
2. VSS: Connect to the ground.
3. RESET : Set to the low level.
4. Open: Leave open.
A0 to A16: Address BusRESET: Reset
CE: Chip EnableV
DD: Power Supply
D0 to D7: Data BusVPP: Programming Power Supply
OE: Output EnableVSS: Ground
PGM: Program
57
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
2.6 78K/0 Series Expansion
The products in the 78K/0 Series are listed below. The names in boxes are subseries names.
Mass-produced products
Products under development
The subseries whose name ends with Y support
2
C bus specifications.
the I
Control
100-pin
100-pinAdded timers to µPD78054 and enhanced external interface
100-pin
100-pin
80-pinEnhanced serial I/O of µPD78054, reduced EMI noise version
80-pin
80-pin
64-pin
64-pin
64-pin
64-pin
64-pin
64-pin
64-pin
42-/44-pin
µPD78075B
µPD78078µPD78078Y
µPD78070AµPD78070AY
µ
PD780018AY
µPD780058
µPD78058F
µPD78054
µPD780034
µPD780024
µPD78014H
µPD78018F
µPD78014
µPD780001
µPD78002
µPD78083
µPD780058Y
µPD78058FY
µPD78054Y
µPD780034Y
µPD780024Y
µPD78018FY
µPD78014Y
µPD78002Y
Reduced EMI noise version of µPD78078
ROM-less version of µPD78078
Enhanced serial I/O of µPD78078Y and functions are defined.
Note
Reduced EMI noise version of µPD78054
Added UART and D/A to µPD78014 and enhanced I/Os
Enhanced A/D of µPD780024
Enhanced serial I/O of µPD78018F
Reduced EMI noise version of µPD78018F
Low-voltage (1.8 V) version of µPD78014 and enhanced ROM/RAM size options
Added A/D and 16-bit timer to µPD78002
Added A/D to µPD78002
Basic subseries for control applications
Equipped with UART and operates at low-voltage (1.8 V)
78K/0
Series
64-pin
64-pin
100-pin
100-pin
80-pin
100-pin
100-pin
100-pin
80-pin
Inverter control
µPD78098864-pin
µPD780964
µPD780924
FIP driving
µPD780208
µPD780228
µPD78044H
µPD78044F80-pinBasic subseries for driving FIPs, 34 display outputs
LCD driving
µPD780308
µPD78064B
µPD78064
IEBus supported
µPD78098B
µPD7809880-pinAdded IEBus controller to µPD78054
Meter control
µPD78097380-pin
µPD780308Y
µPD78064Y
Enhanced inverter control, timer, and SIO of µPD780964, expanded ROM and RAM
Enhanced A/D of µPD780924
Equipped with inverter control circuit and UART, reduced EMI noise version
Enhanced I/O and FIP C/D of µPD78044F, 53 display outputs
Enhanced I/O and FIP C/D of µPD78044H, 48 display outputs
Added N-ch open-drain I/O to µPD78044F, 34 display outputs
Enhanced SIO of µPD78064, expanded ROM and RAM
Reduced EMI noise version of µPD78064
Basic subseries for driving LCDs, equipped with UART
Reduced EMI noise version of µPD78098
Equipped with controller/driver for driving automobile meters
NotePlanned
58
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
Major differences among Y subseries are tabulated below.
FunctionROMConfiguration of Serial Interface
SubseriesCapacityMIN.
Control
µ
PD78078Y48K to 60K3-wire/2-wire/I2C: 1 ch881.8 V
µ
PD78070AY—
µ
PD780018AY
µ
PD780058Y 24K to 60K3-wire/2-wire/I2C: 1 ch681.8 V
µ
PD78058FY 48K to 60K3-wire/2-wire/I2C: 1 ch692.7 V
µ
PD78054Y16K to 60K3-wire with automatic transmit/receive function: 1 ch2.0 V
µ
PD780034Y 8K to 32KUART: 1 ch511.8 V
µ
PD780024Y
µ
PD78018FY 8K to 60K3-wire/2-wire/I2C: 1 ch53
µ
PD78014Y8K to 32K3-wire/2-wire/I2C: 1 ch2.7 V
48K to 60K3-wire with automatic transmit/receive function: 1 ch88
3-wire with automatic transmit/receive function: 1 ch
3-wire/UART: 1 ch
Time division 3-wire: 1 ch
I2C bus (supports multi-master): 1 ch
With main system clock selected0.4 µs/0.8 µs/1.6 µs/3.2 µs/6.4 µs/12.8 µs (@ 5.0-MHz operation)
With subsystem clock selected122 µs (@ 32.768-kHz operation)
PD78076Y
Mask ROMPROM
48 Kbytes60 Kbytes60 Kbytes
• Multiply/divide (8-bit x 8-bit, 16-bit/8-bit)
• Bit manipulate (set, reset, test, and Boolean operation)
• BCD adjust, etc.
• CMOS input: 2
• CMOS input/output : 78
µ
PD78078Y
µ
PD78P078Y
Note 1
• N-ch open drain I/O : 8
A/D converter8-bit resolution x 8 channels
D/A converter8-bit resolution x 2 channels
Serial interface• 3-wire serial I/O/2-wire serial I/O/I2C bus mode selection: 1 channel
possible
• 3-wire serial I/O mode (maximum 32-byte on-chip automatic
Power supply voltageVDD = 1.8 to 5.5 V
Operating ambient temperatureT A = –40 to +85°C
Package•
PD78076Y
External: 1
100-pin plastic LQFP
• 100-pin plastic QFP (14 x 20 mm, resin thickness 2.7 mm)
• 100-pin ceramic WQFN (14 x 20 mm) (µPD78P078Y only)
NoteUnder development
µ
PD78078Y
Note
(Fine pitch) (14 x 14 mm, resin thickness 1.4 mm)
µ
PD78P078Y
62
CHAPTER 2 OUTLINE (µPD78078Y SUBSERIES)
2.9 Mask Options
The mask ROM versions (µPD78076Y, 78078Y) provide pull-up register mask options which allow users to specify
whether to connect a pull-up register to a specific port pin when the user places an order for the device production.
Using this mask option when pull-up resistors are required reduces the number of components to add to the device,
resulting in board space saving.
µ
The mask options provided in the
PD78078Y Subseries are shown in Table 2-1.
Table 2-1. Mask Options of Mask ROM Versions
Pin NamesMask Options
P60 to P63, P90 to P93Pull-up resistor connection can be specified
in 1-bit units.
2.10 Differences with µPD78054Y Subseries
The µPD78078Y Subseries is upward-compatible with the µPD78054Y Subseries. The differences between the
two subseries are shown in the table below. The functions and specifications other than those shown in this table
are common to these two series.
µ
Table 2-2. Differences between
Subseries
Item
No. of I/O ports6988
8-bit timer/event counter2 channnels4 channels
External deviceAddress bus separate functionAddress bus separate function
expansion functionis not provided.is provided. (P80/A0 to P87/A7)
Power supply voltageVDD = 2.0 to 6.0 VVDD = 1.8 to 5.5 V
Package80-pin plastic QFP (14 x 14 mm)100-pin plastic QFP (14 x 20 mm)
80-pin plastic WQFP (14 x 14 mm)*100-pin plastic LQFP (14 x 14 mm)
* : Only for PROM version100-pin plastic WQFP (14 x 20 mm)*
PD78078Y Subseries and µPD78054Y Subseries
µ
PD78054Y Subseries
* : Only for PROM version
µ
PD78078Y Subseries
63
[MEMO]
64
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.1 Pin Function List
3.1.1 Normal operating mode pins
(1) Port pins (1/3)
Pin Name
P00InputInput onlyInputINTP0/TI00
P01Input/output mode can be specifiedINTP1/TI01
P02bit-wise.INTP2
P03Input/Port 0.If used as an input port, an on-chipINTP3
P04output8-bit input/output port.pull-up resistor can be connectedINTP4
P05by software.INTP5
P06INTP6
P07
P10 to P17Port 1.
P20SI1
P21SO1
P22Port 2.SCK1
P23Input/8-bit input/output port.STB
P24outputInput/output mode can be specified bit-wise.BUSY
P25If used as an input port, an on-chip pull-up resistor can be connected bySI0/SB0
P26software.SO0/SB1
P27SCK0
Note 1
Input/Output
InputInput onlyInputXT1
8-bit input/output port.
Input/
output
Input/output mode can be specified bit-wise.InputANI0 to ANI7
If used as input port, an on-chip pull-up resistor can be connected by
software
Note 2
.
FunctionAfter Reset
Input
Input
Alternate Function
Notes1. When the P07/XT1 pin is used as an input port, set the bit 6 (FRC) of the processor clock control
register (PCC) to 1 (do not use the feedback resistor internal to the subsystem clock oscillator).
2. When pins P10/ANI0 to P17/ANI7 are used as an analog input of the A/D converter, set port 1 in
the input mode. The on-chip pull-up resistor becomes automatically disabled.
65
(1) Port pins (2/3)
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
Pin Name
P30TO0
P31TO1
P32Port 3.TO2
P33Input/8-bit input/output port.TI1
P34outputInput/output mode can be specified bit-wise.TI2
P35If used as an input port, an on-chip pull-up resistor can be connected byPCL
P36software.BUZ
P37—
P40 to P47InputAD0 to AD7
P50 to P57
P61
P62Port 6.—
P63Input/8-bit input/output port.
P64outputInput/output mode can beIf used as an input port, an on-chipInputRD
P65specified bit-wise.pull-up resistor can be connectedWR
P66by software.WAIT
P67ASTB
P70SI2/RxD
P71
P72SCK2/ASCK
P80 to P87InputA0 to A7
Input/Output
Port 4.
8-bit input/output port.
Input/Input/output mode can be specified in 8-bit units.
outputIf used as an input port, an on-chip pull-up resistor can be connected by
software.
Test input flag (KRIF) is set to 1 by falling edge detection.
Port 5.
8-bit input/output port.
Input/
output
Input/
output
Input/
output
LEDs can be driven directly.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 7.
3-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 8.
8-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
FunctionAfter Reset
N-ch open drain input/output port.
On-chip pull-up resistor can be
specified by mask option.
(Mask ROM version only).
LEDs can be driven directly.
Alternate Function
Input
InputA8 to A15
Input
SO2/TxD
66
(1) Port pins (3/3)
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
Pin Name
P90
P91Port 9.
P927-bit input/output port.
P93Input/output mode can beInput—
P94specified bit-wise.If used as an input port, an on-chip
P95pull-up resistor can be connected
P96by software.
P100TI5/TO5
P101InputTI6/TO6
P102, P103—
P120 to P127
P130, P131
Input/Output
Input/
output
Input/
output
Input/
output
Input/
output
FunctionAfter Reset
N-ch open-drain input/output port.
On-chip pull-up resistor can be
specified by mask option.
(Mask ROM version only).
LEDs can be driven directly.
Port 10.
4-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 12.
8-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 13.
2-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Alternate Function
InputRTP0 to RTP7
InputANO0, ANO1
67
(2) Non-port pins (1/2)
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
Pin Name
INTP0P00/TI00
INTP1P01/TI01
INTP2External interrupt request inputs with specifiable valid edges (rising edge,P02
INTP3Inputfalling edge, both rising and falling edges).InputP03
INTP4P04
INTP5P05
INTP6P06
SI0P25/SB0
SI1InputSerial interface serial data inputInputP20
SI2P70/RxD
SO0P26/SB1
SO1OutputSerial interface serial data outputInputP21
SO2P71/TxD
SB0Input/P25/SI0
SB1outputP26/SO0
SCK0P27
SCK1Serial interface serial clock input/outputInputP22
SCK2P72/ASCK
RxDInputAsynchronous serial interface serial data inputInputP70/SI2
TxDOutputAsynchronous serial interface serial data outputInputP71/SO2
ASCKInputAsynchronous serial interface serial clock inputInputP72/SCK2
TI00External count clock input to 16-bit timer (TM0)P00/INTP0
TI01Capture trigger signal input to capture register (CR00)P01/INTP1
TI1External count clock input to 8-bit timer (TM1)P33
TI2External count clock input to 8-bit timer (TM2)P34
TI5External count clock input to 8-bit timer (TM5)P100/TO5
TI6External count clock input to 8-bit timer (TM6)P101/TO6
TO016-bit timer (TM0) output (also used for 14-bit PWM output)P30
TO18-bit timer (TM1) outputP31
TO2Output8-bit timer (TM2) outputInputP32
TO58-bit timer (TM5) output (also used for 8-bit PWM output)P100/TI5
TO68-bit timer (TM6) output (also used for 8-bit PWM output)P101/TI6
PCLOutputClock output (for main system clock and subsystem clock trimming)InputP35
BUZOutputBuzzer outputInputP36
RTP0 to RTP7
Input/Output
Serial interface serial data input/outputInput
Input/
output
InputInput
OutputReal-time output port outputting data in synchronization with triggerInputP120 to P127
FunctionAfter Reset
Alternate Function
68
(2) Non-port pins (2/2)
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
Pin Name
AD0 to AD7
A0 to A7OutputLow-order address bus when expanding external memoryInputP80 to P87
A8 to A15OutputHigh-order address bus when expanding external memoryInputP50 to P57
RDStrobe signal output for read operation from external memoryP64
WRStrobe signal output for write operation to external memoryP65
WAITInputWait insertion when accessing external memoryInputP66
ASTBOutputInputP67
ANI0 to ANI7
ANO0, ANO1
AVREF0InputA/D converter reference voltage input——
AVREF1InputD/A converter reference voltage input——
AVDD—A/D converter analog power supply. Connect to V DD.——
AVSS—A/D converter, D/A converter ground potential. Connect to VSS.——
RESETInputSystem reset input——
X1Input——
X2———
XT1InputInputP07
XT2———
VDD—Positive power supply——
VPP———
VSS—Ground potential——
Input/Output
Input/Output
OutputInput
InputA/D converter analog inputInputP10 to P17
OutputD/A converter analog outputInputP130, P131
IC—Internally connected. Connect directly to VSS.——
Low-order address/data bus when expanding external memoryInputP40 to P47
Strobe output externally latching address information output to ports 4,
5 to access external memory
Crystal connection for main system clock oscillation
Crystal connection for subsystem clock oscillation
High-voltage application for program write/verify. Connect directly to
VSS in normal operating mode.
FunctionAfter Reset
Alternate Function
3.1.2 PROM programming mode pins (µPD78P078 only)
Pin Name
RESETInputWhen +5 V or +12.5 V is applied to the VPP pin or a low level voltage is applied to the RESET pin,
VPPInputHigh-voltage application for PROM programming mode setting and program write/verify.
A0 to A16InputAddress bus
D0 to D7
OEInputRead strobe input to PROM
PGMInputProgram/program inhibit input in PROM programming mode
VDD—Positive power supply
VSS—Ground potential
Input/Output
PROM programming mode setting.
the PROM programming mode is set.
Input/output
CEInputPROM enable input/program pulse input
Data bus
Function
69
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2 Description of Pin Functions
3.2.1 P00 to P07 (Port 0)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an external interrupt
request input, an external count clock input to the timer, a capture trigger signal input, and crystal connection for
subsystem oscillation.
The following operating modes can be specified bit-wise.
(1) Port mode
P00 and P07 function as input-only ports and P01 to P06 function as input/output ports.
P01 to P06 can be specified for input or output ports bit-wise with a port mode register 0 (PM0). When they are
used as input ports, on-chip pull-up resistors can be connected to them by defining the pull-up resistor option
register L (PUOL).
(2) Control mode
In this mode, these ports function as an external interrupt request input, an external count clock input to
the timer, and crystal connection for subsystem clock oscillation.
(a) INTP0 to INTP6
INTP0 to INTP6 are external interrupt request input pins which can specify valid edges (rising edge,
falling edge, and both rising and falling edges). INTP0 or INTP1 becomes a 16-bit timer/event counter
capture trigger signal input pin with a valid edge input.
(b) TI00
Pin for external count clock input to 16-bit timer/event counter
(c) TI01
Pin for capture trigger signal to capture register (CR00) of 16-bit timer/event counter
(d) XT1
Crystal connect pin for subsystem clock oscillation
3.2.2 P10 to P17 (Port 1)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an A/D converter analog
input.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports.
They can be specified bit-wise as input or output ports with a port mode register 1 (PM1). If used as input
ports, on-chip pull-up resistors can be connected to them by defining the pull-up resistor option register L
(PUOL).
(2) Control mode
These ports function as A/D converter analog input pins (ANI0 to ANI7). The pull-up resistor is automatically
disabled when the pins are specified for analog input.
70
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2.3 P20 to P27 (Port 2)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as data input/output to/
from the serial interface, clock input/output, automatic transmit/receive busy input, and strobe output functions.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 2 (PM2). When they are used as input ports, on-chip pull-up resistors can be connected
to them by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as serial interface data input/output, clock input/output, automatic transmit/receive busy
input, and strobe output functions.
(a) SI0, SI1, SO0, SO1
Serial interface serial data input/output pins
(b) SCK0 and SCK1
Serial interface serial clock input/output pins
(c) SB0 and SB1
NEC standard serial bus interface input/output pins
(d) BUSY
Serial interface automatic transmit/receive busy input pins
(e) STB
Serial interface automatic transmit/receive strobe output pins
CautionWhen this port is used as a serial interface, the I/O and output latches must be set
according to the function the user requires. For the setting, refer to Figure 17-4. Serial
Operation Mode Register 0 Format and Figure 19-3. Serial Operation Mode Register
1 Format.
71
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2.4 P30 to P37 (Port 3)
These are 8-bit input/output ports. Beside serving as input/output ports, they function as timer input/output, clock
output and buzzer output.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 3 (PM3). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as timer input/output, clock output, and buzzer output.
(a) TI1 and TI2
Pin for external count clock input to the 8-bit timer/event counter.
(b) TO0 to TO2
Timer output pins.
(c) PCL
Clock output pin.
(d) BUZ
Buzzer output pin.
3.2.5 P40 to P47 (Port 4)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an address/data bus.
The test input flag (KRIF) can be set to 1 by detecting a falling edge.
The following operating mode can be specified in 8-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 8-bit units for input or output ports
by using the memory expansion mode register (MM). When they are used as input ports, on-chip pull-up
resistors can be connected to them by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as low-order address/data bus pins (AD0 to AD7) in external memory expansion mode.
When pins are used as an address/data bus, the on-chip pull-up resistor is automatically disabled.
72
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2.6 P50 to P57 (Port 5)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an address bus.
Port 5 can drive LEDs directly.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input/output ports with
port mode register 5 (PM5). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as high-order address bus pins (A8 to A15) in external memory expansion mode. When
pins are used as an address bus, the on-chip pull-up resistor is automatically disabled.
3.2.7 P60 to P67 (Port 6)
These are 8-bit input/output ports. Besides serving as input/output ports, they are used for control in external
memory expansion mode. P60 to P63 can drive LEDs directly.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 6 (PM6).
P60 to P63 are N-ch open-drain outputs. Mask ROM version can contain pull-up resistors with the mask
option.
When P64 to P67 are used as input ports, on-chip pull-up resistors can be connected by defining the pullup resistor option register L (PUOL).
(2) Control mode
These ports function as control signal output pins (RD, WR, WAIT, ASTB) in external memory expansion
mode. When a pin is used as a control signal output, the on-chip pull-up resistor is automatically disabled.
Caution When external wait is not used in external memory expansion mode, P66 can be used as
an input/output port.
73
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2.8 P70 to P72 (Port 7)
This is a 3-bit input/output port. In addition to its use as an input/output port, it also has serial interface data input/
output and clock input/output functions.
The following operating modes can be specified bit-wise.
(1) Port mode
Port 7 functions as a 3-bit input/output port. Bit-wise specification as an input port or output port is possible
by means of port mode register 7 (PM7). When used as input ports, on-chip pull-up resistors can be
connected by defining the pull-up resistor option register L (PUOL).
(2) Control mode
Port 7 functions as serial interface data input/output and clock input/output.
(a) SI2, SO2
Serial interface serial data input/output pins
(b) SCK2
Serial interface serial clock input/output pin.
(c) RxD, TxD
Asynchronous serial interface serial data input/output pins.
(d) ASCK
Asynchronous serial interface serial clock input/output pin.
Caution When this port is used as a serial interface, the I/O and output latches must be set according
to the function the user requires.
For the setting, refer to the operation mode setting list in Table 20-2. Serial Interface
Channel 2.
3.2.9 P80 to P87 (Port 8)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an address bus.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 8 (PM8). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports function as lower address bus pins (A0 to A7) in external memory expansion mode. When a
pin is used as an address bus, the on-chip pull-up resistor is automatically not used.
74
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2.10 P90 to P96 (Port 9)
These are 7-bit input/output ports.
P90 to P93 can drive LEDs directly.
They can be specified bit-wise as input or output ports with port mode register 9 (PM9).
P90 to P93 are N-ch open-drain pins. Mask ROM version product can contain pull-up resistors with the mask option.
When P94 to P96 are used as input ports, on-chip pull-up resistors can be connected by defining the pull-up resistor
option register H (PUOH).
3.2.11 P100 to P103 (Port 10)
These are 4-bit input/output ports. Besides serving as input/output ports, they function as a timer input/output.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 4-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 10 (PM10). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports function as timer input/output.
(a) TI5 and TI6
Pins for external count clock input to 8-bit timer/event counter.
(b) TO5 to TO6
Pins for timer output.
3.2.12 P120 to P127 (Port 12)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as a real-time output port.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 12 (PM12). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports function as real-time output ports (RTP0 to RTP7) outputting data in synchronization with a
trigger.
75
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2.13 P130 and P131 (Port 13)
These are 2-bit input/output ports. Besides serving as input/output ports, they are used for D/A converter analog
output.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 2-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 13 (PM13). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports allow D/A converter analog output (ANO0 and ANO1).
Caution When only either one of the D/A converter channels is used with AV
REF1< VDD, the other pins
that are not used as analog outputs must be set as follows:
•Set PM13x bit of the port mode register 13 (PM13) to 1 (input mode) and connect the pin
SS.
to V
•Set PM13x bit of the port mode register 13 (PM13) to 0 (output mode) and the output latch
to 0, to output low level from the pin.
3.2.14 AV
REF0
A/D converter reference voltage input pin.
When A/D converter is not used, connect this pin to VSS.
3.2.15 AV
REF1
D/A converter reference voltage input pin.
When D/A converter is not used, connect this pin to V
DD.
3.2.16 AVDD
Analog power supply pin of A/D converter. Always use the same voltage as that of the VDD pin even when A/D
converter is not used.
3.2.17 AVSS
This is a ground voltage pin of A/D converter and D/A converter. Always use the same voltage as that of the VSS
pin even when A/D converter or D/A converter is not used.
3.2.18 RESET
This is a low-level active system reset input pin.
3.2.19 X1 and X2
Crystal resonator connect pins for main system clock oscillation. For external clock supply, input it to X1 and its
inverted signal to X2.
3.2.20 XT1 and XT2
Crystal resonator connect pins for subsystem clock oscillation.
For external clock supply, input it to XT1 and its inverted signal to XT2.
76
3.2.21 VDD
Positive power supply pin
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.2.22 V
SS
Ground potential pin
PP (
µ
3.2.23 V
PD78P078 only)
High-voltage apply pin for PROM programming mode setting and program write/verify. Connect directly to VSS
in normal operating mode.
3.2.24 IC (Mask ROM version only)
µ
The IC (Internally Connected) pin is provided to set the test mode to check the
PD78078 at delivery. Connect
it directly to the VSS with the shortest possible wire in the normal operating mode.
When a voltage difference is produced between the IC pin and VSS pin because the wiring between those two pins
is too long or an external noise is input to the IC pin, the user’s program may not run normally.
•Connect IC pins to V
SS pins directly.
VSS IC
As short as possible
77
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
3.3 Input/output Circuits and Recommended Connection of Unused Pins
Table 2-1 shows the input/output circuit types of pins and the recommended conditions for unused pins.
Refer to Figure 3-1 for the configuration of the input/output circuit of each type.
Table 3-1. Pin Input/Output Circuit Types (1/2)
Pin NameInput/OutputInput/OutputRecommended Connection of Unused Pins
Circuit Type
P00/INTP0/TI002InputConnect to VSS.
P01/INTP1/TI018-AInput/OutputConnect independently via a resistor
P02/INTP2to VSS.
P03/INTP3
P04/INTP4
P05/INTP5
P06/INTP6
P07/XT116InputConnect to VDD.
P10/ANI0 to P17/ANI711Input/OutputConnect independently via a
P20/SI18-Aresistor to VDD or VSS.
P21/SO15-A
P22/SCK18-A
P23/STB5-A
P24/BUSY8-A
P25/SI0/SB010-A
P26/SO0/SB1
P27/SCK0
P30/TO05-A
P31/TO1
P32/TO2
P33/TI18-A
P34/TI2
P35/PCL5-A
P36/BUZ
P37
P40/AD0 to P47/AD75-EInput/OutputConnect independently via a resistor
to VDD.
78
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
Table 3-1. Pin Input/Output Circuit Types (2/2)
Pin NameInput/OutputInput/OutputRecommended Connection of Unused Pins
Circuit Type
P50/A8 to P57/A155-AInput/output
P60 to P63 (Mask ROM version)13-BInput/outputConnect independently via a resistor
P60 to P63 (µPD78P078)13-Dto VDD.
P64/RD5-AInput/outputConnect independently via a resistor
P65/WRto VDD or VSS.
P66/WAIT
P67/ASTB
P70/SI2/RxD8-A
P71/SO2/TxD5-A
P72/SCK2/ASCK8-A
P80/A0 to P87/A75-A
P90 to P93 (Mask ROM version)13-BInput/outputConnect independently via a resistor
P90 to P93 (µPD78P078)13-Dto VDD.
P94 to P965-AInput/outputConnect independently via a resistor
P100/TI5/TO58-Ato VDD or V SS
P101/TI6/TO6
P102, P1035-A
P120/RTP0 to P127/RTP75-A
P130/ANO0, P131/ANO112-AInput/output
RESET2Input—
XT216—Open
AVREF0—Connect to VSS.
AVREF1Connect to VDD.
AVDD
AVSSConnect to VSS.
IC (Mask ROM version)Connect directly to VSS.
VPP (µPD78P078)
Connect independently via a resistor to VDD or VSS.
.
Connect independently via a resistor to VSS.
79
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
Figure 3-1. List of Pin Input/Output Circuits (1/2)
Type 2
IN
Type 5-A
pullup
enable
data
output
disable
Schmitt-Triggered Input with
Hysteresis Characteristics
V
V
DD
P-ch
N-ch
DD
P-ch
IN/OUT
Type 8-A
pullup
enable
data
output
disable
Type 10-A
pullup
enable
data
open drain
output disable
V
DD
P-ch
N-ch
V
V
DD
P-ch
N-ch
DD
P-ch
V
IN/OUT
DD
P-ch
IN/OUT
input
enable
DD
Type 5-EType 11
V
pullup
pullup
enable
data
V
P-ch
P-ch
DD
enable
output
disable
IN/OUT
output
disable
N-ch
input
enable
data
comparator
P-ch
+
–
N-ch
V
REF
(Threshold voltage)
V
P-ch
N-ch
DD
V
P-ch
DD
IN/OUT
80
CHAPTER 3 PIN FUNCTION (µPD78078 SUBSERIES)
Figure 3-1. List of Pin Input/Output Circuits (2/2)
Type 12-A
pullup
enable
data
output
disable
input
enable
Type 13-B
output disable
data
analog output
voltage
RD
P-ch
N-ch
VDD
P-ch
N-ch
V
DD
Mask
Option
N-ch
VDD
P-ch
P-ch
IN/OUT
V
DD
IN/OUT
Type 13-D
output disable
data
Type 16
RD
medium breakdown
input buffer
feedback
cut-off
P-ch
IN/OUT
N-ch
VDD
P-ch
medium breakdown
input buffer
XT2XT1
81
[MEMO]
82
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.1 Pin Function List
4.1.1 Normal operating mode pins
(1) Port pins (1/3)
Pin Name
P00InputInput onlyInputINTP0/TI00
P01Input/output mode can be specifiedINTP1/TI01
P02bit-wise.INTP2
P03Input/Port 0.If used as an input port, an on-chipINTP3
P04output8-bit input/output port.pull-up resistor can be connectedINTP4
P05by software.INTP5
P06INTP6
P07
P10 to P17Port 1.
P20SI1
P21SO1
P22Port 2.SCK1
P23Input/8-bit input/output port.STB
P24outputInput/output mode can be specified bit-wise.BUSY
P25If used as an input port, an on-chip pull-up resistor can be connected bySI0/SB0/SDA0
P26software.
P27SCK0/SCL
Note 1
Input/Output
InputInput onlyInputXT1
8-bit input/output port.
Input/
output
Input/output mode can be specified bit-wise.InputANI0 to ANI7
If used as input port, an on-chip pull-up resistor can be connected by
software
Note 2
.
FunctionAfter Reset
Input
Input
Alternate Function
SO0/SB1/SDA1
Notes1. When the P07/XT1 pin is used as an input port, set the bit 6 (FRC) of the processor clock control
register (PCC) to 1 (do not use the feedback resistor internal to the subsystem clock oscillator).
2. When pins P10/ANI0 to P17/ANI7 are used as an analog input of the A/D converter, set port 1 in
the input mode. The on-chip pull-up resistor becomes automatically disabled.
83
(1) Port pins (2/3)
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
Pin Name
P30TO0
P31TO1
P32Port 3.TO2
P33Input/8-bit input/output port.TI1
P34outputInput/output mode can be specified bit-wise.TI2
P35If used as an input port, an on-chip pull-up resistor can be connected byPCL
P36software.BUZ
P37—
P40 to P47InputAD0 to AD7
P50 to P57
P61
P62Port 6.—
P63Input/8-bit input/output port.
P64outputInput/output mode can beIf used as an input port, an on-chipInputRD
P65specified bit-wise.pull-up resistor can be connectedWR
P66by software.WAIT
P67ASTB
P70SI2/RxD
P71InputSO2/TxD
P72SCK2/ASCK
P80 to P87InputA0 to A7
Input/Output
Port 4.
8-bit input/output port.
Input/Input/output mode can be specified in 8-bit units.
outputIf used as an input port, an on-chip pull-up resistor can be connected by
software.
Test input flag (KRIF) is set to 1 by falling edge detection.
Port 5.
8-bit input/output port.
Input/
output
Input/
output
Input/
output
LEDs can be driven directly.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 7.
3-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 8.
8-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
FunctionAfter Reset
N-ch open drain input/output port.
On-chip pull-up resistor can be
specified by mask option.
(Mask ROM version only).
LEDs can be driven directly.
Alternate Function
Input
InputA8 to A15
84
(1) Port pins (3/3)
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
Pin Name
P90
P91Port 9.
P927-bit input/output port.
P93Input/output mode can beInput—
P94specified bit-wise.If used as an input port, an on-chip
P95pull-up resistor can be connected
P96by software.
P100TI5/TO5
P101InputTI6/TO6
P102, P103—
P120 to P127
P130 to P131
Input/Output
Input/
output
Input/
output
Input/
output
Input/
output
FunctionAfter Reset
N-ch open-drain input/output port.
On-chip pull-up resistor can be
specified by mask option.
(Mask ROM version only).
LEDs can be driven directly.
Port 10.
4-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 12.
8-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Port 13.
2-bit input/output port.
Input/output mode can be specified bit-wise.
If used as an input port, an on-chip pull-up resistor can be connected
by software.
Alternate Function
InputRTP0 to RTP7
InputANO0 to ANO1
85
(2) Non-port pins (1/2)
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
Pin Name
INTP0P00/TI00
INTP1P01/TI01
INTP2External interrupt request inputs with specifiable valid edges (rising edge,P02
INTP3Inputfalling edge, both rising and falling edges).InputP03
INTP4P04
INTP5P05
INTP6P06
SI0
SI1InputSerial interface serial data inputInputP20
SI2P70/RxD
SO0
SO1OutputSerial interface serial data outputInputP21
SO2P71/TxD
SB0P25/SI0/SDA0
SB1Input/
RESETInputWhen +5 V or +12.5 V is applied to the VPP pin or a low level voltage is applied to the RESET pin,
VPPInputHigh-voltage application for PROM programming mode setting and program write/verify.
A0 to A16InputAddress bus
D0 to D7
CEInputPROM enable input/program pulse input
OEInputRead strobe input to PROM
PGMInputProgram/program inhibit input in PROM programming mode
VDD—Positive power supply
VSS—Ground potential
Input/Output
Input/output
Function
PROM programming mode setting.
the PROM programming mode is set.
Data bus
87
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2 Description of Pin Functions
4.2.1 P00 to P07 (Port 0)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an external interrupt
request input, an external count clock input to the timer, a capture trigger signal input, and crystal connection for
subsystem oscillation.
The following operating modes can be specified bit-wise.
(1) Port mode
P00 and P07 function as input-only ports and P01 to P06 function as input/output ports.
P01 to P06 can be specified for input or output ports bit-wise with a port mode register 0 (PM0). When they are
used as input ports, on-chip pull-up resistors can be connected to them by defining the pull-up resistor option
register L (PUOL).
(2) Control mode
In this mode, these ports function as an external interrupt request input, an external count clock input to
the timer, and crystal connection for subsystem clock oscillation.
(a) INTP0 to INTP6
INTP0 to INTP6 are external interrupt request input pins which can specify valid edges (rising edge,
falling edge, and both rising and falling edges). INTP0 or INTP1 becomes a 16-bit timer/event counter
capture trigger signal input pin with a valid edge input.
(b) TI00
Pin for external count clock input to 16-bit timer/event counter
(c) TI01
Pin for capture trigger signal to capture register (CR00) of 16-bit timer/event counter
(d) XT1
Crystal connect pin for subsystem clock oscillation
4.2.2 P10 to P17 (Port 1)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an A/D converter analog
input.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports.
They can be specified bit-wise as input or output ports with a port mode register 1 (PM1). If used as input
ports, on-chip pull-up resistors can be connected to these ports by defining the pull-up resistor option register
L (PUOL).
(2) Control mode
These ports function as A/D converter analog input pins (ANI0 to ANI7). The on-chip pull-up resistor is
automatically disabled when the pins specified for analog input.
88
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2.3 P20 to P27 (Port 2)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as data input/output to/
from the serial interface, clock input/output, automatic transmit/receive busy input, and strobe output functions.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 2 (PM2). When they are used as input ports, on-chp pull-up resistors can be connected
to them by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as serial interface data input/output, clock input/output, automatic transmit/receive busy
input, and strobe output functions.
(a) SI0, SI1, SO0, SO1, SB0, SB1, SDA0, SDA1
Serial interface serial data input/output pins
(b) SCK0, SCK1, SCL
Serial interface serial clock input/output pins
(c) BUSY
Serial interface automatic transmit/receive busy input pins
(d) STB
Serial interface automatic transmit/receive strobe output pins
Caution When this port is used as a serial interface, the I/O and output latches must be set
according to the function the user requires. For the setting, refer to Figure 18-4. Serial
Operation Mode Register 0 Format and Figure 19-3. Serial Operation Mode Register 1
Format.
89
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2.4 P30 to P37 (Port 3)
These are 8-bit input/output ports. Beside serving as input/output ports, they function as timer input/output, clock
output and buzzer output.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 3 (PM3). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as timer input/output, clock output, and buzzer output.
(a) TI1 and TI2
Pin for external count clock input to the 8-bit timer/event counter.
(b) TO0 to TO2
Timer output pins.
(c) PCL
Clock output pin.
(d) BUZ
Buzzer output pin.
4.2.5 P40 to P47 (Port 4)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an address/data bus.
The test input flag (KRIF) can be set to 1 by detecting a falling edge.
The following operating mode can be specified in 8-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 8-bit units for input or output ports
by using the memory expansion mode register (MM). When they are used as input ports, on-chip pull-up
resistors can be connected by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as low-order address/data bus pins (AD0 to AD7) in external memory expansion mode.
When pins are used as an address/data bus, the on-chip pull-up resistor is automatically disabled.
90
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2.6 P50 to P57 (Port 5)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an address bus.
Port 5 can drive LEDs directly.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input/output ports with
port mode register 5 (PM5). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register L (PUOL).
(2) Control mode
These ports function as high-order address bus pins (A8 to A15) in external memory expansion mode. When
pins are used as an address bus, the on-chip pull-up resistor is automatically disabled.
4.2.7 P60 to P67 (Port 6)
These are 8-bit input/output ports. Besides serving as input/output ports, they are used for control in external
memory expansion mode. P60 to P63 can drive LEDs directly.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 6 (PM6).
P60 to P63 are N-ch open-drain outputs. Mask ROM version can contain pull-up resistors with the mask
option.
When P64 to P67 are used as input ports, on-chip pull-up resistors can be connected by defining the pullup resistor option register L (PUOL).
(2) Control mode
These ports function as control signal output pins (RD, WR, WAIT, ASTB) in external memory expansion
mode. When a pin is used as a control signal output, the on-chip pull-up resistor is automatically disabled.
Caution When external wait is not used in external memory expansion mode, P66 can be used as
an input/output port.
91
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2.8 P70 to P72 (Port 7)
This is a 3-bit input/output port. In addition to its use as an input/output port, it also has serial interface data input/
output and clock input/output functions.
The following operating modes can be specified bit-wise.
(1) Port mode
Port 7 functions as a 3-bit input/output port. Bit-wise specification as an input port or output port is possible
by means of port mode register 7 (PM7). When used as input ports, on-chip pull-up resistors can be
connected by defining the pull-up resistor option register L (PUOL).
(2) Control mode
Port 7 functions as serial interface data input/output and clock input/output.
(a) SI2, SO2
Serial interface serial data input/output pins
(b) SCK2
Serial interface serial clock input/output pin.
(c) RxD, TxD
Asynchronous serial interface serial data input/output pins.
(d) ASCK
Asynchronous serial interface serial clock input/output pin.
Caution When this port is used as a serial interface, the I/O and output latches must be set according
to the function the user requires.
For the setting, refer to the operation mode setting list in Table 20-2. Serial Interface
Channel 2.
4.2.9 P80 to P87 (Port 8)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as an address bus.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 8 (PM8). When they are used as input ports,on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports function as lower address bus pins (A0 to A7) in external memory expansion mode. When a
pin is used as an address bus, the on-chip pull-up resistor is automatically not used.
92
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2.10 P90 to P96 (Port 9)
These are 7-bit input/output ports.
P90 to P93 can drive LEDs directly.
They can be specified bit-wise as input or output ports with port mode register 9 (PM9).
P90 to P93 are N-ch open-drain pins. Mask ROM version product can contain pull-up resistors with the mask option.
When P94 to P96 are used as input ports, on-chip pull-up resistors can be connected by defining the pull-up resistor
option register H (PUOH).
4.2.11 P100 to P103 (Port 10)
These are 4-bit input/output ports. Besides serving as input/output ports, they function as a timer input/output.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 4-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 10 (PM10). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports function as timer input/output.
(a) TI5 and TI6
Pins for external clock input to 8-bit timer/event counter.
(b) TO5 to TO6
Pins for timer output.
4.2.12 P120 to P127 (Port 12)
These are 8-bit input/output ports. Besides serving as input/output ports, they function as a real-time output port.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 12 (PM12). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports function as real-time output ports (RTP0 to RTP7) outputting data in synchronization with a
trigger.
93
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2.13 P130 and P131 (Port 13)
These are 2-bit input/output ports. Besides serving as input/output ports, they are used for D/A converter analog
output.
The following operating modes can be specified bit-wise.
(1) Port mode
These ports function as 2-bit input/output ports. They can be specified bit-wise as input or output ports with
port mode register 13 (PM13). When they are used as input ports, on-chip pull-up resistors can be connected
by defining the pull-up resistor option register H (PUOH).
(2) Control mode
These ports allow D/A converter analog output (ANO0 and ANO1).
Caution When only either one of the D/A converter channels is used with AV
REF1< VDD, the other pins
that are not used as analog outputs must be set as follows:
• Set PM13x bit of the port mode register 13 (PM13) to 1 (input mode) and connect the pin
SS.
to V
• Set PM13x bit of the port mode register 13 (PM13) to 0 (output mode) and the output latch
to 0, to output low level from the pin.
4.2.14 AV
REF0
A/D converter reference voltage input pin.
When A/D converter is not used, connect this pin to VSS.
4.2.15 AV
REF1
D/A converter reference voltage input pin.
When D/A converter is not used, connect this pin to V
DD.
4.2.16 AVDD
Analog power supply pin of A/D converter. Always use the same voltage as that of the VDD pin even when A/D
converter is not used.
4.2.17 AVSS
This is a ground voltage pin of A/D converter and D/A converter. Always use the same voltage as that of the VSS
pin even when A/D converter or D/A converter is not used.
4.2.18 RESET
This is a low-level active system reset input pin.
4.2.19 X1 and X2
Crystal resonator connect pins for main system clock oscillation. For external clock supply, input it to X1 and its
inverted signal to X2.
4.2.20 XT1 and XT2
Crystal resonator connect pins for subsystem clock oscillation.
For external clock supply, input it to XT1 and its inverted signal to XT2.
94
4.2.21 VDD
Positive power supply pin
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.2.22 V
SS
Ground potential pin
PP (
µ
4.2.23 V
PD78P078Y only)
High-voltage apply pin for PROM programming mode setting and program write/verify. Connect directly to VSS
in normal operating mode.
4.2.24 IC (Mask ROM version only)
µ
The IC (Internally Connected) pin is provided to set the test mode to check the
PD78078Y at delivery. Connect
it directly to the VSS with the shortest possible wire in the normal operating mode.
When a voltage difference is produced between the IC pin and VSS pin because the wiring between those two pins
is too long or an external noise is input to the IC pin, the user’s program may not run normally.
•Connect IC pins to V
SS pins directly.
VSS IC
As short as possible
95
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
4.3 Input/output Circuits and Recommended Connection of Unused Pins
Table 4-1 shows the input/output circuit types of pins and the recommended conditions for unused pins.
Refer to Figure 4-1 for the configuration of the input/output circuit of each type.
Table 4-1. Pin Input/Output Circuit Types (1/2)
Pin NameInput/OutputInput/OutputRecommended Connection of Unused Pins
Circuit Type
P00/INTP0/TI002InputConnect to VSS.
P01/INTP1/TI018-AInput/OutputConnect independently via a resistor
P02/INTP2to VSS.
P03/INTP3
P04/INTP4
P05/INTP5
P06/INTP6
P07/XT116InputConnect to VDD.
P10/ANI0 to P17/ANI711Input/OutputConnect independently via a
P20/SI18-Aresistor to VDD or VSS.
P21/SO15-A
P22/SCK18-A
P23/STB5-A
P24/BUSY8-A
P25/SI0/SB0/SDA010-A
P26/SO0/SB1/SDA1
P27/SCK0/SCL
P30/TO05-A
P31/TO1
P32/TO2
P33/TI18-A
P34/TI2
P35/PCL5-A
P36/BUZ
P37
P40/AD0 to P47/AD75-EInput/OutputConnect independently via a resistor
to VDD.
96
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
Table 4-1. Pin Input/Output Circuit Types (2/2)
Pin NameInput/OutputInput/OutputRecommended Connection of Unused Pins
Circuit Type
P50/A8 to P57/A155-AInput/output
P60 to P63 (Mask ROM version)13-BInput/outputConnect independently via a resistor
P60 to P63 (µPD78P078Y)13-Dto VDD.
P64/RD5-AInput/outputConnect independently via a resistor
P65/WRto VDD or VSS.
P66/WAIT
P67/ASTB
P70/SI2/RxD8-A
P71/SO2/TxD5-A
P72/SCK2/ASCK8-A
P80/A0 to P87/A75-A
P90 to P93 (Mask ROM version)13-BInput/outputConnect independently via a resistor
P90 to P93 (µPD78P078Y)13-Dto VDD.
P94 to P965-AInput/outputConnect independently via a resistor
P100/TI5/TO58-Ato VDD or V SS
P101/TI6/TO6
P102, P1035-A
P120/RTP0 to P127/RTP75-A
P130/ANO0, P131/ANO112-AInput/output
RESET2Input—
XT216—Open
AVREF0—Connect to VSS.
AVREF1Connect to VDD.
AVDD
AVSSConnect to VSS.
IC (Mask ROM version)Connect directly to VSS.
VPP (µPD78P078Y)
Connect independently via a resistor to VDD or VSS.
.
Connect independently via a resistor to VSS.
97
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
Figure 4-1. List of Pin Input/Output Circuits (1/2)
Type 2
IN
Type 5-A
pullup
enable
data
output
disable
Schmitt-Triggered Input with
Hysteresis Characteristics
V
V
DD
P-ch
N-ch
DD
P-ch
IN/OUT
Type 8-A
pullup
enable
data
output
disable
Type 10-A
pullup
enable
data
open drain
output disable
V
DD
P-ch
N-ch
V
V
DD
P-ch
N-ch
DD
P-ch
V
IN/OUT
DD
P-ch
IN/OUT
input
enable
DD
Type 5-EType 11
V
pullup
pullup
enable
data
V
P-ch
P-ch
DD
enable
output
disable
IN/OUT
output
disable
N-ch
data
comparator
input
enable
P-ch
+
–
N-ch
V
REF
(Threshold voltage)
V
P-ch
N-ch
DD
V
P-ch
DD
IN/OUT
98
CHAPTER 4 PIN FUNCTION (µPD78078Y SUBSERIES)
Figure 4-1. List of Pin Input/Output Circuits (2/2)
Type 12-A
pullup
enable
data
output
disable
input
enable
Type 13-B
output disable
data
analog output
voltage
RD
P-ch
N-ch
VDD
P-ch
N-ch
V
DD
Mask
Option
N-ch
VDD
P-ch
P-ch
IN/OUT
V
DD
IN/OUT
Type 13-D
output disable
data
Type 16
RD
medium breakdown
input buffer
feedback
cut-off
P-ch
IN/OUT
N-ch
VDD
P-ch
medium breakdown
input buffer
XT2XT1
99
[MEMO]
100
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.