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.
3
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:
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
5
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
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
6
Major Revisions in This Edition
PageDescription
ThroughoutAddition 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. 233Addition of Figure 9-10. Square-Wave Output Operation Timing
p. 238Addition of Figure 9-13. Square-Wave Output Operation Timing
p. 296Addition of Note to Figure 16-4. Serial Operating Mode Register 0 Format
p. 430, 435Addition 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. 439Addition of precaution to 19.1 (3) 3-wire serial I/O mode (MSB-/LSB-first switchable)
p. 444Change of Figure 19-3. Serial Operating Mode Register 2 Format
p. 446Change of Table 19-2. Serial Interface Channel 2 Operating Mode Settings
p. 465Correction of Figure 19-10. Receive Error Timing
p. 474Addition of 19.4.4 Limitations when UART mode is used
p. 577, 578Addition of APPENDIX A DIFFERENCES BETWEEN µPD78054, 78054Y SUBSERIES AND µPD78058F,
78058FY SUBSERIES
p. 579 toAPPENDIX B DEVELOPMENT TOOL
592Entire revision: Support for in-circuit emulator IE-78K0-NS
p. 593, 594APPENDIX C EMBEDDED SOFTWARE
Entire revision: Deletion of fuzzy inference development support system
The mark shows major revised points.
7
[MEMO]
8
PREFACE
ReadersThis 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.
CautionOf 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
PurposeThis manual is intended for users to understand the functions described in the
Organization below.
OrganizationThe
and the instruction edition (common to the 78K/0 Series).
Pin functionsCPU functions
Internal block functionsInstruction set
InterruptExplanation of each instruction
Other on-chip peripheral functions
µ
PD78054, 78054Y Subseries manual is separated into two parts: this manual
µ
PD78054, 78054Y78K/0 Series
SubseriesUser’s Manual
User’s ManualInstruction
(This manual)
9
How to Read This ManualBefore 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(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/
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.
0, and in CC78K/0, already defined in the header file named sfrbit.h.
PD78052, 78053, and 78054 and the
CautionThe 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.
10
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.
Active low: ××× (top bar over pin or signal name)
Note: Footnote
Caution: Important information
Remark: Supplement
Numerical notation: Binary ... ×××× or ××××B
Decimal ... ××××
Hexadecimal ... ××××H
µ
PD78054Y
12
Related DocumentsThe 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
µ
PD78052, 78053, 78054, 78055, 78056, 78058 Data SheetU12327JU12327E
µ
PD78052(A), 78053(A), 78054(A) Data SheetU12171JU12171E
µ
PD78P054, 78P058 Data SheetU10417JU10417E
µ
PD78054, 78054Y Subseries User’s ManualU11747JThis manual
78K/0 Series User’s Manual, InstructionU12326JU12326E
78K/0 Series Instruction TableU10903J—
78K/0 Series Instruction SetU10904J—
µ
PD78054 Subseries Special Function Register TableU10102J—
78K/0 Series Application NoteBasics (III)U10182JU10182E
Floating-point operation programIEA-718IEA-1289
Document No.
JapaneseEnglish
Related documents for µPD78054Y Subseries
Document name
µ
PD78052Y, 78053Y, 78054Y, 78055Y, 78056Y, 78058Y Data SheetU10906JU10906E
78K/0 Series Instruction TableU10903J—
78K/0 Series Instruction SetU10904J—
µ
PD78054Y Subseries Special Function Register TableU10087J—
78K/0 Series Application NoteBasics (III)U10182JU10182E
Document No.
JapaneseEnglish
Caution The above documents are subject to change without prior notice. Be sure to use the latest version
document when starting design.
13
Development Tool Documents (User’s Manuals)
Document name
RA78K0 Assembler PackageOperationU11802JU11802E
Assembly LanguageU11801JU11801E
Structured AssemblyU11789JU11789E
RA78K Series Structured Assembler PreprocessorU12323JEEU-1402
CC78K0 C CompilerOperationU11517JU11517E
LanguageU11518JU11518E
CC78K0 C Compiler Application NoteProgramming know-howU13034JEEA-1208
CC78K Series Library Source FileU12322J—
PG-1500 PROM ProgrammerU11940JU11940E
PG-1500 Controller PC-9800 Series (MS-DOS™) BaseEEU-704EEU-1291
PG-1500 Controller IBM PC Series (PC DOS™) BaseEEU-5008U10540E
IE-78K0-NS
IE-78001-R-A
IE-780308-NS-EM1
IE-780308-R-EMU11362JU11362E
EP-78230EEU-985EEU-1515
EP-78054GK-REEU-932EEU-1468
SM78K0 System Simulator Windows™ BaseReferenceU10181JU10181E
SM78K Series System SimulatorExternal component userU10092JU10092E
open interface specifications
ID78K0-NS Integrated DebuggerReferenceU12900J
To be preparedTo be prepared
To be preparedTo be prepared
To be preparedTo be prepared
Document No.
JapaneseEnglish
To be prepared
ID78K0 Integrated Debugger EWS BaseReferenceU11151J—
ID78K0 Integrated Debugger PC BaseReferenceU11539JU11539E
ID78K0 Integrated Debugger Windows BaseGuideU11649JU11649E
Caution The above documents are subject to change without prior notice. Be sure to use the latest version
document when starting design.
14
Documents for Embedded Software(User’s Manual)
Document name
78K/0 Series Real-Time OSBasicsU11537JU11537E
InstallationU11536JU11536E
OS for 78K/0 Series MX78K0BasicsU12257JU12257E
Document No.
JapaneseEnglish
Other Documents
Document name
IC PACKAGE MANUALC10943X
Semiconductor Device Mounting Technology ManualC10535JC10535E
Quality Grade on NEC Semiconductor DevicesC11531JC11531E
NEC Semiconductor Device Reliability/Quality Control SystemC10983JC10983E
Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD)C11892JC11892E
Guide to Quality Assurance for Semiconductor Devices—MEI-1202
Microcontroller Related Product Guide—Third Party ManufacturersU11416J—
Document No.
JapaneseEnglish
Caution The above documents are subject to change without prior notice. Be sure to use the latest version
document when starting design.
15
[MEMO]
16
TABLE OF CONTENTS
CHAPTER 1 GENERAL (µPD78054 Subseries) ............................................................................37
17-20.Wait Signal ....................................................................................................................................371
Notes1. The capacities of internal PROM and internal high-speed RAM can be changed by means of the
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: In main system clock 5.0 MHz operation)
to ultra-low speed (122 µs: In subsystem clock 32.768 kHz operation)
Instruction set suited to system control
• 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: 5 channels
• 16-bit timer/event counter : 1 channel
• 8-bit timer/event counter : 2 channels
• Watch timer : 1 channel
• Watchdog timer : 1 channel
22 vectored interrupt sources
2 test inputs
Two types of on-chip clock oscillators (main system clock and subsystem clock)
Supply voltage: VDD = 2.0 to 6.0 V
Cautions 1. The µPD78P054GC is available in two packages. For the package that can be supplied,
consult NEC.
µ
2. The
PD78054KK-T and 78P058KK-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.
Remark ××× indicates ROM code suffix.
Please refer to "Quality Grades on NEC Semiconductor Devices" (Document number C11531E) published by NEC
Corporation to know the specification of quality grade on the devices and its recommended applications.
Cautions 1. Be sure to connect IC (Internally Connected) pin to V
2. Connect AVDD pin to VDD.
3. Connect AV
SS pin to VSS.
Remark Pin connection in parentheses is intended for the µPD78P054, 78P058.
40
SS directly.
CHAPTER 1 OUTLINE (µPD78054 Subseries)
Pin Identifications
A8 to A15:Address BusP130, P131:Port13
AD0 to AD7:Address/Data BusPCL:Programmable Clock
ANI0 to ANI7:Analog InputRD:Read Strobe
ANO0, ANO1:Analog OutputRESET:Reset
ASCK:Asynchronous Serial ClockRTP0 to RTP7 :Real-Time Output Port
ASTB:Address StrobeRxD:Receive Data
DD:Analog Power SupplySB0, SB1:Serial Bus
AV
AVREF0, AVREF1:Analog Reference VoltageSCK0 to SCK2 :Serial Clock
AVSS:Analog GroundS10 to S12:Serial Input
BUSY:BusySO0 to SO2:Serial Output
BUZ:Buzzer ClockSTB:Strobe
IC:Internally ConnectedTI00, TI01:Timer Input
INTP0 to INTP6 :Interrupt from PeripheralsTI1, TI2:Timer Input
P00 to P07:Port0TO0 to TO2:Timer Output
P10 to P17:Port1TxD:Transmit Data
P20 to P27:Port2V
P30 to P37:Port3VPP:Programming Power Supply
P40 to P47:Port4VSS:Ground
P50 to P57:Port5WAIT:Wait
P60 to P67:Port6WR:Write Strobe
P70 to P72:Port7X1, X2:Crystal (Main System Clock)
P120 to P127:Port12XT1, XT2:Crystal (Subsystem Clock)
Cautions 1. (L): Connect individually to VSS via a pull-down resistor.
2. VSS: Connect to the ground.
3. RESET : Set to the low level.
4. Open: Leave this pin unconnected.
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
42
CHAPTER 1 OUTLINE (µPD78054 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
TM
driving
FIP
µPD780208
µPD780228
µPD78044H
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
µPD78044F80-pinBasic subseries for driving FIPs, 34 display outputs
LCD driving
µPD780308
µPD78064B
µPD78064
TM
IEBus
µPD78098B
µPD780308Y
µPD78064Y
supported
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
43
CHAPTER 1 OUTLINE (µPD78054 Subseries)
The following shows the major differences between subseries products.
FunctionROMTimer8-bit 10-bit 8-bit
Subseries Name
ControlµPD78075B32 K to 40 K 4 ch 1 ch 1 ch 1 ch 8 ch–2 ch 3 ch (UART: 1 ch) 881.8 V√
µ
PD7807848 K to 60 K
µ
PD78070A–612.7 V
µ
PD78005824 K to 60 K 2 ch
µ
PD78058F48 K to 60 K3 ch (UART: 1 ch) 692.7 V
µ
PD7805416 K to 60 K2.0 V
µ
PD7800348 K to 32 K–8 ch–
µ
PD7800248 ch–
µ
PD78014H2 ch53
µ
PD78018F8 K to 60 K
µ
PD780148 K to 32 K2.7 V
µ
PD7800018 K––1 ch39–
µ
PD780028 K to 16 K1 ch–53√
µ
PD78083–8 ch
InverterµPD78098832 K to 60 K 3 ch
control
FIP
driving
LCD
drivingUART: 1 ch)
IEBusµPD78098B40 K to 60 K 2 ch 1 ch 1 ch 1 ch 8 ch–2 ch 3 ch (UART: 1 ch) 692.7 V√
supported
MeterµPD78097324 K to 32 K 3 ch 1 ch 1 ch 1 ch 5 ch––2 ch (UART: 1 ch) 564.5 V–
control
µ
PD7809648 K to 32 K
µ
PD7809248 ch
µ
PD78020832 K to 60 K 2 ch 1 ch 1 ch 1 ch 8 ch––2 ch742.7 V–
µ
PD78022848 K to 60 K 3 ch––1 ch724.5 V
µ
PD78044H32 K to 48 K 2 ch 1 ch 1 ch682.7 V
µ
PD78044F16 K to 40 K2 ch
µ
PD78030848 K to 60 K 2 ch 1 ch 1 ch 1 ch 8 ch––
µ
PD78064B32 K2 ch (UART: 1 ch)
µ
PD7806416 K to 32 K
µ
PD7809832 K to 60 K
Capacity8-bit 16-bit
Note 1
Note 2
Watch
WDT A/DA/D D/A
–1 ch–8 ch
–
Serial InterfaceI/O
3 ch (Time division
UART: 1 ch)
3 ch (UART: 1 ch, Time
division 3-wire: 1 ch)
1 ch (UART: 1 ch)
–
3 ch (UART: 2 ch) 474.0 V√
2 ch (UART: 2 ch)2.7 V
3 ch (Time division
VDD
Externa
MIN. Value Expansion
681.8 V
511.8 V
331.8 V–
572.0 V–
l
Notes1. 16-bit timer: 2 channels
10-bit timer: 1 channel
2. 10-bit timer: 1 channel
44
1.7 Block Diagram
CHAPTER 1 OUTLINE (µPD78054 Subseries)
TO0/P30
TI00/INTP0/P00
TI01/INTP1/P01
TO1/P31
TI1/P33
TO2/P32
TI2/P34
SI0/SB0/P25
SO0/SB1/P26
SCK0/P27
SI1/P20
SO1/P21
SCK1/P22
STB/P23
BUSY/P24
16-bit TIMER/
EVENT COUNTER
8-bit TIMER/
EVENT COUNTER 1
8-bit TIMER/
EVENT COUNTER 2
WATCHDOG TIMER
WATCH TIMER
SERIAL
INTERFACE 0
SERIAL
INTERFACE 1
78K/0
CPU CORE
ROM
PORT 0
PORT 1
PORT 2
PORT 3
PORT 4
PORT 5
PORT 6
PORT 7
P00
P01-P06
P07
P10-P17
P20-P27
P30-P37
P40-P47
P50-P57
P60-P67
P70-P72
SI2/RxD/P70
SO2/TxD/P71
SCK2/ASCK/P72
ANI0/P10-
ANI7/P17
AV
DD
AV
SS
AV
REF0
ANO0/P130,
ANO1/P131
AV
SS
AV
REF1
INTP0/P00-
INTP6/P06
BUZ/P36
PCL/P35
SERIAL
INTERFACE 2
A/D CONVERTER
D/A CONVERTER
INTERRUPT
CONTROL
BUZZER OUTPUT
CLOCK OUTPUT
CONTROL
RAM
V
DD
PORT 12
PORT 13
REAL-TIME
OUTPUT PORT
P120-P127
P130, P131
RTP0/P120RTP7/P127
AD0/P40AD7/P47
A8/P50-
EXTERNAL
ACCESS
A15/P57
RD/P64
WR/P65
WAIT/P66
ASTB/P67
RESET
SYSTEM
CONTROL
V
SS
IC
(V
PP
)
X1
X2
XT1/P07
XT2
Remarks 1. The internal ROM and RAM capacities depend on the product.
2. Pin connection in parentheses is intended for the µPD78P054, 78P058.
Notes1. The µPD78P054 is the PROM version for the µPD78052, 78053, 78054.
2. The µPD78P058 is the PROM version for the µPD78055, 78056, 78058.
3. The µPD78P054 is under development.
47
CHAPTER 1 OUTLINE (µPD78054 Subseries)
1.9 Differences between Standard Quality Grade Products and (A) Products
Table 1-1 shows the differences between the standard quality grade products (µPD78052, 78053, 78054) and (A)
products (µPD78052(A), 78053(A), 78054(A)).
Table 1-1. Differences between Standard Quality Grade Products and (A) Products
Part Number
Item
Quality gradeStandardSpecial
Package• 80-pin plastic QFP
Recommended
soldering conditions
Standard Quality Grade Products(A) Products
Note 3
(14 × 14 mm, Resin thickness : 1.4 mm)(14 × 14 mm, Resin thickness : 2.7 mm)
• 80-pin plastic TQFP (Fine pitch) (12 × 12 mm)
Refer to separate Data Sheets
80-pin plastic QFP
1.10 Mask Options
The mask ROM versions (µPD78052, 78053, 78054, 78055, 78056, 78058) provide pull-up resistor mask options
which allow users to specify whether to connect a pull-up resistor 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
Table 1-2. Mask Options of Mask ROM Versions
Pin namesMask options
P60 to P63Pull-up resistor connection can be specified in 1-bit units.
Notes1. The capacities of internal PROM and internal high-speed RAM can be changed by means of the
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: In main system clock 5.0 MHz operation)
to ultra-low speed (122 µs: In subsystem clock 32.768 kHz operation)
Instruction set suited to system control
• 3-wire serial I/O mode (Automatic transmit/receive function): 1 channel
• 3-wire serial I/O/UART mode: 1 channel
Timer: Five channels
• 16-bit timer/event counter : 1 channel
• 8-bit timer/event counter : 2 channels
• Watch timer : 1 channel
• Watchdog timer : 1 channel
22 vectored interrupt sources
2 test inputs
Two types of on-chip clock oscillators (main system clock and subsystem clock)
Supply voltage: VDD = 2.0 to 6.0 V
49
CHAPTER 2 OUTLINE (µPD78054Y Subseries)
2.2 Applications
Cellular phones, pagers, printers, AV equipment, air conditioners, cameras, PPCs, fuzzy home appliances, vending
machines, etc.
2.3 Ordering Information
Part numberPackageInternal ROM
µ
PD78052YGC-×××-8BT80-pin plastic QFP (14 ×14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78053YGC-×××-8BT80-pin plastic QFP (14 ×14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78054YGC-×××-8BT80-pin plastic QFP (14 ×14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78055YGC-×××-8BT80-pin plastic QFP (14 ×14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78056YGC-×××-8BT80-pin plastic QFP (14 ×14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78058YGC-×××-8BT80-pin plastic QFP (14 ×14 mm, Resin thickness: 1.4 mm)Mask ROM
Remark Pin connection in parentheses is intended for the
µ
PD78P058Y.
51
CHAPTER 2 OUTLINE (µPD78054Y Subseries)
Pin Identifications
A8 to A15:Address BusPCL:Programmable Clock
AD0 to AD7:Address/Data BusRESET:Reset
ANI0 to ANI7:Analog InputRD:Read Strobe
ANO0 to ANO7 :Analog OutputRTP0 to RTP7 :Real-Time Output Port
ASCK:Asynchronous Serial ClockRxD:Receive Data
ASTB:Address StrobeSB0, SB1:Serial Bus
DD:Analog Power SupplySCK0 to SCK1 :Serial Clock
AV
AVREF0, AVREF1:Analog Reference VoltageSCL:Serial Clock
AVSS:Analog GroundSDA0, SDA1:Serial Data
BUSY:BusySI0, SI1:Serial Input
BUZ:Buzzer ClockSO0, SO1:Serial Output
IC:Internally ConnectedSTB:Strobe
INTP0 to INTP6 :Interrupt from PeripheralsTI1, TI2:Timer Input
P00 to P07:Port0TI00 to TI01:Timer Input
P10 to P17:Port1TO0 to TO2:Timer Output
P20 to P27:Port2TxD:Transmit Data
P30 to P37:Port3V
P40 to P47:Port4VPP:Programming Power Supply
P50 to P57:Port5V
P60 to P67:Port6WAIT:Wait
P70 to P72:Port7WR:Write Strobe
P120 to P127:Port12X1, X2:Crystal (Main System Clock)
P130, P131:Port13XT1, XT2:Crystal (Subsystem Clock)
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
53
CHAPTER 2 OUTLINE (µPD78054Y 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)
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
54
CHAPTER 2 OUTLINE (µPD78054Y Subseries)
Major differences among Y subseries are tabulated below.
FunctionROM
SubseriesCapacityMIN.
Control
LCD
drive3-wire/time division UART: 1 ch
µ
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 60K
µ
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
µ
PD78002Y8K to 16K3-wire/2-wire/SBI/I2C: 1 ch
µ
PD780308Y 48K to 60K3-wire/2-wire/I2C: 1 ch572.0 V
µ
PD78064Y16K to 32K3-wire/2-wire/I2C: 1 ch
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
The mask ROM versions (µPD78052Y, 78053Y, 78054Y, 78055Y, 78056Y, 78058Y) provide pull-up resistor mask
options which allow users to specify whether to connect a pull-up resistor 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
PD78054Y subseries are shown in Table 2-1.
Table 2-1. Mask Options of Mask ROM Versions
Pin namesMask options
P60 to P63Pull-up resistor connection can be specified in 1-bit units.
58
CHAPTER 3 PIN FUNCTION (µPD78054 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
P02in 1-bit units.INTP2
P03Input/Port 0.When used as an input port, anINTP3
P04output8-bit input/output port.on-chip pull-up resistor can be usedINTP4
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 in 1-bit units.BUSY
P25When used as an input port, an on-chip pull-up resistor can be used bySI0/SB0
P26software.SO0/SB1
P27SCK0
Note1
Input/Output
InputInput onlyInputXT1
Input/
output
8-bit input/output port.
Input/output mode can be specified in 1-bit units.InputANI0 to ANI7
When used as input port, an on-chip pull-up resistor can be used by
software
Note2
.
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 to input
mode. The on-chip pull-up resistor will automatically be disabled.
59
(1) Port pins (2/3)
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
Pin Name
P30TO0
P31TO1
P32Port 3.TO2
P33Input/8-bit input/output port.TI1
P34outputInput/output mode can be specified in 1-bit units.TI2
P35When used as an input port, an on-chip pull-up resistor can be used byPCL
P36software.BUZ
P37—
P40 to P47InputAD0 to AD7
P50 to P57InputA8 to A15
P60—
P61
P62Port 6.
P63Input/8-bit input/output port.
P64outputInput/output mode can beWhen used as an input port, anInputRD
P65specified in 1-bit units.on-chip pull-up resistor can be usedWR
P66by software.WAIT
P67ASTB
P70SI2/RxD
P71SO2/TxD
P72SCK2/ASCK
Input/Output
Port 4.
8-bit input/output port.
Input/Input/output mode can be specified in 8-bit units.
outputWhen used as an input port, an on-chip pull-up resistor can be used by
software.
Test input flag (KRIF) is set to 1 by falling edge detection.
Port 5.
8-bit input/output port.
Input/LED can be driven directly.
outputInput/output mode can be specified in 1-bit units.
When used as an input port, an on-chip pull-up resistor can be used by
software.
Port 7.
Input/
output
3-bit input/output port.
Input/output mode can be specified in 1-bit units.Input
When used as an input port, an on-chip pull-up resistor can be used 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
60
(1) Port pins (3/3)
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
Pin Name
P120 to P127
P130 to P131
Input/Output
Input/Port 12.
output8-bit input/output port.
Input/output mode can be specified in 1-bit units.
When used as an input port, an on-chip pull-up resistor can be used by
software.
Input/Port 13.
output2-bit input/output port.
Input/output mode can be specified in 1-bit units.
When used as an input port, an on-chip pull-up resistor can be used by
software.
FunctionAfter Reset
InputRTP0 to RTP7
Input
Alternate Function
ANO0 to ANO1
61
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
(2) Pins other than port pins (1/2)
Pin Name
INTP0P00/TI00
INTP1P01/TI01
INTP2External interrupt request inputs with specifiable valid edges (risingP02
INTP3Inputedge, falling 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
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
63
CHAPTER 3 PIN FUNCTION (µPD78054 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 in 1-bit units.
(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 in 1-bit units with a port mode register 0 (PM0). When
they are used as input ports, on-chip pull-up resistors can be used 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
64
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports.
They can be specified in 1-bit units as input or output ports with a port mode register 1 (PM1). If used as input
ports, on-chip pull-up resistors can be used 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.
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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used
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
65
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
(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 16-4 “Serial
Operation Mode Register 0 Format” and Figure 18-3 “Serial Operation Mode Register
1 Format.”
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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used
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.
66
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
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 used 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.
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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units as input/output ports with
port mode register 5 (PM5). When they are used as input ports, on-chip pull-up resistors can be used 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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used by defining the pull-up 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.
67
CHAPTER 3 PIN FUNCTION (µPD78054 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 in 1-bit units.
(1) Port mode
Port 7 functions as a 3-bit input/output port. 1-bit-units 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 used
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, see the operation mode setting list in Table 19-2 “Serial Interface Channel
2”.
68
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
3.2.9 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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used
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.
3.2.10 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 in 1-bit units.
(1) Port mode
These ports function as 2-bit input/output ports. They can be specified in 1-bit units 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 used
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
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.11 AV
REF0
A/D converter reference voltage input pin.
When A/D converter is not used, connect this pin to VSS.
3.2.12 AV
REF1
D/A converter reference voltage input pin.
When D/A converter is not used, connect this pin to V
REF1< VDD, the other pins
DD.
69
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
3.2.13 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.14 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 neither A/D nor D/A converter is used.
3.2.15 RESET
This is a low-level active system reset input pin.
3.2.16 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.17 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.
3.2.18 V
DD
Positive power supply pin
3.2.19 VSS
Ground potential pin
3.2.20 VPP (PROM versions only)
High-voltage apply pin for PROM programming mode setting and program write/verify. Directly connect to V
in the normal operating mode.
3.2.21 IC (Mask ROM version only)
µ
The IC (Internally Connected) pin is provided to set the test mode to check the
PD78054 Subseries before
shipment. Directly connect this pin to the VSS with the shortest possible wire in the normal operating mode.
When a voltage difference is produced between the IC pin and V
SS 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.
Directly connect IC pins to VSS pins.
VSSIC
SS
70
As short as possible
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
3.3 Input/output Circuits and Recommended Connection of Unused Pins
Table 3-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/OutputRecommended Connection of Unused Pins
P00/INTP0/TI002InputConnect to VSS.
P01/INTP1/TI01
P02/INTP2
P03/INTP3
P04/INTP4
P05/INTP5
P06/INTP6
P07/XT116InputConnect to VDD.
P10/ANI0 to P17/ANI711
P20/SI18-A
P21/SO15-A
P22/SCK18-A
P23/STB5-A
P24/BUSY8-A
P25/SI0/SB0
P26/SO0/SB110-AIndividually connect to VDD or VSS via a
P27/SCK0resistor.
P30/TO0
P31/TO15-A
P32/TO2
P33/TI1
P34/TI2
P35/PCL
P36/BUZ5-A
P37
P40/AD0 to P47/AD75-EInput/OutputIndividually connect to VDD via a resistor.
P50/A8 to P57/A155-AInput/output
Input/Output
Circuit Type
8-AInput/Output
8-A
Individually connect to VSS via a resistor.
Input/Output
Individually connect to VDD or VSS via a
resistor.
71
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
Table 3-1. Pin Input/Output Circuit Types (2/2)
Pin NameInput/OutputRecommended Connection of Unused Pins
P60 to P63 (Mask ROM version)13-BInput/outputIndividually connect to VDD via a resistor.
P60 to P63 (PROM version)13-D
P64/RDInput/output
P65/WR
P66/WAIT
P67/ASTB
P70/SI2/RxD8-A
P71/SO2/TxD5-A
P72/SCK2/ASCK8-A
P120/RTP0 to P127/RTP75-A
P130/ANO0, P131/ANO112-AInput/outputIndividually connect to VSS via a resistor.
RESET2Input—
XT216 —Leave open.
AVREF0—Connect to VSS.
AVREF1Connect to VDD.
AVDD
AVSSConnect to VSS.
Input/Output
Circuit Type
Individually connect to VDD or VSS via a resistor.
5-A
IC (Mask ROM version)Directly connect to VSS.
VPP (PROM version)
72
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
Figure 3-1. Pin Input/Output Circuit of List (1/2)
Type 2
IN
Type 5-A
pullup
enable
data
output
disable
Schmitt-Triggered Input with
Hysteresis Characteristics
V
VDD
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
VDD
P-ch
N-ch
VDD
VDD
P-ch
N-ch
P-ch
V
IN/OUT
DD
P-ch
IN/OUT
input
enable
V
Type 5-EType 11
DD
pullup
pullup
enable
P-ch
enable
VDD
data
P-ch
output
disable
IN/OUT
output
disable
N-ch
data
comparator
input
enable
P-ch
+
–
N-ch
V
REF (Threshold voltage)
VDD
P-ch
N-ch
V
DD
P-ch
IN/OUT
73
CHAPTER 3 PIN FUNCTION (µPD78054 Subseries)
Figure 3-1. Pin Input/Output Circuit of List (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
V
P-ch
N-ch
V
DD
DD
Mask
Option
N-ch
V
DD
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
N-ch
V
DD
P-ch
IN/OUT
medium breakdown
input buffer
XT2XT1
74
CHAPTER 4 PIN FUNCTION (µPD78054Y 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
P02in 1-bit units.INTP2
P03Input/Port 0.When used as an input port, anINTP3
P04output8-bit input/output port.on-chip pull-up resistor can be usedINTP4
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 in1-bit units.BUSY
P25When used as an input port, an on-chip pull-up resistor can be used bySI0/SB0/SDA0
P26software.SO0/SB1/SDA1
P27SCK0/SCL
Note1
Input/Output
InputInput onlyInputXT1
Input/
output
8-bit input/output port.
Input/output mode can be specified in 1-bit units.InputANI0 to ANI7
When used as input port, an on-chip pull-up resistor can be used by
software
Note2
.
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 to input
mode. The on-chip pull-up resistor will automatically be disabled.
75
(1) Port pins (2/3)
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
Pin Name
P30TO0
P31TO1
P32Port 3.TO2
P33Input/8-bit input/output port.TI1
P34outputInput/output mode can be specified in 1-bit units.TI2
P35When used as an input port, an on-chip pull-up resistor can be used byPCL
P36software.BUZ
P37—
P40 to P47InputAD0 to AD7
P50 to P57InputA8 to A15
P60—
P61
P62Port 6.
P63Input/8-bit input/output port.
P64outputInput/output mode can beWhen used as an input port, anInputRD
P65specified in 1-bit units.on-chip pull-up resistor can be usedWR
P66by software.WAIT
P67ASTB
P70SI2/RxD
P71InputSO2/TxD
P72SCK2/ASCK
Input/Output
Port 4.
8-bit input/output port.
Input/Input/output mode can be specified in 8-bit units.
outputWhen used as an input port, an on-chip pull-up resistor can be used by
software.
Test input flag (KRIF) is set to 1 by falling edge detection.
Port 5.
8-bit input/output port.
Input/LED can be driven directly.
outputInput/output mode can be specified in 1-bit units.
When used as an input port, an on-chip pull-up resistor can be used by
software.
Port 7.
Input/
output
3-bit input/output port.
Input/output mode can be specified in 1-bit units.
When used as an input port, an on-chip pull-up resistor can be used 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
76
(1) Port pins (3/3)
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
Pin Name
P120 to P127
P130 to P131
Input/Output
Input/Port 12.
output8-bit input/output port.
Input/output mode can be specified in 1-bit units.
When used as an input port, an on-chip pull-up resistor can be used by
software.
Input/Port 13.
output2-bit input/output port.
Input/output mode can be specified in 1-bit units.
When used as an input port, an on-chip pull-up resistor can be used by
software.
FunctionAfter Reset
InputRTP0 to RTP7
Input
Alternate Function
ANO0 to ANO1
77
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
(2) Pins other than port pins (1/2)
Pin Name
INTP0P00/TI00
INTP1P01/TI01
INTP2External interrupt request inputs with specifiable valid edges (risingP02
INTP3Inputedge, falling edge, both rising and falling edges).InputP03
INTP4P04
INTP5P05
INTP6P06
SI0P25/SB0/SDA0
SI1InputSerial interface serial data inputInputP20
SI2P70/RxD
SO0P26/SB1/SDA1
SO1OutputSerial interface serial data outputInputP21
SO2P71/TxD
SB0Input/P25/SI0/SDA0
SB1outputP26/SO0/SDA1
SDA0P25/SI0/SB0
SDA1P26/SO0/SB1
SCK0P27/SCL
SCK1Serial interface serial clock input/outputInputP22
SCK2P72/ASCK
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
79
CHAPTER 4 PIN FUNCTION (µPD78054Y 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 in 1-bit units.
(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 in 1-bit units with a port mode register 0 (PM0). When
they are used as input ports, on-chip pull-up resistors can be used 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
80
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports.
They can be specified in 1-bit units as input or output ports with a port mode register 1 (PM1). If used as input
ports, on-chip pull-up resistors can be used 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.
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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used
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
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 18-3 “Serial Operation Mode Register
1 Format.”
81
CHAPTER 4 PIN FUNCTION (µPD78054Y 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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used
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 used 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.
82
CHAPTER 4 PIN FUNCTION (µPD78054Y 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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units as input/output ports with
port mode register 5 (PM5). When they are used as input ports, on-chip pull-up resistors can be used 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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used by defining the pull-up 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.
83
CHAPTER 4 PIN FUNCTION (µPD78054Y 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 in 1-bit units.
(1) Port mode
Port 7 functions as a 3-bit input/output port. 1-bit-units 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 used
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, see to the operation mode setting list in Table 19-2 “Serial Interface Channel
2”.
4.2.9 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 in 1-bit units.
(1) Port mode
These ports function as 8-bit input/output ports. They can be specified in 1-bit units 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 used
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.
84
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
4.2.10 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 in 1-bit units.
(1) Port mode
These ports function as 2-bit input/output ports. They can be specified in 1-bit units 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 used
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.11 AV
REF0
A/D converter reference voltage input pin.
When A/D converter is not used, connect this pin to VSS.
4.2.12 AV
REF1
D/A converter reference voltage input pin.
When D/A converter is not used, connect this pin to V
DD.
4.2.13 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.14 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 neither A/D nor D/A converter is used.
4.2.15 RESET
This is a low-level active system reset input pin.
85
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
4.2.16 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.17 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.
4.2.18 V
DD
Positive power supply pin
4.2.19 V
SS
Ground potential pin
4.2.20 V
PP (PROM versions only)
High-voltage apply pin for PROM programming mode setting and program write/verify. Directly connect to VSS
in the normal operating mode.
4.2.21 IC (Mask ROM version only)
µ
The IC (Internally Connected) pin is provided to set the test mode to check the
shipment. Directly connect the pin to the V
SS with the shortest possible wire in the normal operating mode.
PD78054Y Subseries before
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.
Directly connect IC pins to VSS pins.
VSSIC
86
As short as possible
CHAPTER 4 PIN FUNCTION (µPD78054Y 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/OutputRecommended Connection of Unused Pins
P00/INTP0/TI002InputConnect to VSS.
P01/INTP1/TI018-A
P02/INTP2
P03/INTP3Individually connect to VSS via a resistor.
P04/INTP4
P05/INTP5
P06/INTP6
P07/XT116InputConnect to VDD.
P10/ANI0 to P17/ANI711
P20/SI18-A
P21/SO15-A
P22/SCK18-A
P23/STB5-A
P24/BUSY8-A
P25/SI0/SB0/SDA010-A
P26/SO0/SB1/SDA1Individually connect to VDD or VSS via a
P27/SCK0/SCLresistor.
P30/TO05-A
P31/TO1
P32/TO2
P33/TI1
P34/TI2
P35/PCL5-A
P36/BUZ
P37
P40/AD0 to P47/AD75-EInput/OutputIndividually connect to VDD via a resistor.
P50/A8 to P57/A155-AInput/output
Input/Output
Circuit Type
Input/Output
Input/Output
8-A
Individually connect to VDD or VSS via a
resistor.
87
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
Table 4-1. Pin Input/Output Circuit Types (2/2)
Pin NameInput/OutputRecommended Connection of Unused Pins
P60 to P63 (Mask ROM version)13-BInput/outputIndividually connect to VDD via a resistor.
P60 to P63 (PROM version)13-D
P64/RDInput/output
P65/WR
P66/WAIT
P67/ASTB
P70/SI2/RxD8-A
P71/SO2/TxD5-A
P72/SCK2/ASCK8-A
P120/RTP0 to P127/RTP75-A
P130/ANO0 to P131/ANO112-AInput/outputIndividually connect to VSS via a resistor.
RESET2Input—
XT216 —Leave open.
AVREF0—Connect to VSS.
AVREF1Connect to VDD.
AVDD
AVSSConnect to VSS.
IC (Mask ROM version)Directly connect to VSS.
VPP (PROM version)
Input/Output
Circuit Type
5-A
Individually connect to VDD or VSS via a resistor.
88
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
IN
pullup
enable
V
DD
P-ch
IN/OUT
input
enable
output
disable
data
VDD
P-ch
N-ch
Type 2
Type 5-A
Schmitt-Triggered Input with
Hysteresis Characteristics
Type 5-EType 11
Type 10-A
Type 8-A
pullup
enable
V
DD
P-ch
IN/OUT
output
disable
data
VDD
P-ch
N-ch
pullup
enable
VDD
P-ch
IN/OUT
output
disable
data
VDD
P-ch
N-ch
pullup
enable
V
DD
P-ch
IN/OUT
open-drain
output disable
data
VDD
P-ch
N-ch
pullup
enable
V
DD
P-ch
IN/OUT
output
disable
data
VDD
P-ch
N-ch
P-ch
comparator
N-ch
input
enable
V
REF (Threshold voltage)
+
–
Figure 4-1. Pin Input/Output Circuit of List (1/2)
89
CHAPTER 4 PIN FUNCTION (µPD78054Y Subseries)
Figure 4-1. Pin Input/Output Circuit of List (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
V
P-ch
N-ch
V
DD
DD
Mask
Option
N-ch
V
DD
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
N-ch
V
DD
P-ch
IN/OUT
medium breakdown
input buffer
XT2XT1
90
CHAPTER 5 CPU ARCHITECTURE
0000H
Data memory
space
General Registers
32 × 8 bits
Internal ROM
16384 × 8 bits
3FFFH
1000H
0FFFH
0800H
07FFH
0080H
007FH
0040H
003FH
0000H
CALLF Entry Area
CALLT Table Area
Vector Table Area
Program Area
Program Area
Internal Buffer RAM
32 × 8 bits
External Memory
47744 × 8 bits
Reserved
Program
memory
space
4000H
3FFFH
FA80H
FA7FH
FAC0H
FABFH
FAE0H
FADFH
FEE0H
FEDFH
FF00H
FEFFH
FFFFH
Internal High-speed RAM
512 × 8 bits
Special Function
Registers (SFRs)
256 × 8 bits
Reserved
FD00H
FCFFH
5.1 Memory Spaces
Each product of the µPD78054 and 78054Y Subseries can access the memory space of 64 Kbytes. Figures 5-1
to 5-8 show memory maps.
µ
Figure 5-1. Memory Map (
PD78052, 78052Y)
91
CHAPTER 5 CPU ARCHITECTURE
Figure 5-2. Memory Map (µPD78053, 78053Y)
Data memory
space
Program
memory
space
FFFFH
FF00H
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
FA80H
FA7FH
6000H
5FFFH
Special Function
Registers (SFRs)
256 × 8 bits
General Registers
32 × 8 bits
Internal High-speed RAM
1024 × 8 bits
Reserved
Internal Buffer RAM
32 × 8 bits
Reserved
External Memory
39552 × 8 bits
5FFFH
Program Area
1000H
0FFFH
CALLF Entry Area
0800H
07FFH
Program Area
0080H
007FH
CALLT Table Area
0000H
Internal ROM
24576 × 8 bits
0040H
003FH
Vector Table Area
0000H
92
CHAPTER 5 CPU ARCHITECTURE
Figure 5-3. Memory Map (µPD78054, 78054Y)
Data memory
space
Program
memory
space
FFFFH
FF00H
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
FA80H
FA7FH
8000H
7FFFH
Special Function
Registers (SFRs)
256 × 8 bits
General Registers
32 × 8 bits
Internal High-speed RAM
1024 × 8 bits
Reserved
Internal Buffer RAM
32 × 8 bits
Reserved
External Memory
31360 × 8 bits
7FFFH
Program Area
1000H
0FFFH
CALLF Entry Area
0800H
07FFH
Program Area
0080H
007FH
CALLT Table Area
0000H
Internal ROM
32768 × 8 bits
0040H
003FH
Vector Table Area
0000H
93
CHAPTER 5 CPU ARCHITECTURE
Figure 5-4. Memory Map (µPD78P054)
Data memory
space
Program
memory
space
FFFFH
FF00H
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
FA80H
FA7FH
8000H
7FFFH
Special Function
Registers (SFRs)
256 × 8 bits
General Registers
32 × 8 bits
Internal High-speed RAM
1024 × 8 bits
Reserved
Internal Buffer RAM
32 × 8 bits
Reserved
External Memory
31360 × 8 bits
7FFFH
Program Area
1000H
0FFFH
CALLF Entry Area
0800H
07FFH
Program Area
0080H
007FH
CALLT Table Area
0000H
Internal PROM
32768 × 8 bits
0040H
003FH
Vector Table Area
0000H
94
CHAPTER 5 CPU ARCHITECTURE
Figure 5-5. Memory Map (µPD78055, 78055Y)
Data memory
space
Program
memory
space
FFFFH
FF00H
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
FA80H
FA7FH
A000H
9FFFH
Special Function
Registers (SFRs)
256 × 8 bits
General Registers
32 × 8 bits
Internal High-speed RAM
1024 × 8 bits
Reserved
Internal Buffer RAM
32 × 8 bits
Reserved
External Memory
23168 × 8 bits
9FFFH
Program Area
1000H
0FFFH
CALLF Entry Area
0800H
07FFH
Program Area
0080H
007FH
CALLT Table Area
0000H
Internal ROM
40960 × 8 bits
0040H
003FH
Vector Table Area
0000H
95
CHAPTER 5 CPU ARCHITECTURE
Figure 5-6. Memory Map (µPD78056, 78056Y)
Data memory
space
Program
memory
space
FFFFH
FF00H
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
FA80H
FA7FH
C000H
BFFFH
Special Function
Registers (SFRs)
256 × 8 bits
General Registers
32 × 8 bits
Internal High-speed RAM
1024 × 8 bits
Reserved
Internal Buffer RAM
32 × 8 bits
Reserved
External Memory
14976 × 8 bits
BFFFH
Program Area
1000H
0FFFH
CALLF Entry Area
0800H
07FFH
Program Area
0080H
007FH
CALLT Table Area
0000H
Internal ROM
49152 × 8 bits
0040H
003FH
Vector Table Area
0000H
96
CHAPTER 5 CPU ARCHITECTURE
Figure 5-7. Memory Map (µPD78058, 78058Y)
Data memory
space
FFFFH
FF00H
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
F800H
F7FFH
F400H
F3FFH
F000H
EFFFH
Special Function
Registers (SFRs)
256 × 8 bits
General Registers
32 × 8 bits
Internal High-speed RAM
1024 × 8 bits
Reserved
Internal Buffer RAM
32 × 8 bits
Reserved
Internal
Expansion RAM
1024 × 8 bits
Reserved
Note
EFFFH
Program Area
1000H
0FFFH
CALLF Entry Area
0800H
07FFH
Program Area
0080H
007FH
CALLT Table Area
Program
memory
space
Internal ROM
61440 × 8 bits
0000H
0040H
003FH
Vector Table Area
0000H
NoteWhen internal ROM size is 60K bytes, the area F000H to F3FFH cannot be used. F000H to F3FFH
can be used as external memory by setting the internal ROM size to less than 56K bytes by the
memory size switching register (IMS).
97
CHAPTER 5 CPU ARCHITECTURE
Figure 5-8. Memory Map (µPD78P058, µPD78P058Y)
Data memory
space
FFFFH
FF00H
FEFFH
FEE0H
FEDFH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
F800H
F7FFH
F400H
F3FFH
F000H
EFFFH
Special Function
Registers (SFRs)
256 × 8 bits
General Registers
32 × 8 bits
Internal High-speed RAM
1024 × 8 bits
Reserved
Internal Buffer RAM
32 × 8 bits
Reserved
Internal
Expansion RAM
1024 × 8 bits
Reserved
Note
EFFFH
Program Area
1000H
0FFFH
CALLF Entry Area
0800H
07FFH
Program Area
0080H
007FH
CALLT Table Area
Program
memory
space
Internal PROM
61440 × 8 bits
0000H
0040H
003FH
Vector Table Area
0000H
NoteWhen internal PROM size is 60K bytes, the area F000H to F3FFH cannot be used. F000H to F3FFH
can be used as external memory by setting the internal PROM size to less than 56K bytes by the
memory size switching register (IMS).
98
CHAPTER 5 CPU ARCHITECTURE
5.1.1 Internal program memory space
The internal program memory space stores programs and table data. Normally, they are addressed with a program
counter (PC).
µ
Each product of the
PD78054 and 78054Y Subseries has the internal ROM (or PROM) of the size shown below.
Table 5-1. Internal ROM Capacity
Part number
µ
PD78052, 78052YMask ROM16384 x 8 bits (0000H to 3FFFH)
µ
PD78053, 78053Y24576 x 8 bits (0000H to 5FFFH)
µ
PD78054, 78054Y32768 x 8 bits (0000H to 7FFFH)
µ
PD78055, 78055Y40960 x 8 bits (0000H to 9FFFH)
µ
PD78056, 78056Y49152 x 8 bits (0000H to BFFFH)
µ
PD78058, 78058Y61440 x 8 bits (0000H to EFFFH)
µ
PD78P054PROM32768 x 8 bits (0000H to 7FFFH)
µ
PD78P058, 78P058Y61440 x 8 bits (0000H to EFFFH)
TypeCapacity
Internal ROM
The following areas are allocated to the internal program memory space.
(1) Vector table area
The 64-byte area 0000H to 003FH is reserved as a vector table area. The RESET input and program start
addresses for branch upon generation of each interrupt request are stored in the vector table area. Of the
16-bit address, low-order 8 bits are stored at even addresses and high-order 8 bits are stored at odd addresses.
The 64-byte area 0040H to 007FH can store the subroutine entry address of a 1-byte call instruction (CALLT).
(3) CALLF instruction entry area
The area 0800H to 0FFFH can perform a direct subroutine call with a 2-byte call instruction (CALLF).
99
CHAPTER 5 CPU ARCHITECTURE
5.1.2 Internal data memory space
The µPD78054 and 78054Y subseries units incorporate the following RAMs.
(1) Internal high-speed RAM
µ
PD78054 and 78054Y Subseries are provided with the internal high-speed RAM as shown below.
The
Table 5-3. Internal High-Speed RAM Capacity
Part NumberInternal High-Speed RAM
µ
PD78052, 78052Y512 × 8 bits (FD00H to FEFFH)
µ
PD78053, 78053Y1024 × 8 bits (FB00H to FEFFH)
µ
PD78054, 78054Y
µ
PD78P054
µ
PD78055, 78055Y
µ
PD78056, 78056Y
µ
PD78058, 78058Y
µ
PD78P058, 78P058Y
In this area, four banks of general registers, each bank consisting of eight 8-bit registers, are allocated in the
32-byte area FEE0H to FEFFH.
The internal high-speed RAM can also be used as a stack memory.
(2) Buffer RAM
Buffer RAM is allocated to the 32-byte area from FAC0H to FADFH. The buffer RAM is used to store transmit/
receive data of serial interface channel 1 (in three-wire serial I/O mode with automatic transfer/receive
function). If the three-wire serial I/O mode with automatic transfer/receive function is not used, the buffer RAM
can also be used as normal RAM. Buffer RAM can also be used as normal RAM.
µ
(3) Internal expansion RAM (
PD78058, 78058Y, 78P058, 78P058Y only)
Internal expansion RAM is allocated to the 1024-byte area from F400H to F7FFH.
5.1.3 Special Function Register (SFR) area
An on-chip peripheral hardware special-function register (SFR) is allocated in the area FF00H to FFFFH. (Refer
to Table 5-6. Special-Function Register List in 5.2.3 Special Function Register (SFR)).
Caution Do not access addresses where the SFR is not assigned.
5.1.4 External memory space
The external memory space is accessible by setting the memory expansion mode register (MM). External memory
space can store program, table data, etc. and allocate peripheral devices.
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.