DATA SHEET
MOS INTEGRATED CIRCUIT
µ
PD784035(A), 784036(A)
16/8-BIT SINGLE-CHIP MICROCONTROLLER
The
µ
PD784036(A) is a product of the
µ
PD784038 sub-series in the 78K/IV series. A stricter quality assurance
program applies to the
µ
PD784036(A) than the
µ
PD784036 (standard product). In terms of the NEC quality, the
µ
PD784036(A) is classified as the special grade.
The
µ
PD784036(A) contains various peripheral hardware such as ROM, RAM, I/O ports, 8-bit resolution A/D and
D/A converters, timers, serial interface, and interrupt functions, as well as a high-speed, high-performance CPU.
In addition, the
µ
PD78P4038(A) (one-time PROM or EPROM product), which can be operated within the same
power supply voltage ranges as masked-ROM products, and development tools are supported.
For specific functions and other detailed information, consult the following user’s manual.
This manual is required reading for design work.
µ
PD784038, 784038Y Sub-Series User’s Manual, Hardware : U11316E
78K/IV Series User’s Manual, Instruction
: U10905E
FEATURES
• Higher reliability than the
µ
PD784036 (Refer to Qual-
ity Grade on NEC Semiconductor Devices (Document
number C11531E).)
• Minimum instruction execution time: 125 ns
(at 32 MHz)
• Number of I/O ports: 64
• Timer/counters
16-bit timer/counter
×
3 units
16-bit timer
×
1 unit
• A/D converter: 8-bit resolution
×
8 channels
• D/A converter: 8-bit resolution
×
2 channels
• Standby function
HALT/STOP/IDLE mode
• PWM outputs: 2
• Serial interface: 3 channels
UART/IOE (3-wire serial I/O): 2 channels
CSI (3-wire serial I/O, 2-wire serial I/O): 1 channel
• Clock frequency division function
• Watchdog timer: 1 channel
• Clock output function
Selected from f
CLK
, f
CLK/2
, f
CLK/4
, f
CLK/8
, or f
CLK/16
• Power supply voltage: V
DD
= 2.7 to 5.5 V
APPLICATIONS
Controllers for automobile electronic control systems, gas detector circuit-breakers, various types of safety
equipment, etc.
This manual describes the
µ
PD784036(A) unless otherwise specified.
The information in this document is subject to change without notice.
Document No. U13010EJ1V0DS00 (1st edition)
Date Published December 1997 J
Printed in Japan
©
1997
µ
PD784035(A), 784036(A)
ORDERING INFORMATION
Part number
Package
80-pin plastic QFP (14
×
14 mm)
80-pin plastic QFP (14
×
14 mm)
Internal ROM
(bytes)
48K
64K
Internal RAM
(bytes)
2 048
2 048
µ
PD784035GC(A)-×××-3B9
µ
PD784036GC(A)-×××-3B9
Remark
×××
is a ROM code suffix.
QUALITY GRADE
Part number
Package
80-pin plastic QFP (14
×
14 mm)
80-pin plastic QFP (14
×
14 mm)
Quality grade
Special
Special
µ
PD784035GC(A)-×××-3B9
µ
PD784036GC(A)-×××-3B9
Remark
×××
is a ROM code suffix.
Please refer to "Quality Grades on NEC Semiconductor Devices" (Document No. C11531E) published by
NEC Corporation to know the specification of quality grade on the devices and its recommended applications.
2
µ
PD784035(A), 784036(A)
78K/IV SERIES PRODUCT DEVELOPMENT DIAGRAM
: Under mass production
: Under development
I
2
C bus supported
Multimaster I
2
C bus supported
µ
PD784038Y
Standard models
µ
PD784225Y
µ
PD784225
80 pins,
added ROM correction
Multimaster I
2
C bus supported
µ
PD784038
Enhanced internal memory capacity,
pin compatible with the
µ
PD784026
Multimaster I
2
C bus supported
µ
PD784026
Enhanced A/D,
16-bit timer,
and power
management
µ
PD784216Y
µ
PD784216
100 pins,
enhanced I/O and
internal memory capacity
µ
PD784218Y
µ
PD784218
Enhanced internal memory capacity,
added ROM correction
µ
PD784054
µ
PD784046
ASSP models
Equipped with 10-bit A/D
µ
PD784955
For DC inverter control
µ
PD784908
Equipped with IEBus
TM
controller
µ
PD784943
For CD-ROM
Multimaster I
2
C bus supported
µ
PD784928Y
µ
PD784928
Enhanced function of the
µ
PD784915
µ
PD784915
For software servo control,
equipped with analog circuit
for VCR,
enhanced timer
3
µ
PD784035(A), 784036(A)
FUNCTIONS
Product
Item
Number of basic instructions
(mnemonics)
General-purpose register
Minimum instruction execution
time
Internal
memory
Memory space
I/O ports
Total
Input
Input/output
Additional
function
pins
Note
ROM
RAM
113
8 bits
×
16 registers
×
8 banks, or 16 bits
×
8 registers
×
8 banks (memory mapping)
125 ns/250 ns/500 ns/1 000 ns (at 32 MHz)
48K bytes
2 048 bytes
Program and data: 1M byte
64
8
56
64K bytes
µ
PD784035(A)
µ
PD784036(A)
Pins with pull- 54
up resistor
LED direct
drive outputs
Transistor
direct drive
24
8
4 bits
×
2, or 8 bits
×
1
Timer/counter 0:
(16 bits)
Timer register
×
1
Capture register
×
1
Compare register
×
2
Timer register
×
1
Capture register
×
1
Capture/compare register
×
1
Compare register
×
1
Timer register
×
1
Capture register
×
1
Capture/compare register
×
1
Compare register
×
1
Timer register
×
1
Compare register
×
1
Pulse output capability
•
Toggle output
•
PWM/PPG output
•
One-shot pulse output
Pulse output capability
•
Real-time output (4 bits
×
2)
Real-time output ports
Timer/counter
Timer/counter 1:
(8/16 bits)
Timer/counter 2:
(8/16 bits)
Pulse output capability
•
Toggle output
•
PWM/PPG output
Timer 3
(8/16 bits)
PWM outputs
Serial interface
A/D converter
D/A converter
Clock output
Watchdog timer
Standby
Interrupt
Hardware source
Software source
Nonmaskable
Maskable
:
12-bit resolution
×
2 channels
UART/IOE (3-wire serial I/O)
: 2 channels (incorporating baud rate generator)
CSI (3-wire serial I/O, 2-wire serial I/O): 1 channel
8-bit resolution
×
8 channels
8-bit resolution
×
2 channels
Selected from f
CLK
, f
CLK
/2, f
CLK
/4, f
CLK
/8, f
CLK
/16 (can be used as a 1-bit output port)
1 channel
HALT/STOP/IDLE mode
23 (16 internal, 7 external (sampling clock variable input: 1))
BRK instruction, BRKCS instruction, operand error
1 internal, 1 external
15 internal, 6 external
•
4-level programmable priority
•
3 operation statuses: vectored interrupt, macro service, context switching
Supply voltage
Package
V
DD
= 2.7 to 5.5 V
80-pin plastic QFP (14
×
14 mm)
Note
Additional function pins are included in the I/O pins.
4
µ
PD784035(A), 784036(A)
CONTENTS
1.
2.
3.
4.
5.
DIFFERENCES BETWEEN
µ
PD784038 SUB-SERIES SPECIAL PRODUCTS ....................
DIFFERENCES BETWEEN STANDARD AND SPECIAL PRODUCTS ..................................
PIN CONFIGURATION (TOP VIEW) .........................................................................................
BLOCK DIAGRAM .....................................................................................................................
LIST OF PIN FUNCTIONS .........................................................................................................
5.1
5.2
5.3
Port Pins ............................................................................................................................................
Non-Port Pins ...................................................................................................................................
I/O Circuits for Pins and Handling of Unused Pins ....................................................................
7
7
8
10
11
11
13
15
6.
CPU ARCHITECTURE ...............................................................................................................
6.1
6.2
Memory Space ..................................................................................................................................
CPU Registers ..................................................................................................................................
6.2.1
6.2.2
6.2.3
General-purpose registers ................................................................................................
Control registers ................................................................................................................
Special function registers (SFRs) ....................................................................................
18
18
21
21
22
23
7.
PERIPHERAL HARDWARE FUNCTIONS ................................................................................
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
Ports ...................................................................................................................................................
Clock Generator ...............................................................................................................................
Real-Time Output Port .....................................................................................................................
Timers/Counters ...............................................................................................................................
PWM Output (PWM0, PWM1) ..........................................................................................................
A/D Converter ...................................................................................................................................
D/A Converter ...................................................................................................................................
Serial Interface .................................................................................................................................
7.8.1
7.8.2
7.9
Asynchronous serial interface/three-wire serial I/O (UART/IOE) ................................
Synchronous serial interface (CSI) ..................................................................................
28
28
29
31
32
34
35
36
37
38
40
41
42
42
Clock Output Function ....................................................................................................................
7.10 Edge Detection Function ................................................................................................................
7.11 Watchdog Timer ...............................................................................................................................
8.
INTERRUPT FUNCTION ............................................................................................................
8.1
8.2
8.3
8.4
8.5
Interrupt Source ...............................................................................................................................
Vectored Interrupt ............................................................................................................................
Context Switching ............................................................................................................................
Macro Service ...................................................................................................................................
Examples of Macro Service Applications .....................................................................................
43
43
45
46
46
47
5