NEC UPD784031A

DATA SHEET
MOS INTEGRATED CIRCUIT
µPD784031
16/8-BIT SINGLE-CHIP MICROCONTROLLER
The µPD784031 is a product of the µPD784038 sub-series in the 78K/IV series. It contains various peripheral
hardware such as RAM, I/O ports, 8-bit resolution A/D and D/A converters, timers, serial interface, and interrupt
functions, as well as a high-speed, high-performance CPU.
The µPD784031 is a ROM-less product of the µPD784035 and µPD784036.
For specific functions and other detailed information, consult the following user’s manual.
This manual is required reading for design work.
µPD784038, 784038Y Sub-Series User’s Manual, Hardware : U11316E
78K/IV Series User’s Manual, Instruction
: U10905E
Features
• Pin-compatible with the µPD78234, µPD784026, and
µPD784038Y sub-series
• Timer/counters
16-bit timer/counter × 3 units
16-bit timer × 1 unit
• Minimum instruction execution time: 125 ns
(at 32 MHz)
• Standby function
• Number of I/O ports: 46
HALT/STOP/IDLE mode
• Serial interface: 3 channels
• Clock frequency division function
UART/IOE (3-wire serial I/O): 2 channels
• Watchdog timer: 1 channel
CSI (3-wire serial I/O, 2-wire serial I/O): 1 channel
• A/D converter: 8-bit resolution × 8 channels
• D/A converter: 8-bit resolution × 2 channels
• PWM outputs: 2
• Power supply voltage: VDD = 2.7 to 5.5 V
Applications
LBP, automatic-focusing camera, PPC, printer, electronic typewriter, air conditioner, electronic musical instruments, cellular telephone, etc.
Ordering Information
Part number
Package
Internal ROM
Internal RAM
(bytes)
(bytes)
µPD784031GC-3B9
80-pin plastic QFP (14 × 14 × 2.7 mm)
None
2 048
µPD784031GC-8BT
80-pin plastic QFP (14 × 14 × 1.4 mm)
None
2 048
µPD784031GK-BE9
80-pin plastic TQFP (fine pitch) (12 × 12 mm)
None
2 048
The information in this document is subject to change without notice.
Document No. U11507EJ1V0DS00 (1st edition)
Date Published March 1997 J
Printed in Japan
The mark
shows major revised points.
©
1997
µPD784031
78K/IV Series Product Development Diagram
: Product under mass production
: Product under development
Standard Products Development
µ PD784038Y sub-series
Product containing for
an I2C bus interface circuit
µ PD784038 sub-series
80-pin, 8-bit A/D, 8-bit D/A
ROM: none/48K/64K/96K/128K
µPD784216Y sub-series
Product containing for
an I2C bus interface circuit
µ PD784026 sub-series
80-pin, 8-bit A/D, 8-bit D/A
ROM: none/48K/64K
µ PD784216 sub-series
100-pin, 8-bit A/D, 8-bit D/A
ROM: 96K/128K
µPD784054
80-pin, 10-bit A/D
ROM: 32K
µPD784046 sub-series sub-set
µ PD784046 sub-series
80-pin, 10-bit A/D
ROM: 32K/64K
ASSP Development
µ PD784915 sub-series
VCR servo, 100-pin, built-in
analog amplifier
ROM: 48K/62K
2
µ PD784908 sub-series
100-pin, built-in IEBusTM controller
ROM: 96K/128K
µ PD78F4943 sub-series
80-pin, for CD-ROM
Flash memory: 56K
µPD784031
Functions
Item
Function
Number of basic instructions
(mnemonics)
113
General-purpose register
8 bits × 16 registers × 8 banks, or 16 bits × 8 registers × 8 banks (memory mapping)
Minimum instruction execution
time
125 ns/250 ns/500 ns/1 000 ns (at 32 MHz)
Internal
memory
ROM
None
RAM
2 048 bytes
Memory space
I/O ports
Additional
function
pinsNote
Program and data: 1M byte
Total
46
Input
8
Input/output
34
Output
4
Pins with pull- 32
up resistor
LED direct
drive outputs
8
Transistor
direct drive
8
Real-time output ports
4 bits × 2, or 8 bits × 1
Timer/counter
Timer/counter 0:
(16 bits)
Timer register × 1
Capture register × 1
Compare register × 2
Pulse output capability
• Toggle output
• PWM/PPG output
• One-shot pulse output
Timer/counter 1:
(8/16 bits)
Timer register × 1
Capture register × 1
Capture/compare register × 1
Compare register × 1
Pulse output capability
• Real-time output (4 bits × 2)
Timer/counter 2:
(8/16 bits)
Timer register × 1
Capture register × 1
Capture/compare register × 1
Compare register × 1
Pulse output capability
• Toggle output
• PWM/PPG output
Timer 3
(8/16 bits)
Timer register × 1
Compare register × 1
:
PWM outputs
12-bit resolution × 2 channels
Serial interface
UART/IOE (3-wire serial I/O)
: 2 channels (incorporating baud rate generator)
CSI (3-wire serial I/O, 2-wire serial I/O): 1 channel
A/D converter
8-bit resolution × 8 channels
D/A converter
8-bit resolution × 2 channels
Watchdog timer
1 channel
Standby
Interrupt
HALT/STOP/IDLE mode
Hardware source 23 (16 internal, 7 external (sampling clock variable input: 1))
Software source
BRK instruction, BRKCS instruction, operand error
Nonmaskable
1 internal, 1 external
Maskable
15 internal, 6 external
• 4-level programmable priority
• 3 operation statuses: vectored interrupt, macro service, context switching
Supply voltage
VDD = 2.7 to 5.5 V
Package
80-pin plastic QFP (14 × 14 × 2.7 mm)
80-pin plastic QFP (14 × 14 × 1.4 mm)
80-pin plastic TQFP (fine pitch) (12 × 12 mm)
Note Additional function pins are included in the I/O pins.
3
µPD784031
CONTENTS
1.
DIFFERENCES BETWEEN µPD784038 SUB-SERIES ............................................................
6
2.
MAIN DIFFERENCES BETWEEN µPD784038, µPD784038Y, µPD784026,
AND µPD78234 SUB-SERIES ...................................................................................................
7
3.
PIN CONFIGURATION (TOP VIEW) .........................................................................................
8
4.
SYSTEM CONFIGURATION EXAMPLE (PPC) ........................................................................
10
5.
BLOCK DIAGRAM ......................................................................................................................
11
6.
LIST OF PIN FUNCTIONS .........................................................................................................
12
7.
6.1
Port Pins ............................................................................................................................................
12
6.2
Non-Port Pins ...................................................................................................................................
13
6.3
I/O Circuits for Pins and Handling of Unused Pins ....................................................................
15
CPU ARCHITECTURE ................................................................................................................
18
7.1
Memory Space ..................................................................................................................................
18
7.2
8.
CPU Registers ..................................................................................................................................
20
7.2.1
General-purpose registers ................................................................................................
20
7.2.2
Control registers ................................................................................................................
21
7.2.3
Special function registers (SFRs) ....................................................................................
22
PERIPHERAL HARDWARE FUNCTIONS ................................................................................
27
8.1
Ports ...................................................................................................................................................
27
8.2
Clock Generator ...............................................................................................................................
28
8.3
Real-Time Output Port .....................................................................................................................
30
8.4
Timers/Counters ...............................................................................................................................
31
8.5
PWM Output (PWM0, PWM1) ..........................................................................................................
33
8.6
A/D Converter ...................................................................................................................................
34
8.7
D/A Converter ...................................................................................................................................
35
8.8
Serial Interface .................................................................................................................................
36
8.8.1
Asynchronous serial interface/three-wire serial I/O (UART/IOE) ................................
37
8.8.2
Synchronous serial interface (CSI) ..................................................................................
39
8.9
9.
4
Edge Detection Function ................................................................................................................
40
8.10 Watchdog Timer ...............................................................................................................................
40
INTERRUPT FUNCTION ............................................................................................................
41
9.1
Interrupt Source ...............................................................................................................................
41
9.2
Vectored Interrupt ............................................................................................................................
43
9.3
Context Switching ............................................................................................................................
44
9.4
Macro Service ...................................................................................................................................
44
9.5
Examples of Macro Service Applications .....................................................................................
45
µPD784031
10. LOCAL BUS INTERFACE ..........................................................................................................
47
10.1 Memory Expansion ..........................................................................................................................
47
10.2 Memory Space ..................................................................................................................................
48
10.3 Programmable Wait .........................................................................................................................
49
10.4 Pseudo-Static RAM Refresh Function ..........................................................................................
49
10.5 Bus Hold Function ...........................................................................................................................
49
11. STANDBY FUNCTION ................................................................................................................
50
12. RESET FUNCTION .....................................................................................................................
51
13. INSTRUCTION SET ....................................................................................................................
52
14. ELECTRICAL CHARACTERISTICS ..........................................................................................
57
15. PACKAGE DRAWINGS..............................................................................................................
77
16. RECOMMENDED SOLDERING CONDITIONS .........................................................................
80
APPENDIX A
DEVELOPMENT TOOLS ......................................................................................
82
APPENDIX B
RELATED DOCUMENTS ......................................................................................
84
5
µPD784031
1. DIFFERENCES BETWEEN µPD784038 SUB-SERIES
The only difference between the µPD784031, µPD784035, µPD784036, µPD784037, and µPD784038 is their
capacity of internal memory.
The µPD78P4038 is produced by replacing the masked ROM in the µPD784035, µPD784036, µPD784037, or
µPD784038 with 128K-byte one-time PROM or EPROM. Table 1-1 shows the differences between these products.
Table 1-1. Differences between the µPD784038 Sub-Series
Product
µPD784031
µPD784035
µPD784036
Item
Internal ROM
None
Internal RAM
2 048 bytes
Package
80-pin plastic QFP (14 × 14 × 2.7 mm)
80-pin plastic QFP (14 × 14 × 1.4 mm)
80-pin plastic TQFP (fine pitch) (12 × 12 mm)
6
48K bytes
(masked ROM)
64K bytes
(masked ROM)
µPD784037
(under development)
µPD784038
(under development)
96K bytes
(masked ROM)
128K bytes
(masked ROM)
3 584 bytes
4 352 bytes
µPD78P4038
128K bytes
(one-time PROM
or EPROM)
80-pin ceramic
WQFN
(14 × 14 mm)
µPD784031
2. MAIN DIFFERENCES BETWEEN µPD784038, µPD784038Y, µPD784026, AND µPD78234 SUBSERIES
Series
Item
Number of basic instructions
µPD784038 sub-series
µPD784038Y sub-series
µPD784026 sub-series
113
µPD78234 sub-series
65
(mnemonics)
Minimum instruction execution
time
125 ns
(at 32 MHz)
160 ns
(at 25 MHz)
Memory space (program/data)
1M byte in total
64K bytes/1M byte
Timer/counter
16-bit timer/counter × 1
8/16-bit timer/counter × 2
8/16-bit timer × 1
16-bit timer/counter × 1
8-bit timer/counter × 2
8-bit timer × 1
Clock output function
Available
Unavailable
Watchdog timer
Available
Unavailable
Serial interface
UART/IOE (3-wire serial I/O)
× 2 channels
CSI (3-wire serial I/O, 2-wire
serial I/O, I2C busNote)
UART/IOE (3-wire serial I/O)
× 2 channels
CSI (3-wire serial I/O, SBI)
333 ns
(at 12 MHz)
UART × 1 channel
CSI (3-wire serial I/O, SBI)
× 1 channel
× 1 channel
× 1 channel
Interrupt
Context switching
Available
Unavailable
Priority
4 levels
2 levels
Standby function
3 modes (HALT, STOP, IDLE)
2 modes (HALT, STOP)
Operation clock switching
Selectable from fXX/2, fXX/4, fXX/8, or fXX/16
Fixed to fXX/2
Pin
functions
Unavailable
To specify ROM-less mode
(always in the high level for
MODE pin
the µPD78233 or µPD78237)
TEST pin
Package
Pin for testing the device
Low level during ordinary use
80-pin plastic QFP
(14 × 14 × 2.7 mm)
80-pin plastic QFP
(14 × 14 × 1.4 mm)
80-pin plastic TQFP
(fine pitch) (12 × 12 mm)
80-pin ceramic WQFN
(14 × 14 mm):
for the µPD78P4038 and
µPD78P4038Y only
Unavailable
80-pin plastic QFP
(14 × 14 × 2.7 mm)
80-pin plastic TQFP
(fine pitch) (12 × 12 mm):
for the µPD784021 only
80-pin ceramic WQFN
(14 × 14 mm):
for the µPD78P4026 only
80-pin plastic QFP
(14 × 14 × 2.7 mm)
94-pin plastic QFP
(20 × 20 mm)
84-pin plastic QFJ
(1 150 × 1 150 mil)
94-pin ceramic WQFN
(20 × 20 mm):
for the µPD78P238 only
Note For the µPD784038Y sub-series only.
7
µPD784031
3. PIN CONFIGURATION (TOP VIEW)
• 80-pin plastic QFP (14 × 14 × 2.7 mm)
µPD784031GC-3B9
• 80-pin plastic QFP (14 × 14 × 1.4 mm)
µPD784031GC-8BT
• 80-pin plastic TQFP (fine pitch) (12 × 12 mm)
Note
8
P75/ANI5
P76/ANI6
P77/ANI7
AVDD
AVREF1
AVSS
ANO0
ANO1
AVREF3
P20/NMI
P21/INTP0
P22/INTP1
P23/INTP2/CI
P24/INTP3
P25/INTP4/ASCK/SCK1
P26/INTP5
P27/SI0
AVREF2
Connect the TEST pin to VSS0 directly.
AD3
AD4
AD5
AD6
AD7
A8
A9
A10
A11
A12
A13
A14
A15
P60/A16
P61/A17
P62/A18
P63/A19
RD
WR
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
1
60
2
59
3
58
4
57
5
56
6
55
7
54
8
53
9
52
10
51
11
50
12
49
13
48
14
47
15
46
16
45
17
44
18
43
19
42
20
41
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
P66/ WAIT/HLDRQ
P32/SCK0/SCL
P33/SO0/SDA
P34/ TO0
P35/ TO1
P36/ TO2
P37/ TO3
RESET
VDD1
X2
X1
VSS1
P00
P01
P02
P03
P04
P05
P06
P07
P67/REFRQ/HLDAK
P30/RxD/SI1
P31/TxD/SO1
µPD784031GK-BE9
P74/ANI4
P73/ANI3
P72/ANI2
P71/ANI1
P70/ANI0
VDD0
P17
P16
P15
P14/TXD2/SO2
P13/RXD2/SI2
P12/ASCK2/SCK2
P11/PWM1
P10/PWM0
TESTNote
VSS0
ASTB
AD0
AD1
AD2
µPD784031
: Address bus
P70-P77
AD0-AD7
: Address/data bus
PWM0, PWM1 : Pulse width modulation output
ANI0-ANI7
: Analog input
RD
: Read strobe
ANO0, ANO1
: Analog output
REFRQ
: Refresh request
ASCK, ASCK2
: Asynchronous serial clock
RESET
: Reset
ASTB
: Address strobe
RxD, RxD2
: Receive data
AVDD
: Analog power supply
SCK0-SCK2
: Serial clock
AVREF1-AVREF3
: Reference voltage
SCL
: Serial clock
AVSS
: Analog ground
SDA
: Serial data
CI
: Clock input
SI0-SI2
: Serial input
HLDAK
: Hold acknowledge
SO0-SO2
: Serial output
HLDRQ
: Hold request
TEST
: Test
INTP0-INTP5
: Interrupt from peripherals
TO0-TO3
: Timer output
NMI
: Non-maskable interrupt
TxD, TxD2
: Transmit data
P00-P07
: Port 0
VDD0, VDD1
: Power supply
P10-P17
: Port 1
VSS0, VSS1
: Ground
P20-P27
: Port 2
WAIT
: Wait
P30-P37
: Port 3
WR
: Write strobe
X1, X2
: Crystal
A8-A19
P60-P63, P66, P67 : Port 6
: Port 7
9
µPD784031
4. SYSTEM CONFIGURATION EXAMPLE (PPC)
µ PD784031
Serial
communication
P11
RxD
TxD
µ PD27C1001A
OE
RD
CE
A17
A8-A16
Sensing paper
Sensing paper feed
P16
P17
Sensing paper ejection
Sensing the position of the scanner station
SCK1
SI1
SO1
Operator
panel
A8-A16
µ PD74HC573
Latch
O0-O7
P15
A0-A7
P04
P06
High-voltage
control circuit
Drum, toner, and charge for
transfer
P07
Fusing heater
control circuit
Fusing roller
P66
Lamp regulator
AD0-AD7
ASTB
Sensing paper transport
INTP0
Temperature of the
fusing heater
ANI0
(DC stepping motor)
PWM0
Brightness of the lamp
Lever for adjusting
the tone of the copy
ANI1
M
P00-P03
P33
SL
Clutch for stopping
the scanner station
ANI3
Driver
SL
Clutch for forwarding
the scanner station
SL
Clutch for the resist
shutter
SL
Clutch for manual
feeding
SL
Clutch for cassette
feeding
P35
P36
Reset
circuit
10
Main motor
ANI2
P34
Lever for compensating
the tone of the copy
Lamp for lighting the original
Lamp for discharging
RESET
P37
Solenoid
µPD784031
5. BLOCK DIAGRAM
NMI
INTP0-INTP5
INTP3
TO0
TO1
INTP0
INTP1
INTP2/CI
TO2
TO3
UART/IOE2
Programmable
interrupt controller
Baud-rate
generator
UART/IOE1
Timer/counter 0
(16 bits)
Baud-rate
generator
RxD/SI1
TxD/SO1
ASCK/SCK1
RxD2/SI2
TxD2/SO2
ASCK2/SCK2
SCK0/SCL
Timer/counter 1
(16 bits)
Clocked serial
interface
SO0/SDA
SI0
Timer/counter 2
(16 bits)
ASTB
78K /IV
CPU core
AD0-AD7
A8-A15
Bus interface
Timer 3
(16 bits)
P00-P03
Real-time output
port
A16-A19
RD
WR
WAIT/HLDRQ
REFRQ/HLDAK
Port 0
P00-P07
Port 1
P10-P17
Port 2
P20-P27
Port 3
P30-P37
P04-P07
RAM
PWM0
PWM
PWM1
ANO0
ANO1
AVREF2
AVREF3
D /A converter
P60-P63
Port 6
P66, P67
ANI0-ANI7
AVDD
AVREF1
Port 7
A /D converter
AVSS
INTP5
Watchdog timer
System control
P70-P77
RESET
TEST
X1
X2
VDD0, VDD1
VSS0, VSS1
11
µPD784031
6. LIST OF PIN FUNCTIONS
6.1
Port Pins
Pin
I/O
Dual-function
P00-P07
I/O
-
Function
Port 0 (P0):
• 8-bit I/O port.
• Functions as a real-time output port (4 bits × 2).
• Inputs and outputs can be specified bit by bit.
• The use of the pull-up resistors can be specified by software for the pins
in the input mode together.
• Can drive a transistor.
PWM0
Port 1 (P1):
P11
PWM1
• 8-bit I/O port.
P12
ASCK2/SCK2
• Inputs and outputs can be specified bit by bit.
P13
RxD2/SI2
P14
TxD2/SO2
• The use of the pull-up resistors can be specified by software for the pins
in the input mode together.
P10
I/O
-
P15-P17
• Can drive LED.
NMI
Port 2 (P2):
P21
INTP0
• 8-bit input-only port.
P22
INTP1
P23
INTP2/CI
• P20 does not function as a general-purpose port (nonmaskable interrupt). However, the input level can be checked by an interrupt service
routine.
P24
INTP3
P25
INTP4/ASCK/SCK1
P26
INTP5
P27
SI0
• The P25/INTP4/ASCK/SCK1 pin functions as the SCK1 output pin by
CSIM1.
RxD/SI1
Port 3 (P3):
P31
TxD/SO1
• 8-bit I/O port.
P32
SCK0/SCL
• Inputs and outputs can be specified bit by bit.
P33
SO0/SDA
P34-P37
TO0-TO3
• The use of the pull-up resistors can be specified by software for the pins
in the input mode together.
P20
P30
Input
I/O
• The use of the pull-up resistors can be specified by software for pins
P22 to P27 (in units of 6 bits).
A16-A19
Port 6 (P6):
P66
WAIT/HLDRQ
• P60 to P63 are an output-only port.
P67
REFRQ/HLDAK
• Inputs and outputs can be specified bit by bit for pins P66 and P67.
P60-P63
I/O
• The use of the pull-up resistors can be specified by software for the pins
in the input mode together.
P70-P77
I/O
ANI0-ANI7
Port 7 (P7):
• 8-bit I/O port.
• Inputs and outputs can be specified bit by bit.
12
µPD784031
6.2
Non-Port Pins (1/2)
Pin
TO0-TO3
I/O
Output
Dual-function
Function
P34-P37
Timer output
CI
Input
P23/INTP2
Input of a count clock for timer/counter 2
R XD
Input
P30/SI1
Serial data input (UART0)
P13/SI2
Serial data input (UART2)
P31/SO1
Serial data output (UART0)
P14/SO2
Serial data output (UART2)
P25/INTP4/SCK1
Baud rate clock input (UART0)
RXD2
T XD
Output
TXD2
ASCK
Input
ASCK2
P12/SCK2
Baud rate clock input (UART2)
P33/SO0
Serial data I/O (2-wire serial I/O)
P27
Serial data input (3-wire serial I/O0)
SI1
P30/RXD
Serial data input (3-wire serial I/O1)
SI2
P13/RXD2
Serial data input (3-wire serial I/O2)
P33/SDA
Serial data output (3-wire serial I/O0)
SO1
P31/TXD
Serial data output (3-wire serial I/O1)
SO2
P14/TXD2
Serial data output (3-wire serial I/O2)
P32/SCL
Serial clock I/O (3-wire serial I/O0)
SCK1
P25/INTP4/ASCK
Serial clock I/O (3-wire serial I/O1)
SCK2
P12/ASCK2
Serial clock I/O (3-wire serial I/O2)
SDA
I/O
SI0
Input
SO0
SCK0
Output
I/O
SCL
NMI
Input
P32/SCK0
Serial clock I/O (2-wire serial I/O)
P20
External interrupt request
-
INTP0
P21
• Input of a count clock for timer/counter 1
• Capture/trigger signal for CR11 or CR12
INTP1
P22
• Input of a count clock for timer/counter 2
• Capture/trigger signal for CR22
INTP2
P23/CI
• Input of a count clock for timer/counter 2
• Capture/trigger signal for CR21
INTP3
P24
• Input of a count clock for timer/counter 0
• Capture/trigger signal for CR02
INTP4
P25/ASCK/SCK1
INTP5
P26
AD0-AD7
I/O
Input of a conversion start trigger for A/D converter
-
A8-A15
Output
A16-A19
Output
RD
Output
-
Strobe signal output for reading the contents of external memory
WR
Output
-
Strobe signal output for writing on external memory
WAIT
-
Time multiplexing address/data bus (for connecting external memory)
P60-P63
High-order address bus (for connecting external memory)
High-order address bus during address expansion (for connecting external memory)
Input
P66/HLDRQ
Wait signal insertion
REFRQ
Output
P67/HLDAK
Refresh pulse output to external pseudo static memory
HLDRQ
Input
P66/WAIT
Input of bus hold request
HLDAK
Output
P67/REFRQ
Output of bus hold response
ASTB
Output
-
Latch timing output of time multiplexing address (A0-A7) (for
connecting external memory)
13
µPD784031
6.2
Non-port pins (2/2)
Pin
I/O
Dual-function
RESET
Input
-
Chip reset
X1
Input
-
X2
-
Crystal input for system clock oscillation (A clock pulse can also be input
to the X1 pin.)
ANI0-ANI7
ANO0, ANO1
AVREF1
Input
Function
Analog voltage inputs for the A/D converter
P70-P77
Output
-
Analog voltage inputs for the D/A converter
-
-
Application of A/D converter reference voltage
AVREF2, AVREF3
Application of D/A converter reference voltage
AVDD
Positive power supply for the A/D converter
AVSS
Ground for the A/D converter
VDD0Note 1
Positive power supply of the port part
VDD1Note 1
Positive power supply except for the port part
VSS0Note 2
Ground of the port part
VSS1Note 2
Ground except for the port part
TEST
Directly connect to VSS0. (The TEST pin is for the IC test.)
Notes 1. The potential of the VDD0 pin must be equal to that of the VDD1 pin.
2. The potential of the VSS0 pin must be equal to that of the VSS1 pin.
14
µPD784031
6.3
I/O Circuits for Pins and Handling of Unused Pins
Table 6-1 describes the types of I/O circuits for pins and the handling of unused pins.
Figure 6-1 shows the configuration of these various types of I/O circuits.
Table 6-1. Types of I/O Circuits for Pins and Handling of Unused Pins (1/2)
Pin
P00-P07
I/O circuit type
5-H
I/O
I/O
P10/PWM0
Recommended connection method for unused pins
Input state : To be connected to VDD0
Output state: To be left open
P11/PWM1
P12/ASCK2/SCK2
8-C
P13/RxD2/SI2
5-H
P14/TxD2/SO2
P15-P17
P20/NMI
2
Input
To be connected to VDD0 or VSS0
P21/INTP0
P22/INTP1
2-C
To be connected to VDD0
P23/INTP2/CI
P24/INTP3
P25/INTP4/ASCK/SCK1
8-C
I/O
Input state : To be connected to VDD0
Output state: To be left open
P26/INTP5
2-C
Input
5-H
I/O
To be connected to VDD0
P27/SI0
P30/RxD/SI1
P31/TxD/SO1
P32/SCK0/SCL
Input state : To be connected to VDD0
Output state: To be left open
10-B
P33/SO0/SDA
P34/TO0-P37/TO3
5-H
AD0-AD7
OutputNote
A8-A15
To be left open
P60/A16-P63/A19
RD
WR
P66/WAIT/HLDRQ
I/O
P67/REFRQ/HLDAK
P70/ANI0-P77/ANI7
Input state:
To be connected to VDD0
Output state: To be left open
Input state : To be connected to VDD0 or VSS0
20-A
Output state: To be left open
ANO0, ANO1
12
ASTB
4-B
Output
To be left open
Note These pins function as output-only pins depending on the internal circuit, though their I/O type is 5-H.
15
µPD784031
Table 6-1. Types of I/O Circuits for Pins and Handling of Unused Pins (2/2)
Pin
I/O circuit type
RESET
2
TEST
1-A
AVREF1-AVREF3
I/O
Recommended connection method for unused pins
Input
To be connected to VSS0 directly
-
To be connected to VSS0
AVSS
AVDD
To be connected to VDD0
Caution When the I/O mode of an I/O dual-function pin is unpredictable, connect the pin to VDD0 through
a resistor of 10 to 100 kilohms (particularly when the voltage of the reset input pin becomes higher
than that of the low level input at power-on or when I/O is switched by software).
Remark Since type numbers are consistent in the 78K series, those numbers are not always serial in each product.
(Some circuits are not included.)
16
µPD784031
Figure 6-1. I/O Circuits for Pins
Type 1
Type 2-C
VDD0
VDD0
P
IN
Pull-up
enable
P
N
VSS0
IN
Type 2
Schmitt trigger input with hysteresis characteristics
IN
Type 5-H
VDD0
Schmitt trigger input with hysteresis characteristics
VDD0
Type 4-B
Data
Pull-up
enable
P
P
VDD0
Data
P
OUT
Output
disable
IN/OUT
Output
disable
N
N
VSS0
VSS0
Input
enable
Push-pull output which can output high impedance
(both the positive and negative channels are off.)
Type 8-C
Type 12
VDD0
Pull-up
enable
P
VDD0
Data
P
Analog output
voltage
IN/OUT
Output
disable
P
OUT
N
N
VSS0
Type 10-B
Type 20-A
VDD0
VDD0
Pull-up
enable
Data
IN/OUT
P
Output
disable
VDD0
Data
Open
drain
Output
disable
P
N
P
VSS0
Comparator
IN/OUT
+
–
N
P
N
AVREF AVSS
(Threshold voltage)
VSS0
Input
enable
17
µPD784031
7. CPU ARCHITECTURE
7.1
Memory Space
A 1M-byte memory space can be accessed. By using a LOCATION instruction, the mode for mapping internal
data areas (special function registers and internal RAM) can be selected. A LOCATION instruction must always be
executed after a reset, and can be used only once.
(1) When the LOCATION 0 instruction is executed
Internal data areas are mapped to 0F700H-0FFFFH.
(2) When the LOCATION 0FH instruction is executed
Internal data areas are mapped to FF700H-FFFFFH.
18
Figure 7-1. µPD784031 Memory Map
When the LOCATION 0FH
F F F F F H instruction is executed
FFFDFH Special function registers (SFRs)
FFFD0H
(256 bytes)
FFF00H
FFEFFH FFEFFH
When the location 0 instruction
is executed
FFFFFH
0FEFFH
External memory
(960K bytes)
0FE80H
0FE7FH
General-purpose
registers
(128 bytes)
0FE2FH
10000H
0 F F F F H Special function registers (SFRs)
0FFDFH
0FFD0H
(256 bytes)
0FF00H
0FEFFH
0FD00H
0FCFFH
Internal RAM
(2K bytes)
0F700H
0F6FFH
External memory
(63 232 bytes)
Macro service control
0 F E 0 6 H word area (42 bytes)
Internal RAM (2K bytes)
FFE80H FF700H
FFE7FH FF6FFH
FFE2FH
FFE06H
Data area (512 bytes)
0FD00H
0FCFFH
0F700H
FFD00H
FFCFFH
Program/data area
(1 536 bytes)
FF700H
External memory
(1 046 272 bytes)
Note
00FFFH
00FFFH
CALLF entry area
(2K bytes)
00800H
007FFH
00080H
0007FH
00040H
0003FH
00000H
CALLT table area
(64 bytes)
Vector table area
(64 bytes)
00080H
0007FH
Note
00000H
19
Note Base area, or entry area based on a reset or interrupt. Internal RAM is excluded in the case of a reset.
µPD784031
00000H
00800H 10000H
007FFH 0FFFFH
µPD784031
7.2
7.2.1
CPU Registers
General-purpose registers
A set of general-purpose registers consists of sixteen general-purpose 8-bit registers. Two 8-bit general-purpose
registers can be combined to form a 16-bit general-purpose register. Moreover, four 16-bit general-purpose registers,
when combined with an 8-bit register for address extension, can be used as 24-bit address specification registers.
Eight banks of this register set are provided. The user can switch between banks by software or the context
switching function.
General-purpose registers other than the V, U, T, and W registers used for address extension are mapped onto
internal RAM.
Figure 7-2. General-Purpose Register Format
A (R1)
X (R0)
AX (RP0)
B (R3)
C (R2)
BC (RP1)
R5
R4
RP2
R7
R6
RP3
V
R9
VVP (RG4)
R8
VP (RP4)
U
R11
R10
UUP (RG5)
UP (RP5)
T
D (R13)
E (R12)
TDE (RG6)
DE (RP6)
W
H (R15)
L (R14)
WHL (RG7)
HL (RP7)
8 banks
The character strings enclosed in
parentheses represent absolute names.
Caution By setting the RSS bit of PSW to 1, R4, R5, R6, R7, RP2, and RP3 can be used as the X, A, C, B,
AX, and BC registers, respectively. However, this function must be used only when using
programs for the 78K/III series.
20
µPD784031
7.2.2
Control registers
(1) Program counter (PC)
This register is a 20-bit program counter. The program counter is automatically updated by program execution.
Figure 7-3. Format of Program Counter (PC)
19
0
PC
(2) Program Status Word (PSW)
This register holds the CPU state. The program status word is automatically updated by program execution.
Figure 7-4. Format of Program Status Word (PSW)
PSWH
15
14
13
12
11
10
9
8
UF
RBS2
RBS1
RBS0
7
6
5
4
3
2
1
0
S
Z
RSSNote
AC
IE
P/V
0
CY
PSW
PSWL
Note This flag is used to maintain compatibility with the 78K/III series. This flag must be set to 0 when programs
for the 78K/III series are being used.
(3) Stack pointer (SP)
This register is a 24-bit pointer for holding the start address of the stack. The high-order 4 bits must be set
to 0.
Figure 7-5. Format of Stack Pointer (SP)
23
PC
0
20
0
0
0
0
21
µPD784031
7.2.3
Special function registers (SFRs)
The special function registers are registers with special functions such as mode registers and control registers
for built-in peripheral hardware. The special function registers are mapped onto the 256-byte space between 0FF00H
and 0FFFFHNote.
Note Applicable when the LOCATION 0 instruction is executed. FFF00H-FFFFFH when the LOCATION 0FH
instruction is executed.
Caution Never attempt to access addresses in this area where no SFR is allocated. Otherwise, the
µPD784031 may be placed in the deadlock state. The deadlock state can be cleared only by a
reset.
Table 7-1 lists the special function registers (SFRs). The titles of the table columns are explained below.
• Abbreviation ................... Symbol used to represent a built-in SFR. The abbreviations listed in the table are
reserved words for the NEC assembler (RA78K4). The C compiler (CC78K4) allows
the abbreviations to be used as sfr variables with the #pragma sfr command.
• R/W ................................. Indicates whether each SFR allows read and/or write operations.
R/W : Allows both read and write operations.
R
: Allows read operations only.
W
: Allows write operations only.
• Manipulatable bits .......... Indicates the maximum number of bits that can be manipulated whenever an SFR is
manipulated. An SFR that supports 16-bit manipulation can be described in the sfrp
operand. For address specification, an even-numbered address must be specified.
An SFR that supports 1-bit manipulation can be described in a bit manipulation
instruction.
• When reset ..................... Indicates the state of each register when RESET is applied.
22
µPD784031
Table 7-1. Special Function Registers (SFRs) (1/4)
Manipulatable bits
AddressNote
Special function register (SFR) name
Abbreviation
R/W
When reset
1 bit
0FF00H
Port 0
P0
0FF01H
Port 1
P1
0FF02H
Port 2
P2
0FF03H
Port 3
P3
0FF06H
Port 6
0FF07H
Port 7
0FF0EH
R/W
8 bits 16 bits
o
o
-
Undefined
o
o
-
R
o
o
-
R/W
o
o
-
P6
o
o
-
00H
P7
o
o
-
Undefined
Port 0 buffer register L P0L
o
o
-
0FF0FH
Port 0 buffer register H
P0H
o
o
-
0FF10H
Compare register (timer/counter 0)
CR00
-
-
o
0FF12H
Capture/compare register (timer/counter 0)
CR01
-
-
o
0FF14H
Compare register L (timer/counter 1)
CR10 CR10W
-
o
o
0FF15H
Compare register H (timer/counter 1)
-
-
0FF16H
Capture/compare register L (timer/counter 1)
-
o
0FF17H
Capture/compare register H (timer/counter 1)
-
-
0FF18H
Compare register L (timer/counter 2)
-
o
0FF19H
Compare register H (timer/counter 2)
-
-
0FF1AH
Capture/compare register L (timer/counter 2)
-
o
0FF1BH
Capture/compare register H (timer/counter 2)
-
-
0FF1CH
Compare register L (timer 3)
-
o
0FF1DH
Compare register H (timer 3)
-
-
0FF20H
Port 0 mode register
PM0
o
o
-
0FF21H
Port 1 mode register
PM1
o
o
-
0FF23H
Port 3 mode register
PM3
o
o
-
0FF26H
Port 6 mode register
PM6
o
o
-
0FF27H
Port 7 mode register
PM7
o
o
-
0FF2EH
Real-time output port control register
RTPC
o
o
-
00H
0FF30H
Capture/compare control register 0
CRC0
-
o
-
10H
0FF31H
Timer output control register
TOC
o
o
-
00H
0FF32H
Capture/compare control register 1
CRC1
-
o
-
0FF33H
Capture/compare control register 2
CRC2
-
o
-
CR11 CR11W
CR20 CR20W
CR21 CR21W
CR30 CR30W
-
o
o
o
o
FFH
10H
Note Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
23
µPD784031
Table 7-1. Special Function Registers (SFRs) (2/4)
Manipulatable bits
AddressNote
Special function register (SFR) name
Abbreviation
R/W
When reset
1 bit
0FF36H
Capture register (timer/counter 0)
CR02
R
0FF38H
Capture register L (timer/counter 1)
CR12 CR12W
0FF39H
Capture register H (timer/counter 1)
0FF3AH
Capture register L (timer/counter 2)
0FF3BH
Capture register H (timer/counter 2)
0FF41H
Port 1 mode control register
PMC1
0FF43H
Port 3 mode control register
0FF4EH
0FF50H
-
-
o
-
o
o
-
-
-
o
-
-
o
o
-
PMC3
o
o
-
Register for optional pull-up resistor
PUO
o
o
-
Timer register 0
TM0
-
-
o
-
-
-
o
-
-
-
o
-
-
-
o
-
-
-
o
-
11H
CR22 CR22W
R/W
R
0FF51H
0FF52H
Timer register 1
0FF53H
0FF54H
TM1
TM1W
Timer register 2
0FF55H
0FF56H
8 bits 16 bits
TM2
TM2W
Timer register 3
0FF57H
TM3
TM3W
R/W
0000H
o
00H
0000H
o
o
o
0FF5CH
Prescaler mode register 0
PRM0
0FF5DH
Timer control register 0
TMC0
o
o
-
00H
0FF5EH
Prescaler mode register 1
PRM1
-
o
-
11H
0FF5FH
Timer control register 1
TMC1
o
o
-
00H
0FF60H
D/A conversion value setting register 0
DACS0
-
o
-
0FF61H
D/A conversion value setting register 1
DACS1
-
o
-
0FF62H
D/A converter mode register
DAM
o
o
-
03H
0FF68H
A/D converter mode register
ADM
o
o
-
00H
0FF6AH
A/D conversion result register
ADCR
R
-
o
-
Undefined
0FF70H
PWM control register
PWMC
R/W
o
o
-
05H
0FF71H
PWM prescaler register
PWPR
-
o
-
00H
0FF72H
PWM modulo register 0
PWM0
-
-
o
Undefined
0FF74H
PWM modulo register 1
PWM1
-
-
o
0FF7DH
One-shot pulse output control register
OSPC
o
o
-
0FF80H
I2C bus control register
IICC
o
o
-
0FF81H
Prescaler mode register for serial clock
SPRM
-
o
-
04H
0FF82H
Synchronous serial interface mode register
CSIM
o
o
-
00H
00H
Note Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
24
µPD784031
Table 7-1. Special Function Registers (SFRs) (3/4)
Manipulatable bits
AddressNote 1
Special function register (SFR) name
Abbreviation
R/W
When reset
1 bit
0FF84H
Synchronous serial interface mode register 1
CSIM1
0FF85H
Synchronous serial interface mode register 2
0FF86H
o
o
-
CSIM2
o
o
-
Serial shift register
SIO
-
o
-
0FF88H
Asynchronous serial interface mode register
ASIM
o
o
-
0FF89H
Asynchronous serial interface mode register 2
ASIM2
o
o
-
0FF8AH
Asynchronous serial interface status register
ASIS
o
o
-
0FF8BH
Asynchronous serial interface status register 2
ASIS2
o
o
-
0FF8CH
Serial receive buffer: UART0
RXB
-
o
-
Serial transmission shift register: UART0
TXS
W
-
o
-
Serial shift register: IOE1
SIO1
R/W
-
o
-
Serial receive buffer: UART2
RXB2
R
-
o
-
Serial transmission shift register: UART2
TXS2
W
-
o
-
Serial shift register: IOE2
SIO2
R/W
-
o
-
0FF90H
Baud rate generator control register
BRGC
-
o
-
0FF91H
Baud rate generator control register 2
BRGC2
-
o
-
0FFA0H
External interrupt mode register 0
INTM0
o
o
-
0FFA1H
External interrupt mode register 1
INTM1
o
o
-
0FFA4H
Sampling clock selection register
SCS0
-
o
-
0FFA8H
In-service priority register
ISPR
R
o
o
-
0FFAAH
Interrupt mode control register
IMC
R/W
o
o
-
80H
0FFACH
Interrupt mask register 0L
MK0L MK0
o
o
o
FFFFH
0FFADH
Interrupt mask register 0H
MK0H
o
o
0FFAEH
Interrupt mask register 1L
MK1L
o
o
-
FFH
0FFC0H
Standby control register
STBC
-
oNote 2
-
30H
0FFC2H
Watchdog timer mode register
WDM
-
oNote 2
-
00H
0FFC4H
Memory expansion mode register
MM
o
o
-
20H
0FFC5H
Hold mode register
HLDM
o
o
-
00H
0FFC6H
Clock output mode register
CLOM
o
o
-
0FFC7H
Programmable wait control register 1
PWC1
-
o
-
AAH
0FFC8H
Programmable wait control register 2
PWC2
-
-
o
AAAAH
0FF8DH
R/W
8 bits 16 bits
R
00H
Undefined
00H
Notes 1. Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
2. A write operation can be performed only with special instructions MOV STBC,#byte and MOV
WDM,#byte. Other instructions cannot perform a write operation.
25
µPD784031
Table 7-1. Special Function Registers (SFRs) (4/4)
Manipulatable bits
AddressNote
Special function register (SFR) name
Abbreviation
R/W
When reset
1 bit
0FFCCH
Refresh mode register
RFM
0FFCDH
Refresh area specification register
0FFCFH
Oscillation settling time specification register
0FFD0H-
External SFR area
R/W
8 bits 16 bits
o
o
-
RFA
o
o
-
OSTS
-
o
-
o
o
-
-
00H
-
0FFDFH
0FFE0H
Interrupt control register (INTP0)
PIC0
o
o
-
0FFE1H
Interrupt control register (INTP1)
PIC1
o
o
-
0FFE2H
Interrupt control register (INTP2)
PIC2
o
o
-
0FFE3H
Interrupt control register (INTP3)
PIC3
o
o
-
0FFE4H
Interrupt control register (INTC00)
CIC00
o
o
-
0FFE5H
Interrupt control register (INTC01)
CIC01
o
o
-
0FFE6H
Interrupt control register (INTC10)
CIC10
o
o
-
0FFE7H
Interrupt control register (INTC11)
CIC11
o
o
-
0FFE8H
Interrupt control register (INTC20)
CIC20
o
o
-
0FFE9H
Interrupt control register (INTC21)
CIC21
o
o
-
0FFEAH
Interrupt control register (INTC30)
CIC30
o
o
-
0FFEBH
Interrupt control register (INTP4)
PIC4
o
o
-
0FFECH
Interrupt control register (INTP5)
PIC5
o
o
-
0FFEDH
Interrupt control register (INTAD)
ADIC
o
o
-
0FFEEH
Interrupt control register (INTSER)
SERIC
o
o
-
0FFEFH
Interrupt control register (INTSR)
SRIC
o
o
-
Interrupt control register (INTCSI1)
CSIIC1
o
o
-
0FFF0H
Interrupt control register (INTST)
STIC
o
o
-
0FFF1H
Interrupt control register (INTCSI)
CSIIC
o
o
-
0FFF2H
Interrupt control register (INTSER2)
SERIC2
o
o
-
0FFF3H
Interrupt control register (INTSR2)
SRIC2
o
o
-
Interrupt control register (INTCSI2)
CSIIC2
o
o
-
Interrupt control register (INTST2)
STIC2
o
o
-
0FFF4H
43H
Note Applicable when the LOCATION 0 instruction is executed. When the LOCATION 0FH instruction is
executed, F0000H is added to each address.
26
µPD784031
8. PERIPHERAL HARDWARE FUNCTIONS
8.1
Ports
The ports shown in Figure 8-1 are provided to enable the application of wide-ranging control. Table 8-1 lists the
functions of the ports. For the inputs to port 0 to port 6, a built-in pull-up resistor can be specified by software.
Figure 8-1. Port Configuration
P00
Port 0
P07
P10
Port 1
P17
P20-P27
8
Port 2
P30
Port 3
P37
P60
P63
P66
P67
P70
Port 6
Port 7
P77
27
µPD784031
Table 8-1. Port Functions
Port name
Port 0
Pin
Function
P00-P07
Pull-up specification by software
• Bit-by-bit input/output setting supported
• Operable as 4-bit real-time outputs
(P00-P03, P04-P07)
Specified as a batch for all pins placed in
input mode.
• Capable of driving transistors
Port 1
P10-P17
• Bit-by-bit input/output setting supported
• Capable of driving LEDs
Specified as a batch for all pins placed in
input mode.
Port 2
P20-P27
• Input port
Specified for the 6 bits (P22-P27) as a batch.
Port 3
P30-P37
• Bit-by-bit input/output setting supported
Specified as a batch for all pins placed in
input mode.
Port 6
P60-P63
• Output-only port
Specified as a batch for all pins placed in
P66, P67
• Bit-by-bit input/output setting supported
input mode.
P70-P77
• Bit-by-bit input/output setting supported
Port 7
8.2
-
Clock Generator
A circuit for generating the clock signal required for operation is provided. The clock generator includes a frequency
divider; low current consumption can be achieved by operating at a lower internal frequency when high-speed
operation is not necessary.
Figure 8-2. Block Diagram of Clock Generator
X1
fXX
1/2
1/2
1/2
X2
fXX/2
UART/IOE
INTP0 noise eliminator
Oscillation settling timer
Remark fXX : Oscillator frequency or external clock input
fCLK : Internal operating frequency
28
1/2
Selector
Oscillator
fCLK
CPU
Peripheral circuits
µPD784031
Figure 8-3. Examples of Using Oscillator
(1)
Crystal/ceramic oscillation
µ PD784031
VSS1
X1
X2
(2) External clock
• When EXTC bit of OSTS = 1
• When EXTC bit of OSTS = 0
µ PD784031
µ PD784031
X1
µ PD74HC04, etc.
X2
X1
Open
X2
Caution When using the clock generator, to avoid problems caused by influences such as stray
capacitance, run all wiring within the area indicated by the dotted lines according to the following
rules:
• Minimize the wiring length.
• Wires must never cross other signal lines.
• Wires must never run near a line carrying a large varying current.
• The grounding point of the capacitor of the oscillator circuit must always be at the same
potential as VSS1. Never connect the capacitor to a ground pattern carrying a large current.
• Never extract a signal from the oscillator circuit.
29
µPD784031
8.3
Real-Time Output Port
The real-time output port outputs data stored in the buffer, synchronized with a timer/counter 1 match interrupt
or external interrupt. Thus, pulse output that is free of jitter can be obtained.
Therefore, the real-time output port is best suited to applications (such as open-loop control over stepping motors)
where an arbitrary pattern is output at arbitrary intervals.
As shown in Figure 8-4, the real-time output port is built around port 0 and the port 0 buffer register (P0H, P0L).
Figure 8-4. Block Diagram of Real-Time Output Port
Internal bus
Real-time output port
control register
(RTPC)
INTP0 (externally)
INTC10 (from timer/counter 1)
INTC11 (from timer/counter 1)
4
4
8
Buffer register
Output trigger
control circuit
8
P0H
P0L
4
4
Output latch (P0)
P07
30
P00
µPD784031
8.4
Timers/Counters
Three timer/counter units and one timer unit are incorporated.
Moreover, seven interrupt requests are supported, allowing these units to function as seven timer/counter units.
Table 8-2. Timer/Counter Operation
Name
Timer/counter 0
Timer/counter 1
Timer/counter 2
Timer 3
8 bits
-
o
o
o
16 bits
o
o
o
o
2ch
2ch
2ch
1ch
External event counter
o
o
o
-
One-shot timer
-
-
o
-
2ch
-
2ch
-
Toggle output
o
-
o
-
PWM/PPG output
o
-
o
-
One-shot pulse outputNote
o
-
-
-
-
o
-
-
1 input
1 input
2 inputs
-
2
2
2
1
Item
Count pulse width
Operating mode
Function
Interval timer
Timer output
Real-time output
Pulse width measurement
Number of interrupt requests
Note The one-shot pulse output function makes the level of a pulse output active by software, and makes the
level of a pulse output inactive by hardware (interrupt request signal).
Note that this function differs from the one-shot timer function of timer/counter 2.
31
µPD784031
Figure 8-5. Timer/Counter Block Diagram
Timer/counter 0
Software trigger
Prescaler
Timer register 0
(TM0)
Compare register
(CR00)
Compare register
(CR01)
Match
Match
Capture register
(CR02)
Edge
detection
INTP3
OVF
Pulse output control
fxx/8
Selector
Clear information
TO0
TO1
INTC00
INTC01
INTP3
Timer/counter 1
fxx/8
Selector
Clear information
Prescaler
Event input
Compare register
(CR10/CR10W)
Edge
detection
INTP0
Timer register 1
(TM1/TM1W)
Capture/compare register
(CR11/CR11W)
OVF
Match
Match
INTC10
To real-time
output port
INTC11
INTP0
Capture register
(CR12/CR12W)
Timer/counter 2
INTP2/CI
Prescaler
Compare register
(CR20/CR20W)
Edge
detection
INTP2
Capture/compare register
(CR21/CR21W)
OVF
Match
Match
Capture register
(CR22/CR22W)
Edge
detection
INTP1
Timer register 2
(TM2/TM2W)
Pulse output control
fxx/8
Selector
Clear information
INTC20
INTP1
INTC21
Timer 3
fxx/8
Prescaler
Timer register 3
(TM3/TM3W)
Clear
Compare register
(CR30/CR30W)
Match
CSI
INTC30
Remark OVF: Overflow flag
32
TO2
TO3
µPD784031
8.5
PWM Output (PWM0, PWM1)
Two channels of PWM (pulse width modulation) output circuitry with a resolution of 12 bits and a repetition
frequency of 62.5 kHz (fCLK = 16 MHz) are incorporated. Low or high active level can be selected for the PWM output
channels, independently of each other. This output is best suited to DC motor speed control.
Figure 8-6. Block Diagram of PWM Output Unit
Internal bus
16
8
PWM modulo register
8 7
PWMn 15
8
4 3
0
PWM control register
(PWMC)
4
Reload
control
fCLK
Prescaler
8-bit
down-counter
Pulse control
circuit
Output
control
PWMn (output pin)
4-bit counter
1/256
Remark n = 0, 1
33
µPD784031
8.6
A/D Converter
An analog/digital (A/D) converter having 8 multiplexed analog inputs (ANI0-ANI7) is incorporated.
The successive approximation system is used for conversion. The result of conversion is held in the 8-bit A/D
conversion result register (ADCR). Thus, speedy high-precision conversion can be achieved. (The conversion time
is about 7.5 µs at fCLK = 16 MHz.)
A/D conversion can be started in any of the following modes:
• Hardware start : Conversion is started by means of trigger input (INTP5).
• Software start : Conversion is started by means of bit setting the A/D converter mode register (ADM).
After conversion has started, one of the following modes can be selected:
• Scan mode : Multiple analog inputs are selected sequentially to obtain conversion data from all pins.
• Select mode: A single analog input is selected at all times to enable conversion data to be obtained
continuously.
ADM is used to specify the above modes, as well as the termination of conversion.
When the result of conversion is transferred to ADCR, an interrupt request (INTAD) is generated. Using this feature,
the results of conversion can be continuously transferred to memory by the macro service.
Figure 8-7. Block Diagram of A/D Converter
Series resistor string
Sample-and-hold circuit
Input selector
AVREF1
Voltage comparator
R
Successive conversion register (SAR)
INTP5
R/2
Conversion
trigger
Edge
detector
Tap selector
ANI0
ANI1
ANI2
ANI3
ANI4
ANI5
ANI6
ANI7
INTAD
Control
circuit
R/2
AVSS
Trigger enable
8
A/ D converter mode
register (ADM)
A/ D conversion
result register (ADCR)
8
8
Internal bus
34
µPD784031
8.7
D/A Converter
Two digital/analog (D/A) converter channels of voltage output type, having a resolution of 8 bits, are incorporated.
An R-2R resistor ladder system is used for conversion. By writing the value to be subject to D/A conversion in
the 8-bit D/A conversion value setting register (DACSn: n = 0, 1), the resulting analog value is output on ANOn
(n = 0, 1). The range of the output voltages is determined by the voltages applied to the AVREF2 and AVREF3 pins.
Because of its high output impedance, no current can be obtained from an output pin. When the load impedance
is low, insert a buffer amplifier between the load and the converter.
The impedance of the ANOn pin goes high while the RESET signal is low. DACSn is set to 0 after a reset
is released.
Figure 8-8. Block Diagram of D/A Converter
ANOn
2R
AVREF2
R
2R
Selector
R
2R
AVREF3
R
2R
DACEn
DACSn
Internal bus
Remark n = 0, 1
35
µPD784031
8.8
Serial Interface
Three independent serial interface channels are incorporated.
• Asynchronous serial interface (UART)/three-wire serial I/O (IOE) × 2
• Synchronous serial interface (CSI) × 1
• Three-wire serial I/O (IOE)
• Two-wire serial I/O (IOE)
So, communication with points external to the system and local communication within the system can be performed
at the same time. (See Figure 8-9.)
Figure 8-9. Example Serial Interfaces
UART + Three-wire serial I/O + Two-wire serial I/O
µ PD784031 (master)
(UART)
RS-232-C
driver/receiver
µ PD75108 (slave)
[Three-wire serial I/O]
µ PD4711A
RxD
TxD
Port
SO1
SI1
SI
SO
SCK
Port
SCK1
INTPm
Note
Port
INT
VDD
VDD
µ PD78014 (slave)
SDA
SB0
SCL
INTPn
SCK0
Note
Port
INT
[Two-wire serial I/O]
Note Handshake line
36
Port
µPD784031
8.8.1
Asynchronous serial interface/three-wire serial I/O (UART/IOE)
Two serial interface channels are available; for each channel, asynchronous serial interface mode or three-wire
serial I/O mode can be selected.
(1) Asynchronous serial interface mode
In this mode, 1-byte data is transferred after a start bit.
A baud rate generator is incorporated to enable communication at a wide range of baud rates.
Moreover, the frequency of a clock signal applied to the ASCK pin can be divided to define a baud rate.
With the baud rate generator, the baud rate conforming to the MIDI standard (31.25 kbps) can be obtained.
Figure 8-10. Block Diagram of Asynchronous Serial Interface Mode
Internal bus
Receive buffer
RXB, RXB2
Transmission
shift register
Receive
shift register
RxD, RxD2
TXS, TXS2
TxD, TxD2
Reception
control parity
check
INTSR,
INTSR2
INTSER,
INTSER2
Transmission
control parity
bit addition
INTST, INTST2
Baud rate generator
ASCK, ASCK2
Selector
1/2m
fXX/2
1/2n+1
1/2m
Remark fXX: Oscillator frequency or external clock input
n = 0 to 11
m = 16 to 30
37
µPD784031
(2) Three-wire serial I/O mode
In this mode, the master device makes the serial clock active to start transmission, then transfers 1-byte data
in phase with the clock.
This mode is designed for communication with a device incorporating a conventional synchronous serial interface.
Basically, three lines are used for communication: the serial clock line (SCK) and the two serial data lines (SI
and SO).
In general, a handshake line is required to check the state of communication.
Figure 8-11. Block Diagram of Three-Wire Serial I/O Mode
Internal bus
Direction control
circuit
SIO1, SIO2
SI1, SI2
Shift register
Output latch
SO1, SO2
Serial clock
control circuit
Remark fXX: Oscillator frequency or external clock input
n = 0 to 11
m = 1, 16 to 30
38
Interrupt signal
generator
Serial clock counter
Selector
SCK1, SCK2
1/m
INTCSI1,
INTCSI2
1/2n+1
fXX/2
µPD784031
8.8.2
Synchronous serial interface (CSI)
With this interface, the master device makes the serial clock active to start transmission, then transfers 1-byte data
in phase with the clock.
Figure 8-12. Block Diagram of Synchronous Serial Interface
Internal bus
Direction
control circuit
Reset
Set
Selector
SI0
SO0/SDA
Shift register
Output latch
N-ch open-drain
output enabled
(when two-wire
mode is used)
Timer 3 output
fXX/16
Prescaler
Serial clock
control circuit
INTCSI
Selector
N-ch open-drain
output enabled
(when two-wire
mode is used)
CLS0
CLS1
Interrupt signal
generator
Selector
Serial clock
counter
SCK0/SCL
fXX/2
Remark fXX: Oscillator frequency or external clock input
39
µPD784031
(1) Three-wire serial I/O mode
This mode is designed for communication with a device incorporating a conventional synchronous serial interface.
Basically, three lines are used for communication: the serial clock line (SCK0) and serial data lines (SI0 and SO0).
In general, a handshake line is required to check the state of communication.
(2) Two-wire serial I/O mode
In this mode, 8-bit data is transferred using two lines: the serial clock line (SCL) and serial data bus (SDA).
In general, a handshake line is required to check the communication state.
8.9
Edge Detection Function
The interrupt input pins (NMI, INTP0-INTP5) are used to apply not only interrupt requests but also trigger signals
for the built-in circuits. As these pins are triggered by an edge (rising or falling) of an input signal, a function for edge
detection is incorporated. Moreover, a noise suppression function is provided to prevent erroneous edge detection
caused by noise.
Pin
Detectable edge
Noise suppression method
NMI
Rising edge or falling edge
Analog delay
INTP0-INTP3
Rising edge or falling edge, or both edges
Clock samplingNote
INTP4, INTP5
Analog delay
Note INTP0 is used for sampling clock selection.
8.10
Watchdog Timer
A watchdog timer is incorporated for CPU runaway detection. The watchdog timer, if not cleared by software within
a specified interval, generates a nonmaskable interrupt. Furthermore, once watchdog timer operation is enabled,
it cannot be disabled by software. The user can specify whether priority is placed on an interrupt based on the
watchdog timer or on an interrupt based on the NMI pin.
Figure 8-13. Block Diagram of Watchdog Timer
fCLK
Timer
fCLK/221
fCLK/219
fCLK/217
Clear signal
40
Selector
fCLK/220
INTWDT
µPD784031
9. INTERRUPT FUNCTION
Table 9-1 lists the interrupt request handling modes. These modes are selected by software.
Table 9-1. Interrupt Request Handling Modes
Handling mode
Vectored interrupt
Handled by
Software
Context switching
Macro service
9.1
Firmware
Handling
PC and PSW contents
Branches to a handling routine for execution
(arbitrary handling).
The PC and PSW contents are pushed
to and popped from the stack.
Automatically selects a register bank, and
branches to a handling routine for execution
(arbitrary handling).
The PC and PSW contents are saved to
and read from a fixed area in the
register bank.
Performs operations such as memory-to-I/Odevice data transfer (fixed handling).
Maintained
Interrupt Source
An interrupt can be issued from any one of the interrupt sources listed in Table 9-2: execution of BRK and BRKCS
instructions, an operand error, or any of the 23 other interrupt sources.
Four levels of interrupt handling priority can be set. Priority levels can be set to nest control during interrupt handling
or to concurrently generate interrupt requests. Nested macro services, however, are performed without suspension.
When interrupt requests having the same priority level are generated, they are handled according to the default
priority (fixed). (See Table 9-2.)
41
µPD784031
Table 9-2. Interrupt Sources
Source
Default
Type
priority
Software
-
Name
BRK instruction
Trigger
Instruction execution
Internal/
Macro
external
service
-
-
-
BRKCS instruction
Operand error
When the MOV STBC,#byte, MOV WDM,#byte, or LOCATION
instruction is executed, exclusive OR of the byte operand and
byte does not produce FFH.
NMI
Detection of edge input on the pin
External
WDT
Watchdog timer overflow
Internal
0 (highest)
INTP0
Detection of edge input on the pin (TM1/TM1W capture trigger,
TM1/TM1W event conter input)
External
Enabled
1
INTP1
Detection of edge input on the pin (TM2/TM2W capture trigger,
TM2/TM2W event conter input)
2
INTP2
Detection of edge input on the pin (TM2/TM2W capture trigger,
TM2/TM2W event counter input)
3
INTP3
Detection of edge input on the pin (TM0 capture trigger, TM0
event counter input)
4
INTC00
TM0-CR00 match signal issued
Internal
Enabled
5
INTC01
TM0-CR01 match signal issued
6
INTC10
TM1-CR10 match signal issued (in 8-bit operation mode)
TM1W-CR10W match signal issued (in 16-bit operation mode)
7
INTC11
TM1-CR11 match signal issued (in 8-bit operation mode)
TM1W-CR11W match signal issued (in 16-bit operation mode)
8
INTC20
TM2-CR20 match signal issued (in 8-bit operation mode)
TM2W-CR20W match signal issued (in 16-bit operation mode)
9
INTC21
TM2-CR21 match signal issued (in 8-bit operation mode)
TM2W-CR21W match signal issued (in 16-bit operation mode)
10
INTC30
TM3-CR30 match signal issued (in 8-bit operation mode)
TM3W-CR30W match signal issued (in 16-bit operation mode)
11
INTP4
Detection of edge input on the pin
External
Enabled
12
INTP5
Detection of edge input on the pin
13
INTAD
A/D converter processing completed (ADCR transfer)
Internal
Enabled
14
INTSER
ASI0 reception error
15
INTSR
ASI0 reception completed or CSI1 transfer completed
Nonmaskable
Maskable
-
Enabled
INTCSI1
16
INTST
ASI0 transmission completed
17
INTCSI
CSI0 transfer completed
18
INTSER2
ASI2 reception error
19
INTSR2
ASI2 reception completed or CSI2 transfer completed
INTCSI2
20 (lowest)
INTST2
ASI2 transmission completed
Remark ASI: Asynchronous serial interface
CSI: Synchronous serial interface
42
Enabled
µPD784031
9.2
Vectored Interrupt
When a branch to an interrupt handling routine occurs, the vector table address corresponding to the interrupt
source is used as the branch address.
Interrupt handling by the CPU consists of the following operations:
• When a branch occurs
: Push the CPU status (PC and PSW contents) to the stack.
• When control is returned : Pop the CPU status (PC and PSW contents) from the stack.
To return control from the handling routine to the main routine, use the RETI instruction. The branch destination
addresses must be within the range of 0 to FFFFH.
Table 9-3. Vector Table Address
Interrupt source
Vector table address
BRK instruction
003EH
Operand error
003CH
NMI
0002H
WDT
0004H
INTP0
0006H
INTP1
0008H
INTP2
000AH
INTP3
000CH
INTC00
000EH
INTC01
0010H
INTC10
0012H
INTC11
0014H
INTC20
0016H
INTC21
0018H
INTC30
001AH
INTP4
001CH
INTP5
001EH
INTAD
0020H
INTSER
0022H
INTSR
0024H
INTCSI1
INTST
0026H
INTCSI
0028H
INTSER2
002AH
INTSR2
002CH
INTCSI2
INTST2
002EH
43
µPD784031
9.3
Context Switching
When an interrupt request is generated, or when the BRKCS instruction is executed, an appropriate register bank
is selected by the hardware. Then, a branch to a vector address stored in that register bank occurs. At the same
time, the contents of the current program counter (PC) and program status word (PSW) are stacked in the register
bank.
The branch address must be within the range of 0 to FFFFH.
Figure 9-1. Context Switching Caused by an Interrupt Request
0000B
<7> Transfer
PC19-16
Register bank n (n = 0-7)
PC15-0
<2> Save
(Bits 8 to 11 of
temporary register)
A
<6> Exchange
<5> Save
Temporary register
<1> Save
Register bank (0-7)
X
B
C
R5
R4
R7
R6
V
VP
U
UP
T
D
E
W
H
L
<3> Switching between register banks
(RBS0-RBS2 ← n)
<4> RSS ← 0
IE ← 0
PSW
9.4
Macro Service
The macro service function enables data transfer between memory and special function registers (SFRs) without
requiring the intervention of the CPU. The macro service controller accesses both memory and SFRs within the same
transfer cycle to directly transfer data without having to perform data fetch.
Since the CPU status is neither saved nor restored, nor is data fetch performed, high-speed data transfer is
possible.
Figure 9-2. Macro Service
Read
CPU
Memory
Write
Internal bus
44
Macro service
controller
Write
SFR
Read
µPD784031
9.5
Examples of Macro Service Applications
(1) Serial interface transmission
Transmission data storage buffer (memory)
Data n
Data n - 1
Data 2
Data 1
Internal bus
TxD
Transmission
shift register
Transmission control
TXS (SFR)
INTST
Each time a macro service request (INTST) is generated, the next transmission data is transferred from memory
to TXS. When data n (last byte) has been transferred to TXS (that is, once the transmission data storage buffer
becomes empty), a vectored interrupt request (INTST) is generated.
(2) Serial interface reception
Reception data storage buffer (memory)
Data n
Data n - 1
Data 2
Data 1
Internal bus
Reception buffer
RxD
RXB (SFR)
Reception
shift register
Reception control
INTSR
Each time a macro service request (INTSR) is generated, reception data is transferred from RXB to memory.
When data n (last byte) has been transferred to memory (that is, once the reception data storage buffer becomes
full), a vectored interrupt request (INTSR) is generated.
45
µPD784031
(3) Real-time output port
INTC10 and INTC11 function as the output triggers for the real-time output ports. For these triggers, the macro
service can simultaneously set the next output pattern and interval. Therefore, INTC10 and INTC11 can be used
to independently control two stepping motors. They can also be applied to PWM and DC motor control.
Output pattern profile (memory)
Output timing profile (memory)
Pn
Tn
Pn–1
Tn–1
P2
T2
P1
T1
Internal bus
Internal bus
Match
(SFR)
P0L
CR10
(SFR)
INTC10
Output latch
TM1
P00-P03
Each time a macro service request (INTC10) is generated, a pattern and timing data are transferred to the buffer
register (P0L) and compare register (CR10), respectively. When the contents of timer register 1 (TM1) and CR10
match, another INTC10 is generated, and the P0L contents are transferred to the output latch. When Tn (last
byte) is transferred to CR10, a vectored interrupt request (INTC10) is generated.
For INTC11, the same operation as that performed for INTC10 is performed.
46
µPD784031
10. LOCAL BUS INTERFACE
The local bus interface enables the connection of external memory and I/O devices (memory-mapped I/O). It
supports a 1M-byte memory space. (See Figure 10-1.)
Figure 10-1. Example of Local Bus Interface
A16-A19
Decoder
µ PD784031
RD
WR
REFRQ
Pseudo SRAM
Kanji character
generator
µPD24C1000
Data bus
bus
Data
AD0-AD7
ASTB
PROM
µ PD27C1001A
Latch
Address bus
A8-A15
Gate array for I/O
expansion including
Centronics interface
circuit, etc.
10.1
Memory Expansion
By adding external memory, program memory or data memory can be expanded, 256 bytes at a time, to
approximately 1M byte (seven steps).
47
µPD784031
10.2
Memory Space
The 1M-byte memory space is divided into eight spaces, each having a logical address. Each of these spaces
can be controlled using the programmable wait and pseudo-static RAM refresh functions.
Figure 10-2. Memory Space
FFFFFH
512K bytes
80000H
7FFFFH
256K bytes
40000H
3FFFFH
128K bytes
20000H
1FFFFH
64K bytes
10000H
0FFFFH
16K bytes
0C000H
0BFFFH
16K bytes
08000H
07FFFH
16K bytes
04000H
03FFFH
16K bytes
00000H
48
µPD784031
10.3
Programmable Wait
When the memory space is divided into eight spaces, a wait state can be separately inserted for each memory
space while the RD or WR signal is active. This prevents the overall system efficiency from being degraded even
when memory devices having different access times are connected.
In addition, an address wait function that extends the ASTB signal active period is provided to produce a longer
address decode time. (This function is set for the entire space.)
10.4
Pseudo-Static RAM Refresh Function
Refresh is performed as follows:
• Pulse refresh
: A bus cycle is inserted where a refresh pulse is output on the REFRQ pin at regular
intervals. When the memory space is divided into eight, and a specified area
is being accessed, refresh pulses can also be output on the REFRQ pin as the
memory is being accessed. This can prevent the refresh cycle from suspending
normal memory access.
• Power-down self-refresh : In standby mode, a low-level signal is output on the REFRQ pin to maintain the
contents of pseudo-static RAM.
10.5
Bus Hold Function
A bus hold function is provided to facilitate connection to devices such as a DMA controller. Suppose that a bus
hold request signal (HLDRQ) is received from an external bus master. In this case, upon the completion of the bus
cycle being performed, the address bus, address/data bus, ASTB, RD, and WR pins are placed in the high-impedance
state, and the bus hold acknowledge signal (HLDAK) is made active to release the bus for the external bus master.
While the bus hold function is being used, the external wait and pseudo-static RAM refresh functions are disabled.
49
µPD784031
11. STANDBY FUNCTION
The standby function allows the power consumption of the chip to be reduced. The following standby modes are
supported:
• HALT mode : The CPU operation clock is stopped. By occasionally inserting the HALT mode during normal
operation, the overall average power consumption can be reduced.
• IDLE mode : The entire system is stopped, with the exception of the oscillator circuit. This mode consumes
only very little more power than STOP mode, but normal program operation can be restored in
almost as little time as that required to restore normal program operation from HALT mode.
• STOP mode : The oscillator is stopped. All operations in the chip stop, such that only leakage current flows.
These modes can be selected by software.
A macro service can be initiated in HALT mode.
Figure 11-1. Standby Mode Status Transition
Macro service request
Macro
service
se
rv
i
on ce r
e
e
op qu
e
er
at st
ion
ro
of
d
ac
M
te
ut No
S
R et
IN ESE IDL
TP T E
4, in
IN pu
TP t
5
inp
NM
I,
En
1
1
e
ot
ut N
inp
5
TP
IN
4,
TP
IN
I,
e2
ot
NM
tN
es
qu t
re
u
pt
inp
ru
T LT
er
SE HA
RE Set
OP t
ST inpu
t
Se ET
S
RE
End of one operation
End of macro service
Program
operation
Int
Wait for
oscillation
settling
ttling
tion se
Oscilla ses
p
time ela
STOP
(standby)
IDLE
(standby)
Request for masked interrupt
HALT
(standby)
Notes 1. INTP4 and INTP5 are applied when not masked.
2. Only when the interrupt request is not masked
Remark NMI is enabled only by external input. The watchdog timer cannot be used to release one of the standby
modes (STOP or IDLE mode).
50
µPD784031
12. RESET FUNCTION
Applying a low-level signal to the RESET pin initializes the internal hardware (reset status).
When the RESET input makes a low-to-high transition, the following data is loaded into the program counter (PC):
• Eight low-order bits of the PC
: Contents of location at address 0000H
• Intermediate eight bits of the PC : Contents of location at address 0001H
• Four high-order bits of the PC
: 0
The PC contents are used as a branch destination address. Program execution starts from that address. Therefore,
a reset start can be performed from an arbitrary address.
The contents of each register can be set by software, as required.
The RESET input circuit contains a noise eliminator to prevent malfunctions caused by noise. This noise eliminator
is an analog delay sampling circuit.
Figure 12-1. Accepting a Reset
Delay
Delay
Delay
Initialize PC
Execute instruction
at reset start address
RESET
(input)
Internal reset signal
Start reset
End reset
For power-on reset, the RESET signal must be held active until the oscillation settling time (approximately 40 ms)
has elapsed.
Figure 12-2. Power-On Reset
Oscillation settling time
Delay
Initialize PC
Execute instruction at
reset start address
VDD
RESET
(input)
Internal reset signal
End reset
51
µPD784031
13. INSTRUCTION SET
(1) 8-bit instructions (The instructions enclosed in parentheses are implemented by a combination of
operands, where A is described 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, CHKL, CHKLA
Table 13-1. Instructions Implemented by 8-Bit Addressing
2nd operand
#byte
A
r
saddr
r'
saddr'
sfr
!addr16
!!addr24
1st operand
A
mem
r3
[WHL+]
[saddrp]
PSWL
[WHL-]
[%saddrg]
PSWH
(MOV)
(MOV)
MOV
(MOV)Note 6 MOV
(MOV)
MOV
ADDNote 1
(XCH)
XCH
(XCH)Note 6 (XCH)
(XCH)
XCH
MOV
(ADD)Note 1 (ADD)Note 1 (ADD)Notes 1, 6 (ADD)Note 1 ADDNote 1 ADDNote 1
r
MOV
(MOV)
MOV
MOV
MOV
MOV
ADDNote 1
(XCH)
XCH
XCH
XCH
XCH
ADDNote 1
ADDNote 1
(ADD)Note 1 ADDNote 1
n
NoneNote 2
(MOV)
(XCH)
(ADD)Note 1
RORNote 3 MULU
DIVUW
INC
DEC
saddr
MOV
(MOV)Note 6
MOV
ADDNote 1 (ADD)Note 1 ADDNote 1
sfr
MOV
MOV
MOV
INC
XCH
DEC
ADDNote 1
DBNZ
MOV
PUSH
ADDNote 1 (ADD)Note 1 ADDNote 1
POP
CHKL
CHKLA
!addr16
MOV
(MOV)
MOV
ADDNote 1
!!addr24
mem
MOV
[saddrp]
ADDNote 1
[%saddrg]
mem3
ROR4
ROL4
r3
MOV
MOV
PSWL
PSWH
B, C
DBNZ
STBC, WDM
MOV
[TDE+]
(MOV)
[TDE–]
(ADD)Note 1
MOVBKNote 5
MOVMNote 4
Notes 1. ADDC, SUB, SUBC, AND, OR, XOR, and CMP are the same as ADD.
2. There is no second operand, or the second operand is not an operand address.
3. ROL, RORC, ROLC, SHR, and SHL are the same as ROR.
4. XCHM, CMPME, CMPMNE, CMPMNC, and CMPMC are the same as MOVM.
5. XCHBK, CMPBKE, CMPBKNE, CMPBKNC, and CMPBKC are the same as MOVBK.
6. When saddr is saddr2 with this combination, an instruction with a short code exists.
52
µPD784031
(2) 16-bit instructions (The instructions enclosed in parentheses are implemented by a combination of
operands, where AX is described 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 13-2. Instructions Implemented by 16-Bit Addressing
2nd operand
#word
AX
rp
saddrp
rp'
saddrp'
strp
!addr16
mem
!!addr24
[saddrp]
1st operand
AX
[WHL+]
byte
n
NoneNote 2
[%saddrg]
(MOVW)
(MOVW)
(MOVW)Note 3
ADDWNote 1 (XCHW)
(XCHW)
(XCHW)Note 3 (XCHW)
(MOVW)
MOVW
(MOVW)
MOVW
(MOVW)
XCHW
XCHW
(XCHW)
(ADD)Note 1 (ADDW)Note 1 (ADDW)Notes 1,3 (ADDW)Note 1
rp
saddrp
(MOVW)
MOVW
MOVW
MOVW
ADDWNote 1 (XCHW)
MOVW
XCHW
XCHW
XCHW
MOVW
MOVW
SHRW
SHLW
MULWNote 4
INCW
(ADDW)Note 1 ADDWNote 1 ADDWNote 1 ADDWNote 1
DECW
(MOVW)Note 3 MOVW
INCW
MOVW
ADDWNote 1 (ADDW)Note 1 ADDWNote 1 XCHW
DECW
ADDWNote 1
sfrp
MOVW
MOVW
MOVW
PUSH
ADDWNote 1 (ADDW)Note 1 ADDWNote 1
!addr16
MOVW
(MOVW)
POP
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. SUBW and CMPW are the same as ADDW.
2. There is no second operand, or the second operand is not an operand address.
3. When saddrp is saddrp2 with this combination, an instruction with a short code exists.
4. MULUW and DIVUX are the same as MULW.
53
µPD784031
(3) 24-bit instructions (The instructions enclosed in parentheses are implemented by a combination of
operands, where WHL is described as rg.)
MOVG, ADDG, SUBG, INCG, DECG, PUSH, POP
Table 13-3. Instructions Implemented by 24-Bit Addressing
2nd operand
#imm24
WHL
1st operand
WHL
rg
rg
saddrg
!!addr24
(MOVG)
mem1
[%saddrg]
SP
NoneNote
rg'
(MOVG)
(MOVG)
(MOVG)
(MOVG)
(ADDG)
(ADDG)
(ADDG)
ADDG
(SUBG)
(SUBG)
(SUBG)
SUBG
MOVG
MOVG
(MOVG)
MOVG
ADDG
(ADDG)
ADDG
SUBG
(SUBG)
SUBG
MOVG
MOVG
MOVG
MOVG
INCG
DECG
PUSH
POP
saddrg
(MOVG)
MOVG
!!addr24
(MOVG)
MOVG
mem1
MOVG
[%saddrg]
MOVG
SP
MOVG
MOVG
INCG
DECG
Note There is no second operand, or the second operand is not an operand address.
54
µPD784031
(4) Bit manipulation instructions
MOV1, AND1, OR1, XOR1, SET1, CLR1, NOT1, BT, BF, BTCLR, BFSET
Table 13-4. Bit Manipulation Instructions Implemented by Addressing
2nd operand
CY
1st operand
CY
saddr.bit sfr.bit
/saddr.bit /sfr.bit
NoneNote
A.bit X.bit
/A.bit /X.bit
PSWL.bit PSWH.bit
/PSWL.bit /PSWH.bit
mem2.bit
/mem2.bit
!addr16.bit !!addr24.bit
/!addr16.bit
MOV1
AND1
NOT1
AND1
OR1
SET1
/!!addr24.bit
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 There is no second operand, or the second operand is not an operand address.
55
µPD784031
(5) Call/return instructions and 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 13-5. Call/Return and Branch Instructions Implemented by Addressing
Instruction
$addr20 $!addr20
!addr16
!!addr20
rp
rg
[rp]
[rg]
!addr11
[addr5]
CALLF
CALLF
RBn
None
address
operand
Basic
BCNote
CALL
CALL
CALL
CALL
CALL
CALL
CALL
instruction
BR
BR
BR
BR
BR
BR
BR
BR
BRKCS
BRK
RET
RETCS
RETI
RETCSB
RETB
Composite BF
instruction
BT
BTCLR
BFSET
DBNZ
Note BNZ, BNE, BZ, BE, BNC, BNL, BL, BNV, BPO, BV, BPE, BP, BN, BLT, BGE, BLE, BGT, BNH, and BH
are the same as BC.
(6) Other instructions
ADJBA, ADJBS, CVTBW, LOCATION, SEL, NOT EI, DI, SWRS
56
µPD784031
14. ELECTRICAL CHARACTERISTICS
ABSOLUTE MAXIMUM RATINGS (TA = 25 °C)
Parameter
Supply voltage
Symbol
Conditions
Rating
Unit
-0.5 to +7.0
V
AVDD
AVSS to VDD + 0.5
V
AVSS
-0.5 to +0.5
V
VDD
Input voltage
VI
-0.5 to VDD + 0.5
V
Output voltage
VO
-0.5 to VDD + 0.5
V
Output low current
IOL
At one pin
15
mA
Total of all output pins
100
mA
At one pin
-10
mA
Total of all output pins
-100
mA
Output high current
IOH
A/D converter reference input
voltage
AVREF1
-0.5 to VDD + 0.3
V
D/A converter reference input
voltage
AVREF2
-0.5 to VDD + 0.3
V
AVREF3
-0.5 to VDD + 0.3
V
Operating ambient temperature
TA
-40 to +85
°C
Storage temperature
Tstg
-65 to +150
°C
Caution Absolute maximum ratings are rated values beyond which physical damage will be caused to the
product; if the rated value of any of the parameters in the above table is exceeded, even
momentarily, the quality of the product may deteriorate. Always use the product within its rated
values.
57
µPD784031
OPERATING CONDITIONS
: -40 to +85 °C
• Operating ambient temperature (TA)
• Rise time and fall time (tr, tf) (at pins which are not specified) : 0 to 200 µs
• Power supply voltage and clock cycle time
: See Figure 14-1.
Figure 14-1. Power Supply Voltage and Clock Cycle Time
10 000
Clock cycle time tCYK [ns]
4 000
1 000
Guaranteed
operating
range
125
100
62.5
10
0
1
2
3
4
5
Power supply voltage [V]
6
7
CAPACITANCE (TA = 25 °C, VDD = VSS = 0 V)
Parameter
Conditions
Symbol
MIN.
TYP.
MAX.
Unit
Input capacitance
CI
f = 1 MHz
10
pF
Output capacitance
CO
0 V on pins other than measured pins
10
pF
I/O capacitance
CIO
10
pF
58
µPD784031
OSCILLATOR CHARACTERISTICS (TA = -40 to +85 °C, VDD = +4.5 to 5.5 V, VSS = 0 V)
Resonator
Recommended circuit
Ceramic resonator
or crystal
VSS1 X1
C1
MAX.
Unit
Oscillator frequency (fXX)
4
32
MHz
X1 input frequency (fX)
4
32
MHz
X1 input rise and fall times
(tXR, tXF)
0
10
ns
X1 input high-level and lowlevel widths (tWXH, tWXL)
10
125
ns
C2
X2
HCMOS
inverter
MIN.
X2
External clock
X1
Parameter
Caution When using the system clock generator, run wires in the portion surrounded by broken lines
according to the following rules to avoid effects such as stray capacitance:
• Minimize the wiring.
• Never cause the wires to cross other signal lines.
• Never cause the wires to run near a line carrying a large varying current.
• Cause the grounding point of the capacitor of the oscillator circuit to have the same potential
as VSS1. Never connect the capacitor to a ground pattern carrying a large current.
• Never extract a signal from the oscillator.
59
µPD784031
OSCILLATOR CHARACTERISTICS (TA = -40 to +85 °C, VDD = +2.7 to 5.5 V, VSS = 0 V)
Resonator
Recommended circuit
Ceramic resonator
or crystal
VSS1 X1
C1
MAX.
Unit
Oscillator frequency (fXX)
4
16
MHz
X1 input frequency (fX)
4
16
MHz
X1 input rise and fall times
(tXR, tXF)
0
10
ns
X1 input high-level and lowlevel widths (tWXH, tWXL)
10
125
ns
C2
X2
HCMOS
inverter
MIN.
X2
External clock
X1
Parameter
Caution When using the system clock generator, run wires in the portion surrounded by broken lines
according to the following rules to avoid effects such as stray capacitance:
•
Minimize the wiring.
•
Never cause the wires to cross other signal lines.
•
Never cause the wires to run near a line carrying a large varying current.
•
Cause the grounding point of the capacitor of the oscillator circuit to have the same potential
as VSS1. Never connect the capacitor to a ground pattern carrying a large current.
•
60
Never extract a signal from the oscillator.
µPD784031
DC CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V) (1/2)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
VIL1
For pins other than those described in
Notes 1, 2, 3, and 4
-0.3
0.3VDD
V
VIL2
For pins described in Notes 1, 2, 3, and
4
-0.3
0.2VDD
V
VIL3
VDD = +5.0 V ± 10 %
For pins described in Notes 2, 3, and 4
-0.3
+0.8
V
VIH1
For pins other than those described in
Note 1
0.7VDD
VDD + 0.3
V
VIH2
For pins described in Note 1
0.8VDD
VDD + 0.3
V
VIH3
VDD = +5.0 V ± 10 %
For pins described in Notes 2, 3, and 4
2.2
VDD + 0.3
V
VOL1
IOL = 2 mA
0.4
V
VOL2
VDD = +5.0 V ± 10 %
IOL = 8 mA
For pins described in Notes 2 and 5
1.0
V
VOH1
IOH = -2 mA
VDD - 1.0
V
VOH2
VDD = +5.0 V ± 10 %
IOH = -5 mA
For pins described in Note 4
VDD - 1.4
V
X1 input low current
IIL
EXTC = 0
0 V ≤ VI ≤ VIL2
-30
µA
X1 input high current
IIH
EXTC = 0
VIH2 ≤ VI ≤ VDD
+30
µA
Input low voltage
Input high voltage
Output low voltage
Output high voltage
Notes 1. X1, X2, RESET, P12/ASCK2/SCK2, P20/NMI, P21/INTP0, P22/INTP1, P23/INTP2/CI, P24/INTP3,
P25/INTP4/ASCK/SCK1, P26/INTP5, P27/SI0, P32/SCK0/SCL, P33/SO0/SDA, TEST
2. AD0-AD7, A8-A15
3. P60/A16-P63/A19, RD, WR, P66/WAIT/HLDRQ, P67/REFRQ/HLDAK
4. P00-P07
5. P10-P17
61
µPD784031
DC CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V) (2/2)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
Unit
Input leakage current
ILI
0 V ≤ VI ≤ VDD
For pins other than X1 when EXTC = 0
±10
µA
Output leakage current
ILO
0 V ≤ VO ≤ VDD
±10
µA
VDD supply current
IDD1
Operation mode
IDD2
IDD3
Pull-up resistor
62
RL
HALT mode
IDLE mode
(EXTC = 0)
VI = 0 V
fXX = 32 MHz
VDD = +5.0 V ± 10 %
25
45
mA
fXX = 16 MHz
VDD = +2.7 to 3.3 V
12
25
mA
fXX = 32 MHz
VDD = +5.0 V ± 10 %
13
26
mA
fXX = 16 MHz
VDD = +2.7 to 3.3 V
8
12
mA
fXX = 32 MHz
VDD = +5.0 V ± 10 %
12
mA
fXX = 16 MHz
VDD = +2.7 to 3.3 V
8
mA
80
kΩ
15
µPD784031
AC CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V)
(1) Read/write operation (1/2)
Parameter
Address setup time
ASTB high-level width
Address hold time (to ASTB↓)
Symbol
tSAST
tWSTH
tHSTLA
Address hold time (to RD↑)
tHRA
Delay from address to RD↓
tDAR
Address float time (to RD↓)
Delay from RD↓ to data input
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
MIN.
tDSTID
tDRID
MAX.
Unit
(0.5 + a) T - 15
ns
(0.5 + a) T - 31
ns
(0.5 + a) T - 17
ns
(0.5 + a) T - 40
ns
0.5T - 24
ns
0.5T - 34
ns
0.5T - 14
ns
(1 + a) T - 9
ns
(1 + a) T - 15
ns
tFRA
Delay from address to data input tDAID
Delay from ASTB↓ to data input
Conditions
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
0
ns
(2.5 + a + n) T - 37
ns
(2.5 + a + n) T - 52
ns
(2 + n) T - 40
ns
(2 + n) T - 60
ns
(1.5 + n) T - 50
ns
(1.5 + n) T - 70
ns
Delay from ASTB↓ to RD↓
tDSTR
0.5T - 9
ns
Data hold time (to RD↑)
tHRID
0
ns
0.5T - 8
ns
0.5T - 12
ns
1.5T - 8
ns
1.5T - 12
ns
0.5T - 17
ns
(1.5 + n) T - 30
ns
(1.5 + n) T - 40
ns
0.5T - 14
ns
(1 + a) T - 5
ns
(1 + a) T - 15
ns
Delay from RD↑ to address active tDRA
Delay from RD↑ to ASTB↑
tDRST
RD low-level width
tWRL
Address hold time (to WR↑)
tHWA
Delay from address to WR↓
tDAW
Delay from ASTB↓ to data output tDSTOD
Delay from WR↓ to data output
tDWOD
Delay from ASTB↓ to WR↓
tDSTW
After program
is read
VDD = +5.0 V ± 10 %
After data is
read
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
0.5T - 9
0.5T + 19
ns
0.5T + 35
ns
0.5T - 11
ns
ns
Remarks T: TCYK (system clock cycle time)
a:
1 (during address wait), otherwise, 0
n:
Number of wait states (n ≥ 0)
63
µPD784031
(1) Read/write operation (2/2)
Parameter
Data setup time (to WR↑)
Data hold time (to
WR↑)Note
Symbol
tSODW
tHWOD
Delay from WR↑ to ASTB↑
tDWST
WR low-level width
tWWL
Conditions
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
MIN.
MAX.
Unit
(1.5 + n) T - 30
ns
(1.5 + n) T - 40
ns
0.5T - 5
ns
0.5T - 25
ns
0.5T - 12
ns
(1.5 + n) T - 30
ns
(1.5 + n) T - 40
ns
Note The hold time includes the time during which VOH1 and VOL1 are held under the load conditions of
CL = 50 pF and RL = 4.7 kΩ.
Remarks T: TCYK (system clock cycle time)
n:
Number of wait states (n ≥ 0)
(2) Bus hold timing
Parameter
Delay from HLDRQ↑ to float
Symbol
VDD = +5.0 V ± 10 %
tDCFHA
Delay from HLDRQ↓ to HLDAK↓ tDHQLHAL
Delay from HLDAK↓ to active
tDHAC
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
Remarks T: TCYK (system clock cycle time)
64
MIN.
tFHQC
Delay from HLDRQ↑ to HLDAK↑ tDHQHHAH
Delay from float to HLDAK↑
Conditions
a:
1 (during address wait), otherwise, 0
n:
Number of wait states (n ≥ 0)
MAX.
Unit
(6 + a + n) T + 50
ns
(7 + a + n) T + 30
ns
(7 + a + n) T + 40
ns
1T + 30
ns
2T + 40
ns
2T + 60
ns
1T - 20
ns
1T - 30
ns
µPD784031
(3) External wait timing
Parameter
Symbol
Delay from address to WAIT↓ input tDAWT
Delay from ASTB↓ to WAIT↓ input
Hold time from ASTB↓ to WAIT
Delay from ASTB↓ to WAIT↑
Delay from RD↓ to WAIT↓ input
Hold time from RD↓ to WAIT↓
Delay from RD↓ to WAIT↑
Delay from WAIT↑ to data input
tDSTWT
tHSTWTH
tDSTWTH
tDRWTL
tHRWT
tDRWTH
tDWTID
Conditions
MIN.
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
Unit
(2 + a) T - 40
ns
(2 + a) T - 60
ns
1.5T - 40
ns
1.5T - 60
ns
(0.5 + n) T + 5
ns
(0.5 + n) T +10
ns
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
MAX.
(1.5 + n) T - 40
ns
(1.5 + n) T - 60
ns
T - 50
ns
T - 70
ns
nT + 5
ns
nT + 10
ns
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
(1 + n) T - 40
ns
(1 + n) T - 60
ns
0.5T - 5
ns
0.5T - 10
ns
Delay from WAIT↑ to WR↑
tDWTW
0.5T
ns
Delay from WAIT↑ to RD↑
tDWTR
0.5T
ns
Delay from WR↓ to WAIT↓ input tDWWTL
Hold time from WR↓ to WAIT
Delay from WR↓ to WAIT↑
tHWWT
tDWWTH
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
T - 50
ns
T - 75
ns
nT + 5
ns
nT + 10
ns
VDD = +5.0 V ± 10 %
(1 + n) T - 40
ns
(1 + n) T - 70
ns
MAX.
Unit
Remarks T: TCYK (system clock cycle time)
a:
1 (during address wait), otherwise, 0
n:
Number of wait states (n ≥ 0)
(4) Refresh timing
Parameter
Symbol
Random read/write cycle time
tRC
REFRQ low-level pulse width
tWRFQL
Delay from ASTB↓ to REFRQ
tDSTRFQ
Delay from RD↑ to REFRQ
tDRRFQ
Delay from WR↑ to REFRQ
tDWRFQ
Delay from REFRQ↑ to ASTB
tDRFQST
REFRQ high-level pulse width
tWRFQH
Conditions
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
MIN.
3T
ns
1.5T - 25
ns
1.5T - 30
ns
0.5T - 9
ns
1.5T - 9
ns
1.5T - 9
ns
0.5T - 15
ns
1.5T - 25
ns
1.5T - 30
ns
Remark T: TCYK (system clock cycle time)
65
µPD784031
SERIAL OPERATION (TA = -40 to +85 °C, VDD = +2.7 to 5.5 V, AVSS = VSS = 0 V)
(1) CSI
Parameter
Symbol
Serial clock cycle time (SCK0) tCYSK0
Conditions
Input
External clock
When SCK0 and SO0 are CMOS I/O
Output
Serial clock low-level width
(SCK0)
tWSKL0
Input
External clock
When SCK0 and SO0 are CMOS I/O
Output
Serial clock high-level width
(SCK0)
tWSKH0
Input
External clock
When SCK0 and SO0 are CMOS I/O
Output
MIN.
MAX.
Unit
10/fXX + 380
ns
T
µs
5/fXX + 150
ns
0.5T - 40
µs
5/fXX + 150
ns
0.5T - 40
µs
SI0 setup time (to SCK0↑)
tSSSK0
40
ns
SI0 hold time (to SCK0↑)
tHSSK0
5/fXX + 40
ns
SO0 output delay time
(to SCK0↓)
tDSBSK1
CMOS push-pull output
(3-wire serial I/O mode)
0
5/f XX + 150
ns
tDSBSK2
Open-drain output
(2-wire serial I/O mode), RL = 1 kΩ
0
5/f XX + 400
ns
Remarks 1. The values in this table are those when CL is 100 pF.
2. T
:
3. fXX :
66
Serial clock cycle set by software. The minimum value is 16/fXX.
Oscillator frequency
µPD784031
(2) IOE1, IOE2
Parameter
Serial clock cycle time
(SCK1, SCK2)
Serial clock low-level width
(SCK1, SCK2)
Serial clock high-level width
(SCK1, SCK2)
Symbol
tCYSK1
tWSKL1
tWSKH1
Conditions
Input
VDD = +5.0 V ± 10 %
MIN.
MAX.
Unit
250
ns
500
ns
Output
Internal, divided by 16
T
ns
Input
VDD = +5.0 V ± 10 %
85
ns
210
ns
0.5T - 40
ns
85
ns
210
ns
0.5T - 40
ns
Output
Internal, divided by 16
Input
VDD = +5.0 V ± 10 %
Output
Internal, divided by 16
Setup time for SI1 and SI2
(to SCK1, SCK2↑)
tSSSK1
40
ns
Hold time for SI1 and SI2
(to SCK1, SCK2↑)
tHSSK1
40
ns
Output delay time for SO1 and tDSOSK
SO2 (to SCK1, SCK2↓)
0
Output hold time for SO1 and
SO2 (to SCK1, SCK2↑)
tHSOSK
When data is transferred
50
ns
ns
0.5tCYSK1 - 40
Remarks 1. The values in this table are those when CL is 100 pF.
2. T: Serial clock cycle set by software. The minimum value is 16/fXX.
(3) UART, UART2
Parameter
ASCK clock input cycle time
ASCK clock low-level width
ASCK clock high-level width
Symbol
tCYASK
tWASKL
tWASKH
Conditions
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
VDD = +5.0 V ± 10 %
MIN.
MAX.
Unit
125
ns
250
ns
52.5
ns
85
ns
52.5
ns
85
ns
67
µPD784031
OTHER OPERATIONS
Parameter
Symbol
Conditions
MIN.
Unit
MAX.
NMI low-level width
tWNIL
10
µs
NMI high-level width
tWNIH
10
µs
INTP0 low-level width
tWIT0L
3tCYSMP + 10
ns
INTP0 high-level width
tWIT0H
3tCYSMP + 10
ns
Low-level width for INTP1INTP3 and CI
tWIT1L
3tCYCPU + 10
ns
High-level width for INTP1INTP3 and CI
tWIT1H
3tCYCPU + 10
ns
Low-level width for INTP4 and
INTP5
tWIT2L
10
µs
High-level width for INTP4 and tWIT2H
INTP5
10
µs
RESET low-level width
tWRSL
10
µs
RESET high-level width
tWRSH
10
µs
Remarks tCYSMP: Sampling clock set by software
tCYCPU: CPU operation clock set by software in the CPU
A/D CONVERTER CHARACTERISTICS
(TA = -40 to +85 °C, VDD = AVDD = AVREF1 = +2.7 to 5.5 V, VSS = AVSS = 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
bit
8
Resolution
Unit
Total errorNote
1.0
%
Linearity calibrationNote
0.8
%
±1/2
LSB
Quantization error
Conversion time
Sampling time
tCONV
tSAMP
Analog input voltage
VIAN
Analog input impedance
RAN
AVREF1 current
AIREF1
AVDD supply current
AIDD1
AIDD2
FR = 1
120
tCYK
FR = 0
180
tCYK
FR = 1
24
tCYK
FR = 0
36
tCYK
-0.3
V
AVREF1 + 0.3
MΩ
1 000
0.5
1.5
mA
fXX = 32 MHz, CS = 1
2.0
5.0
mA
STOP mode, CS = 0
1.0
20
µA
Note Quantization error is not included. This parameter is indicated as the ratio to the full-scale value.
Remark tCYK: System clock cycle time
68
µPD784031
D/A CONVERTER CHARACTERISTICS (TA = -40 to +85 °C, VDD = AVDD = +2.7 to 5.5 V, VSS = AVSS = 0 V)
Parameter
Symbol
Conditions
MIN.
TYP.
MAX.
8
Resolution
bit
Load conditions: VDD = AVDD = AVREF2
4 MΩ, 30 pF
= +2.7 to 5.5 V
AVREF3 = 0 V
Total error
VDD = AVDD = +2.7 to 5.5 V
AVREF2 = 0.75VDD
AVREF3 = 0.25VDD
Load conditions: VDD = AVDD = AVREF2
2 MΩ, 30 pF
= +2.72.7 to 5.5 V
AVREF3 = 0 V
VDD = AVDD = +2.7 to 5.5 V
AVREF2 = 0.75VDD
AVREF3 = 0.25VDD
Load conditions: 2 MΩ, 30 pF
Settling time
DACS0, 1 = 55 H
Unit
0.6
%
0.8
%
0.8
%
1.0
%
10
µs
Output resistance
RO
Analog reference voltage
AVREF2
0.75VDD
VDD
V
AVREF3
0
0.25VDD
V
DACS0, 1 = 55 H
10
4
kΩ
8
kΩ
Resistance of AVREF2 and
AVREF3
RAIREF
Reference power supply
input current
AIREF2
0
5
mA
AIREF3
-5
0
mA
69
µPD784031
DATA RETENTION CHARACTERISTICS (TA = -40 to +85 °C)
Parameter
Symbol
Conditions
MIN.
TYP.
2.5
MAX.
Unit
5.5
V
Data retention voltage
VDDDR
STOP mode
Data retention current
IDDDR
VDDDR = +2.7 to 5.5 V
10
50
µA
VDDDR = +2.5 V
2
10
µA
VDD rise time
tRVD
200
µs
VDD fall time
tFVD
200
µs
VDD hold time
(to STOP mode setting)
tHVD
0
ms
STOP clear signal input time
tDREL
0
ms
Oscillation settling time
tWAIT
Crystal
30
ms
Ceramic resonator
5
ms
Specific pinsNote
0
0.1VDDDR
V
0.9VDDDR
VDDDR
V
Input low voltage
VIL
Input high voltage
VIH
Note RESET, P20/NMI, P21/INTP0, P22/INTP1, P23/INTP2/CI, P24/INTP3, P25/INTP4/ASCK/SCK1,
P26/INTP5, P27/SI0, P32/SCK0/SCL, and P33/SO0/SDA pins
AC TIMING TEST POINTS
VDD - 1 V
0.8VDD or 2.2 V
0.8VDD or 2.2 V
Test points
0.45 V
70
0.8 V
0.8 V
µPD784031
TIMING WAVEFORM
(1) Read operation
tWSTH
ASTB
tSAST
tDRST
tDSTID
tHSTLA
A8-A19
tDAID
tHRA
AD0-AD7
tDSTR
tFRA
tDAR
tHRID
tDRID
tDRA
RD
tWRL
(2) Write operation
tWSTH
ASTB
tSAST
tDWST
tDSTOD
tHSTLA
A8-A19
tHWA
AD0-AD7
tDSTW
tDAW
tHWOD
tDWOD
tDSODW
WR
tWWL
71
µPD784031
HOLD TIMING
ADTB, A8-A19,
AD0-AD7, RD, WR
tFHQC
tDCFHA
tDHAC
HLDRQ
tDHQLHAL
tDHQHHAH
HLDAK
EXTERNAL WAIT SIGNAL INPUT TIMING
(1) Read operation
ASTB
tDSTWT
tDSTWTH
tHSTWTH
A8-A19
AD0-AD7
tDAWT
tDWTID
RD
tDWTR
tDRWTL
WAIT
tHRWT
tDRWTH
(2) Write operation
ASTB
tDSTWT
tDSTWTH
tHSTWTH
A8-A19
AD0-AD7
tDAWT
WR
tDWTW
tDWWTL
WAIT
tHWWT
tDWWTH
72
µPD784031
REFRESH TIMING WAVEFORM
(1) Random read/write cycle
tRC
ASTB
WR
tRC
tRC
tRC
tRC
RD
(2) When refresh memory is accessed for a read and write at the same time
ASTB
RD, WR
tDSTRFQ
tDRFQST
tWRFQH
REFRQ
tWRFQL
(3) Refresh after a read
ASTB
tDRFQST
RD
tDRRFQ
REFRQ
tWRFQL
(4) Refresh after a write
ASTB
tDRFQST
WR
tDWRFQ
REFRQ
tWRFQL
73
µPD784031
SERIAL OPERATION
(1) CSI
tWSKL0
tWSKH0
SCK
tSSSK0 tHSSK0
tCYSK0
Input data
SI
tDSBSK1
tHSBSK1
Output data
SO
(2) IOE1, IOE2
tWSKL1
tWSKH1
SCK
tSSSK1
tCYSK1
Input data
SI
tDSOSK
tHSOSK
Output data
SO
(3) UART, UART2
tWASKH
tWASKL
ASCK,
ASCK2
tCYASK
74
tHSSK1
µPD784031
INTERRUPT INPUT TIMING
tWNIH
tWNIL
tWIT0H
tWIT0L
tWIT1H
tWIT1L
tWIT2H
tWIT2L
tWRSH
tWRSL
NMI
INTP0
CI,
INTP1-INTP3
INTP4, INTP5
RESET INPUT TIMING
RESET
75
µPD784031
EXTERNAL CLOCK TIMING
tWXH
tWXL
X1
tXR
tXF
tCYX
DATA RETENTION CHARACTERISTICS
STOP mode setting
VDD
VDDDR
tHVD
RESET
NMI
(Clearing by falling edge)
NMI
(Clearing by rising edge)
76
tFVD
tRVD
tDREL
tWAIT
µPD784031
15.
PACKAGE DRAWINGS
80 PIN PLASTIC QFP (14×14)
A
B
60
61
41
40
detail of lead end
C D
S
R
Q
21
20
80
1
F
J
G
I
H
M
K
P
M
N
L
NOTE
Each lead centerline is located within 0.13 mm (0.005 inch) of
its true position (T.P.) at maximum material condition.
ITEM
MILLIMETERS
INCHES
A
17.2±0.4
0.677±0.016
B
14.0±0.2
0.551 +0.009
–0.008
C
14.0±0.2
0.551 +0.009
–0.008
D
17.2±0.4
0.677±0.016
F
0.825
0.032
G
0.825
0.032
H
0.30±0.10
0.012 +0.004
–0.005
I
0.13
0.005
J
0.65 (T.P.)
0.026 (T.P.)
K
1.6±0.2
L
0.8±0.2
0.063±0.008
0.031 +0.009
–0.008
M
0.15 +0.10
–0.05
0.006 +0.004
–0.003
N
0.10
0.004
P
2.7
0.106
Q
0.1±0.1
0.004±0.004
R
5°±5°
5°±5°
S
3.0 MAX.
0.119 MAX.
S80GC-65-3B9-4
Remark The shape and material of the ES version are the same as those of the corresponding mass-produced
product.
77
µPD784031
80 PIN PLASTIC QFP (14×14)
A
B
60
61
41
40
detail of lead end
C
S
D
R
Q
80
1
21
20
F
G
H
I
M
J
P
K
M
N
NOTE
Each lead centerline is located within 0.13 mm (0.005 inch) of
its true position (T.P.) at maximum material condition.
L
ITEM
MILLIMETERS
INCHES
A
17.20±0.20
0.677±0.008
B
14.00±0.20
0.551 +0.009
–0.008
C
14.00±0.20
0.551 +0.009
–0.008
D
17.20±0.20
0.677±0.008
F
0.825
0.032
G
0.825
0.032
H
0.32±0.06
0.013 +0.002
–0.003
I
0.13
0.005
J
0.65 (T.P.)
0.026 (T.P.)
K
1.60±0.20
0.063±0.008
L
0.80±0.20
0.031 +0.009
–0.008
M
0.17 +0.03
–0.07
0.007 +0.001
–0.003
N
0.10
0.004
P
1.40±0.10
0.055±0.004
Q
0.125±0.075
0.005±0.003
R
3° +7°
–3°
3° +7°
–3°
S
1.70 MAX.
0.067 MAX.
P80GC-65-8BT
Remark The shape and material of the ES version are the same as those of the corresponding mass-produced
product.
78
µPD784031
80 PIN PLASTIC TQFP (FINE PITCH) (
12)
A
B
60
41
61
40
21
F
80
1
20
H
I
M
J
K
M
P
G
R
Q
S
D
C
detail of lead end
N
L
NOTE
Each lead centerline is located within 0.10 mm (0.004 inch) of
its true position (T.P.) at maximum material condition.
ITEM
MILLIMETERS
INCHES
A
14.0±0.2
0.551 +0.009
–0.008
B
12.0±0.2
0.472 +0.009
–0.008
C
12.0±0.2
0.472 +0.009
–0.008
D
14.0±0.2
0.551 +0.009
–0.008
F
1.25
0.049
G
1.25
0.049
H
0.22 +0.05
–0.04
0.009±0.002
I
0.10
0.004
J
0.5 (T.P.)
0.020 (T.P.)
K
1.0±0.2
0.039 +0.009
–0.008
L
0.5±0.2
0.020 +0.008
–0.009
M
0.145 +0.055
–0.045
0.006±0.002
N
0.10
0.004
P
1.05
0.041
Q
0.05±0.05
0.002±0.002
R
5°±5°
5°±5°
S
1.27 MAX.
0.050 MAX.
P80GK-50-BE9-4
Remark The shape and material of the ES version are the same as those of the corresponding mass-produced
product.
79
µPD784031
16. RECOMMENDED SOLDERING CONDITIONS
The conditions listed below shall be met when soldering the µPD784031.
For details of the recommended soldering conditions, refer to our document Semiconductor Device Mounting
Technology Manual (C10535E).
Please consult with our sales offices in case any other soldering process is used, or in case soldering is done under
different conditions.
Table 16-1. Soldering Conditions for Surface-Mount Devices (1/2)
(1) µPD784031GC-3B9: 80-pin plastic QFP (14 × 14 × 2.7 mm)
Soldering process
Soldering conditions
Symbol
Infrared ray reflow
Peak package's surface temperature: 235 °C
Reflow time: 30 seconds or less (210 °C or more)
Maximum allowable number of reflow processes: 3
IR35-00-3
VPS
Peak package's surface temperature: 215 °C
Reflow time: 40 seconds or less (200 °C or more)
Maximum allowable number of reflow processes: 3
VP15-00-3
Wave soldering
Solder temperature: 260 °C or less
WS60-00-1
Flow time: 10 seconds or less
Number of flow processes: 1
Preheating temperature : 120 °C max. (measured on the package surface)
Partial heating method
Terminal temperature: 300 °C or less
Heat time: 3 seconds or less (for one side of a device)
-
Caution Do not apply two or more different soldering methods to one chip (except for partial heating
method for terminal sections).
(2) µPD784031GC-8BT: 80-pin plastic QFP (14 × 14 × 1.4 mm)
Soldering process
Soldering conditions
Symbol
Infrared ray reflow
Peak package's surface temperature: 235 °C
Reflow time: 30 seconds or less (210 °C or more)
Maximum allowable number of reflow processes: 2
IR35-00-2
VPS
Peak package's surface temperature: 215 °C
Reflow time: 40 seconds or less (200 °C or more)
Maximum allowable number of reflow processes: 2
VP15-00-2
Wave soldering
Solder temperature: 260 °C or less
WS60-00-1
Flow time: 10 seconds or less
Number of flow processes: 1
Preheating temperature : 120 °C max. (measured on the package surface)
Partial heating method
Terminal temperature: 300 °C or less
Heat time: 3 seconds or less (for one side of a device)
-
Caution Do not apply two or more different soldering methods to one chip (except for partial heating
method for terminal sections).
80
µPD784031
Table 16-1. Soldering Conditions for Surface-Mount Devices (2/2)
(3) µPD784031GK-BE9: 80-pin plastic TQFP (fine pitch) (12 × 12 mm)
Soldering process
Soldering conditions
Symbol
Infrared ray reflow
Peak package’s surface temperature: 235 °C
Reflow time: 30 seconds or less (210 °C or more)
Maximum allowable number of reflow processes: 2
Exposure limit: 7 daysNote (10 hours of pre-baking is required at 125 °C
afterward)
<Caution>
Non-heat-resistant trays, such as magazine and taping trays, cannot be
baked before unpacking.
IR35-107-2
VPS
Peak package’s surface temperature: 215 °C
Reflow time: 40 seconds or less (200 °C or more)
Maximum allowable number of reflow processes: 2
Exposure limit: 7 daysNote (10 hours of pre-baking is required at 125 °C
afterward)
<Caution>
Non-heat-resistant trays, such as magazine and taping trays, cannot be
baked before unpacking.
VP15-107-2
Partial heating method
Terminal temperature: 300 °C or less
Heat time: 3 seconds or less (for one side of a device)
-
Note Maximum number of days during which the product can be stored at a temperature of 25 °C and a relative
humidity of 65 % or less after dry-pack package is opened.
Caution Do not apply two or more different soldering methods to one chip (except for partial heating
method for terminal sections).
81
µPD784031
APPENDIX A DEVELOPMENT TOOLS
The following development tools are available for system development using the µPD784031.
Language Processing Software
RA78K4Note 1
Assembler package for all 78K/IV series models
CC78K4Note 1
C compiler package for all 78K/IV series models
CC78K4-LNote 1
C compiler library source file for all 78K/IV series models
PROM Write Tools
PG-1500
PROM programmer
PA-78P4026GC
PA-78P4038GK
PA-78P4026KK
Programmer adaptor, connects to PG-1500
PG-1500 controllerNote 2
Control program for PG-1500
Debugging Tools
IE-784000-R
In-circuit emulator for all 78K/IV sub-series models
IE-784000-R-BK
Break board for all 78K/IV series models
IE-784038-R-EM1
IE-784000-R-EM
Emulation board for evaluating µPD784038 sub-series models
IE-70000-98-IF-B
Interface adapter when the PC-9800 series computer (other than a notebook)
is used as the host machine
IE-70000-98N-IF
Interface adapter and cable when a PC-9800 series notebook is used as the
host machine
IE-70000-PC-IF-B
Interface adapter when the IBM PC/ATTM is used as the host machine
IE-78000-R-SV3
Interface adapter and cable when the EWS is used as the host machine
EP-78230GC-R
Emulation probe for 80-pin plastic QFP (GC-3B9 and GC-8BT types) for
all µPD784038 sub-series
EP-78054GK-R
Emulation probe for 80-pin plastic TQFP (fine pitch) (GK-BE9 type) for all
µPD784038 sub-series
EV-9200GC-80
Socket for mounting on target system board made for 80-pin plastic QFP
(GC-3B9 and GC-8BT types)
TGK-080SDW
Adapter for mounting on target system board made for 80-pin plastic TQFP
(fine pitch) (GK-BE9 type)
EV-9900
Tool used to remove the µPD78P4038KK-T from the EV-9200GC-80
SM78K4Note 3
System simulator for all 78K/IV series models
ID78K4Note 3
Integrated debugger for IE-784000-R
DF784038Note 4
Device file for all µPD784038 sub-series models
Real-Time OS
RX78K/IVNote 4
Real-time OS for 78K/IV series models
MX78K4Note 2
OS for all 78K/IV series models
82
µPD784031
Notes 1. • Based on PC-9800 series (MS-DOSTM)
• Based on IBM PC/AT and compatibles (PC DOSTM, WindowsTM, MS-DOS, and IBM DOSTM)
• Based on HP9000 series 700TM (HP-UXTM)
• Based on SPARCstationTM (SunOSTM)
• Based on NEWSTM (NEWS-OSTM)
2. • Based on PC-9800 series (MS-DOS)
• Based on IBM PC/AT and compatibles (PC DOS, Windows, MS-DOS, and IBM DOS)
3. • Based on PC-9800 series (MS-DOS + Windows)
• Based on IBM PC/AT and compatibles (PC DOS, Windows, MS-DOS, and IBM DOS)
• Based on HP9000 series 700 (HP-UX)
• Based on SPARCstation (SunOS)
4. • Based on PC-9800 series (MS-DOS)
• Based on IBM PC/AT and compatibles (PC DOS, Windows, MS-DOS, and IBM DOS)
• Based on HP9000 series 700 (HP-UX)
• Based on SPARCstation (SunOS)
Remarks 1. The RA78K4, CC78K4, SM78K4, and ID78K4 are used with the DF784038.
2. The TGK-080SDW is a product of TOKYO ELETECH CORPORATION (Tokyo, 03-5295-1661).
Consult the NEC sales representative for purchasing.
83
µPD784031
APPENDIX B RELATED DOCUMENTS
Documents Related to Devices
Document No.
Document name
Japanese
English
µPD784031 Data Sheet
U11507J
This manual
µPD784035, 784036, 784037, 784038 Data Sheet
U10847J
U10847E
µPD78P4038 Data Sheet
U10848J
U10848E
µPD784038, 784038Y Sub-Series User's Manual, Hardware
U11316J
U11316E
µPD784038 Sub-Series Special Function Registers
U11090J
-
78K/IV Series User's Manual, Instruction
U10905J
U10905E
78K/IV Series Instruction Summary Sheet
U10594J
-
78K/IV Series Instruction Set
U10595J
-
78K/IV Series Application Note, Software Basic
U10095J
-
Documents Related to Development Tools (User’s Manual)
Document No.
Document name
Japanese
English
Operation
U11334J
U11334E
Language
U11162J
-
EEU-817
EEU-1402
Operation
EEU-960
-
Language
EEU-961
-
CC78K Series Library Source File
EEU-777
-
PG-1500 PROM Programmer
EEU-651
EEU-1335
PG-1500 Controller PC-9800 Series (MS-DOS) Base
EEU-704
EEU-1291
PG-1500 Controller IBM PC Series (PC DOS) Base
EEU-5008
U10540E
IE-784000-R
EEU-5004
EEU-1534
IE-784038-R-EM1
U11383J
U11383E
EP-78230
EEU-985
EEU-1515
EP-78054GK-R
EEU-932
EEU-1468
RA78K4 Assembler Package
RA78K Series Structured Assembler Preprocessor
CC78K4 Series
SM78K4 System Simulator Windows Base
Reference
U10093J
U10093E
SM78K Series System Simulator
External Parts User Open
Interface Specifications
U10092J
U10092E
ID78K4 Integrated Debugger Windows Base
Reference
U10440J
U10440E
Caution The above documents may be revised without notice. Use the latest versions when you design
application systems.
84
µPD784031
Documents Related to Software to Be Incorporated into the Product (User’s Manual)
Document No.
Document name
78K/IV Series Real-Time OS
OS for 78K/IV Series MX78K4
Japanese
English
Basic
U10603J
-
Installation
U10604J
-
Debugger
U10364J
-
Basic
U11779J
-
Other Documents
Document No.
Document name
Japanese
IC PACKAGE MANUAL
English
C10943X
SMD Surface Mount Technology Manual
C10535J
C10535E
Quality Grades on NEC Semiconductor Device
C11531J
C11531E
NEC Semiconductor Device Reliability/Quality Control System
C10983J
C10983E
Electrostatic Discharge (ESD) Test
MEM-539
-
Guide to Quality Assurance for Semiconductor Device
C11893J
MEI-1202
Guide for Products Related to Micro-Computer: Other Companies
C11416J
-
Caution The above documents may be revised without notice. Use the latest versions when you design
application systems.
85
µPD784031
[MEMO]
86
µPD784031
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 device
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 VDD 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.
87
µPD784031
IEBus is a trademark of NEC Corporation.
MS-DOS and Windows are trademarks of Microsoft Corporation.
IBM DOS, PC/AT, and PC DOS are trademarks of IBM Corporation.
HP9000 series 700 and HP-UX are trademarks of Hewlett-Packard Company.
SPARCstation is a trademark of SPARC International, Inc.
SunOS is a trademark of Sun Microsystems, Inc.
NEWS and NEWS-OS are trademarks of SONY Corporation.
88
µPD784031
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.
NEC Electronics Inc. (U.S.)
NEC Electronics (Germany) GmbH
NEC Electronics Hong Kong Ltd.
Santa Clara, California
Tel: 800-366-9782
Fax: 800-729-9288
Benelux Office
Eindhoven, The Netherlands
Tel: 040-2445845
Fax: 040-2444580
Hong Kong
Tel: 2886-9318
Fax: 2886-9022/9044
NEC Electronics (Germany) GmbH
Duesseldorf, Germany
Tel: 0211-65 03 02
Fax: 0211-65 03 490
NEC Electronics Hong Kong Ltd.
Velizy-Villacoublay, France
Tel: 01-30-67 58 00
Fax: 01-30-67 58 99
Seoul Branch
Seoul, Korea
Tel: 02-528-0303
Fax: 02-528-4411
NEC Electronics (France) S.A.
NEC Electronics Singapore Pte. Ltd.
Spain Office
Madrid, Spain
Tel: 01-504-2787
Fax: 01-504-2860
United Square, Singapore 1130
Tel: 253-8311
Fax: 250-3583
NEC Electronics (France) S.A.
NEC Electronics (UK) Ltd.
Milton Keynes, UK
Tel: 01908-691-133
Fax: 01908-670-290
NEC Electronics Italiana s.r.1.
Milano, Italy
Tel: 02-66 75 41
Fax: 02-66 75 42 99
NEC Electronics Taiwan Ltd.
NEC Electronics (Germany) GmbH
Scandinavia Office
Taeby, Sweden
Tel: 08-63 80 820
Fax: 08-63 80 388
Taipei, Taiwan
Tel: 02-719-2377
Fax: 02-719-5951
NEC do Brasil S.A.
Sao Paulo-SP, Brasil
Tel: 011-889-1680
Fax: 011-889-1689
J96. 8
89
µPD784031
Some related documents may be preliminary versions. Note that, however, what documents are preliminary is not indicated
in this document.
No part of this document may be copied or reproduced in any form or by any means without the prior written
consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in
this document.
NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual property
rights of third parties by or arising from use of a device described herein or any other liability arising from use
of such device. No license, either express, implied or otherwise, is granted under any patents, copyrights or other
intellectual property rights of NEC Corporation or others.
While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor devices,
the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to persons or
property arising from a defect in an NEC semiconductor device, customers must incorporate sufficient safety
measures in its design, such as redundancy, fire-containment, and anti-failure features.
NEC devices are classified into the following three quality grades:
"Standard", "Special", and "Specific". The Specific quality grade applies only to devices developed based on a
customer designated "quality assurance program" for a specific application. The recommended applications of
a device depend on its quality grade, as indicated below. Customers must check the quality grade of each device
before using it in a particular application.
Standard: Computers, office equipment, communications equipment, test and measurement equipment,
audio and visual equipment, home electronic appliances, machine tools, personal electronic
equipment and industrial robots
Special: Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support)
Specific: Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems or medical equipment for life support, etc.
The quality grade of NEC devices is "Standard" unless otherwise specified in NEC's Data Sheets or Data Books.
If customers intend to use NEC devices for applications other than those specified for Standard quality grade,
they should contact an NEC sales representative in advance.
Anti-radioactive design is not implemented in this product.
M4 96.5