DATA SHEET
MOS INTEGRATED CIRCUIT
µ
PD78F4046
16-BIT SINGLE-CHIP MICROCONTROLLER
DESCRIPTION
The
µ
PD78F4046 is a product of the
µ
PD784046 Subseries in the 78K/IV Series.
The
µ
PD78F4046 has flash memory in place of the internal ROM of the
µ
PD784046. The incorporation of flash
memory allows a program to be written or erased while mounted on the target board.
Detailed function descriptions are provided in the following user’s manuals. Be sure to read them before
designing.
µ
PD784046 Subseries User’s Manual Hardware: U11515E
78K/IV Series User’s Manual Instruction:
U10905E
FEATURES
•
•
•
•
•
78K/IV Series
Pin compatible with
µ
PD784044, 784046 (except V
PP
pin)
Flash memory: 64 KB
Internal RAM:
2048 bytes
Operable with the same supply voltage as that of the mask ROM version: V
DD
= 4.5 to 5.5 V
APPLICATIONS
• Water heaters, vending machines, etc.
• FA fields such as robots, automated machine tools, etc.
ORDERING INFORMATION
Part Number
Package
80-pin plastic QFP (14
×
14 mm)
µ
PD78F4046GC-3B9
The information in this document is subject to change without notice. Before using this document, please
confirm that this is the latest version.
Not all devices/types available in every country. Please check with local NEC representative for
availability and additional information.
Document No. U11447EJ2V0DS00 (2nd edition)
Date Published August 2000 N CP(K)
Printed in Japan
The mark
shows major revised points.
©
1996, 2000
µ
PD78F4046
78K/IV SERIES LINEUP
: Products in mass production
: Products under development
Standard models
I
2
C bus supported
Multimaster I
2
C bus supported
µ
PD784038Y
µ
PD784038
Expanded internal memory capacity,
pin compatible with
µ
PD784026
Multimaster I
2
C
bus supported
µ
PD784216Y/
µ
PD784216AY
µ
PD784216/
µ
PD784216A
100 pins, enhanced I/O, expanded
internal memory capacity
µ
PD784225Y
µ
PD784225
80 pins, ROM correction added
µ
PD784026
Enhanced A/D, 16-bit timer,
power management
Multimaster I
2
C bus supported
µ
PD784218Y/
µ
PD784218AY
µ
PD784218/
µ
PD784218A
Expanded internal memory
capacity, ROM correction added
µ
PD784054
µ
PD784046
On-chip 10-bit A/D
ASSP models
µ
PD784967
µ
PD784956A
For DC inverter control
µ
PD784938A
µ
PD784908 with enhanced functions,
expanded internal memory capacity,
ROM correction added
Multimaster I
2
C bus supplied
µ
PD784908
On-chip IEBus
TM
controller
Enhanced functions of the
µ
PD784938A, enhanced
I/O and internal memory
capacity
µ
PD784915
Software servo control,
on-chip analog circuit
for VCR, enhanced timer
µ
PD784928Y
µ
PD784928
µ
PD784915 with enhanced functions
µ
PD784976A
On-chip VFD controller/driver
2
Data Sheet U11447EJ2V0DS00
µ
PD78F4046
OVERVIEW OF FUNCTIONS
Item
Number of basic
instructions (mnemonics)
General-purpose registers
Minimum instruction
execution time
Internal
memory
Memory space
I/O ports
Total
Input
I/O
Pins with
Pins with
ancillary
pull-up
Note
functions
resistors
Real-time output port
Timers
Flash memory
RAM
113
8 bits
×
16 registers
×
8 banks, or 16 bits
×
8 registers
×
8 banks (memory mapping)
125 ns (@16 MHz operation with internal clock)
64 KB
2048 bytes
1 MB with program/data combined
65
17
48
29
Function
4 bits
×
1
Timer 0:
(16 bits)
Timer 1:
(16 bits)
Timer counter
×
1
Capture/compare register
×
4
Timer counter
×
1
Compare register
×
2
Pulse output
• Toggle output
• Set/reset output
Pulse output
• Toggle output
• Set/reset output
Pulse output
• Toggle output
• PWM/PPG output
Timer/event counter 3: Timer counter
×
1
(16 bits)
Compare register
×
2
Timer 4:
(16 bits)
Timer counter
×
1
Compare register
×
2
Pulse output
• Toggle output
• PWM/PPG output
Pulse output
• Real-time output (4 bits
×
1)
Timer/event counter 2: Timer counter
×
1
(16 bits)
Compare register
×
2
A/D converter
Serial interface
Watchdog timer
Interrupts Sources
Software
Non-maskable
Maskable
10-bit resolution
×
16 channels
UART/IOE (3-wire serial I/O): 2 channels (with baud rate generator)
1 channel
27 (internal: 23, external: 8 (internal/external: 4)) + BRK instruction
BRK instruction
Internal: 1, external: 1
Internal: 22, external: 7 (internal/external: 4)
• 4 programmable priority levels
• 3 service modes: vectored interrupt/macro service/context switching
Bus sizing
Standby
Supply voltage
Package
8-bit/16-bit external data bus width selectable
HALT/STOP/IDLE modes
V
DD
= 4.5 to 5.5 V
80-pin plastic QFP (14
×
14 mm)
Note
The pins with ancillary functions are included in the I/O pins.
Data Sheet U11447EJ2V0DS00
3
µ
PD78F4046
CONTENTS
1. DIFFERENCES AMONG
µ
PD784046 SUBSERIES ........................................................................... 5
2. PIN CONFIGURATION (TOP VIEW) ................................................................................................... 6
3. SYSTEM CONFIGURATION EXAMPLE (AC SERVO MOTOR CONTROL) .................................... 8
4. BLOCK DIAGRAM ...............................................................................................................................9
5. PIN FUNCTIONS ................................................................................................................................ 10
5.1
5.2
5.3
Port Pins .................................................................................................................................................... 10
Non-Port Pins ............................................................................................................................................ 12
Pin I/O Circuits and Recommended Connection of Unused Pins ..................................................... 14
6. INTERNAL MEMORY SIZE SWITCHING REGISTER (IMS) ........................................................... 16
7. FLASH MEMORY PROGRAMMING ................................................................................................. 17
7.1
7.2
7.3
7.4
Selecting Communication Mode ............................................................................................................ 17
Function of Flash Memory Programming ............................................................................................. 18
Connection of Flashpro II and Flashpro III ........................................................................................... 18
Cautions When Writing to Flash Memory ............................................................................................. 19
8. ELECTRICAL SPECIFICATIONS ...................................................................................................... 21
9. PACKAGE DRAWING ........................................................................................................................32
10. RECOMMENDED SOLDERING CONDITIONS ............................................................................... 33
APPENDIX A. DEVELOPMENT TOOLS ................................................................................................34
APPENDIX B. RELATED DOCUMENTS ............................................................................................... 37
4
Data Sheet U11447EJ2V0DS00
µ
PD78F4046
1. DIFFERENCES AMONG
µ
PD784046 SUBSERIES
The only difference between the
µ
PD784044 and
µ
PD784046 is the internal memory capacity.
The
µ
PD78F4046 is a version of the
µ
PD784046 with the internal ROM replaced by flash memory.
The differences are shown in Table 1-1.
Table 1-1. Differences Among
µ
PD784046 Subseries
Part Number
Item
Internal ROM
Internal RAM
Function of pin 57
µ
PD784044
32 KB
(mask ROM)
1024 bytes
MODE
µ
PD784046
64 KB
(mask ROM)
2048 bytes
µ
PD78F4046
64 KB
(flash memory)
MODE/V
PP
Data Sheet U11447EJ2V0DS00
5