ChipFind - документация

Электронный компонент: UPD784218GC

Скачать:  PDF   ZIP

Document Outline

DATA SHEET
1997, 2000
MOS INTEGRATED CIRCUIT
PD784218, 784218Y
16-/8-BIT SINGLE-CHIP MICROCONTROLLERS
Document No. U12304EJ2V0DS00 (2nd edition)
Date Published March 2000 N CP(K)
Printed in Japan
DESCRIPTION
The
PD784218 is a member of the
PD784218 Subseries of the 78K/IV Series. In addition to a high-speed and
high-performance CPU, the
PD784218 incorporates a variety of peripheral hardware such as ROM, RAM, I/O ports,
8-bit resolution A/D and D/A converters, timers, serial interfaces, real-time output ports, and an interrupt function.
The
PD784218Y
Note
is the
PD784218 Subseries with a multi-master supporting I
2
C bus interface added.
Flash memory versions, the
PD78F4218 and 78F4218Y, which can operate in the same voltage range as the
mask ROM versions, and various development tools are also available.
Note Under development
Detailed function descriptions are provided in the following user's manuals. Be sure to read them before
designing.
PD784218, 784218Y Subseries User's Manual Hardware: U12970E
78K/IV Series User's Manual Instructions:
U10905E
The mark shows major revised points.
FEATURES
On-chip ROM correction function
Inherits peripheral functions of
PD78078Y Subseries
Minimum instruction execution time
160 ns
(@ f
XX
= 12.5 MHz operation with main system clock)
61
s
(@ f
XT
= 32.768 kHz operation with subsystem clock)
Internal high-capacity memory
ROM: 256 KB
RAM: 12,800 bytes
I/O ports: 86
Timer/counters: 16-bit timer/event counter
1 unit
8-bit timer/event counter
6 units
Serial interfaces: 3 channels
UART/IOE (3-wire serial I/O): 2 channels
CSI (3-wire serial I/O, multi-master supporting I
2
C
bus
Note
): 1 channel
Standby function
HALT/STOP/IDLE mode
In power-saving mode: HALT/IDLE mode (with
subsystem clock)
Clock division function
Watch timer: 1 channel
Watchdog timer: 1 channel
Clock output function
Selectable from f
XX
, f
XX
/2, f
XX
/2
2
, f
XX
/2
3
, f
XX
/2
4
,
f
XX
/2
5
, f
XX
/2
6
, f
XX
/2
7
, f
XT
Buzzer output function
Selectable from f
XX
/2
10
, f
XX
/2
11
, f
XX
/2
12
, f
XX
/2
13
A/D converter: 8-bit resolution
8 channels
D/A converter: 8-bit resolution
2 channels
Supply voltage: V
DD
= 2.2 to 5.5 V
Note
PD784218Y only
Unless otherwise specified, references in this document to the
PD784218 refer to the
PD784218 and
the
PD784218Y.
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.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
2
APPLICATIONS
Cellular phones, personal handy phone system (PHS), cordless telephones, CD-ROM, AV equipment
ORDERING INFORMATION
Part Number
Package
Internal ROM Internal RAM
(Bytes)
(Bytes)
PD784218GC-
-8EU
100-pin plastic LQFP (fine pitch) (14
14 mm)
256 K
12,800
PD784218GF-
-3BA
100-pin plastic QFP (14
20 mm)
256 K
12,800
PD784218YGC-
-8EU
Note
100-pin plastic LQFP (fine pitch) (14
14 mm)
256 K
12,800
PD784218YGF-
-3BA
Note
100-pin plastic QFP (14
20 mm)
256 K
12,800
Note Under development
Remark
indicates ROM code suffix.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
3
78K/IV SERIES LINEUP
PD784026
PD784956A
PD784908
PD784915
PD784928
PD784928Y
PD784046
PD784054
PD784216
PD784216Y
PD784038
PD784038Y
PD784225Y
PD784225
PD784218Y
PD784218
Enhanced
A/D converter,
16-bit timer, and
power management
Enhanced internal memory capacity
Pin-compatible with the PD784026
I
2
C bus supported
Multi-master I
2
C bus supported
80-pin, ROM correction added
Multi-master I
2
C bus supported
Enhanced internal memory
capacity, ROM correction added
100-pin, enhanced I/O and
internal memory capacity
On-chip 10-bit A/D converter
For DC inverter control
On-chip IEBus
TM
controller
Software servo control
On-chip analog circuit for VCRs
Enhanced timer
Multi-master I
2
C bus supported
Enhanced functions
of the PD784915
Standard models
ASSP models
Multi-master I
2
C bus supported
: Under mass production
: Under development
PD784967
On-chip FIP controller/driver
PD784938
Enhanced functions of the
PD784908, enhanced
internal memory capacity,
ROM correction added.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
4
OVERVIEW OF FUNCTIONS (1/2)
Part Number
PD784218,
PD784218Y
Note 1
Item
Number of basic instructions
113
(mnemonics)
General-purpose registers
8 bits
16 registers
8 banks, or 16 bits
8 registers
8 banks (memory mapping)
Minimum instruction execution
160 ns/320 ns/640 ns/1,280 ns/2,560 ns (@ f
XX
= 12.5 MHz operation with main system clock)
time
61
s (@ f
XT
= 32.768 kHz operation with subsystem clock)
Internal
ROM
256 KB
memory
RAM
12,800 bytes
Memory space
1 MB with program and data spaces combined
I/O ports
Total
86
CMOS input
8
CMOS I/O
72
N-ch open-drain I/O
6
Pins with pull-up
70
resistor
LED direct
22
drive outputs
Middle-
6
voltage pins
Real-time output port
4 bits
2, or 8 bits
1
Timer/counters
Timer/event counter:
Timer counter
1
Pulse output
(16-bit)
Capture/compare register
2
PPG output
Square wave output
One-shot pulse output
Timer/event counter 1:
Timer counter
1
Pulse output
(8-bit)
Compare register
1
PWM output
Square wave output
Timer/event counter 2:
Timer counter
1
Pulse output
(8-bit)
Compare register
1
PWM output
Square wave output
Timer/event counter 5:
Timer counter
1
Pulse output
(8-bit)
Compare register
1
PWM output
Square wave output
Timer/event counter 6:
Timer counter
1
Pulse output
(8-bit)
Compare register
1
PWM output
Square wave output
Timer/event counter 7:
Timer counter
1
Pulse output
(8-bit)
Compare register
1
PWM output
Square wave output
Timer/event counter 8:
Timer counter
1
Pulse output
(8-bit)
Compare register
1
PWM output
Square wave output
Serial interfaces
UART/IOE (3-wire serial I/O): 2 channels (on-chip baud rate generator)
CSI (3-wire serial I/O, multi-master supporting I
2
C bus
Note 3
): 1 channel
A/D converter
8-bit resolution
8 channels
D/A converter
8-bit resolution
2 channels
Notes 1. Under development
2. The pins with ancillary functions are included in the I/O pins.
3.
PD784218Y only
Pins with
ancillary
functions
Note 2
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
5
OVERVIEW OF FUNCTIONS (2/2)
Part Number
PD784218,
PD784218Y
Note
Item
Clock output
Selectable from f
XX
, f
XX
/2, f
XX
/2
2
, f
XX
/2
3
, f
XX
/2
4
, f
XX
/2
5
, f
XX
/2
6
, f
XX
/2
7
, f
XT
Buzzer output
Selectable from f
XX
/2
10
, f
XX
/2
11
, f
XX
/2
12
, f
XX
/2
13
Watch timer
1 channel
Watchdog timer
1 channel
Standby
HALT/STOP/IDLE modes
In low-power consumption mode (with subsystem clock): HALT/IDLE mode
Interrupts
Hardware sources
29 (internal: 20, external: 9)
Software sources
BRK instruction, BRKCS instruction, operand error
Non-maskable
Internal: 1, external: 1
Maskable
Internal: 19, external: 8
4 programmable priority levels
3 service modes: vectored interrupt/macro service/context switching
Supply voltage
V
DD
= 2.2 to 5.5 V
Package
100-pin plastic LQFP (fine pitch) (14
14 mm)
100-pin plastic QFP (14
20 mm)
Note Under development
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
6
CONTENTS
1.
DIFFERENCES AMONG MODELS IN
PD784218, 784218Y SUBSERIES ...............................
8
2.
DIFFERENCES BETWEEN
PD784218 AND
PD784216 ..........................................................
8
3.
MAJOR DIFFERENCES FROM
PD78078, 78078Y SUBSERIES ..............................................
9
4.
PIN CONFIGURATION (TOP VIEW) ..............................................................................................
10
5.
BLOCK DIAGRAM ..........................................................................................................................
13
6.
PIN FUNCTIONS .............................................................................................................................
14
6.1
Port Pins ................................................................................................................................ 14
6.2
Non-Port Pins .......................................................................................................................
16
6.3
Pin I/O Circuits and Recommended Connections of Unused Pins ..............................
18
7.
CPU ARCHITECTURE ....................................................................................................................
22
7.1
Memory Space ......................................................................................................................
22
7.2
CPU Registers ......................................................................................................................
24
7.2.1 General-purpose registers ..........................................................................................................
24
7.2.2 Control registers ..........................................................................................................................
25
7.2.3 Special function registers (SFRs) ...............................................................................................
26
8.
PERIPHERAL HARDWARE FUNCTION FEATURES ...................................................................
31
8.1
Ports ....................................................................................................................................... 31
8.2
Clock Generator ...................................................................................................................
32
8.3
Real-Time Output Port .........................................................................................................
34
8.4
Timer/Event Counter ............................................................................................................
35
8.5
A/D Converter .......................................................................................................................
37
8.6
D/A Converter .......................................................................................................................
38
8.7
Serial Interfaces ...................................................................................................................
39
8.7.1 Asynchronous serial interface/3-wire serial I/O (UART/IOE) ....................................................
40
8.7.2 Clocked serial interface (CSI) .....................................................................................................
42
8.8
Clock Output Function ........................................................................................................
43
8.9
Buzzer Output Function ......................................................................................................
44
8.10 Edge Detection Function ....................................................................................................
44
8.11 Watch Timer ..........................................................................................................................
44
8.12 Watchdog Timer ...................................................................................................................
45
9.
INTERRUPT FUNCTION.................................................................................................................
46
9.1
Interrupt Sources .................................................................................................................
46
9.2
Vectored Interrupt ................................................................................................................
48
9.3
Context Switching ................................................................................................................
49
9.4
Macro Service .......................................................................................................................
49
9.5
Application Example of Macro Service .............................................................................
50
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
7
10. LOCAL BUS INTERFACE ..............................................................................................................
51
10.1 Memory Expansion ..............................................................................................................
52
10.2 Programmable Wait .............................................................................................................
52
10.3 External Access Status Function ......................................................................................
52
11. STANDBY FUNCTION .....................................................................................................................
53
12. RESET FUNCTION..........................................................................................................................
55
13. ROM CORRECTION .......................................................................................................................
56
14. INSTRUCTION SET ........................................................................................................................
57
15. ELECTRICAL SPECIFICATIONS ...................................................................................................
62
16. PACKAGE DRAWINGS ..................................................................................................................
81
17. RECOMMENDED SOLDERING CONDITIONS .............................................................................
83
APPENDIX A DEVELOPMENT TOOLS ..............................................................................................
84
APPENDIX B RELATED DOCUMENTS .............................................................................................
87
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
8
1. DIFFERENCES AMONG MODELS IN
PD784218, 784218Y SUBSERIES
The
PD784218Y is the
PD784218 with I
2
C bus control added.
The
PD78F4218 and 78F4218Y are provided with a 256 KB flash memory instead of the mask ROM of the above
models. These differences are summarized in Table 1-1.
Table 1-1. Differences Among Models in
PD784218, 784218Y Subseries
Part Number
PD784218,
PD784218Y
PD78F4218,
PD78F4218Y
Item
Internal ROM
256 KB
256 KB
(mask ROM)
(Flash memory)
Internal RAM
12,800 bytes
Internal memory
None
Provided
Note
size switching
register (IMS)
Supply voltage
V
DD
= 2.2 to 5.5 V
V
DD
= 2.7 to 5.5 V
Electrical
Refer to the data sheet for each device.
specifications
Recommended
soldering
conditions
TEST pin
Provided
None
V
PP
pin
None
Provided
Note The internal flash memory capacity and internal RAM capacity can be changed using the internal
memory size switching register (IMS).
Caution
There are differences in noise immunity and noise radiation between the flash memory
and mask ROM versions. When pre-producing an application set with the flash memory
version and then mass-producing it with the mask ROM version, be sure to conduct
sufficient evaluations on the commercial samples (not engineering samples) of the mask
ROM version.
2. DIFFERENCES BETWEEN
PD784218 AND
PD784216
Table 2-1 shows the differences between the
PD784218 and
PD784216.
Table 2-1. Differences between
PD784218 and
PD784216
Part Number
PD784218
PD784216
Item
Internal ROM
256 KB
128 KB
Internal RAM
12,800 bytes
8,192 bytes
ROM correction
Provided
None
External access status function
Provided
None
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
9
3. MAJOR DIFFERENCES FROM
PD78078, 78078Y SUBSERIES
Series Name
PD784218, 784218Y Subseries
PD78078, 78078Y Subseries
Item
CPU
16-bit CPU
8-bit CPU
Minimum instruction
With main
160 ns (@ 12.5 MHz operation)
400 ns (@ 5.0 MHz operation)
execution time
system clock
With subsystem
61
s (@ 32.768 kHz operation)
122
s (@ 32.768 kHz operation)
clock
Memory space
1 MB
64 KB
I/O ports
Total
86
88
CMOS input
8
2
CMOS I/O
72
78
N-ch open-drain I/O
6
8
Pins with ancillary
Pins with pull-up
70
86
functions
Note 1
resistor
LED direct drive
22
16
outputs
Middle-voltage pins
6
8
Timer/counters
16-bit timer/event counter
1 unit
16-bit timer/event counter
1 unit
8-bit timer/event counter
6 units
8-bit timer/event counter
4 units
Serial interfaces
UART/IOE (3-wire serial I/O)
UART/IOE (3-wire serial I/O)
2 channels
1 channel
CSI (3-wire serial I/O, multi-master
CSI (3-wire serial I/O, 2-wire serial
supporting I
2
C bus
Note 2
)
I/O, I
2
C bus
Note 3
)
1 channel
1 channel
CSI (3-wire serial I/O, 3-wire serial
I/O with automatic transmit/receive
function)
1 channel
Interrupts
NMI pin
Provided
None
Macro service
Provided
None
Context switching
Provided
None
Programmable priority
4 levels
None
Standby function
HALT/STOP/IDLE modes
HALT/STOP modes
In low-power consumption mode:
HALT/IDLE modes
ROM correction
Provided
None
External access status function
Provided
None
Package
100-pin plastic LQFP (fine pitch)
100-pin plastic LQFP (fine pitch)
(14
14 mm)
(14
14 mm)
100-pin plastic QFP (14
20 mm)
100-pin plastic QFP (14
20 mm)
100-pin ceramic WQFN
(14
20 mm) (
PD78P078 and
78P078Y only)
Notes 1. The pins with ancillary functions are included in the I/O pins.
2.
PD784218Y Subseries only
3.
PD78078Y Subseries only
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
10
4. PIN CONFIGURATION (TOP VIEW)
100-pin plastic LQFP (fine pitch) (14
14 mm)
PD784218GC-
-8EU, 784218YGC-
-8EU
Note 5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
100
76
P120/RTP0
P121/RTP1
P122/RTP2
P123/RTP3
P124/RTP4
P125/RTP5
P126/RTP6
P127/RTP7
V
DD
X2
X1
V
SS
XT2
XT1
RESET
P00/INTP0
P01/INTP1
P02/INTP2/NMI
P03/INTP3
P04/INTP4
P05/INTP5
P06/INTP6
AV
DD
Note 2
AV
REF0
P10/ANI0
P62/A18
P61/A17
P60/A16
V
SS
P57/A15
P56/A14
P55/A13
P54/A12
P53/A11
P52/A10
P51/A9
P50/A8
P47/AD7
P46/AD6
P45/AD5
P44/AD4
P43/AD3
P42/AD2
P41/AD1
P40/AD0
P87/A7
P86/A6
P85/A5
P84/A4
P83/A3
P95
P94
P93
P92
P91
P90
TEST
Note 1
P37/EXA
P36/TI01
P35/TI00
P34/TI2
P33/TI1
P32/TO2
P31/TO1
P30/TO0
P103/TI8/TO8
P102/TI7/TO7
P101/TI6/TO6
P100/TI5/TO5
V
DD
P67/ASTB
P66/WAIT
P65/WR
P64/RD
P63/A19
P11/ANI1
P12/ANI2
P13/ANI3
P14/ANI4
P15/ANI5
P16/ANI6
P17/ANI7
AV
SS
Note 3
P130/ANO0
P131/ANO1
AV
REF1
P70/RxD2/SI2
P71/TxD2/SO2
P72/ASCK2/SCK2
P20/RxD1/SI1
P21/TxD1/SO1
P22/ASCK1/SCK1
P23/PCL
P24/BUZ
P25/SI0/SDA0
Note 4
P26/SO0
P27/SCK0/SCL0
Note 4
P80/A0
P81/A1
P82/A2
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
26
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
Notes 1. Connect the TEST pin directly to V
SS
or pull down. For the pull-down connection, use of a resistor whose
resistance is between 470
and 10 k
is recommended.
2. Connect the AV
DD
pin to V
DD
.
3. Connect the AV
SS
pin to V
SS
.
4. The SCL0 and SDA0 pins are incorporated only in the
PD784218Y.
5. Under development
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
11
100-pin plastic QFP (14
20 mm)
PD784218GF-
-3BA, 784218YGF-
-3BA
Note 5
100
V
SS
P57/A15
P56/A14
P55/A13
P54/A12
P53/A11
P52/A10
P51/A9
P50/A8
P47/AD7
P46/AD6
P45/AD5
P44/AD4
P43/AD3
P42/AD2
P41/AD1
P40/AD0
P87/A7
P86/A6
P85/A5
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
P84/A4
P83/A3
P82/A2
P81/A1
P80/A0
P27/SCK0/SCL0
Note 4
P26/SO0
P25/SI0/SDA0
Note 4
P24/BUZ
P23/PCL
P22/ASCK1/SCK1
P21/TxD1/SO1
P20/RxD1/SI1
P72/ASCK2/SCK2
P71/TxD2/SO2
P70/RxD2/SI2
AV
REF1
P131/ANO1
P130/ANO0
AV
SS
Note 3
P17/ANI7
P16/ANI6
P15/ANI5
P14/ANI4
P13/ANI3
P12/ANI2
P11/ANI1
P10/ANI0
AV
REF0
AV
DD
Note 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
P60/A16
P61/A17
P62/A18
P63/A19
P64/RD
P65/WR
P66/WAIT
P67/ASTB
V
DD
P100/TI5/TO5
P101/TI6/TO6
P102/TI7/TO7
P103/TI8/TO8
P30/TO0
P31/TO1
P32/TO2
P33/TI1
P34/TI2
P35/TI00
P36/TI01
P37/EXA
TEST
Note 1
P90
P91
P92
P93
P94
P95
P120/RTP0
P121/RTP1
P122/RTP2
P123/RTP3
P124/RTP4
P125/RTP5
P126/RTP6
P127/RTP7
V
DD
X2
X1
V
SS
XT2
XT1
RESET
P00/INTP0
P01/INTP1
P02/INTP2/NMI
P03/INTP3
P04/INTP4
P05/INTP5
P06/INTP6
31
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
Notes 1. Connect the TEST pin directly to V
SS
or pull down. For the pull-down connection, use of a resistor whose
resistance is between 470
and 10 k
is recommended.
2. Connect the AV
DD
pin to V
DD
.
3. Connect the AV
SS
pin to V
SS
.
4. The SCL0 and SDA0 pins are incorporated only in the
PD784218Y.
5. Under development
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
12
A0 to A19:
Address Bus
AD0 to AD7:
Address/Data Bus
ANI0 to ANI7:
Analog Input
ANO0, ANO1:
Analog Output
ASCK1, ASCK2
Asynchronous Serial Clock
ASTB:
Address Strobe
AV
DD
:
Analog Power Supply
AV
REF0
, AV
REF1
:
Analog Reference Voltage
AV
SS
:
Analog Ground
BUZ:
Buzzer Clock
EXA:
External Access Status Output
INTP0 to INTP6:
Interrupt from Peripherals
NMI:
Non-maskable Interrupt
P00 to P06:
Port 0
P10 to P17:
Port 1
P20 to P27:
Port 2
P30 to P37:
Port 3
P40 to P47:
Port 4
P50 to P57:
Port 5
P60 to P67:
Port 6
P70 to P72:
Port 7
P80 to P87:
Port 8
P90 to P95:
Port 9
P100 to P103:
Port 10
P120 to P127:
Port 12
P130, P131:
Port 13
PCL:
Programmable Clock
RD:
Read Strobe
RESET:
Reset
RTP0 to RTP7:
Real-time Output Port
RxD1, RxD2:
Receive Data
SCK0 to SCK2:
Serial Clock
SCL0
Note
:
Serial Clock
SDA0
Note
:
Serial Data
SI0 to SI2:
Serial Input
SO0 to SO2:
Serial Output
TEST:
Test
TI00, TI01,
TI1, TI2, TI5 to TI8:
Timer Input
TO0 to TO2, TO5 to TO8: Timer Output
TxD1, TxD2:
Transmit Data
V
DD
:
Power Supply
V
SS
:
Ground
WAIT:
Wait
WR:
Write Strobe
X1, X2:
Crystal (Main System Clock)
XT1, XT2:
Crystal (Subsystem Clock)
Note The SCL0 and SDA0 pins are incorporated only in the
PD784218Y.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
13
5. BLOCK DIAGRAM
INTP2/NMI
INTP0, INTP1,
INTP3 to INTP6
Programmable
interrupt
controller
Real-time
output port
Timer/event
counter 7
(8 bits)
Timer/event
counter 6
(8 bits)
Timer/event
counter 5
(8 bits)
Timer/event
counter 2
(8 bits)
Timer/event
counter 1
(8 bits)
Timer/event
counter
(16 bits)
Watch timer
Timer/event
counter 8
(8 bits)
Watchdog timer
TI00
TI01
TO0
TI1
TO1
TI2
TO2
TI5/TO5
TI6/TO6
TI7/TO7
TI8/TO8
NMI/INTP2
P03
RTP0 to RTP7
Clock output
control
A/D
converter
AV
DD
AV
SS
PCL
BUZ
AV
REF0
ANI0 to ANI7
D/A
converter
ANO0
AV
SS
AV
REF1
ANO1
78K/IV
CPU core
ROM
RAM
Baud-rate
generator
RxD1/SI1
TxD1/SO1
ASCK1/SCK1
RxD2/SI2
TxD2/SO2
ASCK2/SCK2
SI0/SDA0
Note
SO0
SCK0/SCL0
Note
Bus I/F
UART/IOE1
RD
EXA
ASTB
WR
WAIT
A0 to A7
AD0 to AD7
A8 to A15
A16 to A19
Port 1
P10 to P17
Port 0
P00 to P06
Port 2
P20 to P27
Port 3
P30 to P37
Port 4
P40 to P47
Port 5
P50 to P57
Port 6
P60 to P67
Port 7
P70 to P72
Port 8
P80 to P87
Port 9
P90 to P95
Port 10
P100 to P103
Port 12
P120 to P127
Port 13
P130,P131
Buzzer output
System control
RESET
XT2
X1
XT1
X2
V
SS
V
DD
TEST
Clocked
serial
interface
Baud-rate
generator
UART/IOE2
Note SDA0 and SCL0 are incorporated only in the
PD784218Y and support the I
2
C bus interface.
Remark The internal ROM capacity varies depending on the product.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
14
6. PIN FUNCTIONS
6.1 Port Pins (1/2)
Pin Name
I/O
Alternate Function
Function
P00
I/O
INTP0
P01
INTP1
P02
INTP2/NMI
P03
INTP3
P04
INTP4
P05
INTP5
P06
INTP6
P10 to P17
Input
ANI0 to ANI7
P20
I/O
RxD1/SI1
P21
TxD1/SO1
P22
ASCK1/SCK1
P23
PCL
P24
BUZ
P25
SI0/SDA0
Note
P26
SO0
P27
SCK0/SCL0
Note
P30
I/O
TO0
P31
TO1
P32
TO2
P33
TI1
P34
TI2
P35
TI00
P36
TI01
P37
EXA
P40 to P47
I/O
AD0 to AD7
Port 4 (P4):
8-bit I/O port
Input/output can be specified in 1-bit units.
All pins set in input mode can be connected to on-chip pull-up
resistors by means of software.
LEDs can be driven directly.
P50 to P57
I/O
A8 to A15
Port 5 (P5):
8-bit I/O port
Input/output can be specified in 1-bit units.
All pins set in input mode can be connected to on-chip pull-up
resistors by means of software.
LEDs can be driven directly.
Note SDA0 and SCL0 are incorporated only in the
PD784218Y.
Port 1 (P1):
8-bit input-only port
Port 0 (P0):
7-bit I/O port
Input/output can be specified in 1-bit units.
Whether specifying input mode or output mode, use of an on-chip
pull-up resistor can be specified in 1-bit units by means of
software.
Port 2 (P2):
8-bit I/O port
Input/output can be specified in 1-bit units.
Whether specifying input mode or output mode, use of an on-chip
pull-up resistor can be specified in 1-bit units by means of
software.
Port 3 (P3):
8-bit I/O port
Input/output can be specified in 1-bit units.
Whether specifying input mode or output mode, use of an on-chip
pull-up resistor can be specified in 1-bit units by means of
software.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
15
6.1 Port Pins (2/2)
Pin Name
I/O
Alternate Function
Function
P60
I/O
A16
P61
A17
P62
A18
P63
A19
P64
RD
P65
WR
P66
WAIT
P67
ASTB
P70
I/O
RxD2/SI2
P71
TxD2/SO2
P72
ASCK2/SCK2
P80 to P87
I/O
A0 to A7
Port 8 (P8):
8-bit I/O port
Input/output can be specified in 1-bit units.
Whether specifying input mode or output mode, use of an on-chip
pull-up resistor can be specified in 1-bit units by means of
software.
The interrupt control flag (KRIF) is set to 1 when the falling edge is
detected at a pin of this port.
P90 to P95
I/O
--
Port 9 (P9):
N-ch open-drain middle-voltage I/O port
6-bit I/O port
Input/output can be specified in 1-bit units.
LEDs can be driven directly.
P100
I/O
TI5/TO5
P101
TI6/TO6
P102
TI7/TO7
P103
TI8/TO8
P120 to P127
I/O
RTP0 to RTP7
Port 12 (P12):
8-bit I/O port
Input/output can be specified in 1-bit units.
Whether specifying input mode or output mode, use of an on-chip
pull-up resistor can be specified in 1-bit units by means of
software.
P130, P131
I/O
ANO0, ANO1
Port 13 (P13):
2-bit I/O port
Input/output can be specified in 1-bit units.
Port 6 (P6):
8-bit I/O port
Input/output can be specified in 1-bit units.
All pins set in input mode can be connected to on-chip pull-up
resistors by means of software.
Port 7 (P7):
3-bit I/O port
Input/output can be specified in 1-bit units.
Whether specifying input mode or output mode, use of an on-chip
pull-up resistor can be specified in 1-bit units by means of
software.
Port 10 (P10):
4-bit I/O port
Input/output can be specified in 1-bit units.
Whether specifying input mode or output mode, use of an on-chip
pull-up resistor can be specified in 1-bit units by means of software.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
16
6.2 Non-Port Pins (1/2)
Pin Name
I/O
Alternate Function
Function
TI00
Input
P35
External count clock input to 16-bit timer counter
TI01
P36
Capture trigger signal input to capture/compare register 00
TI1
P33
External count clock input to 8-bit timer counter 1
TI2
P34
External count clock input to 8-bit timer counter 2
TI5
P100/TO5
External count clock input to 8-bit timer counter 5
TI6
P101/TO6
External count clock input to 8-bit timer counter 6
TI7
P102/TO7
External count clock input to 8-bit timer counter 7
TI8
P103/TO8
External count clock input to 8-bit timer counter 8
TO0
Output
P30
16-bit timer output (also used as 14-bit PWM output)
TO1
P31
8-bit timer output (also used as 8-bit PWM output)
TO2
P32
TO5
P100/TI5
TO6
P101/TI6
TO7
P102/TI7
TO8
P103/TI8
RxD1
Input
P20/SI1
Serial data input (UART1)
RxD2
P70/SI2
Serial data input (UART2)
TxD1
Output
P21/SO1
Serial data output (UART1)
TxD2
P71/SO2
Serial data output (UART2)
ASCK1
Input
P22/SCK1
Baud rate clock input (UART1)
ASCK2
P72/SCK2
Baud rate clock input (UART2)
SI0
Input
P25/SDA0
Serial data input (3-wire serial clock I/O0)
SI1
P20/RxD1
Serial data input (3-wire serial clock I/O1)
SI2
P70/RxD2
Serial data input (3-wire serial clock I/O2)
SO0
Output
P26
Serial data output (3-wire serial I/O0)
SO1
P21/TxD1
Serial data output (3-wire serial I/O1)
SO2
P71/TxD2
Serial data output (3-wire serial I/O2)
SDA0
Note
I/O
P25/SI0
Serial data input/output (I
2
C bus)
SCK0
P27
Serial clock input/output (3-wire serial I/O0)
SCK1
P22/ASCK1
Serial clock input/output (3-wire serial I/O1)
SCK2
P72/ASCK2
Serial clock input/output (3-wire serial I/O2)
SCL0
Note
P27/SCK0
Serial data input/output (I
2
C bus)
Note Incorporated only in the
PD784218Y.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
17
6.2 Non-Port Pins (2/2)
Pin Name
I/O
Alternate Function
Function
NMI
Input
P02/INTP2
Non-maskable interrupt request input
INTP0
P00
External interrupt request input
INTP1
P01
INTP2
P02/NMI
INTP3
P03
INTP4
P04
INTP5
P05
INTP6
P06
PCL
Output
P23
Clock output (for trimming main system clock and subsystem clock)
BUZ
Output
P24
Buzzer output
RTP0 to RTP7
Output
P120 to P127
Real-time output port that outputs data in synchronization with
trigger
AD0 to AD7
I/O
P40 to P47
Lower address/data bus for expanding memory externally
A0 to A7
Output
P80 to P87
Lower address bus for expanding memory externally
A8 to A15
P50 to P57
Middle address bus for expanding memory externally
A16 to A19
P60 to P63
Higher address bus for expanding memory externally
RD
Output
P64
Strobe signal output for read operation of external memory
WR
P65
Strobe signal output for write operation of external memory
WAIT
Input
P66
To insert wait state(s) when external memory is accessed
ASTB
Output
P67
Strobe output to externally latch address information output to ports
4 through 6 and port 8 to access external memory
EXA
Output
P37
Status signal output during external memory access
RESET
Input
--
System reset input
X1
Input
--
Crystal connection for main system clock oscillation
X2
--
XT1
Input
--
Crystal connection for subsystem clock oscillation
XT2
--
ANI0 to ANI7
Input
P10 to P17
Analog voltage input for A/D converter
ANO0, ANO1
Output
P130, P131
Analog voltage output for D/A converter
AV
REF0
--
--
To apply reference voltage for A/D converter
AV
REF1
To apply reference voltage for D/A converter
AV
DD
Positive power supply for A/D converter. Connect to V
DD
.
AV
SS
GND for A/D converter and D/A converter. Connect to V
SS
.
V
DD
Positive power supply
V
SS
GND
TEST
Connect directly to V
SS
or pull down (this pin is for the IC test). For
the pull-down connection, use of a resistor whose resistance is
between 470
and 10 k
is recommended.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
18
6.3 Pin I/O Circuits and Recommended Connections of Unused Pins
The input/output circuit type of each pin and recommended connections of unused pins are shown in Table 6-
1.
For the input/output circuit configuration of each type, refer to Figure 6-1.
Table 6-1. Type of Pin Input/Output Circuits and Recommended Connections of Unused Pins (1/2)
Pin Name
I/O Circuit Type
I/O
Recommended Connections of Unused Pins
P00/INTP0
8-N
I/O
Input:
Independently connect to V
SS
via a resistor
P01/INTP1
Output: Leave open
P02/INTP2/NMI
P03/INTP3 to P06/INTP6
P10/ANI0 to P17/ANI7
9
Input
Connect to V
SS
or V
DD
P20/RxD1/SI1
10-K
I/O
Input:
Independently connect to V
SS
via a resistor
P21/TxD1/SO1
10-L
Output: Leave open
P22/ASCK1/SCK1
10-K
P23/PCL
10-L
P24/BUZ
P25/SDA0
Note
/SI0
10-K
P26/SO0
10-L
P27/SCL0
Note
/SCK0
10-K
P30/TO0 to P32/TO2
12-E
P33/TI1, P34/TI2
8-N
P35/TI00, P36/TI01
10-M
P37/EXA
12-E
P40/AD0 to P47/AD7
5-A
P50/A8 to P57/A15
P60/A16 to P63/A19
P64/RD
P65/WR
P66/WAIT
P67/ASTB
P70/RxD2/SI2
8-N
P71/TxD2/SO2
10-M
P72/ASCK2/SCK2
8-N
P80/A0 to P87/A7
12-E
P90 to P95
13-D
P100/TI5/TO5
8-N
P101/TI6/TO6
P102/TI7/TO7
P103/TI8/TO8
P120/RTP0 to P127/RTP7
12-E
Note SDA0 and SCL0 are incorporated only in the
PD784218Y.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
19
Table 6-1. Types of Pin Input/Output Circuits and Recommended Connections of Unused Pins (2/2)
Pin Name
I/O Circuit Type
I/O
Recommended Connections of Unused Pins
P130/ANO0, P131/ANO1
12-F
I/O
Input:
Independently connect to V
SS
via a resistor.
Output: Leave open.
RESET
2-G
Input
--
XT1
16
Connect to V
SS
XT2
--
Leave open
AV
REF0
--
Connect to V
SS
AV
REF1
Connect to V
DD
AV
DD
AV
SS
Connect to V
SS
TEST
Connect directly to V
SS
or pull down. For the pull-down
connection, use of a resistor whose resistance is between 470
and 10 k
is recommended.
Remark Because the circuit type numbers are standardized among the 78K Series products, they are not
sequential in some models (i.e., some circuits are not provided).
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
20
Figure 6-1. Types of Pin I/O Circuits (1/2)
Type 2-G
IN
Schmitt trigger input with hysteresis characteristics
Type 5-A
Pullup
enable
Data
Output
disable
Input
enable
V
DD
P-ch
V
DD
P-ch
IN/OUT
N-ch
Type 8-N
Pullup
enable
Data
Output
disable
V
DD
P-ch
V
DD
P-ch
IN/OUT
N-ch
Type 9
Pullup
enable
Data
Open drain
Output disable
V
DD
P-ch
V
DD
P-ch
IN/OUT
N-ch
Type 10-K
Type 10-L
Pullup
enable
Data
Output
disable
Input
enable
Analog output
voltage
V
DD
P-ch
V
DD
P-ch
IN/OUT
N-ch
P-ch
N-ch
Type 10-M
Type 12-E
P-ch
N-ch
IN
Comparator
+
V
REF
(Threshold voltage)
Input
enable
Pullup
enable
Data
Open drain
Output disable
V
DD
P-ch
V
DD
P-ch
IN/OUT
N-ch
Pullup
enable
Data
Output
disable
V
DD
P-ch
V
DD
P-ch
IN/OUT
N-ch
V
SS
V
SS
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
21
Figure 6-1. Types of Pin I/O Circuits (2/2)
Type 12-F
Type 13-D
Type 16
Data
Output
disable
Input
enable
Analog output
voltage
V
DD
P-ch
IN/OUT
N-ch
P-ch
N-ch
Data
Output disable
RD
IN/OUT
N-ch
V
DD
P-ch
Middle-voltage input buffer
Feedback
cut-off
P-ch
XT1
XT2
V
SS
V
SS
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
22
7. CPU ARCHITECTURE
7.1 Memory Space
A memory space of 1 MB can be accessed. Mapping of the internal data area (special function registers and
internal RAM) can be specified by the LOCATION instruction. The LOCATION instruction must always be executed
after reset cancellation, and must not be used more than once.
(1) When LOCATION 0H instruction is executed
Internal memory
The internal data area and internal ROM area are mapped as follows:
Part Number
Internal Data Area
Internal ROM Area
PD784218,
0CD00H to 0FFFFH
00000H to 0CCFFH
PD784218Y
10000H to 3FFFFH
Caution
The following areas that overlap the internal data area of the internal ROM cannot be used when
the LOCATION 0 instruction is executed.
Part Number
Unusable Area
PD784218,
0CD00H to 0FFFFH (13,056 bytes)
PD784218Y
External memory
The external memory is accessed in external memory expansion mode.
(2) When LOCATION 0FH instruction is executed
Internal memory
The internal data area and internal ROM area are mapped as follows:
Part Number
Internal Data Area
Internal ROM Area
PD784218,
FCD00H to FFFFFH
00000H to 3FFFFH
PD784218Y
External memory
The external memory is accessed in external memory expansion mode.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
23
Figure 7-1. Memory Map of
PD784218, 784218Y
Internal ROM
(52,480 bytes)
(256 bytes)
Special function registers (SFRs)
Internal RAM
(12,800 bytes)
External memory
Note 1
(768 KB)
Note 1
General-purpose
registers (128 bytes)
Macro service control word
area (54 bytes)
Data area (512 bytes)
Program/data area
(12,288 bytes)
CALLF entry
area (2 KB)
Program/data area
Note 3
CALLT table
area (64 bytes)
Vector table area
(64 bytes)
Internal RAM
(12,800 bytes)
External memory
Note 1
(773,376 bytes)
(256 bytes)
Internal ROM
(256 KB)
On execution of
LOCATION 0H instruction
Special function registers (SFRs)
Note 1
On execution of
LOCATION 0FH instruction
H
F
F
F
F
F
H
0
0
0
0
1
H
F
F
F
F
0
H
F
D
F
F
0
H
0
D
F
F
0
H
0
0
F
F
0
H
F
F
E
F
0
H
0
0
D
C
0
H
F
F
C
C
0
H
0
0
0
0
0
H
F
F
E
F
0
H
0
8
E
F
0
H
F
7
E
F
0
H
B
3
E
F
0
H
0
0
D
F
0
H
F
F
C
F
0
H
6
0
E
F
0
H
0
0
D
C
0
H
0
0
0
1
0
H
F
F
F
0
0
H
0
0
8
0
0
H
F
F
7
0
0
H
0
8
0
0
0
H
F
7
0
0
0
H
0
4
0
0
0
H
F
3
0
0
0
H
0
0
0
0
0
H
F
F
E
F
F
H
0
8
E
F
F
H
F
7
E
F
F
H
B
3
E
F
F
H
6
0
E
F
F
H
0
0
D
F
F
H
F
F
C
F
F
H
0
0
D
C
F
H
0
0
0
0
0
H
F
F
F
F
3
H
0
0
0
0
4
H
F
F
C
C
F
H
0
0
D
C
F
H
F
F
F
F
F
H
F
D
F
F
F
H
0
D
F
F
F
H
0
0
F
F
F
H
F
F
E
F
F
Note 4
Note 4
H
0
0
0
0
4
H
F
F
F
F
3
H
F
F
F
F
3
Internal ROM
(196,608 bytes)
H
F
F
F
F
3
Note 2
H
F
F
C
C
0
H
0
0
0
0
1
Notes 1. Accessed in external memory expansion mode.
2. This 13,056-byte area can be used as internal ROM only when the LOCATION 0FH instruction is executed.
3. On execution of LOCATION 0H instruction: 249,088 bytes, on execution of LOCATION 0FH instruction: 262,144 bytes
4. Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
24
7.2 CPU Registers
7.2.1 General-purpose registers
Sixteen 8-bit general-purpose registers are available. Two 8-bit registers can be also used in pairs as a 16-bit
register. Of the 16-bit registers, four can be used in combination with an 8-bit register for address expansion as
24-bit address specification registers.
Eight banks of these register sets are available and can be selected by using software or the context switching
function.
The general-purpose registers except the V, U, T, and W registers for address expansion are mapped to the
internal RAM.
Figure 7-2. General-Purpose Register Format
Caution
Registers R4, R5, R6, R7, RP2, and RP3 can be used as the X, A, C, B, AX, and BC registers,
respectively, by setting the RSS bit of the PSW to 1. However, use this function only for recycling
the program of the 78K/III Series.
A (R1)
B (R3)
R5
R7
R9
R11
D (R13)
H (R15)
V
U
T
W
VVP (RG4)
UUP (RG5)
TDE (RG6)
WHL (RG7)
X (R0)
C (R2)
R4
R6
R8
R10
E (R12)
L (R14)
AX (RP0)
BC (RP1)
RP2
RP3
VP (RP4)
UP (RP5)
DE (RP6)
HL (RP7)
Parentheses ( ) indicate an absolute name.
8 banks
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
25
7.2.2 Control registers
(1) Program counter (PC)
The program counter is a 20-bit register whose contents are automatically updated when the program is
executed.
Figure 7-3. Program Counter (PC) Format
(2) Program status word (PSW)
This register holds the statuses of the CPU. Its contents are automatically updated when the program is
executed.
Figure 7-4. Program Status Word (PSW) Format
Note This flag is provided to maintain compatibility with the 78K/III Series. Be sure to clear this flag to 0, except
when the software for the 78K/III Series is used.
(3) Stack pointer (SP)
This is a 24-bit pointer that holds the first address of the stack. Be sure to write 0 to the higher 4 bits of this
pointer.
Figure 7-5. Stack Pointer (SP) Format
19
0
PC
15
14
13
12
11
10
9
8
UF
RBS2
RBS1
RBS0
PSWH
7
6
5
4
3
2
1
0
S
Z
RSS
Note
AC
IE
P/V
0
CY
PSWL
PSW
23
0
SP
20
0
0
0
0
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
26
7.2.3 Special function registers (SFRs)
The special function registers, such as the mode registers and control registers of the internal peripheral
hardware, are registers to which special functions are allocated. These registers are mapped to the 256-byte space
of addresses 0FF00H through 0FFFFH
Note
.
Note On execution of the LOCATION 0H instruction. FFF00H through FFFFFH on execution of the LOCATION
0FH instruction.
Caution
Do not access an address in this area to which no SFR is allocated. If such an address is accessed
by mistake, the
PD784218 may enter a deadlock state. This deadlock state can be cleared only
by inputting the RESET signal.
Table 7-1 lists the special function registers (SFRs). The meanings of the symbols in this table are as follows:
Symbol ...............................
Symbol indicating an SFR. This symbol is reserved for NEC's assembler
(RA78K4). It can be used as sfr variable by the #pragma sfr command with the
C compiler (CC78K4).
R/W ....................................
Indicates whether the SFR is read-only, write-only, or read/write.
R/W: Read/write
R:
Read-only
W:
Write-only
Bit units for manipulation ..
Bit units in which the value of the SFR can be manipulated.
SFRs that can be manipulated in 16-bit units can be described as the
operand sfrp of an instruction. To specify the address of this SFR, describe
an even address.
SFRs that can be manipulated in 1-bit units can be described as the operand
of a bit manipulation instruction.
After reset ..........................
Indicates the status of the register when the RESET signal has been input.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
27
Table 7-1. Special Function Register (SFR) List (1/4)
Address
Note 1
Special Function Register (SFR) Name
Symbol
R/W
Bit Units for Manipulation
After Reset
1 bit
8 bits
16 bits
0FF00H
Port 0
P0
R/W
--
00H
Note 2
0FF01H
Port 1
P1
R
--
0FF02H
Port 2
P2
R/W
--
0FF03H
Port 3
P3
--
0FF04H
Port 4
P4
--
0FF05H
Port 5
P5
--
0FF06H
Port 6
P6
--
0FF07H
Port 7
P7
--
0FF08H
Port 8
P8
--
0FF09H
Port 9
P9
--
0FF0AH
Port 10
P10
--
0FF0CH
Port 12
P12
--
0FF0DH
Port 13
P13
--
0FF10H
16-bit timer counter
TM0
R
--
--
0000H
0FF11H
0FF12H
Capture/compare register 00
CR00
R/W
--
--
0FF13H
(16-bit timer/event counter)
0FF14H
Capture/compare register 01
CR01
--
--
0FF15H
(16-bit timer/event counter)
0FF16H
Capture/compare control register 0
CRC0
--
00H
0FF18H
16-bit timer mode control register
TMC0
--
0FF1AH
16-bit timer output control register
TOC0
--
0FF1CH
Prescaler mode register 0
PRM0
--
0FF20H
Port mode 0 register
PM0
--
FFH
0FF22H
Port mode 2 register
PM2
--
0FF23H
Port mode 3 register
PM3
--
0FF24H
Port mode 4 register
PM4
--
0FF25H
Port mode 5 register
PM5
--
0FF26H
Port mode 6 register
PM6
--
0FF27H
Port mode 7 register
PM7
--
0FF28H
Port mode 8 register
PM8
--
0FF29H
Port mode 9 register
PM9
--
0FF2AH
Port mode 10 register
PM10
--
0FF2CH
Port mode 12 register
PM12
--
0FF2DH
Port mode 13 register
PM13
--
Notes 1. When the LOCATION 0H instruction is executed. Add "F0000H" to this value when the LOCATION 0FH
instruction is executed.
2. Because each port is initialized to input mode after reset, "00H" is not actually read. The output latch
is initialized to "0".
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
28
Table 7-1. Special Function Register (SFR) List (2/4)
Address
Note
Special Function Register (SFR) Name
Symbol
R/W
Bit Units for Manipulation
After Reset
1 bit
8 bits
16 bits
0FF30H
Pull-up resistor option register 0
PU0
R/W
--
00H
0FF32H
Pull-up resistor option register 2
PU2
--
0FF33H
Pull-up resistor option register 3
PU3
--
0FF37H
Pull-up resistor option register 7
PU7
--
0FF38H
Pull-up resistor option register 8
PU8
--
0FF3AH
Pull-up resistor option register 10
PU10
--
0FF3CH
Pull-up resistor option register 12
PU12
--
0FF40H
Clock output control register
CKS
--
0FF42H
Port function control register
PF2
--
0FF4EH
Pull-up resistor option register
PUO
--
0FF50H
8-bit timer counter 1
TM1
TM1W
R
--
0000H
0FF51H
8-bit timer counter 2
TM2
--
0FF52H
Compare register 10 (8-bit timer/event counter 1) CR10 CR1W
R/W
--
0FF53H
Compare register 20 (8-bit timer/event counter 2) CR20
--
0FF54H
8-bit timer mode control register 1
TMC1 TMC1W
0FF55H
8-bit timer mode control register 2
TMC2
0FF56H
Prescaler mode register 1
PRM1 PRM1W
0FF57H
Prescaler mode register 2
PRM2
0FF60H
8-bit timer counter 5
TM5 TM5W
R
--
0FF61H
8-bit timer counter 6
TM6
--
0FF62H
8-bit timer counter 7
TM7 TM7W
--
0FF63H
8-bit timer counter 8
TM8
--
0FF64H
Compare register 50 (8-bit timer/event counter 5) CR50 CR5W
R/W
--
0FF65H
Compare register 60 (8-bit timer/event counter 6) CR60
--
0FF66H
Compare register 70 (8-bit timer/event counter 7) CR70 CR7W
--
0FF67H
Compare register 80 (8-bit timer/event counter 8) CR80
--
0FF68H
8-bit timer mode control register 5
TMC5 TMC5W
0FF69H
8-bit timer mode control register 6
TMC6
0FF6AH
8-bit timer mode control register 7
TMC7 TMC7W
0FF6BH
8-bit timer mode control register 8
TMC8
0FF6CH
Prescaler mode register 5
PRM5 PRM5W
0FF6DH
Prescaler mode register 6
PRM6
0FF6EH
Prescaler mode register 7
PRM7 PRM7W
0FF6FH
Prescaler mode register 8
PRM8
0FF70H
Asynchronous serial interface mode register 1
ASIM1
--
00H
0FF71H
Asynchronous serial interface mode register 2
ASIM2
--
0FF72H
Asynchronous serial interface status register 1
ASIS1
R
--
0FF73H
Asynchronous serial interface status register 2
ASIS2
--
Note When the LOCATION 0H instruction is executed. Add "F0000H" to this value when the LOCATION 0FH
instruction is executed.
Data Sheet U12304EJ2V0DS00
PD784218, 784218Y
29
Table 7-1. Special Function Register (SFR) List (3/4)
Address
Note 1
Special Function Register (SFR) Name
Symbol
R/W
Bit Units for Manipulation
After Reset
1 bit
8 bits
16 bits
0FF74H
Transmit shift register 1
TXS1
W
--
--
FFH
Receive buffer register 1
RXB1
R
--
--
0FF75H
Transmit shift register 2
TXS2
W
--
--
Receive buffer register 2
RXB2
R
--
--
0FF76H
Baud rate generator control register 1
BRGC1
R/W
--
00H
0FF77H
Baud rate generator control register 2
BRGC2
--
0FF7AH
Oscillation mode select register
CC
--
0FF80H
A/D converter mode register
ADM
--
0FF81H
A/D converter input select register
ADIS
--
0FF83H
A/D conversion result register
ADCR
R
--
--
Undefined
0FF84H
D/A conversion value setting register 0
DACS0
R/W
--
00H
0FF85H
D/A conversion value setting register 1
DACS1
--
0FF86H
D/A converter mode register 0
DAM0
--
0FF87H
D/A converter mode register 1
DAM1
--
0FF88H
ROM correction control register
CORC
--
0FF89H
ROM correction address pointer H
CORAH
--
--
0FF8AH
ROM correction address pointer L
CORAL
--
--
0000H
0FF8BH
0FF8CH
External bus type select register
EBTS
--
00H
0FF8DH
External access status enable register
EXAE
--
0FF90H
Serial operation mode register 0
CSIM0
--
0FF91H
Serial operation mode register 1
CSIM1
--
0FF92H
Serial operation mode register 2
CSIM2
--
0FF94H
Serial I/O shift register 0
SIO0
--
--
0FF95H
Serial I/O shift register 1
SIO1
--
--
0FF96H
Serial I/O shift register 2
SIO2
--
--
0FF98H
Real-time output buffer register L
RTBL
--
--
0FF99H
Real-time output buffer register H
RTBH
--
--
0FF9AH
Real-time output port mode register
RTPM
--
0FF9BH
Real-time output port control register
RTPC
--
0FF9CH
Watch timer mode control register
WTM
--
0FFA0H
External interrupt rising edge enable register
EGP0
--
0FFA2H
External interrupt falling edge enable register
EGN0
--
0FFA8H
In-service priority register
ISPR
R
--
0FFA9H
Interrupt select control register
SNMI
R/W
--
0FFAAH
Interrupt mode control register
IMC
--
80H
0FFACH
Interrupt mask flag register 0L
MK0L MK0
FFFFH
0FFADH
Interrupt mask flag register 0H
MK0H
0FFAEH
Interrupt mask flag register 1L
MK1L MK1
0FFAFH
Interrupt mask flag register 1H
MK1H
0FFB0H
I
2
C bus control register
Note 2
IICC0
--
00H
0FFB2H
Prescaler mode register for serial clock
SRPM0
--
Notes 1. When the LOCATION 0H instruction is executed. Add "F0000H" to this value when the LOCATION 0FH
instruction is executed.
2.
PD784218Y only
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
30
Table 7-1. Special Function Register (SFR) List (4/4)
Address
Note 1
Special Function Register (SFR) Name
Symbol
R/W
Bit Units for Manipulation
After Reset
1 bit
8 bits
16 bits
0FFB4H
Slave address register
SVA0
R/W
--
00H
0FFB6H
I
2
C bus status register
Note 2
IICS0
R
--
0FFB8H
Serial shift register
IIC0
R/W
--
0FFC0H
Standby control register
STBC
--
--
30H
0FFC2H
Watchdog timer mode register
WDM
--
--
00H
0FFC4H
Memory expansion mode register
MM
--
20H
0FFC7H
Programmable wait control register 1
PWC1
--
AAH
0FFCEH
Clock status register
PCS
R
--
32H
0FFCFH
Oscillation stabilization time specification register
OSTS
R/W
--
00H
0FFD0H to
External SFR area
--
--
--
0FFDFH
0FFE0H
Interrupt control register (INTWDTM)
WDTIC
--
43H
0FFE1H
Interrupt control register (INTP0)
PIC0
--
0FFE2H
Interrupt control register (INTP1)
PIC1
--
0FFE3H
Interrupt control register (INTP2)
PIC2
--
0FFE4H
Interrupt control register (INTP3)
PIC3
--
0FFE5H
Interrupt control register (INTP4)
PIC4
--
0FFE6H
Interrupt control register (INTP5)
PIC5
--
0FFE7H
Interrupt control register (INTP6)
PIC6
--
0FFE8H
Interrupt control register (INTIIC0/INTCSI0)
CSIIC0
--
0FFE9H
Interrupt control register (INTSER1)
SERIC1
--
0FFEAH
Interrupt control register (INTSR1/INTCSI1)
SRIC1
--
0FFEBH
Interrupt control register (INTST1)
STIC1
--
0FFECH
Interrupt control register (INTSER2)
SERIC2
--
0FFEDH
Interrupt control register (INTSR2/INTCSI2)
SRIC2
--
0FFEEH
Interrupt control register (INTST2)
STIC2
--
0FFEFH
Interrupt control register (INTTM3)
TMIC3
--
0FFF0H
Interrupt control register (INTTM00)
TMIC00
--
0FFF1H
Interrupt control register (INTTM01)
TMIC01
--
0FFF2H
Interrupt control register (INTTM1)
TMIC1
--
0FFF3H
Interrupt control register (INTTM2)
TMIC2
--
0FFF4H
Interrupt control register (INTAD)
ADIC
--
0FFF5H
Interrupt control register (INTTM5)
TMIC5
--
0FFF6H
Interrupt control register (INTTM6)
TMIC6
--
0FFF7H
Interrupt control register (INTTM7)
TMIC7
--
0FFF8H
Interrupt control register (INTTM8)
TMIC8
--
0FFF9H
Interrupt control register (INTWT)
WTIC
--
0FFFAH
Interrupt control register (INTKR)
KRIC
--
Notes 1. When the LOCATION 0H instruction is executed. Add "F0000H" to this value when the LOCATION 0FH
instruction is executed.
2.
PD784218Y only
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
31
8. PERIPHERAL HARDWARE FUNCTION FEATURES
8.1 Ports
The ports shown in Figure 8-1 are provided to make various control operations possible. Table 8-1 shows the
function of each port. Ports 0, 2 through 8, 10, and 12 can be connected to internal pull-up resistors by software
when inputting.
Figure 8-1. Port Configuration


Port 7
Port 0
Port 2
Port 3
Port 4
Port 5
Port 6
Port 1
P70
P72
Port 8
P80
P87
Port 12
P120
P127
Port 9
P90
P95
Port 10
P100
P103
Port 13
P130
P131
P00
P06
P10 to P17
P20
P27
P30
P37
P40
P47
P50
P57
P60
P67
8
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
32
Table 8-1. Port Functions
Port Name
Pin Name
Function
Specification of Pull-up Resistor
Connection by Software
Port 0
P00 to P06
Can be set in input or output mode in 1-bit units
Can be specified in 1-bit units
Port 1
P10 to P17
Input port
--
Port 2
P20 to P27
Can be set in input or output mode in 1-bit units
Can be specified in 1-bit units
Port 3
P30 to P37
Can be set in input or output mode in 1-bit units
Can be specified in 1-bit units
Port 4
P40 to P47
Can be set in input or output mode in 1-bit units
Can be specified in 1-port units
Can directly drive LEDs
Port 5
P50 to P57
Can be set in input or output mode in 1-bit units
Can be specified in 1-port units
Can directly drive LEDs
Port 6
P60 to P67
Can be set in input or output mode in 1-bit units
Can be specified in 1-port units
Port 7
P70 to P72
Can be set in input or output mode in 1-bit units
Can be specified in 1-bit units
Port 8
P80 to P87
Can be set in input or output mode in 1-bit units
Can be specified in 1-bit units
Port 9
P90 to P95
N-ch open-drain I/O port
--
Can be set in input or output mode in 1-bit units
Can directly drive LEDs
Port 10
P100 to P103
Can be set in input or output mode in 1-bit units
Can be specified in 1-bit units
Port 12
P120 to P127
Can be set in input or output mode in 1-bit units
Can be specified in 1-bit units
Port 13
P130, P131
Can be set in input or output mode in 1-bit units
--
8.2 Clock Generator
An on-chip clock generator necessary for operation is provided. This clock generator has a frequency divider.
If high-speed operation is not necessary, the internal operating frequency can be lowered by the frequency divider
to reduce the current consumption.
Figure 8-2. Clock Generator Block Diagram
XT2
XT1
X1
X2
STOP, bit 2 of standby
control register (STBC)
(MCK) = 1 when
subsystem clock is
selected as CPU clock
Main system
clock
oscillator
IDLE
controller
Subsystem
clock
oscillator
f
XT
Watch timer,
clock output
function
Clock to
peripheral
hardware
CPU
clock
(f
CPU
)
Frequency
divider
Prescaler
Prescaler
STOP,
IDLE
controller
HALT
controller
f
X
f
X
2
f
XX
2
f
XX
2
2
f
XX
2
3
f
XX
Selector
Selector
Internal system
clock (f
CLK
)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
33
Figure 8-3. Example of Using Main System Clock Oscillator
Figure 8-4. Example of Using Subsystem Clock Oscillator
Caution
When using the main system clock and subsystem clock oscillator, wire as following in the area
enclosed by the broken lines in Figures 8-3 and 8-4 to avoid an adverse effect from wiring
capacitance.
Keep the wiring length as short as possible.
Do not cross the wiring with other signal lines.
Do not route the wiring near a signal line through which a high fluctuating current flows.
Always make the ground point of the oscillator capacitor the same potential as V
SS
. Do not
ground the capacitor to a ground pattern in which a high current flows.
Do not fetch signals from the oscillator.
Note that the subsystem clock oscillator is designed as a low-amplitude circuit for reducing
current consumption.
External
clock
X2
X1
PD74HCU04
V
SS
X2
X1
Crystal resonator
or
ceramic resonator
(1) Crystal/ceramic oscillation
(2) External clock
32.768
kHz
V
SS
XT2
XT1
XT2
XT1
External
clock
PD74HCU04
(1) Crystal oscillation
(2) External clock
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
34
8.3 Real-Time Output Port
The real-time output function is to transfer data preset in the real-time output buffer register to the output latch
as soon as the timer interrupt or external interrupt has occurred in order to output the data to an external device.
The pins that output the data to the external device constitute a port called a real-time output port.
Because the real-time output port can output signals without jitter, it is ideal for controlling stepper motors, etc.
Figure 8-5. Block Diagram of Real-Time Output Port
Internal bus
RTPOE
BYTE
EXTR
Output trigger
controller
Real-time output port
control register (RTPC)
Real-time output
port mode register
(RTPM)
Real-time output port output latch
RTP7 RTP0
Higher 4 bits of
real-time output
buffer register
(RTBH)
Lower 4 bits of
real-time output
buffer register
(RTBL)
INTP2TRG
INTTM1
INTTM2
Port 12 output latch
P127 P120
P12n/RTPn pin output (n = 0 to 7)
P127/ P120/
RTP7 RTP0
RTPOE bit
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
35
8.4 Timer/Event Counter
One unit of 16-bit timer/event counters and six units of 8-bit timer/event counters are provided.
Because a total of eight interrupt requests are supported, these timer/event counters can be used as eight units
of timers/counters.
Table 8-2. Operations of Timer/Event Counters
Name
16-Bit
8-Bit
8-Bit
8-Bit
8-Bit
8-Bit
8-Bit
Timer/Event Timer/Event Timer/Event Timer/Event Timer/Event Timer/Event Timer/Event
Item
Counter
Counter 1
Counter 2
Counter 5
Counter 6
Counter 7
Counter 8
Count width
8 bits
--
16 bits
Operation mode
Interval timer
1 ch
1 ch
1 ch
1 ch
1 ch
1 ch
1 ch
External event counter
Function
Timer output
1 ch
1 ch
1 ch
1 ch
1 ch
1 ch
1 ch
PPG output
--
--
--
--
--
--
PWM output
--
Square wave output
One-shot pulse output
--
--
--
--
--
--
Pulse width measurement
2 inputs
--
--
--
--
--
--
Number of interrupt requests
2
1
1
1
1
1
1
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
36
Figure 8-6. Block Diagram of Timer/Event Counters
16-bit timer/event counter
f
XX
/4
f
XX
/16
INTTM3
TI01
TI00
Edge detector
Edge detector
16-bit timer counter (TM0)
16-bit capture/compare register 00
(CR00)
16-bit capture/compare register 01
(CR01)
16
16
Clear
INTTM00
INTTM01
TO0
Selector
Selector
Output controller
8-bit timer/event counter 1, 5, 7
f
XX
/2
9
f
XX
/2
7
f
XX
/2
5
f
XX
/2
4
f
XX
/2
3
f
XX
/2
2
TIn
8-bit timer counter n
(TMn)
8-bit compare register n0
(CRn0)
8
Clear
OVF
INTTMn + 1
INTTMn
TOn
Edge detector
Output
controller
Selector
Selector
Remarks 1. n = 1, 5, 7
2. OVF: Overflow flag
8-bit timer/event counter 2, 6, 8
f
XX
/2
9
f
XX
/2
7
f
XX
/2
5
f
XX
/2
4
f
XX
/2
3
f
XX
/2
2
TIn
TMn1
8-bit timer counter n
(TMn)
8-bit compare register n0
(CRn0)
8
Clear
OVF
INTTMn
TOn
Edge detector
Output
controller
Selector
Remarks 1. n = 2, 6, 8
2. OVF: Overflow flag
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
37
8.5 A/D Converter
An A/D converter converts an analog input variable into a digital signal. This microcontroller is provided with an
A/D converter with a resolution of 8 bits and 8 channels (ANI0 through ANI7).
This A/D converter is of successive approximation type and the result of conversion is stored in the 8-bit A/D
conversion result register (ADCR).
The A/D converter can be started in the following two ways:
Hardware start
Conversion is started by trigger input (P03).
Software start
Conversion is started by setting the A/D converter mode register (ADM).
One analog input channel is selected from ANI0 through ANI7 for A/D conversion. When A/D conversion is started
by means of hardware start, conversion is stopped after it has been completed. When conversion is started by
means of software start, A/D conversion is repeatedly executed, and each time conversion has been completed,
an interrupt request (INTAD) is generated.
Figure 8-7. A/D Converter Block Diagram
ANI0
ANI1
ANI2
ANI3
ANI4
ANI5
ANI6
ANI7
Sample & hold circuit
Series resistor string
Voltage comparator
Successive approximation
register (SAR)
A/D conversion result register
(ADCR)
Controller
Edge
detector
INTP3/P03
INTAD
INTP3
AV
SS
AV
REF0
AV
DD
Internal bus
Selector
Tap selector
Edge
detector
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
38
8.6 D/A Converter
A D/A converter converts an input digital signal into an analog voltage. This microcontroller is provided with a
voltage output type D/A converter with a resolution of 8 bits and two channels.
The conversion method is of R-2R resistor ladder type.
D/A conversion is started by setting DACE0 of D/A converter mode register 0 (DAM0) and DACE1 of D/A converter
mode register 1 (DAM1).
The D/A converter operates in the following two modes:
Normal mode
The converter outputs an analog voltage immediately after it has completed D/A conversion.
Real-time output mode
The converter outputs an analog voltage in synchronization with an output trigger after it has completed D/A
conversion.
Figure 8-8. D/A Converter Block Diagram
AV
REF1
AV
SS
DACS0
8
2R
2R
R
R
2R
2R
Selector
ANO0
DACS1
8
2R
2R
R
R
2R
2R
Selector
ANO1
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
39
8.7 Serial Interfaces
Three independent serial interface channels are provided.
Asynchronous serial interface (UART)/3-wire serial I/O (IOE)
2
Clocked serial interface (CSI)
1
3-wire serial I/O (IOE)
I
2
C bus interface (I
2
C) (
PD784218Y Subseries only)
Therefore, communication with an external system and local communication within the system can be simultaneously
executed (refer to Figure 8-9).
Figure 8-9. Example of Serial Interface
(a) UART + I
2
C
(b) UART + 3-wire serial I/O
Note Handshake line
PD784218 (master)
RS-232C
driver/receiver
[UART]
Port
RxD2
TxD2
PD753106 (slave)
SI
SO
SCK
Port
INT
[3-wire serial I/O]
Note
SO1
SI1
SCK1
INTPm
Port
PD4711A
[UART]
[UART]
RS-232C
driver/receiver
RxD1
TxD1
RS-232C
driver/receiver
Port
RxD2
TxD2
Port
SDA0
SCL0
[I
2
C]
V
DD
V
DD
SDA
SCL
SDA
SCL
LCD
PD4711A
PD4711A
PD784218Y (master)
PD780078Y (slave)
PD780308Y (slave)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
40
8.7.1 Asynchronous serial interface/3-wire serial I/O (UART/IOE)
Two channels of serial interfaces for which an asynchronous serial interface mode and 3-wire serial I/O mode
can be selected are provided.
(1) Asynchronous serial interface mode
In this mode, data of 1 byte following the start bit is transmitted or received.
Because an on-chip baud rate generator is provided, a wide range of baud rates can be set.
Moreover, the clock input to the ASCK pin can be divided to define a baud rate.
When the baud rate generator is used, a baud rate conforming to the MIDI standard (31.25 kbps) can also
be obtained.
Figure 8-10. Block Diagram When in Asynchronous Serial Interface Mode
Internal bus
8
8
8
Receive buffer register
1, 2 (RXB1, RXB2)
Receive shift register
1, 2 (RX1, RX2)
Transmit shift register
1, 2 (TXS1, TXS2)
Receive control
parity check
Transmit control
parity added
RxD1, RxD2
TxD1, TxD2
ASCK1, ASCK2
Baud rate generator
INTSR1,
INTSR2
INTST1,
INTST2
Selector
5-bit counter
2
transmit/receive clock generation
f
XX
to f
XX
/2
5
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
41
(2) 3-wire serial I/O mode
In this mode, the master device starts transfer by making the serial clock active and transfers 1-byte data
in synchronization with this clock.
This mode is used to communicate with a device having the conventional clocked serial interface. Basically,
communication is established by using three lines: serial clocks (SCK1 and SCK2), serial data inputs (SI1
and SI2), and serial data outputs (SO1 and SO2). To connect two or more devices, a handshake line is
necessary.
Figure 8-11. Block Diagram When in 3-Wire Serial I/O Mode
Internal bus
8
Interrupt
generator
Selector
Serial clock
counter
Serial clock
controller
Serial I/O shift register
1, 2 (SIO1, SIO2)
SI1, SI2
SO1, SO2
SCK1, SCK2
INTCSI1,
INTCSI2
TO2
f
XX
/8
f
XX
/16
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
42
8.7.2 Clocked serial interface (CSI)
In this mode, the master device starts transfer by making the serial clock active and transfers 1-byte data in
synchronization with this clock.
(1) 3-wire serial I/O mode
This mode is to communicate with devices having the conventional clocked serial interface.
Basically, communication is established in this mode with three lines: one serial clock (SCK0) and two serial
data (SI0 and SO0) lines.
Generally, a handshake line is necessary to check the reception status.
Figure 8-12. Block Diagram When in 3-Wire Serial I/O Mode
SI0
SO0
SCK0
INTCSI0
TO2
f
XX
/8
f
XX
/16
Internal bus
Interrupt
generator
Selector
Serial clock
counter
Serial clock
controller
Serial I/O shift register 0
(SIO0)
8
(2) I
2
C bus (Inter IC) bus mode (multi-master supporting)
This mode is for communication with devices conforming to the I
2
C bus format.
This mode is for transferring 8-bit data between two or more devices by using two lines: a serial clock (SCL0)
and a serial data bus (SDA0).
During transfer, a "start condition", "data", and "stop condition" can be output onto the serial data bus. During
reception, this data is automatically detected by hardware.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
43
Figure 8-13. Block Diagram of I
2
C Bus Mode
Internal bus
Direction controller
Slave address register
(SVA0)
8
8
8
SDA0
SCL0
Serial I/O shift
register 0 (SIO0)
Output latch
Wake-up
controller
Start condition/acknowledge
detector
Stop condition detector
Serial clock counter
Serial clock controller
Acknowledge
generator
Interrupt
generator
Selector
INTIIC0
TO2/18 to TO2/68
f
XX
/24 to f
XX
/178
8.8 Clock Output Function
Clocks of the following frequencies can be output as clock output.
97.7 kHz/195 kHz/391 kHz/781 kHz/1.56 MHz/3.13 MHz/6.25 MHz/12.5 MHz
(@ 12.5 MHz operation with main system clock)
32.768 kHz (@ 32.768 kHz operation with subsystem clock)
Figure 8-14. Block Diagram of Clock Output Function
f
XX
f
XX
/2
f
XX
/2
2
f
XX
/2
3
f
XX
/2
4
f
XX
/2
5
f
XX
/2
6
f
XX
/2
7
f
XT
Synchronizer
Output controller
PCL
Selector
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
44
8.9 Buzzer Output Function
Clocks of the following frequencies can be output as buzzer output.
1.5 kHz/3.1 kHz/6.1 kHz/12.2 kHz (@ 12.5 MHz operation with main system clock)
Figure 8-15. Block Diagram of Buzzer Output Function
f
XX
/2
10
f
XX
/2
11
f
XX
/2
12
f
XX
/2
13
Output controller
BUZ
Selector
8.10 Edge Detection Function
The interrupt input pins (INTP0, INTP1, NMI/INTP2, INTP3 through INTP6) are used not only to input interrupt
requests but also to input trigger signals to the internal hardware units. Because these pins operate at an edge
of the input signal, they have a function to detect an edge. Moreover, a noise reduction function is also provided
to prevent erroneous detection due to noise.
Pin Name
Detectable Edge
Noise Reduction
NMI
Either or both of rising and falling edges
By analog delay
INTP0 to INTP6
8.11 Watch Timer
The watch timer has the following functions:
Watch timer
Interval timer
The watch timer and interval timer functions can be used at the same time.
(1) Watch timer
The watch timer sets the WTIF flag of the interrupt control register (WTIC) at time intervals of 0.5 seconds
using the 32.768 kHz subsystem clock.
(2) Interval timer
The interval timer generates an interrupt request (INTTM3) at preset time intervals.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
45
Figure 8-16. Watch Timer Block Diagram
f
XX
/2
7
Prescaler
f
XT
f
W
2
4
f
W
2
5
f
W
2
6
f
W
2
7
f
W
2
8
f
W
f
W
2
9
5-bit counter
f
W
2
5
f
W
2
14
INTWT
INTTM3
To 16-bit timer/
event counter
Selector
Selector
Selector
Selector
8.12 Watchdog Timer
A watchdog timer is provided to detect a CPU runaway. This watchdog timer generates a non-maskable or
maskable interrupt unless it is cleared by software within a specified interval time. Once enabled to operate, the
watchdog timer cannot be stopped by software. Whether the interrupt by the watchdog timer or the interrupt input
from the NMI pin takes precedence can be specified.
Figure 8-17. Watchdog Timer Block Diagram
f
CLK
/2
21
f
CLK
/2
20
f
CLK
/2
19
f
CLK
/2
17
f
CLK
Clear signal
Timer
INTWDT
Selector
Remark f
CLK
: Internal system clock (f
XX
to f
XX
/8)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
46
9. INTERRUPT FUNCTION
The three types of servicing in response to an interrupt request shown in Table 9-1 can be selected by program.
Table 9-1. Servicing of Interrupt Request
Servicing Mode
Servicing Means
Servicing
Contents of PC and PSW
Vectored interrupt
Software
Branches and executes servicing routine
Saves to and restores
(servicing is arbitrary)
from stack
Context switching
Automatically switches register bank,
Saves to or restores from
branches and executes servicing routine
fixed area in register bank
(servicing is arbitrary)
Macro service
Firmware
Executes data transfer between memory
Retained
and I/O (servicing is fixed)
9.1 Interrupt Sources
Table 9-2 shows the interrupt sources available. As shown, interrupts are generated by 29 sources, execution
of the BRK instruction, BRKCS instruction, or an operand error.
The priority of interrupt servicing can be set to four levels, so that nesting can be controlled during interrupt
servicing, and so that which of the two or more interrupts that simultaneously occur should be serviced first can be
decided. When the macro service function is used, however, nesting always proceeds (i.e., is not held pending).
The default priority is the priority (fixed) of the service that is performed if two or more interrupt requests, having
the same priority, are simultaneously generated (refer to Table 9-2).
Table 9-2. Interrupt Sources (1/2)
Type
Default
Source
Internal/
Macro
Priority
Name
Trigger
External
Service
Software
--
BRK instruction
Instruction execution
--
--
BRKCS instruction
Instruction execution
Operand error
If result of exclusive OR between operands
byte and byte is not FFH when MOV STBC,
#byte instruction, MOV WDM, #byte instruction,
or LOCATION instruction is executed
Non-maskable
--
NMI
Pin input edge detection
External
--
INTWDT
Overflow of watchdog timer
Internal
Maskable
0 (highest)
INTWDTM
Overflow of watchdog timer
Internal
1
INTP0
Pin input edge detection
External
2
INTP1
3
INTP2
4
INTP3
5
INTP4
6
INTP5
7
INTP6
8
INTIIC0
End of I
2
C bus transfer by CSI0
Internal
INTCSI0
End of 3-wire transfer by CSI0
9
INTSER1
Occurrence of UART reception error in ASI1
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
47
Table 9-2. Interrupt Sources (2/2)
Type
Default
Source
Internal/
Macro
Priority
Name
Trigger
External
Service
Maskable
10
INTSR1
End of UART reception by ASI1
Internal
INTCSI1
End of 3-wire transfer by CSI1
11
INTST1
End of UART transmission by ASI1
12
INTSER2
Occurrence of UART reception error in ASI2
13
INTSR2
End of UART reception by ASI2
INTCSI2
End of 3-wire transfer by CSI2
14
INTST2
End of UART transmission by ASI2
15
INTTM3
Reference time interval signal from watch timer
16
INTTM00
Signal indicating coincidence between 16-bit
timer counter and capture/compare register
(CR00)
17
INTTM01
Signal indicating coincidence between 16-bit
timer counter and capture/compare register
(CR01)
18
INTTM1
Occurrence of coincidence signal of 8-bit
timer/event counter 1
19
INTTM2
Occurrence of coincidence signal of 8-bit
timer/event counter 2
20
INTAD
End of conversion by A/D converter
21
INTTM5
Occurrence of coincidence signal of 8-bit
timer/event counter 5
22
INTTM6
Occurrence of coincidence signal of 8-bit
timer/event counter 6
23
INTTM7
Occurrence of coincidence signal of 8-bit
timer/event counter 7
24
INTTM8
Occurrence of coincidence signal of 8-bit
timer/event counter 8
25
INTWT
Overflow of watch timer
26 (lowest)
INTKR
Detection of falling edge of port 8
External
Remarks 1. ASI: Asynchronous Serial Interface
CSI: Clocked Serial Interface
2. Two watchdog timer interrupt sources, non-maskable interrupt (INTWDT) and maskable interrupt
(INTWDTM), are available and only one of those can be selected.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
48
9.2 Vectored Interrupt
Execution branches to a servicing routine by using the memory contents of a vector table address corresponding
to the interrupt source as the address of the branch destination.
So that the CPU performs interrupt servicing, the following operations are performed:
On branching: Saves the status of the CPU (contents of PC and PSW) to stack
On returning:
Restores the status of the CPU (contents of PC and PSW) from stack
To return to the main routine from an interrupt service routine, the RETI instruction is used.
The branch destination address is in a range of 0 to FFFFH.
Table 9-3. Vector Table Address
Interrupt Source
Vector Table Address
Interrupt Source
Vector Table Address
BRK instruction
003EH
INTST1
001CH
TRAP0 (operand error)
003CH
INTSER2
001EH
NMI
0002H
INSR2
0020H
INTWDT (non-maskable)
0004H
INTCSI2
INTWDTM (maskable)
0006H
INTST2
0022H
INTP0
0008H
INTTM3
0024H
INTP1
000AH
INTTM00
0026H
INTP2
000CH
INTTM01
0028H
INTP3
000EH
INTTM1
002AH
INTP4
0010H
INTTM2
002CH
INTP5
0012H
INTAD
002EH
INTP6
0014H
INTTM5
0030H
INTIIC0
0016H
INTTM6
0032H
INTCSI0
INTTM7
0034H
INTSER0
0018H
INTTM8
0036H
INTSR1
001AH
INTWT
0038H
INTCSI1
INTKR
003AH
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
49
9.3 Context Switching
When an interrupt request is generated or when the BRKCS instruction is executed, a predetermined register
bank is selected by hardware. Context switching is a function that branches execution to a vector address stored
in advance in the register bank, and stacks the current contents of the program counter (PC) and program status
word (PSW) to the register bank.
The branch address is in a range of 0 to FFFFH.
Figure 9-1. Context Switching Operation When Interrupt Request Is Generated
9.4 Macro Service
This function is to transfer data between memory and a special function register (SFR) without intervention by
the CPU. A macro service controller accesses the memory and SFR in the same transfer cycle and directly transfers
data without loading it.
Because this function does not save or restore the status of the CPU, or load data, data can be transferred at
high speeds.
Figure 9-2. Macro Service
Register bank n (n = 0 to 7)
0000B
<7> Transfer
PC19-16
PC15-0
<6> Exchange
<5> Save
<2> Save
Temporary register
<1> Save
PSW
V
U
T
W
A
B
R5
R7
D
H
X
C
R4
R6
E
L
VP
UP
<3> Switching of register bank
(RBS0 to RBS2
n)
Register bank
(0 to 7)
(bits 8 through 11
of temporary register)
<4> RSS
0
IE
0
CPU
Memory
SFR
Macro service
controller
Read
Write
Write
Read
Internal bus
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
50
9.5 Application Example of Macro Service
(1) Serial interface transmission
Transmit data storage buffer (memory)
Data n
Data n 1
Data 1
Data 2
Internal bus
Transmit shift register
TXS1, TXS2 (SFR)
Transmit control
TxD1, TxD2
INTST1, INTST2
Each time macro service requests INTST1 and INTST2 are generated, the next transmit data is transferred from
memory to TXS1 and TXS2. When data n (last byte) has been transferred to TXS1 and TXS2 (when the transmit
data storage buffer has become empty), vectored interrupt requests INTST1 and INTST2 are generated.
(2) Serial interface reception
Receive data storage buffer (memory)
Data n
Data n 1
Data 1
Data 2
Internal bus
Receive shift register
RXB1, RXB2 (SFR)
Reception control
INTSR1, INTSR2
RxD1, RxD2
Receive buffer register
Each time macro service requests INTSR1 and INTSR2 are generated, the receive data is transferred from RXB1
and RXB2 to memory. When data n (last byte) has been transferred to memory (when the receive data storage
buffer has become full), vectored interrupt requests INTSR1 and INTSR2 are generated.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
51
10. LOCAL BUS INTERFACE
The local bus interface can connect an external memory or I/O (memory mapped I/O) and support a memory
space of 1 MB (refer to Figure 10-1).
Figure 10-1. Example of Local Bus Interface
(a) Multiplexed bus mode
PD784218
RD
WR
A8 to A19
ASTB
AD0 to AD7
V
DD
Address latch
LE
Q0 to Q7
D0 to D7
OE
SRAM
CS
OE
WE
I/O1 to I/O8
A0 to A19
Data bus
Address bus
(b) Separate bus mode
V
DD
Address bus
SRAM
Data bus
OE
WE
A0 to A19
CS
I/O1 to I/O8
PD784218
RD
WR
A0 to A19
AD0 to AD7
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
52
10.1 Memory Expansion
External program memory and data memory can be connected in two stages: 256 KB and 1 MB.
To connect the external memory, ports 4 through 6 and port 8 are used.
The external memory can be connected in the following two modes:
Multiplexed bus mode: The external memory is connected by using a time-division address/data bus. The
number of ports used when the external memory is connected can be reduced in this
mode.
Separate bus mode:
The external memory is connected by using an address bus and data bus independent
of each other. Because an external latch circuit is not necessary, this mode is useful
for reducing the number of components and mounting area on the printed wiring board.
10.2 Programmable Wait
Wait state(s) can be inserted to the memory space (00000H through FFFFFH) while the RD and WR signals are
active.
In addition, there is an address wait function that extends the active period of the ASTB signal to gain the address
decode time.
10.3 External Access Status Function
An active-low external access status signal is output from the P37/EXA pin. This signal informs other devices
that are connected with external buses of the external access status, prohibits other devices from outputting data
to an external bus, and enables receive operations.
The external access status signal is output during external accessing.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
53
11. STANDBY FUNCTION
This function is to reduce the power consumption of the chip, and can be used in the following modes:
HALT mode:
Stops supply of the operating clock to the CPU. This mode is used
in combination with the normal operation mode for intermittent operation
to reduce the average power consumption.
IDLE mode:
Stops the entire system with the oscillator continuing operation. The
power consumption in this mode is close to that in the STOP mode.
However, the time required to restore the normal program operation
from this mode is almost the same as that from the HALT mode.
STOP mode:
Stops the main system clock and thereby stops all the internal
operations of the chip. Consequently, the power consumption is
minimized with only leakage current flowing.
Low power consumption mode:
The main system clock is stopped with the subsystem clock used as
the system clock. The CPU can operate on the subsystem clock to
reduce the current consumption.
Low power consumption HALT mode: This is a standby function in the low power consumption mode and
stops the operation clock of the CPU, to reduce the power consumption
of the entire system.
Low power consumption IDLE mode:
This is a standby function in the low power consumption mode and
stops the entire system except the oscillator, to reduce the power
consumption of the entire system.
These modes are programmable.
The macro service can be started from the HALT mode or low power consumption HALT mode. After macro
service processing is executed, the system returns to the HALT mode again.
The transition of the standby status is shown in Figure 11-1.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
54
Figure 11-1. Standby Function State Transition
Normal
operation
(Main system
clock
operation)
Macro
service
HALT
(Standby)
IDLE
(Standby)
Low power
consumption
mode
(Subsystem
clock operation)
Low
power
consumption
HALT mode
(Standby)
Low power
consumption
IDLE mode
(Standby)
STOP
(Standby)
Macro service request
One time processing ends
Macro service ends
Macro service request
One time processing ends
Interrupt request
Note 1
RESET input
HALT set
IDLE set
NMI, INTP0 to INTP6 input, INTWT,
key return interrupt
Note 2
STOP set
Low power consumption
IDLE mode set
RESET input
Low power
consumption mode set
Return to normal operation
Low power consumption HALT mode set
RESET input
Interrupt request
Note 1
Interrupt
request for
masked interrupt
Interrupt
request for
masked interrupt
Interrupt
request for
masked
interrupt
Interrupt
request
for
masked
interrupt
Interrupt
request
for
masked
interrupt
Macro
service
Macro service request
Macro service request
One time processing ends
Macro service ends
One time processing ends
NMI, INTP0 to INTP6 input,
INTWT, key return interrupt
Note 2
Wait for
stable
oscillation
RESET input
NMI, INTP0 to INTP6 input,
INTWT, key return interrupt
Note 2
RESET input
RESET input
Oscillation stabilization time ends
Notes 1. Only unmasked interrupt requests
2. Only unmasked INTP0 to INTP6, INTWT, key return interrupt (P80 to P87)
Remark NMI is valid only for an external input.
The watchdog timer cannot be used for the release of standby (HALT mode/STOP mode/IDLE mode).
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
55
12. RESET FUNCTION
When a low-level signal is input to the RESET pin, the system is reset, and each hardware unit is initialized (reset).
During the reset period, oscillation of the main system clock is unconditionally stopped. Consequently, the current
consumption of the entire system can be reduced.
When the RESET signal goes high, the reset status is cleared, the oscillation stabilization time (84.0 ms at 12.5
MHz operation) elapses, the contents of the reset vector table are set to the program counter (PC), execution
branches to an address set to the PC, and program execution is started from that branch address. Therefore, the
program can be reset and started from any address.
Figure 12-1. Oscillation of Main System Clock During Reset Period
Oscillation is unconditionally
stopped during reset period
Oscillation stabilization time
Main system clock
oscillator
f
CLK
RESET input
The RESET input pin has an analog delay noise eliminator to prevent malfunctioning due to noise.
Figure 12-2. Acknowledgement of Reset Signal
Analog delay
Analog delay
Analog
delay
Oscillation
stabilization
time
RESET input
Internal reset signal
Internal clock
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
56
13. ROM CORRECTION
ROM correction is a function for avoiding execution of a part of a program in the internal ROM that needs to be
corrected by executing the corrected program, which is stored in the internal RAM.
By using this function, instruction bugs found in the internal ROM can be avoided and the program flow can be
changed.
Up to four combinations between source internal ROM (program) and target RAM sections are available for the
ROM correction.
Figure 13-1. ROM Correction Block Diagram
Remark n = 0 to 3, m = 0, 1
Program counter (PC)
Comparator
Correction address
pointer n
Correction address
register (CORAH, CORAL)
Internal bus
CORENn CORCHm
Coincidence
Correction branch processing
request signal
(CALLT instruction)
ROM correction control register
(CORC)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
57
14. INSTRUCTION SET
(1) 8-bit instructions (The instructions in parentheses are combinations realized by describing A as r)
MOV, XCH, ADD, ADDC, SUB, SUBC, AND, OR, XOR, CMP, MULU, DIVUW, INC, DEC, ROR, ROL, RORC,
ROLC, SHR, SHL, ROR4, ROL4, DBNZ, PUSH, POP, MOVM, XCHM, CMPME, CMPMNE, CMPMNC,
CMPMC, MOVBK, XCHBK, CMPBKE, CMPBKNE, CMPBKNC, CMPBKC
Table 14-1. Instruction List by 8-Bit Addressing
Second Operand
#byte
A
r
saddr
sfr
!addr16
mem
r3
[WHL+]
n
None
Note 2
r'
saddr'
!!addr24
[saddrp]
PSWL
[WHL]
First Operand
[%saddrg]
PSWH
A
(MOV)
(MOV)
MOV
(MOV)
Note 6
MOV
(MOV)
MOV
MOV
(MOV)
ADD
Note 1
(XCH)
XCH
(XCH)
Note 6
(XCH)
(XCH)
XCH
(XCH)
(ADD)
Note 1
(ADD)
Note 1
(ADD)
Notes 1,6
(ADD)
Note 1
ADD
Note 1
ADD
Note 1
(ADD)
Note 1
r
MOV
(MOV)
MOV
MOV
MOV
MOV
ROR
Note 3
MULU
ADD
Note 1
(XCH)
XCH
XCH
XCH
XCH
DIVUW
(ADD)
Note 1
ADD
Note 1
ADD
Note 1
ADD
Note 1
INC
DEC
saddr
MOV
(MOV)
Note 6
MOV
MOV
INC
ADD
Note 1
(ADD)
Note 1
ADD
Note 1
XCH
DEC
ADD
Note 1
DBNZ
sfr
MOV
MOV
MOV
PUSH
ADD
Note 1
(ADD)
Note 1
ADD
Note 1
POP
!addr16
MOV
(MOV)
MOV
!!addr24
ADD
Note 1
mem
MOV
[saddrp]
ADD
Note 1
[%saddrg]
mem3
ROR4
ROL4
r3
MOV
MOV
PSWL
PSWH
B, C
DBNZ
STBC, WDM
MOV
[TDE+]
(MOV)
MOVBK
Note 5
[TDE]
(ADD)
Note 1
MOVM
Note 4
Notes 1. The operands of ADDC, SUB, SUBC, AND, OR, XOR, and CMP are the same as those of ADD.
2. Either the second operand is not used, or the second operand is not an operand address.
3. The operands of ROL, RORC, ROLC, SHR, and SHL are the same as those of ROR.
4. The operands of XCHM, CMPME, CMPMNE, CMPMNC, and CMPMC are the same as those of MOVM.
5. The operands of XCHBK, CMPBKE, CMPBKNE, CMPBKNC, and CMPBKC are the same as those of
MOVBK.
6. The code length of some instructions having saddr2 as saddr in this combination is short.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
58
(2) 16-bit instructions (The instructions in parentheses are combinations realized by describing AX as
rp)
MOVW, XCHW, ADDW, SUBW, CMPW, MULUW, MULW, DIVUX, INCW, DECW, SHRW, SHLW, PUSH,
POP, ADDWG, SUBWG, PUSHU, POPU, MOVTBLW, MACW, MACSW, SACW
Table 14-2. Instruction List by 16-Bit Addressing
Second Operand
#word
AX
rp
saddrp
sfrp
!addr16
mem
[WHL+]
byte
n
None
Note 2
rp'
saddrp'
!!addr24
[saddrp]
First Operand
[%saddrg]
AX
(MOVW)
(MOVW)
(MOVW) (MOVW)
Note 3
MOVW
(MOVW)
MOVW
(MOVW)
ADDW
Note 1
(XCHW)
(XCHW) (XCHW)
Note 3
(XCHW)
XCHW
XCHW
(XCHW)
(ADD)
Note 1
(ADDW)
Note 1
(ADDW)
Notes 1, 3
(ADDW)
Note 1
rp
MOVW
(MOVW)
MOVW
MOVW
MOVW
MOVW
SHRW
MULW
Note 4
ADDW
Note 1
(XCHW)
XCHW
XCHW
XCHW
SHLW
INCW
(ADDW)
Note 1
ADDW
Note 1
ADDW
Note 1
ADDW
Note 1
DECW
saddrp
MOVW
(MOVW)
Note 3
MOVW
MOVW
INCW
ADDW
Note 1
(ADDW)
Note 1
ADDW
Note 1
XCHW
DECW
ADDW
Note 1
sfrp
MOVW
MOVW
MOVW
PUSH
ADDW
Note 1
(ADDW)
Note 1
ADDW
Note 1
POP
!addr16
MOVW
(MOVW)
MOVW
MOVTBLW
!!addr24
mem
MOVW
[saddrp]
[%saddrg]
PSW
PUSH
POP
SP
ADDWG
SUBWG
post
PUSH
POP
PUSHU
POPU
[TDE+]
(MOVW)
SACW
byte
MACW
MACSW
Notes 1. The operands of SUBW and CMPW are the same as those of ADDW.
2. Either the second operand is not used, or the second operand is not an operand address.
3. The code length of some instructions having saddrp2 as saddrp in this combination is short.
4. The operands of MULUW and DIVUX are the same as those of MULW.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
59
(3) 24-bit instructions (The instructions in parentheses are combinations realized by describing WHL
as rg)
MOVG, ADDG, SUBG, INCG, DECG, PUSH, POP
Table 14-3. Instruction List by 24-Bit Addressing
Second Operand
#imm24
WHL
rg
saddrg
!!addr24
mem1
[%saddrg]
SP
None
Note
rg'
First Operand
WHL
(MOVG)
(MOVG)
(MOVG)
(MOVG)
(MOVG)
MOVG
MOVG
MOVG
(ADDG)
(ADDG)
(ADDG)
ADDG
(SUBG)
(SUBG)
(SUBG)
SUBG
rg
MOVG
(MOVG)
MOVG
MOVG
MOVG
INCG
ADDG
(ADDG)
ADDG
DECG
SUBG
(SUBG)
SUBG
PUSH
POP
saddrg
(MOVG)
MOVG
!!addr24
(MOVG)
MOVG
mem1
MOVG
[%saddrg]
MOVG
SP
MOVG
MOVG
INCG
DECG
Note Either the second operand is not used, or the second operand is not an operand address.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
60
(4) Bit manipulation instructions
MOV1, AND1, OR1, XOR1, SET1, CLR1, NOT1, BT, BF, BTCLR, BFSET
Table 14-4. Instruction List by Bit Manipulation Instruction Addressing
Second Operand
CY
saddr.bit sfr.bit
/saddr.bit /sfr. bit
None
Note
A.bit X.bit
/A.bit /X.bit
PSWL.bit PSWH.bit
/PSWL.bit /PSWH.bit
mem2.bit
/mem2.bit
First Operand
!addr16.bit !!addr24.bit
/!addr16.bit /!!addr24.bit
CY
MOV1
AND1
NOT1
AND1
OR1
SET1
OR1
CLR1
XOR1
saddr.bit
MOV1
NOT1
sfr.bit
SET1
A.bit
CLR1
X.bit
BF
PSWL.bit
BT
PSWH.bit
BTCLR
mem2.bit
BFSET
!addr16.bit
!!addr24.bit
Note Either the second operand is not used, or the second operand is not an
operand address.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
61
(5) Call and return/branch instructions
CALL, CALLF, CALLT, BRK, RET, RETI, RETB, RETCS, RETCSB, BRKCS, BR, BNZ, BNE, BZ, BE, BNC,
BNL, BC, BL, BNV, BPO, BV, BPE, BP, BN, BLT, BGE, BLE, BGT, BNH, BH, BF, BT, BTCLR, BFSET, DBNZ
Table 14-5. Instruction List by Call and Return/Branch Instruction Addressing
Operand of Instruction
$addr20 $!addr20 !addr16 !!addr20
rp
rg
[rp]
[rg]
!addr11 [addr5]
RBn
None
Address
Basic instruction
BC
Note
CALL
CALL
CALL
CALL
CALL
CALL
CALL
CALLF
CALLF
BRKCS BRK
BR
BR
BR
BR
BR
BR
BR
BR
RET
RETCS
RETI
RETCSB
RETB
Compound instruction
BF
BT
BTCLR
BFSET
DBNZ
Note The operands of BNZ, BNE, BZ, BE, BNC, BNL, BL, BNV, BPO, BV, BPE, BP, BN, BLT, BGE, BLE, BGT,
BNH, and BH are the same as those of BC.
(6) Other instructions
ADJBA, ADJBS, CVTBW, LOCATION, SEL, NOT, EI, DI, SWRS
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
62
15. ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings (T
A
= 25
C)
Parameter
Symbol
Conditions
Ratings
Unit
Supply voltage
V
DD
0.3 to +6.5
V
AV
DD
0.3 to V
DD
+ 0.3
V
AV
SS
0.3 to V
SS
+ 0.3
V
AV
REF0
A/D converter reference voltage input
0.3 to V
DD
+ 0.3
V
AV
REF1
D/A converter reference voltage input
0.3 to V
DD
+ 0.3
V
Input voltage
V
I1
Other than P90 to P95
0.3 to V
DD
+ 0.3
V
V
I2
P90 to P95 N-ch open drain
0.3 to +12
V
Analog input voltage
V
AN
Analog input pin
AV
SS
0.3 to AV
REF0
+ 0.3
V
Output voltage
V
O
0.3 to V
DD
+ 0.3
V
Output current, low
I
OL
Per pin
15
mA
Total of P2, P4 to P8
75
mA
Total of P0, P3, P9, P10, P12, P13
75
mA
Output current, high
I
OH
Per pin
10
mA
Total of P2, P4 to P8
50
mA
Total of P0, P3, P9, P10, P12, P13
50
mA
Operating ambient
T
A
40 to +85
C
temperature
Storage temperature
T
stg
65 to +150
C
Caution
Product quality may suffer if the absolute maximum rating is exceeded even momentarily for any
parameter. That is, the absolute maximum ratings are rated values at which the product is on the
verge of suffering physical damage, and therefore the product must be used under conditions that
ensure that the absolute maximum ratings are not exceeded.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
63
Operating Conditions
Operating ambient temperature (T
A
): 40 to +85
C
Power supply voltage and clock cycle time: see Figure 15-1
Figure 15-1. Power Supply Voltage and Clock Cycle Time
CAPACITANCE (T
A
= 25
C, V
DD
= V
SS
= 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Input capacitance
C
I
f = 1 MHz
Other than Port 9
15
pF
Unmeasured pins
Port 9
20
pF
Output capacitance
C
O
returned to 0 V.
Other than Port 9
15
pF
Port 9
20
pF
I/O capacitance
C
IO
Other than Port 9
15
pF
Port 9
20
pF
600
500
400
300
200
100
0
0
1
2
3
Supply Voltage [V]
4
5
6
Clock Cycle Time t
CYK
[ns]
Guaranteed
operating
range
5.5
2.7
2.2
80
160
320
4.5
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
64
Main System Clock Oscillator Characteristics (T
A
= 40 to +85
C)
Resonator Recommended Circuit
Parameter
Test Conditions
MIN.
TYP.
MAX.
Unit
Ceramic
Oscillation
4.5 V
V
DD
5.5 V
2
12.5
MHz
resonator
frequency (f
X
)
or crystal
resonator
2.7 V
V
DD
< 4.5 V
2
6.25
2.2 V
V
DD
< 2.7 V
2
3
External
X1 input frequency
4.5 V
V
DD
5.5 V
2
25
MHz
clock
(f
X
)
2.7 V
V
DD
< 4.5 V
2
12.5
2.2 V
V
DD
< 2.7 V
2
6.25
X1 input high-/low-
15
250
ns
level width (t
WXH
, t
WXL
)
X1 input rise/fall
4.5 V
V
DD
5.5 V
0
5
ns
time (t
XR
, t
XF
)
2.7 V
V
DD
< 4.5 V
0
10
2.2 V
V
DD
< 2.7 V
0
20
Cautions 1. When using the main system clock oscillator, wire as follows in the area enclosed by the
broken lines in the above figures to avoid an adverse effect from wiring capacitance.
Keep the wiring length as short as possible.
Do not cross the wiring with the other signal lines.
Do not route the wiring near a signal line through which a high fluctuating current flows.
Always make the ground point of the oscillator capacitor the same potential as V
SS
.
Do not ground the capacitor to a ground pattern through which a high current flows.
Do not fetch signals from the oscillator.
2. When the main system clock is stopped and the device is operating on the subsystem clock,
wait until the oscillation stabilization time has been secured by the program before switching
back to the main system clock.
Remark For the resonator selection and oscillator constant, customers are required to either evaluate the
oscillation themselves or apply to the resonator manufacturer for evaluation.
X2
X1 V
SS
X2
X1
PD74HCU04
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
65
Subsystem Clock Oscillator Characteristics (T
A
= 40 to +85
C)
Resonator Recommended Circuit
Parameter
Test Conditions
MIN.
TYP.
MAX.
Unit
Crystal
Oscillation
32
32.768
35
kHz
resonator
frequency (f
XT
)
Oscillation
4.5 V
V
DD
5.5 V
1.2
2
s
stabilization time
Note
2.2 V
V
DD
< 4.5 V
10
External
XT1 input
32
35
kHz
clock
frequency (f
XT
)
XT1 input high-/low-
5
15
s
level width (t
XTH
, t
XTL
)
Note Time required to stabilize oscillation after the power supply voltage (V
DD
) is applied.
Cautions 1. When using the subsystem clock oscillator, wire as follows in the area enclosed by the broken
lines in the above figures to avoid an adverse effect from wiring capacitance.
Keep the wiring length as short as possible.
Do not cross the wiring with the other signal lines.
Do not route the wiring near a signal line through which a high fluctuating current flows.
Always make the ground point of the oscillator capacitor the same potential as V
SS
.
Do not ground the capacitor to a ground pattern through which a high current flows.
Do not fetch signals from the oscillator.
2. When the main system clock is stopped and the device is operating on the subsystem clock,
wait until the oscillation stabilization time has been secured by the program before switching
back to the main system clock.
Remark For the resonator selection and oscillator constant, customers are required to either evaluate the
oscillation themselves or apply to the resonator manufacturer for evaluation.
V
SS
XT2
XT1
XT2
XT1
PD74HCU04
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
66
DC Characteristics (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V) (1/2)
Parameter
Symbol
Condition
MIN.
TYP.
MAX.
Unit
Input voltage, low
V
IL1
Note 1
0
0.3V
DD
V
V
IL2
Total for P00 to P06, P20, P22, P33, P34, P70,
0
0.2V
DD
V
P72, P100 to P103, RESET
V
IL3
P90 to P95 (N-ch open drain)
0
0.3V
DD
V
V
IL4
Total for P10 to P17, P130, P131
0
0.3V
DD
V
V
IL5
Total for X1, X2, XT1, XT2
0
0.2V
DD
V
V
IL6
P25, P27
0
0.3V
DD
V
Input voltage, high
V
IH1
Note 1
0.7V
DD
V
DD
V
V
IH2
Total for P00 to P06, P20, P22, P33, P34, P70,
0.8V
DD
V
DD
V
P72, P100 to P103, RESET
V
IH3
P90 to P95 (N-ch open drain)
0.7V
DD
12
V
V
IH4
Total for P10 to P17, P130, P131
0.7V
DD
V
DD
V
V
IH5
Total for X1, X2, XT1, XT2
0.8V
DD
V
DD
V
V
IH6
P25, P27
0.7V
DD
V
DD
V
Output voltage, low
V
OL1
For pins other than P40 to
V
DD
= 4.5 to 5.5 V
0.4
V
P47, P50 to P57, P90 to P95
I
OL
= 1.6 mA
Note 2
Total for P40 to P47,
V
DD
= 4.5 to 5.5 V
1.0
V
P50 to P57
I
OL
= 8 mA
Note 2
P90 to P95 I
OL
= 15 mA
Note 2
V
DD
= 4.5 to 5.5 V
0.8
2.0
V
V
OL2
I
OL
= 400
A
Note 2
0.5
V
Output voltage, high
V
OH1
I
OH
= 1 mA
Note 2
V
DD
= 4.5 to 5.5 V V
DD
1.0
V
I
OL
= 100
A
Note 2
V
DD
0.5
V
Input leakage current, low
I
LIL1
V
IN
= 0 V
Except X1, X2,
3
A
XT1, XT2
I
LIL2
X1, X2, XT1, XT2
20
A
Input leakage current, high
I
LIH1
V
IN
= V
DD
Except X1, X2,
3
A
XT1, XT2
I
LIH2
X1, X2, XT1, XT2
20
A
Output leakage current, low
I
LOL1
V
OUT
= 0 V
3
A
Output leakage current, high
I
LOH1
V
OUT
= V
DD
3
A
Notes 1. P21, P23, P24, P26, P30 to P32, P35 to P37, P40 to P47, P50 to P57, P60 to P67, P71, P80 to P87,
P120 to P127
2. Per pin
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
67
DC Characteristics (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V) (2/2)
Parameter
Symbol
Condition
MIN.
TYP.
MAX.
Unit
Supply current
I
DD1
Operation
f
XX
= 12.5 MHz
20
40
mA
mode
f
XX
= 6 MHz, 2.7 V
V
DD
3.3 V
8
17
mA
f
XX
= 3 MHz, 2.2 V
V
DD
< 2.7 V
4
8
mA
I
DD2
HALT mode
f
XX
= 12.5 MHz
8
20
mA
f
XX
= 6 MHz, 2.7 V
V
DD
3.3 V
3
8
mA
f
XX
= 3 MHz, 2.2 V
V
DD
< 2.7 V
1.3
3.5
mA
I
DD3
IDLE mode
f
XX
= 12.5 MHz
1
2.5
mA
f
XX
= 6 MHz, 2.7 V
V
DD
3.3 V
0.5
1.3
mA
f
XX
= 3 MHz, 2.2 V
V
DD
< 2.7 V
0.3
0.9
mA
I
DD4
Operation
f
XX
= 32 kHz
100
200
A
mode
Note
f
XX
= 32 kHz, 2.7 V
V
DD
3.3 V
55
110
A
f
XX
= 32 kHz, 2.2 V
V
DD
< 2.7 V
50
100
A
I
DD5
HALT
f
XX
= 32 kHz
80
160
A
mode
Note
f
XX
= 32 kHz, 2.7 V
V
DD
3.3 V
40
80
A
f
XX
= 32 kHz, 2.2 V
V
DD
< 2.7 V
35
70
A
I
DD6
IDLE
f
XX
= 32 kHz
75
150
A
mode
Note
f
XX
= 32 kHz, 2.7 V
V
DD
3.3 V
35
70
A
f
XX
= 32 kHz, 2.2 V
V
DD
< 2.7 V
30
60
A
Data retention voltage
V
DDDR
HALT, IDLE modes
2.2
5.5
V
Data retention current
I
DDDR
STOP mode
V
DD
= 2.2 V
2
10
A
V
DD
= 4.5 to 5.5 V
10
50
A
Pull-up resistor
R
L
V
IN
= 0 V
10
30
100
k
Note When main system clock is stopped
Remark Unless otherwise specified, the characteristics of alternate-function pins are the same as those of port
pins.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
68
AC Characteristics (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V)
(1) Read/write operation (1/2)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Cycle time
t
CYK
4.5 V
V
DD
5.5 V
80
ns
2.7 V
V
DD
< 4.5 V
160
ns
2.2 V
V
DD
< 2.7 V
320
ns
Address setup time (to ASTB
)
t
SAST
V
DD
= 5.0 V
(0.5 + a) T 11
ns
V
DD
= 3.0 V
(0.5 + a) T 15
ns
Address hold time (from ASTB
)
t
HSTLA
V
DD
= 5.0 V
0.5T 19
ns
V
DD
= 3.0 V
0.5T 24
ns
ASTB high-level width
t
WSTH
V
DD
= 5.0 V
(0.5 + a) T 17
ns
V
DD
= 3.0 V
(0.5 + a) T 40
ns
Address hold time (from RD
)
t
HRA
V
DD
= 5.0 V
0.5T 14
ns
V
DD
= 3.0 V
0.5T 14
ns
Delay time from address to RD
t
DAR
V
DD
= 5.0 V
(1 + a) T 24
ns
V
DD
= 3.0 V
(1 + a) T 24
ns
Address float time (from RD
)
t
FRA
0
ns
Data input time from address
t
DAID
V
DD
= 5.0 V
(2.5 + a + n) T 37
ns
V
DD
= 3.0 V
(2.5 + a + n) T 52
ns
Data input time from ASTB
t
DSTID
V
DD
= 5.0 V
(2 + n) T 35
ns
V
DD
= 3.0 V
(2 + n) T 50
ns
Data input time from RD
t
DRID
V
DD
= 5.0 V
(1.5 + n) T 40
ns
V
DD
= 3.0 V
(1.5 + n) T 50
ns
Delay time from ASTB
to RD
t
DSTR
V
DD
= 5.0 V
0.5T 9
ns
V
DD
= 3.0 V
0.5T 9
ns
Data hold time (from RD
)
t
HRID
0
ns
Address active time from RD
t
DRA
V
DD
= 5.0 V
0.5T 2
ns
V
DD
= 3.0 V
0.5T 12
ns
Delay time from RD
to ASTB
t
DRST
V
DD
= 5.0 V
0.5T 9
ns
V
DD
= 3.0 V
0.5T 9
ns
RD low-level width
t
WRL
V
DD
= 5.0 V
(1.5 + n) T 25
ns
V
DD
= 3.0 V
(1.5 + n) T 30
ns
Delay time from address to WR
t
DAW
V
DD
= 5.0 V
(1 + a) T 24
ns
V
DD
= 3.0 V
(1 + a) T 24
ns
Address hold time (from WR
)
t
HWA
V
DD
= 5.0 V
0.5T 14
ns
V
DD
= 3.0 V
0.5T 14
ns
Delay time from ASTB
to data
t
DSTOD
V
DD
= 5.0 V
0.5T + 15
ns
output
V
DD
= 3.0 V
0.5T + 20
ns
Remark T: t
CYK
= 1/f
XX
(f
XX
: main system clock frequency)
a: 1 (during address wait), otherwise 0
n: Number of waits (n
0)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
69
AC Characteristics
(1) Read/write operation (2/2)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Data output delay time WR
t
DWOD
10
62
ns
Delay time from ASTB
to WR
t
DSTW
V
DD
= 5.0 V
0.5T 9
ns
V
DD
= 3.0 V
0.5T 9
ns
Data setup time (to WR
)
t
SODWR
V
DD
= 5.0 V
(1.5 + n) T 20
ns
V
DD
= 3.0 V
(1.5 + n) T 25
ns
Data hold time (from WR
)
t
HWOD
V
DD
= 5.0 V
0.5T 14
ns
V
DD
= 3.0 V
0.5T 14
ns
ASTB
delay time (from WR
)
t
DWST
V
DD
= 5.0 V
0.5T 9
ns
V
DD
= 3.0 V
0.5T 9
ns
WR low-level width
t
WWL
V
DD
= 5.0 V
(1.5 + n) T 25
ns
V
DD
= 3.0 V
(1.5 + n) T 30
ns
Remark T: t
CYK
= 1/f
XX
(f
XX
: main system clock frequency)
a: 1 (during address wait), otherwise 0
n: Number of waits (n
0)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
70
AC Characteristics
(2) External wait timing
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Input time from address to
t
DAWT
V
DD
= 5.0 V
(2 + a) T 40
ns
WAIT
V
DD
= 3.0 V
(2 + a) T 60
ns
Input time from ASTB
to
t
DSTWT
V
DD
= 5.0 V
1.5T 40
ns
WAIT
V
DD
= 3.0 V
1.5T 60
ns
Hold time from ASTB
to
t
HSTWT
V
DD
= 5.0 V
(0.5 + n) T + 5
ns
WAIT
V
DD
= 3.0 V
(0.5 + n) T + 10
ns
Delay time from ASTB
to
t
DSTWTH
V
DD
= 5.0 V
(1.5 + n) T 40
ns
WAIT
V
DD
= 3.0 V
(1.5 + n) T 60
ns
Input time from RD
to WAIT
t
DRWTL
V
DD
= 5.0 V
T 40
ns
V
DD
= 3.0 V
T 60
ns
Hold time from RD
to WAIT
t
HRWT
V
DD
= 5.0 V
nT + 5
ns
V
DD
= 3.0 V
nT + 10
ns
Delay time from RD
to WAIT
t
DRWTH
V
DD
= 5.0 V
(1 + n) T 40
ns
V
DD
= 3.0 V
(1 + n) T 60
ns
Input time from WAIT
to data
t
DWTID
V
DD
= 5.0 V
0.5T 5
ns
V
DD
= 3.0 V
0.5T 10
ns
Delay time from WAIT
to RD
t
DWTR
V
DD
= 5.0 V
0.5T
ns
V
DD
= 3.0 V
0.5T
ns
Delay time from WAIT
to WR
t
DWTW
V
DD
= 5.0 V
0.5T
ns
V
DD
= 3.0 V
0.5T
ns
Input time from WR
to WAIT
t
DWWTL
V
DD
= 5.0 V
T 40
ns
V
DD
= 3.0 V
T 60
ns
Hold time from WR
to WAIT
t
HWWT
V
DD
= 5.0 V
nT + 5
ns
V
DD
= 3.0 V
nT + 10
ns
Delay time from WR
to WAIT
t
DWWTH
V
DD
= 5.0 V
(1 + n) T 40
ns
V
DD
= 3.0 V
(1 + n) T 60
ns
Remark
T: t
CYK
= 1/f
XX
(f
XX
: main system clock frequency)
a: 1 (during address wait), otherwise 0
n: Number of waits (n
0)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
71
Serial Operation (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V)
(a) 3-wire serial I/O mode (SCK: internal clock output)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
SCK cycle time
t
KCY1
2.7 V
V
DD
5.5 V
800
ns
3,200
ns
SCK high-/low-level width
t
KH1
,
2.7 V
V
DD
5.5 V
350
ns
t
KL1
1,500
ns
SI setup time (to SCK
)
t
SIK1
2.7 V
V
DD
5.5 V
10
ns
30
ns
SI hold time (from SCK
)
t
KSI1
40
ns
SO output delay time
t
KSO1
30
ns
(from SCK
)
(b) 3-wire serial I/O mode (SCK: external clock input)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
SCK cycle time
t
KCY2
2.7 V
V
DD
5.5 V
800
ns
3,200
ns
SCK high-/low-level width
t
KH2
,
2.7 V
V
DD
5.5 V
400
ns
t
KL2
1,600
ns
SI setup time (to SCK
)
t
SIK2
2.7 V
V
DD
5.5 V
10
ns
30
ns
SI hold time (from SCK
)
t
KSI2
40
ns
SO output delay time
t
KSO2
30
ns
(from SCK
)
(c) UART mode
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
ASCK cycle time
t
KCY3
4.5 V
V
DD
5.5 V
417
ns
2.7 V
V
DD
< 4.5 V
833
ns
1,667
ns
ASCK high-/low-level width
t
KH3
,
4.5 V
V
DD
5.5 V
208
ns
t
KL3
2.7 V
V
DD
< 4.5 V
416
ns
833
ns
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
72
(d) I
2
C bus mode (
PD784218Y only)
Parameter
Symbol
Standard Mode
High-Speed Mode
Unit
MIN.
MAX.
MIN.
MAX.
SCL0 clock frequency
f
CLK
0
100
0
400
kHz
Bus free time (between stop
t
BUF
4.7
1.3
s
and start conditions)
Hold time
Note1
t
HD : STA
4.0
0.6
s
Low-level width of SCL0 clock
t
LOW
4.7
1.3
s
High-level width of SCL0 clock
t
HIGH
4.0
0.6
s
Setup time of start/restart
t
SU : STA
4.7
0.6
s
conditions
Data
When using CBUS-
t
HD : DAT
5.0
s
hold
compatible master
time
When using I
2
C bus
0
Note 2
0
Note 2
0.9
Note 3
s
Data setup time
t
SU : DAT
250
100
Note 4
ns
Rise time of SDA0 and SCL0
t
R
1,000
20 + 0.1Cb
Note 5
300
ns
signals
Fall time of SDA0 and SCL0
t
F
300
20 + 0.1Cb
Note 5
300
ns
signals
Setup time of stop condition
t
SU : STO
4.0
0.6
s
Pulse width of spike restricted
t
SP
0
50
ns
by input filter
Load capacitance of each bus
Cb
400
400
pF
line
Notes 1. For the start condition, the first clock pulse is generated after the hold time.
2. To fill the undefined area of the SCL0 falling edge, it is necessary for the device to provide an internal
SDA0 signal (on V
IHmin.
) with at least 300 ns of hold time.
3. If the device does not extend the SCL0 signal low hold time (t
LOW
), only maximum data hold time
t
HD : DAT
needs to be satisfied.
4. The high-speed mode I
2
C bus can be used in a standard mode I
2
C bus system. In this case, the
conditions described below must be satisfied.
If the device does not extend the SCL0 signal low state hold time
t
SU : DAT
250 ns
If the device extends the SCL0 signal low state hold time
Be sure to transmit the data bit to the SDA0 line before the SCL0 line is released
(t
Rmax.
+ t
SU : DAT
= 1,250 ns by standard mode I
2
C bus specification)
5. Cb: total capacitance per one bus line (unit: pF)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
73
Other Operations (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
NMI high-/low-level width
t
WNIL
10
s
t
WNIH
INTP input high-/low-level width
t
WITL
INTP0 to INTP6
10
s
t
WITH
RESET high-/low-level width
t
WRSL
10
s
t
WRSH
Clock Output Operation (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
PCL cycle time
t
CYCL
V
DD
= 4.5 to 5.5 V, nT
80
31,250
ns
PCL high-/low-level width
t
CLL
V
DD
= 4.5 to 5.5 V, 0.5T 10
30
15,615
ns
t
CLH
PCL rise/fall time
t
CLR
4.5 V
V
DD
5.5 V
5
ns
t
CLF
2.7 V
V
DD
< 4.5 V
10
ns
2.2 V
V
DD
< 2.7 V
20
ns
Remark T: t
CYK
= 1/f
XX
(f
XX
: main system clock frequency)
n: Divided frequency ratio set by software in the CPU
When using the main system clock: n = 1, 2, 4, 8, 16, 32, 64, 128
When using the subsystem clock: n = 1
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
74
A/D Converter Characteristics (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Resolution
8
8
8
bit
Overall error
Note
2.7 V
AV
REF0
AV
DD
1.2
%
2.2 V
AV
REF0
< 2.7 V (only when AV
REF0
= AV
DD
)
1.6
%
Conversion time
t
CONV
14
144
s
Sampling time
t
SAMP
24/f
XX
s
Analog input voltage
V
IAN
AV
SS
AV
REF0
V
Reference voltage
AV
REF0
2.2
AV
DD
V
Resistance between AV
REF0
and AV
SS
R
AVREF0
29.4
k
Note Excludes quantization error (
1/2 LSB).
Remark f
XX
: Main system clock frequency
D/A Converter Characteristics (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Resolution
8
8
8
bit
Total error
R = 2 M
, 2.2 V < AV
REF1
5.5 V
1.2
%
R = 4 M
, 2.2 V < AV
REF1
5.5 V
0.8
%
R = 10 M
, 2.2 V < AV
REF1
5.5 V
0.6
%
Settling time
Load conditions:
4.5 V
AV
REF1
5.5 V
10
s
C = 30 pF
2.7 V
AV
REF1
< 4.5 V
15
s
2.2 V
AV
REF1
< 2.7 V
20
s
Output resistance
R
O
DACS0, 1 = 55 H
5.3
k
Reference voltage
AV
REF1
2.2
V
DD
V
AV
REF1
current
AI
REF1
For only 1 channel
2.5
mA
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
75
Data Retention Characteristics (T
A
= 40 to +85
C, V
DD
= AV
DD
= 2.2 to 5.5 V, V
SS
= AV
SS
= 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Data retention voltage
V
DDDR
STOP mode
2.2
5.5
V
Data retention current
I
DDDR
V
DDDR
= +4.5 to 5.5 V
10
50
A
V
DDDR
= +2.5 V
2
10
A
V
DD
rise time
t
RVD
200
s
V
DD
fall time
t
FVD
200
s
V
DD
hold time
t
HVD
0
ms
(from STOP mode setting)
STOP release signal input time
t
DREL
0
ms
Oscillation stabilization wait time t
WAIT
Crystal resonator
30
ms
Ceramic resonator
5
ms
Input voltage, low
V
IL
RESET, P00/INTP0 to P06/INTP6
0
0.1V
DDDR
V
Input voltage, high
V
IH
0.9V
DDDR
V
DDDR
V
AC Timing Measurement Points
0.8V
DD
or 2.2 V
0.8 V
0.8V
DD
or 2.2 V
0.8 V
Point of
measurement
V
DD
1 V
0.45 V
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
76
Timing Waveforms
(1) Read operation
(CLK)
A8 to A19
(Output)
ASTB
(Output)
RD
(Output)
WAIT
(Input)
AD0 to AD7
(Input/output)
t
CYK
Higher address
Hi-Z
Hi-Z
Hi-Z
Higher address
A0 to A7
(Output)
Lower address
Lower address
Data (Input)
Lower address
(Output)
Lower address
(Output)
t
DAID
t
HRA
t
SAST
t
WSTH
t
DSTR
t
DRST
t
DAR
t
DRID
t
WRL
t
DRWTH
t
DSTWT
t
DSTWTH
t
HSTWT
t
HRWT
t
DAWT
t
DWTR
t
HSTLA
t
FRA
t
DWTID
t
DRWTL
t
HRID
t
DRA
t
DSTID
Remark Signals are output from A0 to A7 while ports 80 to 87 are not being used.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
77
(2) Write operation
(CLK)
A8 to A19
(Output)
ASTB
(Output)
WAIT
(Input)
AD0 to AD7
(Output)
t
CYK
t
DAID
t
HWA
t
SAST
t
WSTH
t
DSTW
t
DWST
t
DAW
t
DWOD
t
WWL
t
DWWTH
t
DSTWT
t
DSTWTH
t
HSTWT
t
HWWT
t
DAWT
t
DWTW
t
HSTLA
t
FRA
t
DWTID
t
DWWTL
t
HWOD
t
DAW
t
DSTOD
t
SODWR
Hi-Z
Hi-Z
Hi-Z
WR
(Output)
Higher address
Higher address
A0 to A7
(Output)
Lower address
Lower address
Data (Output)
Lower address
(Output)
Lower address
(Output)
Remark Signals are output from A0 to A7 while ports 80 to 87 are not being used.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
78
Serial Operation
(1) 3-wire serial I/O mode
(2) UART mode
SCK
SI/SO
t
KCY1, 2
t
KL1, 2
t
KH1, 2
t
KSO1, 2
t
SIK1, 2
t
KSI1, 2
ASCK
t
KCY3
t
KH3
t
KL3
SCL0
SDA0
t
R
t
HD : DAT
t
HD : STA
t
BUF
t
HIGH
t
LOW
t
SU : DAT
t
F
t
SU : STA
t
HD : STA
t
SP
t
SU : STO
Stop
condition
Start
condition
Restart
condition
Stop
condition
(3) I
2
C bus mode (
PD784218Y Subseries only)
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
79
Clock Output Timing
Interrupt Input Timing
Reset Input Timing
CLKOUT
t
CLH
t
CLL
t
CYCL
t
CLF
t
CLR
RESET
t
WRSH
t
WRSL
NMI
INTP0 to INTP6
t
WNIH
t
WNIL
t
WITH
t
WITL
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
80
Clock Timing
X1
t
WXH
t
WXL
1/f
X
t
XF
t
XR
XT1
t
XTH
t
XTL
1/f
XT
Data Retention Characteristics
V
DD
RESET
NMI
(Cleared by falling edge)
NMI
(Cleared by rising edge)
t
HVD
t
FVD
t
RVD
t
DREL
V
DDDR
STOP mode setting
t
WAIT
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
81
16. PACKAGE DRAWINGS
100-PIN PLASTIC LQFP (FINE PITCH) (14x14)
NOTE
Each lead centerline is located within 0.08 mm of
its true position (T.P.) at maximum material condition.
ITEM
MILLIMETERS
A
B
D
G
16.00
0.20
14.00
0.20
0.50 (T.P.)
1.00
J
16.00
0.20
K
C
14.00
0.20
I
0.08
1.00
0.20
L
0.50
0.20
F
1.00
N
P
Q
0.08
1.40
0.05
0.10
0.05
S100GC-50-8EU-1
S
1.60 MAX.
H
0.22
+
0.05
-
0.04
M
0.17
+
0.03
-
0.07
R
3
+
7
-
3
1
25
26
50
100
76
75
51
S
S
N
J
detail of lead end
C
D
A
B
R
K
M
L
P
I
S
Q
G
F
M
H
Remark The external dimensions and material of the ES version are the same as those of the mass-produced
version.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
82
80
81
50
100
1
31
30
51
100-PIN PLASTIC QFP (14x20)
H
I
J
detail of lead end
M
Q
R
K
M
L
P
S
S
N
G
F
NOTE
Each lead centerline is located within 0.15 mm of
its true position (T.P.) at maximum material condition.
ITEM
MILLIMETERS
A
B
D
G
23.6
0.4
20.0
0.2
0.30
0.10
0.6
H
17.6
0.4
I
C
14.0
0.2
0.15
J
0.65 (T.P.)
K
1.8
0.2
L
0.8
0.2
F
0.8
P100GF-65-3BA1-4
N
P
Q
0.10
2.7
0.1
0.1
0.1
R
5
5
S
3.0 MAX.
M
0.15
+
0.10
-
0.05
C D
A
B
S
Remark The external dimensions and material of the ES version are the same as those of the mass-produced
version.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
83
17. RECOMMENDED SOLDERING CONDITIONS
The
PD784218 should be soldered and mounted under the following recommended conditions. For the details
of the recommended soldering conditions, refer to the document Semiconductor Device Mounting Technology
Manual (C10535E).
For soldering methods and conditions other than those recommended below, contact your NEC sales representative.
Caution
Soldering conditions for the
PD784218YGC-
-8EU and
PD784218YGF-
-3BA are undetermined
because these products are under development.
Table 17-1. Soldering Conditions for Surface Mount Type
(1)
PD784218GC-
-8EU: 100-pin plastic LQFP (Fine pitch) (14
14 mm)
Soldering Method
Soldering Conditions
Recommended
Condition Symbol
Infrared reflow
Package peak temperature: 235
C, Time: 30 seconds max. (at 210
C or
IR35-107-2
higher), Count: Two times or less, Exposure limit: 7 days
Note
(after that,
prebake at 125
C for 10 hours)
VPS
Package peak temperature: 215
C, Time: 40 seconds max. (at 200
C or
VP-15-107-2
higher), Count: Two times or less, Exposure limit: 7 days
Note
(after that,
prebake at 125
C for 10 hours)
Partial heating
Pin temperature: 300
C max., Time: 3 seconds max. (per pin row)
--
Note After opening the dry pack, store it at 25
C or less and 65% RH or less for the allowable storage period.
Caution
Do not use different soldering methods together (except for partial heating).
(2)
PD784218GF-
-3BA: 100-pin plastic QFP (14
20 mm)
Soldering Method
Soldering Conditions
Recommended
Condition Symbol
Infrared reflow
Package peak temperature: 235
C, Time: 30 seconds max. (at 210
C or
IR35-00-2
higher), Count: Two times or less
VPS
Package peak temperature: 215
C, Time: 40 seconds max. (at 200
C or
VP15-00-2
higher), Count: Two times or less
Wave soldering
Solder bath temperature: 260
C max., Time: 10 seconds max., Count: Once,
WS60-00-1
Preheating temperature: 120
C max. (package surface temperature)
Partial heating
Pin temperature: 300
C max., Time: 3 seconds max. (per pin row)
--
Caution
Do not use different soldering methods together (except for partial heating).
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
84
APPENDIX A DEVELOPMENT TOOLS
The following development tools are available for system development using the
PD784218. Also refer to (5)
Cautions on Using Development Tools.
(1) Language Processing Software
RA78K4
Assembler package common to 78K/IV Series
CC78K4
C compiler package common to 78K/IV Series
DF784218
Device file common to
PD784218, 784218Y Subseries
CC78K4-L
C compiler library source file common to 78K/IV Series
(2) Flash Memory Writing Tools
Flashpro II
Dedicated flash programmer for microcontroller incorporating flash memory
(Part No.: FL-PR2),
Flashpro III
(Part No.: FL-PR3, PG-FP3)
FA-100GF
Adapter for writing 100-pin plastic QFP (GF-3BA type) flash memory.
FA-100GC
Adapter for writing 100-pin plastic LQFP (GC-8EU type) flash memory.
(3) Debugging Tools
When IE-78K4-NS in-circuit emulator is used
IE-78K4-NS
In-circuit emulator common to 78K/IV Series
IE-70000-MC-PS-B
Power supply unit for IE-78K4-NS
IE-70000-98-IF-C
Interface adapter used when PC-9800 series PC (except notebook type) is used as host
machine (C bus supported)
IE-70000-CD-IF-A
PC card and cable when notebook PC is used as host machine (PCMCIA socket supported)
IE-70000-PC-IF-C
Interface adapter when using IBM PC/AT
TM
or compatible as host machine (ISA bus
supported)
IE-70000-PCI-IF
Interface adapter when using PC that incorporates PCI bus as host machine
IE-784225-NS-EM1
Emulation board to emulate
PD784218, 784218Y Subseries
NP-100GF
Emulation probe for 100-pin plastic QFP (GF-3BA type)
NP-100GC
Emulation probe for 100-pin plastic LQFP (GC-8EU type)
EV-9200GF-100
Socket to be mounted on a target system board made for 100-pin plastic QFP (GF-3BA type)
TGC-100SDW
Conversion adapter to connect the NP-100GC and a target system board on which a 100-
pin plastic LQFP (GC-8EU type) can be mounted
ID78K4-NS
Integrated debugger for IE-78K4-NS
SM78K4
System simulator common to 78K/IV Series
DF784218
Device file common to
PD784218, 784218Y Subseries
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
85
When IE-784000-R in-circuit emulator is used
IE-784000-R
In-circuit emulator common to 78K/IV Series
IE-70000-98-IF-C
Interface adapter used when PC-9800 series PC (except notebook type) is used as host
machine (C bus supported)
IE-70000-PC-IF-C
Interface adapter when using IBM PC/AT or compatible as host machine (ISA bus
supported)
IE-70000-PCI-IF
Interface adapter when using PC that incorporates PCI bus as host machine
IE-78000-R-SV3
Interface adapter and cable used when EWS is used as host machine
IE-784225-NS-EM1
Emulation board to emulate
PD784218, 784218Y Subseries
IE-784218-R-EM1
IE-784000-R-EM
Emulation board common to 78K/IV Series
IE-78K4-R-EX3
Emulation probe conversion board necessary when using IE-784225-NS-EM1 on IE-
784000-R. Not necessary when IE-784216-R-EM1 is used.
EP-78064GF-R
Emulation probe for 100-pin plastic QFP (GF-3BA type)
EP-78064GC-R
Emulation probe for 100-pin plastic LQFP (GC-8EU type)
EV-9200GF-100
Socket to be mounted on a target system board made for 100-pin plastic QFP (GF-3BA type)
TGC-100SDW
Conversion adapter to connect the NP-100GC and a target system board on which a 100-
pin plastic LQFP (GC-8EU type) can be mounted
ID78K4
Integrated debugger for IE-784000-R
SM78K4
System simulator common to 78K/IV Series
DF784218
Device file common to
PD784218, 784218Y Subseries
(4) Real-time OS
RX78K/IV
Real-time OS for 78K/IV Series
MX78K4
OS for 78K/IV Series
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
86
(5) Cautions on Using Development Tools
The ID78K4-NS, ID78K4, and SM78K4 are used in combination with the DF784218.
The CC78K4 and RX78K/IV are used in combination with the RA78K4 and DF784218.
The FL-PR2, FL-PR3, FA-100GF, FA-100GC, NP-100GF, and NP-100GC are products made by Naito
Densei Machida Mfg. Co., Ltd. (TEL: +81-44-822-3813).
The TGC-100SDW is a product made by TOKYO ELETECH CORPORATION.
For further information, contact Daimaru Kogyo, Ltd.
Tokyo Electronic Division (TEL: +81-3-3820-7112)
Osaka Electronic Division (TEL: +81-6-6244-6672)
For third-party development tools, see the 78K/IV Series Selection Guide (U13355E).
The host machine and OS suitable for each software are as follows:
Host Machine
PC
EWS
[OS]
PC-9800 series [Windows]
HP9000 series 700
TM
[HP-UX
TM
]
IBM PC/AT and compatibles
SPARCstation
TM
[SunOS
TM
, Solaris
TM
]
Software
[Japanese/English Windows]
NEWS
TM
(RISC) [NEWS-OS
TM
]
RA78K4
Note
CC78K4
Note
ID78K4-NS
ID78K4
SM78K4
RX78K/IV
Note
MX78K4
Note
Note DOS-based software
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
87
APPENDIX B RELATED DOCUMENTS
Documents Related to Devices
Document Name
Document No.
Japanese
English
PD784218, 784218Y Data Sheet
U12304J
This document
PD78F4218, 78F4218Y Preliminary Product Information
U12440J
U12440E
PD784218, 784218Y Subseries User's Manual Hardware
U12970J
U12970E
78K/IV Series User's Manual Instructions
U10905J
U10905E
78K/IV Series Instruction Table
U10594J
78K/IV Series Instruction Set
U10595J
78K/IV Series Application Note Software Fundamentals
U10095J
U10095E
Documents Related to Development Tools (User's Manuals)
Document Name
Document No.
Japanese
English
RA78K4 Assembler Package
Language
U11162J
U11162E
Operation
U11334J
U11334E
RA78K Structured Assembler Preprocessor
U11743J
U11743E
CC78K4 C Compiler
Language
U11571J
U11571E
Operation
U11572J
U11572E
IE-78K4-NS
U13356J
U13356E
IE-784000-R
U12903J
U12903E
IE-784218-R-EM1
U12155J
U12155E
IE-784225-NS-EM1
U13742J
U13742E
EP-78064
EEU-934
EEU-1469
SM78K4 System Simulator Windows Based
Reference
U10093J
U10093E
SM78K Series System Simulator
External Part User Open
U10092J
U10092E
Interface Specifications
ID78K4-NS Integrated Debugger PC Based
Reference
U12796J
U12796E
ID78K4 Integrated Debugger Windows Based
Reference
U10440J
U10440E
ID78K4 Integrated Debugger HP-UX, SunOS, NEWS-OS Based
Reference
U11960J
U11960E
Caution
The related documents listed above are subject to change without notice. Be sure to use the latest
version of each document for designing.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
88
Documents Related to Embedded Software (User's Manuals)
Document Name
Document No.
Japanese
English
78K/IV Series Real-Time OS
Fundamentals
U10603J
U10603E
Installation
U10604J
U10604E
Debugger
U10364J
78K/IV Series OS MK78K4
Fundamentals
U11779J
Other Related Documents
Document Name
Document No.
Japanese
English
SEMICONDUCTORS SELECTION GUIDE Products & Packages (CD-ROM)
X13769X
Semiconductor Device Mounting Technology Manual
C10535J
C10535E
Quality Grades on NEC Semiconductor Devices
C11531J
C11531E
NEC Semiconductor Device Reliability/Quality Control System
C10983J
C10983E
Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD)
C11892J
C11892E
Guide to Microcontroller-Related Products by Third Parties
U11416J
Caution
The related documents listed above are subject to change without notice. Be sure to use the latest
version of each document for designing.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
89
[MEMO]
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
90
NOTES FOR CMOS DEVICES
1
PRECAUTION AGAINST ESD FOR SEMICONDUCTORS
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.
2
HANDLING 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
DD
or GND with a resistor, if it is considered to have a 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.
3
STATUS 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.
IEBus is a trademark of NEC Corporation.
Windows is a registered trademark or a trademark of Microsoft Corporation in the United States and/or other
countries.
PC/AT is a trademark 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.
Solaris and SunOS are trademarks of Sun Microsystems, Inc.
NEWS and NEWS-OS are trademarks of Sony Corporation.
Purchase of NEC I
2
C components conveys a license under the Philips I
2
C Patent Rights to use these
components in an I
2
C system, provided that the system conforms to the I
2
C Standard Specification as defined
by Philips.
PD784218, 784218Y
Data Sheet U12304EJ2V0DS00
91
NEC Electronics Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
Fax: 408-588-6130
800-729-9288
NEC Electronics (Germany) GmbH
Duesseldorf, Germany
Tel: 0211-65 03 02
Fax: 0211-65 03 490
NEC Electronics (UK) Ltd.
Milton Keynes, UK
Tel: 01908-691-133
Fax: 01908-670-290
NEC Electronics Italiana s.r.l.
Milano, Italy
Tel: 02-66 75 41
Fax: 02-66 75 42 99
NEC Electronics Hong Kong Ltd.
Hong Kong
Tel: 2886-9318
Fax: 2886-9022/9044
NEC Electronics Hong Kong Ltd.
Seoul Branch
Seoul, Korea
Tel: 02-528-0303
Fax: 02-528-4411
NEC Electronics Singapore Pte. Ltd.
United Square, Singapore 1130
Tel: 65-253-8311
Fax: 65-250-3583
NEC Electronics Taiwan Ltd.
Taipei, Taiwan
Tel: 02-2719-2377
Fax: 02-2719-5951
NEC do Brasil S.A.
Electron Devices Division
Rodovia Presidente Dutra, Km 214
07210-902-Guarulhos-SP Brasil
Tel: 55-11-6465-6810
Fax: 55-11-6465-6829
NEC Electronics (Germany) GmbH
Benelux Office
Eindhoven, The Netherlands
Tel: 040-2445845
Fax: 040-2444580
NEC Electronics (France) S.A.
Velizy-Villacoublay, France
Tel: 01-30-67 58 00
Fax: 01-30-67 58 99
NEC Electronics (France) S.A.
Spain Office
Madrid, Spain
Tel: 91-504-2787
Fax: 91-504-2860
NEC Electronics (Germany) GmbH
Scandinavia Office
Taeby, Sweden
Tel: 08-63 80 820
Fax: 08-63 80 388
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.
J99.1
PD784218, 784218Y
The related documents indicated in this publication may include preliminary versions. However, preliminary
versions are not marked as such.
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 information in this document is subject to change without notice. Before using this document, please
confirm that this is the latest version.
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.
Descriptions of circuits, software, and other related information in this document are provided for illustrative
purposes in semiconductor product operation and application examples. The incorporation of these circuits,
software, and information in the design of the customer's equipment shall be done under the full responsibility
of the customer. NEC Corporation assumes no responsibility for any losses incurred by the customer or third
parties arising from the use of these circuits, software, and information.
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: Aircraft, 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.
M7 98. 8