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
possibility of being an output pin. All handling related to the unused pins must be judged device
by device and related specifications governing the devices.
DD or GND with a resistor, if it is considered to have a
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, and IEBus 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, 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.
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.
3
The export of this product from Japan is regulated by the Japanese government. To export this product may be prohibited without
governmental license, the need for which must be judged by the customer. The export or re-export of this product from a country
other than Japan may also be prohibited without a license from that country. Please call an NEC sales representative.
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.
P133 toThe block diagrams of the following ports were changed.
P137, P143Figures 6-5 and 6-7 P20, P21, P23 to P26 Block Diagram, Figures 6-6 and 6-8 P22 and P27 Block
Diagram, Figure 6-9 P30 to P37 Block Diagram, Figure 6-16 P71 and P72 Block Diagram
P159Table 7-2Relationship between CPU Clock and Minimum Instruction Execution Time was added.
P230, P235Figures 9-10 and 9-13 Square-Wave Output Operation Timing were added.
P295Note related to operation controls when using the SBI mode of serial interface channel 0 was added.
P297Note related to BSYE in Figure 16-5 Serial Bus Interface Control Register Format was changed.
P308Cautions were added to 16.4.3 (2) (a) Bus release signal (REL), and (b) Command signal (CMD)
P435, P436CSCK was deleted from Figure 19-1 Serial Interface Channel 2 Block Diagram, and Figure 19-2
Baud Rate Generator Block Diagram.
P438Figure 19-3 Serial Operating Mode Register 2 Format was changed.
P440Table 19-2 Serial Interface Channel 2 Operating Mode Settings (2) 3-wire serial I/O mode was
P459Figure 19-10 Receive Error Timing was changed.
P46819.4.4 Restrictions on using UART mode was added.
P565APPENDIX A DIFFERENCES AMONG µPD78054, 78058F, AND 780058 SUBSERIES was added.
P567APPENDIX B DEVELOPMENT TOOLS
P582APPENDIX C EMBEDDED SOFTWARE
P591APPENDIX E REVISION HISTORY was added.
changed.
Overall revision: Contents were adapted to correspond to in-circuit emulators IE-78K0-NS and
IE-78001-R-A
Overall revision: Fuzzy inference development support system was deleted.
The mark shows major revised points.
6
PREFACE
ReadersThis manual has been prepared for user engineers who want to understand the
functions of the µPD78058F and 78058FY Subseries and design and develop its
application systems and programs.
Affected versions are each of the versions in the following Subseries.
PurposeThis manual is intended for users to understand the functions described in the
Organization below.
µ
OrganizationThe
PD78058F, 78058FY Subseries manual is organized by two volumes: this
manual and the instruction edition (common to the 78K/0 Series).
µ
PD78058F, 78058FY
Subseries
User’s Manual
(This Manual)
78K/0 Series
User’s Manual
Instructions
Pin functionsCPU functions
Internal block functionsInstruction set
InterruptExplanation of each instruction
Other on-chip peripheral functions
7
How to Read This ManualBefore reading this manual, you should have general knowledge of electric and logic
circuits and microcontrollers.
For persons who use this manual as the manual for the µPD78058F(A) and
78058FY(A),
µ
→ The
When you want to understand the functions in general:
→ Read this manual in the order of the contents.
To know the µPD78058F and 78058FY Subseries instruction function in detail:
→ Refer to the 78K/0 Series User's Manual: Instructions (U12326E)
How to interpret the register format:
→
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 µPD78058F and 78058FY Subseries:
→ Refer to separately available Data Sheet.
To know the details regarding the functions of the µPD78058F and 78058FY
Subseries:
→ Refer to separately available Application Notes.
PD78058F and 78058FY differ from the µPD78058F(A) and 78058FY(A)
only in their quality grades. For products with (A), please change the readings
for the product name as follows.
µ
PD78058F → µPD78058F(A)
µ
PD78058FY → µPD78058FY(A)
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.
Caution Examples used in this manual are prepared for “Standard” product
quality grade products for general electronic equipment. If the
examples of use in this manual are utilized in applications where a
“Special” product quality grade is required, please study concern-
ing the quality grade of each part and each circuit that will actually
be used.
8
Chapter OrganizationThis manual divides the descriptions for the µPD78058F and 78058FY Subseries into
different chapters as shown below. Read only the chapters related to the device you use.
78K/0 Series Instruction TableU10903J—
78K/0 Series Instruction SetU10904J—
78K/0 Series Application Note Basic (III)U10182JU10182E
Document No.
JapaneseEnglish
Caution The above documents are subject to change without prior notice. Be sure to use the latest
document for designing.
11
Development Tool Documents (User’s Manuals)
Document Name
RA78K0 Assembler PackageOperationU11802JU11802E
Assembly languageU11801JU11801E
Structured assembler languageU11789JU11789E
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-NSTo be prepared To be prepared
IE-78001-R-ATo be prepared To be prepared
IE-780308-NS-EM1To be prepared To be prepared
IE-78064-R-EMEEU-905EEU-1443
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 DebuggerU12900JTo be prepared
ID78K0 Integrated Debugger EWS BaseReferenceU11151J—
ID78K0 Integrated Debugger PC BaseReferenceU11539J—
ID78K0 Integrated Debugger Windows BaseGuideU11649J—
Document No.
JapaneseEnglish
Caution The above documents are subject to change without prior notice. Be sure to use the latest
document for designing.
12
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
Reliability Quality Control on NEC Semiconductor DevicesC10983JC10983E
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
3.2.16 X1 and X2 ....................................................................................................................................71
3.2.17 XT1 and XT2 ................................................................................................................................71
4.2.16 X1 and X2 ....................................................................................................................................89
4.2.17 XT1 and XT2 ................................................................................................................................89
5.2.1 Control registers ........................................................................................................................... 103
5.2.2 General registers.......................................................................................................................... 106
5.2.3 Special Function Register (SFR).................................................................................................. 108
CHAPTER 6 PORT FUNCTIONS.......................................................................................................... 125
6.1 Port Functions........................................................................................................................ 125
6.2 Port Configuration ................................................................................................................. 130
6.2.1 Port 0............................................................................................................................................ 130
6.2.2 Port 1............................................................................................................................................ 132
6.2.3 Port 2 (µPD78058F Subseries) .................................................................................................... 133
µ
6.2.4 Port 2 (
6.2.5 Port 3............................................................................................................................................ 137
6.2.6 Port 4............................................................................................................................................ 138
6.2.7 Port 5............................................................................................................................................ 139
6.2.8 Port 6............................................................................................................................................ 140
6.2.9 Port 7............................................................................................................................................ 142
6.2.10 Port 12 .......................................................................................................................................... 144
6.2.11 Port 13.......................................................................................................................................... 145
17-20Wait Signal ........................................................................................................................................367
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 expansion 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
Two test inputs
Two types of on-chip clock oscillators (main system clock and subsystem clock)
Supply voltage: VDD = 2.7 to 6.0 V
35
CHAPTER 1 OUTLINE (µPD78058F SUBSERIES)
1.2 Applications
In the case of the µPD78056F, 78058F and 78P058F,
Cellular phones, pagers, printers, AV equipment, air conditioners, cameras, PPC’s, fuzzy home appliances,
vending machines, etc.
µ
In the case of the
PD78058F (A),
Controllers for car electronics, gas detection and shut-off devices, various safety devices, etc.
1.3 Ordering Information
Part NumberPackageInternal ROM
µ
PD78056FGC-×××-3B980-pin plastic QFP (14 × 14 mm, Resin thickness: 2.7 mm)Mask ROM
µ
PD78056FGC-×××-8BT80-pin plastic QFP (14 × 14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78058FGC-×××-3B980-pin plastic QFP (14 × 14 mm, Resin thickness: 2.7 mm)Mask ROM
µ
PD78058FGC-×××-8BT80-pin plastic QFP (14 × 14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78058FGK-×××-BE980-pin plastic TQFP (Fine pitch) (12 × 12 mm)Mask ROM
µ
PD78058FGC(A)-×××-3B980-pin plastic QFP (14 × 14 mm, Resin thickness: 2.7 mm)Mask ROM
Please refer to Quality grade 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 Internally Connected (IC) pin to VSS directly.
2. The AVDD pin is used in common as the power supply for the A/D converter and port. If
this device is used in application fields where reduction of noise generated internally in
the microprocessor is required, please connect to a separate power supply with the same
electrical potential as V
DD.
3. The AVSS pin is used in common as the ground for the A/D converter, D/A converter and
port. If this device is used in application fields where reduction of noise generated
internally in the microprocessor is required, please connect it to a ground line which is
separate from V
SS.
Remark Pin connection in parentheses is intended for the
38
µ
PD78P058F.
Pin Identifications
CHAPTER 1 OUTLINE (µPD78058F SUBSERIES)
A8 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, 1: Analog Reference Voltage
AVSS: Analog Ground
BUSY: Busy
BUZ: Buzzer Clock
IC: Internally Connected
INTP0 to INTP6: Interrupt from Peripherals
P00 to P07: Port0
P10 to P17: Port1
P20 to P27: Port2
P30 to P37: Port3
P40 to P47: Port4
P50 to P57: Port5
P60 to P67: Port6
P70 to P72: Port7
P120 to P127: Port12
P130, P131: Port13
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: Timer Input
TO0 to TO2: Timer Output
TxD: Transmit Data
DD: Power Supply
V
PP: Programming Power Supply
V
VSS: Ground
WAIT: Wait
WR: Write Strobe
X1, X2: Crystal (Main System Clock)
XT1, XT2: Crystal (Subsystem Clock)
EMI-noise reduced version of the PD78078
Timer was added to the PD78054 and the external interface function was enhanced
ROM-less versions of the PD78078
Serial I/O of the PD78078Y was enhanced and only selected functions are provided
Serial I/O of the PD78054 was enhanced. EMI-noise reduced version
EMI-noise reduced version of the PD78054
UART and D/A converter were added to the PD78014 and I/O was enhanced
A/D converter of the PD780024 was enhanced
Serial I/O of the PD78018F was enhanced
EMI-noise reduced version of the PD78018F
Low-voltage (1.8 V) operation versions of the PD78014 with choice of several ROM and RAM capacities
A/D converter and 16-bit timer were added to the PD78002
A/D converter was added to the PD78002
Basic subseries for control
On-chip UART, capable of operation at a low voltage (1.8 V)
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
2
C bus.
64-pin
64-pin
78K/0
Series
100-pin
100-pin
80-pin
100-pin
100-pin
100-pin
80-pin
80-pinIEBus controller was added to the PD78054
NoteUnder planning
Inverter control
µ
PD78098864-pin
PD780964
µ
PD780924
µ
TM
FIP drive
PD780208
µ
µ
PD780228
µ
PD78044H
PD78044F80-pinBasic subseries for driving FIP. Display output total: 34
µ
LCD drive
PD780308
µµ
PD78064B
µ
µµ
PD78064
IEBus
PD78098B
µ
µ
PD78098
Meter control
PD78097380-pin
µ
TM
supported
PD780308Y
PD78064Y
The inverter control, timer, and SIO of the PD780964 were enhanced. ROM size and RAM size were expanded
A/D converter of the PD780924 was enhanced
On-chip inverter control circuit and UART. EMI-noise reduced version
I/O and FIP C/D of the PD78044F were enhanced. Display output total: 53
I/O and FIP C/D of the PD78044H were enhanced. Display output total: 48
N-ch open-drain I/O was added to the PD78044F. Display output total: 34
SIO of the PD78064 was enhanced. ROM size and RAM size were expanded
EMI-noise reduced version of the PD78064
Subseries for driving LCDs. On-chip UART
EMI-noise reduced version of the PD78098
µ
µ
µ
µ
µ
µ
µ
µ
µ
On-chip controller/driver for driving automobile meters
41
CHAPTER 1 OUTLINE (µPD78058F SUBSERIES)
The differences between the major functions of each subseries are shown below.
Function
Subseries
ControlµPD78075B
µ
PD78078
µ
PD78070A —612.7 V
µ
PD780058
µ
PD78058F
µ
PD78054
µ
PD780034
µ
PD7800248 ch—
µ
PD78014H2 ch53
µ
PD78018F
µ
PD78014
µ
PD780001
µ
PD78002
µ
PD78083—8 ch1 ch (UART: 1 ch)331.8 V—
InverterµPD780988
control
FIP
drive
LCD
driveUART: 1 ch)
IEBUSµPD78098B
support
MeterµPD780973
control
µ
PD780964
µ
PD7809248 ch—
µ
PD780208
µ
PD780228
µ
PD78044H
µ
PD78044F
µ
PD780308
µ
PD78064B
µ
PD78064
µ
PD78098
ROM
Capacity
32 K to 40 K
48 K to 60 K
24 K to 60 K
48 K to 60 K
16 K to 60 K
8 K to 32 K
8 K to 60 K
8 K to 32 K
8 K
8 K to 16 K
32 K to 60 K
8 K to 32 KNote 2
32 K to 60 K
48 K to 60 K
32 K to 48 K
16 K to 40 K
48 K to 60 K
There are mask options in the mask ROM versions (µPD78056F, 78058F). By specifying the mask option when
ordering, you can have the pull-up resistors shown in Table 1-2 incorporated on-chip. If a mask option is used when
pull-up resistors are required, the number of parts can be reduced and package area can be shrunk.
µ
The mask option provided for the
Table 1-2. Mask Options of Mask POM Versions
Pin NamesMask Options
P60 to P63Pull-up resistors can be incorporated in 1-bit units.
PD78058F Subseries is shown in Table 1-2.
46
CHAPTER 2 OUTLINE (µPD78058FY SUBSERIES)
2.1 Features
Compared to the conventional µPD78054Y Subseries, EMI (Electro Magnetic Interference) noise has been
reduced.
On-chip high-capacity ROM and RAM
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 expansion 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/2-wire serial I/O/I2C 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: 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 interrupts
Two test inputs
Two types of on-chip clock oscillators (main system clock and subsystem clock)
Supply voltage: VDD = 2.7 to 6.0 V
47
CHAPTER 2 OUTLINE (µPD78058FY SUBSERIES)
2.2 Applications
In the case of the µPD78056FY, 78058FY and 78P058FY,
Cellular phones, pagers, printers, AV equipment, air conditioners, cameras, PPCs, fuzzy home appliances, vending
machines, etc.
µ
In the case of the
PD78058FY (A),
Controllers for car electronics, gas detection and shut-off devices, various safety devices, etc.
2.3 Ordering Information
Part NumberPackageInternal ROM
µ
PD78056FYGC-×××-3B980-pin plastic QFP (14 × 14 mm, Resin thickness: 2.7 mm)Mask ROM
µ
PD78056FYGC-×××-8BT80-pin plastic QFP (14 × 14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78058FYGC-×××-3B980-pin plastic QFP (14 × 14 mm, Resin thickness: 2.7 mm)Mask ROM
µ
PD78058FYGC-×××-8BT80-pin plastic QFP (14 × 14 mm, Resin thickness: 1.4 mm)Mask ROM
µ
PD78058FYGK-×××-BE980-pin plastic TQFP (Fine pitch) (12 × 12 mm)Mask ROM
µ
PD78058FYGC(A)-×××-3B980-pin plastic QFP (14 × 14 mm, Resin thickness: 2.7 mm)Mask ROM
Please refer to Quality grade 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 Internally Connected (IC) pin to V
2. The AVDD pin is used in common as the power supply for the A/D converter and port. If
this device is used in application fields where reduction of noise generated internally in
the microprocessor is required, please connect to a separate power supply with the same
electrical potential as V
3. The AV
SS pin is used in common as the ground for the A/D converter, D/A converter and
DD.
port. If this device is used in application fields where reduction of noise generated
internally in the microprocessor is required, please connect it to a ground line which is
separate from V
SS.
Remark Pin connection in parentheses is intended for the µPD78P058FY.
50
SS directly.
Pin Identifications
CHAPTER 2 OUTLINE (µPD78058FY SUBSERIES)
A8 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, 1: Analog Reference Voltage
SS: Analog Ground
AV
BUSY: Busy
BUZ: Buzzer Clock
IC: Internally Connected
INTP0 to INTP6: Interrupt from Peripherals
P00 to P07: Port0
P10 to P17: Port1
P20 to P27: Port2
P30 to P37: Port3
P40 to P47: Port4
P50 to P57: Port5
P60 to P67: Port6
P70 to P72: Port7
P120 to P127: Port12
P130, P131: Port13
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: Timer Input
TO0 to TO2: Timer Output
TxD: Transmit Data
EMI-noise reduced version of the PD78078
Timer was added to the PD78054 and the external interface function was enhanced
ROM-less versions of the PD78078
Serial I/O of the PD78078Y was enhanced and only selected functions are provided
Serial I/O of the PD78054 was enhanced. EMI-noise reduced version
EMI-noise reduced version of the PD78054
UART and D/A converter were added to the PD78014 and I/O was enhanced
A/D converter of the PD780024 was enhanced
Serial I/O of the PD78018F was enhanced
EMI-noise reduced version of the PD78018F
Low-voltage (1.8 V) operation versions of the PD78014 with choice of several ROM and RAM capacities
A/D converter and 16-bit timer were added to the PD78002
A/D converter was added to the PD78002
Basic subseries for control
On-chip UART, capable of operation at a low voltage (1.8 V)
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
µ
2
C bus.
Inverter control
µ
PD78098864-pin
64-pin
64-pin
78K/0
Series
100-pin
100-pin
80-pin
100-pin
100-pin
100-pin
80-pin
80-pinIEBus controller was added to the PD78054
PD780964
µ
PD780924
µ
FIP
PD780208
µ
µ
PD780228
µ
PD78044H
PD78044F80-pinBasic subseries for driving FIP. Display output total: 34
µ
LCD drive
PD780308
µµ
PD78064B
µ
IEBus
PD78098B
µ
Meter control
PD78097380-pin
µ
NoteUnder planning
drive
PD780308Y
µµ
PD78064
µ
PD78098
supported
PD78064Y
The inverter control, timer, and SIO of the PD780964 were enhanced. ROM size and RAM size were expanded
A/D converter of the PD780924 was enhanced
On-chip inverter control circuit and UART. EMI noise reduced version
The I/O and FIP C/D of the PD78044F were enhanced. Display output total: 53
The I/O and FIP C/D of the PD78044H were enhanced. Display output total: 48
N-ch open-drain I/O was added to the PD78044F. Display output total: 34
SIO of the PD78064 was enhanced. ROM size and RAM size were expanded
EMI-noise reduced version of the PD78064
Subseries for driving LCDs. On-chip UART
EMI-noise reduced version of the PD78098
µ
µ
µ
µ
µ
µ
µ
µ
µ
On-chip controller/driver for driving automobile meters
53
CHAPTER 2 OUTLINE (µPD78058FY SUBSERIES)
The differences between the major functions of each subseries are shown below.
FunctionROM
SubseriesCapacity
ControlµPD78078Y48 K to 60 K 3-wire/2-wire/I2C: 1 ch881.8 V
µ
PD78070AY—3-wire with automatic send/receive function.: 1 ch612.7 V
3-wire/UART: 1 ch
µ
PD780018AY 48 K to 60 K 3-wire with automatic send/receive function.: 1 ch88
The mask ROM versions (µPD78056FY, 78058FY) 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 2-2. Mask Options of Mask ROM Versions
Pin NamesMask Options
P60 to P63Pull-up resistor connection can be specified in 1-bit units.
PD78058FY Subseries are shown in Table 2-2.
58
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
3.1 Pin Function List
3.1.1 Normal operating mode pins
(1) Port pins (1/3)
Pin Name
P00InputPort 0.Input onlyInputINTP0/TI00
P01Input/8-bit input/output port.Input/output mode can be specifiedInputINTP1/TI01
P02outputbit-wise.INTP2
P03If used as an input port, an on-chipINTP3
P04pull-up resistor can be used byINTP4
P05software.INTP5
P06INTP6
P07
P10 to P17Input/Port 1.InputANI0 to ANI7
P20Input/Port 2.InputSI1
P21output8-bit input/output port.SO1
P22Input/output mode can be specified bit-wise.SCK1
P23If used as an input port, an on-chip pull-up resistor can be used bySTB
P24software.BUSY
P25SI0/SB0
P26SO0/SB1
P27SCK0
Note 1
Input/Output
InputInput onlyInputXT1
output8-bit input/output port.
Input/output mode can be specified bit-wise.
If used as input port, an on-chip pull-up resistor can be used by
software
Note 2
.
FunctionAfter Reset
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 using pins P10/ANI0 to P17/ANI7 as analog input for the A/D converter, set port 1 to the input
mode. The on-chip pull-up resistor will be automatically disabled.
59
(1) Port pins (2/3)
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
Pin Name
P30Input/Port 3.InputTO0
P31output8-bit input/output port.TO1
P32Input/output mode can be specified bit-wise.TO2
P33If used as an input port, an on-chip pull-up resistor can be used byTI1
P34software.TI2
P35PCL
P36BUZ
P37—
P40 to P47Input/Port 4.InputAD0 to AD7
P50 to P57Input/Port 5.InputA8 to A15
P60Input/Port 6.Input—
P61output8-bit input/output port.
P62Input/output mode can be
P63specified bit-wise.
P64If used as an input port, an on-chipRD
P65pull-up resistor can be used byWR
P66software.WAIT
P67ASTB
P70InputSI2/RxD
P71SO2/TxD
P72SCK2/ASCK
Input/Output
output8-bit input/output port.
Input/output mode can be specified in 8-bit units.
If 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.
output8-bit input/output port.
LED 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 used by software.
Input/Port 7.
output3-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 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
60
(1) Port pins (3/3)
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
Pin Name
P120 to P127
P130, P131 Input/Port 13.InputANO0 to ANO1
Input/Output
Input/Port 12.InputRTP0 to RTP7
output8-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 used by software.
output
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 used by software.
FunctionAfter Reset
Alternate Function
CautionsFor pins which have alternate functions as port output, do not execute the following
operations during A/D conversion. If performed, then the general error standards cannot
be maintained during A/D conversion.
<1> If it is used as a port, rewriting the output latch of its output.
<2> Even if it is not used as a port, changing the output level of pins used as outputs.
61
(2) Non-port pins (1/2)
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
Pin Name
INTP0InputExternal interrupt request inputs with specifiable valid edges (risingInputP00/TI00
INTP1edge, falling edge, both rising and falling edges).P01/TI01
INTP2P02
INTP3P03
INTP4P04
INTP5P05
INTP6P06
SI0InputSerial interface serial data inputInputP25/SB0
SI1P20
SI2P70/RxD
SO0OutputSerial interface serial data outputInputP26/SB1
SO1P21
SO2P71/TxD
SB0Input/Serial interface serial data input/outputInputP25/SI0
SB1outputP26/SO0
SCK0Input/Serial interface serial clock input/outputInputP27
SCK1outputP22
SCK2P72/ASCK
RxDInputAsynchronous serial interface serial data inputInputP70/SI2
TxDOutputAsynchronous serial interface serial data outputInputP71/SO2
ASCKInputAsynchronous serial interface serial clock inputInputP72/SCK2
TI00InputExternal count clock input to 16-bit timer (TM0)InputP00/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
TO0Output16-bit timer (TM0) output (also used for 14-bit PWM output)InputP30
TO18-bit timer (TM1) outputP31
TO28-bit timer (TM2) outputP32
PCLOutputClock output (for main system clock and subsystem clock trimming)InputP35
BUZOutputBuzzer outputInputP36
RTP0 to RTP7
Input/Output
OutputReal-time output port outputting data in synchronization with triggerInputP120 to P127
FunctionAfter Reset
Alternate Function
62
(2) Non-port pins (2/2)
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
Pin Name
AD0 to AD7
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—
AVSS—Ground potential (common with the port’s ground potential) of the A/D——
RESETInputSystem reset input——
X1InputCrystal connection for main system clock oscillation——
X2———
XT1InputCrystal connection for subsystem clock osicllationInputP07
XT2———
VDD—Positive power supply (Except the port)——
VPP—
VSS—Ground potential (Except the port)——
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
A/D converter analog power supply. (Common with the port power supply)
converter and D/A converter.
High-voltage application for program write/verify.
Connect directly to VSS in the normal operation mode.
FunctionAfter Reset
——
——
Alternate Function
Cautions 1. The AVDD pin is used in common as the power supply for the A/D converter and port. If
this device is used in application fields where reduction of noise generated internally in
the microprocessor is required, please connect to a separate power supply with the same
electrical potential as V
DD.
2. The AVSS pin is used as the ground potential for the A/D converter and D/A converter,
and also as the ground potential for the ports. If this device is used in application fields
where reduction of noise generated internally in the microprocessor is required, please
connect it to a ground line which is separate from V
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
When +5 V or +12.5 V is applied to the VPP pin or a low level voltage is applied to the RESET pin,
the PROM programming mode is set.
Data bus
64
CHAPTER 3 PIN FUNCTION (µPD78058F 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 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
65
CHAPTER 3 PIN FUNCTION (µPD78058F 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 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 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 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 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
66
CHAPTER 3 PIN FUNCTION (µPD78058F 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 pin, 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
Operating Mode Register 0 Format” and Figure 18-3 “Serial Operating 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 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 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.
67
CHAPTER 3 PIN FUNCTION (µPD78058F 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 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 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 bit-wise.
68
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
(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 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.
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 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 pin, the I/O and output latches must be set
according to the function the user requires.
For the setting, refer to Table 19-2 “Serial Interface Channel 2 Operating Mode Settings of
List”.
69
CHAPTER 3 PIN FUNCTION (µPD78058F 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 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 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 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 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 PM13× bit of the port mode register 13 (PM13) to 1 (input mode) and connect the pin
SS.
to V
•Set PM13× 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 V
3.2.12 AVREF1
D/A converter reference voltage input pin.
When D/A converter is not used, connect this pin to VDD.
REF1 > VDD, the other pins
SS.
70
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
3.2.13 AVDD
This is the analog power supply pin of the A/D converter and the port’s power supply pin. Always use the same
voltage as that of the V
DD pin even when the A/D converter is not used.
3.2.14 AVSS
This is the ground potential pin for the A/D converter and D/A converter, and the ground potential pin for the port.
Even when the A/D converter and D/A converter are not used, always use the same potential as that of the VSS pin.
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 (Except the port)
3.2.19 VSS
Ground potential pin (Except the port)
3.2.20 VPP (PROM versions only)
High-voltage apply pin for PROM programming mode setting and program write/verify. When in the normal
operating mode, connect directly to V
SS.
71
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
3.2.21 IC (Mask ROM version only)
The IC (Internally Connected) pin is provided to set the test mode to check the µPD78058F Subseries at delivery.
Connect it directly to the V
SS 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 VSS pins directly.
VSSIC
As short as possible
72
CHAPTER 3 PIN FUNCTION (µPD78058F 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 Name
P00/INTP0/TI002InputConnect to VSS.
P01/INTP1/TI018-DInput/output
P02/INTP2
P03/INTP3
P04/INTP4
P05/INTP5
P06/INTP6
P07/XT116InputConnect to VDD.
P10/ANI0 to P17/ANI711-CInput/outputConnect independently via a resistor
P20/SI18-DInput/outputto VDD or VSS.
P21/SO15-J
P22/SCK18-D
P23/STB5-J
P24/BUSY8-D
P25/SI0/SB0
P26/SO0/SB110-C
P27/SCK0
P30/TO05-JInput/output
P31/TO1
P32/TO2
P33/TI18-D
P34/TI2
P35/PCL5-J
P36/BUZ
P37
P40/AD0 to P47/AD75-OInput/outputConnect independently via a
P50/A8 to P57/A155-JInput/output
Input/Output
Circuit Type
Input/OutputRecommended Connection of Unused Pins
Connect independently via a resistor to V
resistor to VDD.
Connect independently via a resistor to VDD or VSS.
SS.
73
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
Table 3-1. Pin Input/Output Circuit Types (2/2)
Pin Name
P60 to P63 (Mask ROM version)13-IInput/output
P60 to P63 (PROM version)13-H
P64/RD5-DInput/output
P65/WR
P66/WAIT
P67/ASTB
P70/SI2/RxD8-D
P71/SO2/TxD5-J
P72/SCK2/ASCK8-D
P120/RTP0 to P127/RTP75-J
P130/ANO0, P131/ANO112-BInput/output
RESET2Input—
XT216 —Leave open.
AVREF0
AVREF1Connect to VDD.
AVDD
AVSS
IC (Mask ROM version)Connect directly to VSS.
VPP (PROM version)
Input/Output
Circuit Type
—
Input/OutputRecommended Connection of Unused Pins
Connect independently via a resistor to VDD.
Connect independently via a resistor to VDD or VSS.
Connect independently via a resistor to VSS.
Connect to VSS.
Connect to a separate power supply with
the same potential as VDD.
Connect to a separate ground with the
same potential as VSS.
74
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
Figure 3-1. List of Pin Input/Output Circuit (1/2)
Type 2
Type 8-D
pull-up
enable
IN
data
Schmitt-Triggered Input with
Hysteresis Characteristics
output
disable
Type 5-J
pull-up
enable
data
AV
DD
P-ch
AV
DD
P-ch
Type 10-C
pull-up
enable
data
IN/OUT
output
disable
AV
N-ch
SS
open drain
output disable
input
enable
AV
Type 5-OType 11-C
DD
AV
AV
DD
P-ch
N-ch
SS
AV
AV
AV
DD
P-ch
N-ch
SS
DD
P-ch
AV
AV
IN/OUT
DD
P-ch
IN/OUT
DD
pull-up
enable
data
output
disable
AV
AV
P-ch
N-ch
SS
pull-up
P-ch
DD
enable
data
AV
DD
P-ch
P-ch
IN/OUT
IN/OUT
output
disable
comparator
P-ch
+
–
AV
V
REF
(Threshold voltage)
N-ch
SS
AV
N-ch
SS
input
enable
75
CHAPTER 3 PIN FUNCTION (µPD78058F SUBSERIES)
Figure 3-1. List of Pin Input/Output Circuit (2/2)
Type 12-B
pullup
enable
data
output
disable
input
enable
Type 13-H
output disable
data
analog output
voltage
RD
P-ch
N-ch
AVDD
P-ch
N-ch
AVSS
AVSS
N-ch
AVDD
P-ch
AV
AV
SS
DD
P-ch
IN/OUT
IN/OUT
Type 13-I
output disable
data
Type 16
RD
medium breakdown
input buffer
feedback
cut-off
P-ch
Mask
Option
N-ch
AVSS
AVDD
P-ch
AV
DD
IN/OUT
medium breakdown
input buffer
XT2XT1
76
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
4.1 Pin Function List
4.1.1 Normal operating mode pins
(1) Port pins (1/3)
Pin Name
P00InputPort 0.Input onlyInputINTP0/TI00
P01Input/8-bit input/output port.Input/output mode can be specifiedInputINTP1/TI01
P02outputbit-wise.INTP2
P03If used as an input port, an on-chipINTP3
P04pull-up resistor can be used byINTP4
P05software.INTP5
P06INTP6
P07
P10 to P17Input/Port 1.InputANI0 to ANI7
P20Input/Port 2.InputSI1
P21output8-bit input/output port.SO1
P22Input/output mode can be specified bit-wise.SCK1
P23If used as an input port, an on-chip pull-up resistor can be used bySTB
P24software.BUSY
P25SI0/SB0/SDA0
P26SO0/SB1/SDA1
P27SCK0/SCL
Note 1
Input/Output
InputInput onlyInputXT1
output8-bit input/output port.
Input/output mode can be specified bit-wise.
If used as input port, an on-chip pull-up resistor can be used by
software
Note 2
.
FunctionAfter Reset
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 using pins P10/ANI0 to P17/ANI7 as analog input for the A/D converter, set port 1 to the input
mode. The on-chip pull-up resistor will be automatically disabled.
77
(1) Port pins (2/3)
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
Pin Name
P30Input/Port 3.InputTO0
P31output8-bit input/output port.TO1
P32Input/output mode can be specified bit-wise.TO2
P33If used as an input port, an on-chip pull-up resistor can be used byTI1
P34software.TI2
P35PCL
P36BUZ
P37—
P40 to P47Input/Port 4.InputAD0 to AD7
P50 to P57Input/Port 5.InputA8 to A15
P60Input/Port 6.Input—
P61output8-bit input/output port.
P62Input/output mode can be
P63specified bit-wise.
P64If used as an input port, an on-chipRD
P65pull-up resistor can be used byWR
P66software.WAIT
P67ASTB
P70Input/Port 7.InputSI2/RxD
P71output3-bit input/output port.SO2/TxD
P72Input/output mode can be specified bit-wise.SCK2/ASCK
Input/Output
output8-bit input/output port.
Input/output mode can be specified in 8-bit units.
If 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.
output8-bit input/output port.
LED 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 used by software.
If 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
78
(1) Port pins (3/3)
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
Pin Name
P120 to P127
P130 to P131
Input/Output
Input/Port 12.InputRTP0 to RTP7
output8-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 used by software.
Input/Port 13.Input
output2-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 used by software.
FunctionAfter Reset
Cautions For pins which have alternate functions as port output, do not execute the following
operations during A/D conversion. If performed, then the general error standards cannot
be maintained during A/D conversion.
<1> If it is used as a port, rewriting the output latch of its output.
<2> Even if it is not used as a port, changing the output level of pins used as outputs.
Alternate Function
ANO0 to ANO1
79
(2) Non-port pins (1/2)
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
Pin Name
INTP0InputExternal interrupt request inputs with specifiable valid edges (risingInputP00/TI00
INTP1edge, falling edge, both rising and falling edges).P01/TI01
INTP2P02
INTP3P03
INTP4P04
INTP5P05
INTP6P06
SI0InputSerial interface serial data inputInputP25/SB0/SDA0
SI1P20
SI2P70/RxD
SO0OutputSerial interface serial data outputInputP26/SB1/SDA1
SO1P21
SO2P71/TxD
SB0Input/Serial interface serial data input/outputInputP25/SI0/SDA0
SB1outputP26/SO0/SDA1
SDA0P25/SI0/SB0
SDA1P26/SO0/SB1
SCK0Input/Serial interface serial clock input/outputInputP27/SCL
SCK1outputP22
SCK2P72/ASCK
RxDInputAsynchronous serial interface serial data inputInputP70/SI2
TxDOutputAsynchronous serial interface serial data outputInputP71/SO2
ASCKInputAsynchronous serial interface serial clock inputInputP72/SCK2
TI00InputExternal count clock input to 16-bit timer (TM0)InputP00/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
TO0Output16-bit timer (TM0) output (also used for 14-bit PWM output)InputP30
TO18-bit timer (TM1) outputP31
TO28-bit timer (TM2) outputP32
PCLOutputClock output (for main system clock and subsystem clock trimming)InputP35
BUZOutputBuzzer outputInputP36
RTP0 to RTP7
Input/Output
OutputReal-time output port outputting data in synchronization with triggerInputP120 to P127
FunctionAfter Reset
Alternate Function
80
(2) Non-port pins (2/2)
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
Pin Name
AD0 to AD7
A8 to A15OutputHigh-order address bus when expanding external memoryInputP50 to P57
RDOutputStrobe signal output for read operation from external memoryInputP64
WRStrobe signal output for write operation to external memoryP65
WAITInputWait insertion when accessing external memoryInputP66
ASTBOutputStrobe output externally latching address information output to ports 4,InputP67
ANI0 to ANI7
ANO0, ANO1
AVREF0InputA/D converter reference voltage input——
AVREF1InputD/A converter reference voltage input——
AVDD—
AVSS—Ground potential (common with the port’s ground potential) of the A/D——
RESETInputSystem reset input——
X1InputCrystal connection for main system clock oscillation——
X2———
XT1InputCrystal connection for subsystem clock oscillationInputP07
XT2———
VDD—Positive power supply (Except the port)——
VPP—High-voltage application for program write/verify. Connect directly to——
VSS—Ground potential (Except the port)——
Input/Output
Input/Output
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
5 to access external memory
A/D converter analog power supply. (Common with the port power supply)
converter and D/A converter.
VSS in the normal operating mode.
FunctionAfter Reset
——
Alternate Function
Cautions 1. The AVDD pin is used in common as the power supply for the A/D converter and port.
If this device is used in application fields where reduction of noise generated internally
in the microprocessor is required, please connect to a separate power supply with the
same electrical potential as V
DD.
2. The AVSS pin is used as the ground potential for the A/D converter and
D/A convertor, and as the ground potential for the ports. If this device is used in
application fields where reduction of noise generated internally in the microprocessor
is required, please connect it to a ground line which is separate from V
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
When +5 V or +12.5 V is applied to the VPP pin or a low level voltage is applied to the RESET pin,
the PROM programming mode is set.
Data bus
82
CHAPTER 4 PIN FUNCTION (µPD78058FY 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 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
83
CHAPTER 4 PIN FUNCTION (µPD78058FY 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 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 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 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 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
84
CautionWhen this port is used as a serial interface pin, 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
Operating Mode Register 0 Format” and Figure 18-3 “Serial Operating Mode Register
1 Format.”
CHAPTER 4 PIN FUNCTION (µPD78058FY 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 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.
85
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
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.
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 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 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 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.
86
CHAPTER 4 PIN FUNCTION (µPD78058FY 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 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 pin, the I/O and output latches must be set
according to the function the user requires.
For the setting, refer to Table 19-2 “Serial Interface Channel 2 Operating Mode Settings of
List.”
87
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
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 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 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.
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 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 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 PM13× bit of the port mode register 13 (PM13) to 1 (input mode) and connect the pin
SS.
to V
• Set PM13× 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
REF1< VDD, the other pins
DD.
88
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
4.2.13 AVDD
This is the analog power supply pin of the A/D converter and the port’s power supply pin.
DD
voltage as that of the V
pin even when the A/D converter is not used.
Always use the same
4.2.14 AVSS
This is the ground potential pin for the A/D converter and D/A converter, and the ground potential pin for the port.
Even when the A/D converter and D/A converter are not used, always use the same potential as that of the VSS pin.
4.2.15 RESET
This is a low-level active system reset input pin.
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 (Except the port)
4.2.19 VSS
Ground potential pin (Except the port)
4.2.20 VPP (PROM versions only)
High-voltage apply pin for PROM programming mode setting and program write/verify. Connect directly to V
in normal operating mode.
When in the normal operating mode, connect directly to VSS.
SS
89
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
4.2.21 IC (Mask ROM version only)
The IC (Internally Connected) pin is provided to set the test mode to check the µPD78058FY Subseries at delivery.
Connect it directly to the V
SS 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 VSS pins directly.
VSSIC
As short as possible
90
CHAPTER 4 PIN FUNCTION (µPD78058FY 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 connection 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 Name
P00/INTP0/TI002InputConnect to VSS.
P01/INTP1/TI018-DInput/output
P02/INTP2
P03/INTP3
P04/INTP4
P05/INTP5
P06/INTP6
P07/XT116InputConnect to VDD
P10/ANI0 to P17/ANI711-CInput/outputConnect independently via a resistor
P20/SI18-DInput/outputto VDD or VSS.
P21/SO15-J
P22/SCK18-D
P23/STB5-J
P24/BUSY8-D
P25/SI0/SB0/SDA010-C
P26/SO0/SB1/SDA1
P27/SCK0/SCL
P30/TO05-JInput/output
P31/TO1
P32/TO2
P33/TI18-D
P34/TI2
P35/PCL5-J
P36/BUZ
P37
P40/AD0 to P47/AD75-OInput/output
P50/A8 to P57/A155-JInput/output
Input/Output
Circuit Type
Input/OutputRecommended Connection of Unused Pins
Connect independently via a resistor to V
Connect independently via a resistor to VDD.
Connect independently via a resistor to VDD or VSS.
SS.
91
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
Table 4-1. Pin Input/Output Circuit Types (2/2)
Pin Name
P60 to P63 (Mask ROM version)13-IInput/output
P60 to P63 (PROM version)13-HInput/output
P64/RD5-D
P65/WR
P66/WAIT
P67/ASTB
P70/SI2/RxD8-D
P71/SO2/TxD5-J
P72/SCK2/ASCK8-D
P120/RTP0 to P127/RTP75-J
P130/ANO0 to P131/ANO112-BInput/output
RESET2Input—
XT216 —Leave open.
AVREF0—Connect to VSS.
AVREF1Connect to VDD.
AVDDConnect to a separate power supply with
AVSSConnect to a separate ground with the
IC (Mask ROM version)Connect directly to VSS.
VPP (PROM version)
Input/Output
Circuit Type
Input/OutputRecommended Connection of Unused Pins
Connect independently via a resistor to VDD.
Connect independently via a resistor to VDD or VSS.
Connect independently via a resistor to VSS.
the same potential as VDD.
same potential as VSS.
92
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
Figure 4-1. List of Pin Input/Output Circuit (1/2)
Type 2
Type 8-D
pullup
enable
IN
data
Schmitt-Triggered Input with
Hysteresis Characteristics
output
disable
Type 5-J
pullup
enable
data
AV
DD
P-ch
AV
DD
P-ch
Type 10-C
pullup
enable
data
IN/OUT
output
disable
AV
N-ch
SS
open drain
output disable
input
enable
AV
Type 5-OType 11-C
DD
AV
AV
DD
P-ch
N-ch
SS
AV
AV
AV
DD
P-ch
N-ch
SS
DD
P-ch
AV
AV
IN/OUT
DD
P-ch
IN/OUT
DD
pullup
enable
data
output
disable
AV
AV
P-ch
N-ch
SS
pullup
P-ch
DD
enable
data
AV
DD
P-ch
P-ch
IN/OUT
IN/OUT
output
disable
comparator
P-ch
+
–
AV
V
REF
(Threshold voltage)
N-ch
AV
SS
N-ch
SS
input
enable
93
CHAPTER 4 PIN FUNCTION (µPD78058FY SUBSERIES)
Figure 4-1. List of Pin Input/Output Circuit (2/2)
Type 12-B
pullup
enable
data
output
disable
input
enable
Type 13-H
output disable
data
analog output
voltage
RD
P-ch
N-ch
AVDD
P-ch
N-ch
AVSS
AVSS
N-ch
AVDD
P-ch
AV
AV
SS
DD
P-ch
IN/OUT
IN/OUT
Type 13-I
output disable
data
Type 16
RD
medium breakdown
input buffer
feedback
cut-off
P-ch
Mask
Option
N-ch
AVSS
AVDD
P-ch
AV
DD
IN/OUT
medium breakdown
input buffer
XT2XT1
94
CHAPTER 5 CPU ARCHITECTURE
5.1 Memory Spaces
64-Kbyte memory spaces can be accessed in the µPD78058F, 78058FY Subseries.
Figures 5-1 to 5-3 show memory maps.
µ
Figure 5-1. Memory Map (
PD78056F, 78056FY)
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
95
CHAPTER 5 CPU ARCHITECTURE
Figure 5-2. Memory Map (µPD78058F, 78058FY)
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
Note When internal ROM size is 60 Kbytes, 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 56 Kbytes by the
memory size switching register (IMS).
96
CHAPTER 5 CPU ARCHITECTURE
Figure 5-3. Memory Map (µPD78P058F, µPD78P058FY)
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
Note When internal PROM size is 60 Kbytes, 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 56 Kbytes by the
memory size switching register (IMS).
97
CHAPTER 5 CPU ARCHITECTURE
5.1.1 Internal program memory space
The µPD78056F and µPD78056FY are Mask ROM with a 49152 x 8 bit configuration, the µPD78058F and
µ
PD78058FY are Mask ROM with a 61440 x 8 bit configuration and the µPD78P058F and µPD78P058FY are PROM
with a 61440 x 8 bit configuration. They store program and table data, etc. Normally, they are addressed by the
program counter (PC).
The areas shown below 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).
5.1.2 Internal data memory space
µ
PD78058F and 78058FY Subseries units incorporate the following RAMs.
The
(1) Internal high-speed RAM
This RAM has a 1024 x 8 bit configuration. 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) Internal buffer RAM
Internal buffer RAM is allocated to the 32-byte area from FAC0H to FADFH. The internal buffer RAM is used
to store transmit/receive data of serial interface channel 1 (in 3-wire serial I/O mode with automatic transfer/
receive function). If the 3-wire serial I/O mode with automatic transfer/receive function is not used, the internal
buffer RAM can also be used as normal RAM. Internal buffer RAM can also be used as normal RAM.
µ
(3) Internal expansion RAM (
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-3. Special-Function Register List in Section 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.
PD78058F, 78058FY, 78P058F, 78P058FY only)
99
CHAPTER 5 CPU ARCHITECTURE
5.1.5 Data memory addressing
The method to specify the address of the instruction to be executed next, or the address of a register or memory
to be manipulated when an instruction is executed is called addressing.
The address of the instruction to be executed next is addressed by the program counter PC (for details, refer to
Section 5.3 Instruction Address Addressing).
On the other hand, concerning addressing of memory which is the object of operations during execution of a
µ
command, in the
PD78058F and µPD78058FY Subseries, abundant addressing modes have been provided in
consideration of operability, etc. Particularly in areas (FB00H to FFFFH) where data memory is incorporated special
addressing which matches the respective functions of the special function register (SFR), general purpose register,
etc., is possible. Figure 5-4 to 5-6 show the data memory addressing modes. For details of each addressing, refer
to Section 5.4 Operand Address Addressing.
µ
Figure 5-4. Data Memory Addressing (
PD78056F, 78056FY)
FFFFH
FF20H
FF1FH
FF00H
FEFFH
FEE0H
FEDFH
FE20H
FE1FH
FB00H
FAFFH
FAE0H
FADFH
FAC0H
FABFH
FA80H
FA7FH
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
SFR Addressing
Register Addressing
Short Direct
Addressing
Direct Addressing
Register Indirect
Addressing
Based Addressing
Based Indexed
Addressing
100
External Memory
14976 × 8 bits
C000H
BFFFH
Internal ROM
49152 × 8 bits
0000H
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.