DATA SHEET
MOS INTEGRATED CIRCUIT
µ
PD784031Y
16-/8-BIT SINGLE-CHIP MICROCONTROLLERS
The
µ
PD784031Y is based on the
µ
PD784031 with an I
2
C bus control function appended, and is ideal for
applications in audio-visual systems.
The
µ
PD784031Y is a ROM-less version of
µ
PD784035Y and 784036Y.
The functions are explained in detail in the following User’s Manual. Be sure to read this manual when
designing your system.
µ
PD784038, 784038Y Subseries User’s Manual - Hardware : U11316E
78K/IV Series User’s Manual - Instruction
: U10905E
FEATURES
78K/IV Series
Pin-compatible with
µ
PD78234 Subseries,
Timer/counter
16-bit Timer/counter x 3 units
16-bit Timer x 1 unit
Standby function
HALT/STOP/IDLE mode
Clock division function
Watchdog timer: 1 channel
A/D converter: 8-bit resolution x 8 channels
D/A converter: 8-bit resolution x 2 channels
Supply voltage: V
DD
= 2.7 to 5.5 V
µ
PD784026 Subseries, and
µ
PD784038
Subseries
Minimum instruction execution time: 125 ns
(@ 32-MHz operation)
I/O ports: 46
Serial interface: 3 channels
UART/IOE (3-wire serial I/O): 2 channels
CSI (3-wire serial I/O, 2-wire serial I/O, I
2
C bus):
1 channel
PWM output: 2 outputs
APPLICATION FIELDS
Cellular phones, cordless phones, audio-visual systems, etc.
ORDERING INFORMATION
Part Number
Package
Internal ROM (Bytes)
Internal RAM (Bytes)
µ
PD784031YGC-3B9
µ
PD784031YGC-8BT
µ
PD784031YGK-BE9
80-pin plastic QFP (14 x 14 mm, thickness 2.7 mm)
80-pin plastic QFP (14 x 14 mm, thickness 1.4 mm)
80-pin plastic TQFP (fine pitch) (12 x 12 mm)
None
None
None
2048
2048
2048
The information in this document is subject to change without notice.
Document No. U11504EJ1V0DS00 (1st edition)
Date Published July 1997 N
Printed in Japan
The mark
shows major revised points.
©
1996
µ
PD784031Y
78K/IV SERIES PRODUCT DEVELOPMENT
: Under mass production
: Under development
I
2
C bus supported
µPD784038Y
Standard models
µPD784026
Enhanced A/D,
16-bit timer,
and power
management
µPD784038
Enhanced internal memory capacity,
pin compatible with the µPD784026
Multimaster I
2
C bus supported
µPD784216Y
µPD784216
100 pins,
enhanced I/O and
internal memory capacity
µPD784054
Multimaster I
2
C bus supported
µPD784225Y
µPD784225
80 pins,
added ROM correction
Multimaster I
2
C bus supported
µPD784218Y
µPD784218
Enhanced internal memory capacity,
added ROM correction
µPD784046
ASSP models
µPD784908
Equipped with IEBus
TM
controller
µPD78F4943
For CD-ROM,
56-Kbyte flash memory
µPD784915
Equipped with analog circuit for
software servo control VCR,
enhanced timer
Multimaster I
2
C bus supported
µPD784928Y
µPD784928
Enhanced function of the µPD784915
Equipped with 10-bit A/D
2
µ
PD784031Y
FUNCTIONS
Item
Number of basic instructions
(mnemonics)
General-purpose register
Minimum instruction execution
time
Internal memory
Memory space
I/O port
Total
Input
I/O
Output
Pins with
ancillary
function
Note
Pins with pull-
up resistor
LEDs direct
drive output
Transistor
direct drive
Real-time output port
Timer/counter
ROM
RAM
113
8 bits x 16 registers x 8 banks, or 16 bits x 8 registers x 8 banks (memory mapping)
125 ns/250 ns/500 ns/1000 ns (at 32 MHz)
None
2048 bytes
1 Mbytes with program and data spaces combined
46
8
34
4
32
8
8
4 bits x 2, or 8 bits x 1
Timer/counter 0: Timer register x 1
Capture register x 1
Compare register x 2
(16 bits)
Timer/counter 1: Timer register x 1
Capture register x 1
(8/16 bits)
Capture/compare register x 1
Compare register x 1
Timer/counter 2: Timer register x 1
Capture register x 1
(8/16 bits)
Capture/compare register x 1
Compare register x 1
Timer 3:
(8/16 bits)
PWM output
Serial interface
A/D converter
D/A converter
Watchdog timer
Standby
Interrupt
Hardware source
Software source
Non-maskable
Maskable
Timer register x 1
Compare register x 1
Pulse output
• Toggle output
• PWM/PPG output
• One-shot pulse output
Pulse output
• Real-time output (4 bits x 2)
Function
Pulse output
• Toggle output
• PWM/PPG output
12-bit resolution x 2 channels
UART/IOE (3-wire serial I/O)
: 2 channels (on-chip baud rate generator)
CSI (3-wire serial I/O, 2-wire serial I/O, I
2
C bus) : 1 channel
8-bit resolution x 8 channels
8-bit resolution x 2 channels
1 channel
HALT/STOP/IDLE mode
24 (internal: 17, external: 7 (variable sampling clock input: 1))
BRK instruction, BRKCS instruction, operand error
Internal: 1, external: 1
Internal: 16, external: 6
• 4 programmable priority levels
• 3 processing styles: vectored interrupt/macro service/context switching
Supply voltage
Package
V
DD
= 2.7 to 5.5 V
80-pin plastic QFP (14 x 14 mm, thickness 2.7 mm)
80-pin plastic QFP (14 x 14 mm, thickness 1.4 mm)
80-pin plastic TQFP (fine pitch) (12 x 12 mm)
Note
The pins with ancillary function are included in the I/O pins.
3
µ
PD784031Y
CONTENTS
1. DIFFERENCES AMONG MODELS IN
µ
PD784038Y SUBSERIES .................................................. 6
2. MAJOR DIFFERENCES FROM
µ
PD784026 SUBSERIES AND
µ
PD78234 SUBSERIES .............. 7
3. PIN CONFIGURATION (Top View) ................................................................................................... 8
4. BLOCK DIAGRAM ............................................................................................................................ 10
5.
PIN FUNCTION ............................................................................................................................... 11
5.1
5.2
5.3
Port Pins ................................................................................................................................................ 11
Non-port Pins ........................................................................................................................................ 12
Types of Pin I/O Circuits and Connections for Unused Pins ............................................................ 14
6.
CPU ARCHITECTURE .................................................................................................................... 17
6.1
6.2
Memory Space ....................................................................................................................................... 17
CPU Registers ....................................................................................................................................... 19
6.2.1
6.2.2
6.2.3
General-purpose registers .......................................................................................................... 19
Control registers .......................................................................................................................... 20
Special function registers (SFRs) ............................................................................................... 21
7.
PERIPHERAL HARDWARE FUNCTIONS ..................................................................................... 26
7.1
7.2
7.3
7.4
7.5
7.6
7.7
7.8
Ports ....................................................................................................................................................... 26
Clock Generation Circuit ...................................................................................................................... 27
Real-time Output Port ........................................................................................................................... 29
Timer/Counter........................................................................................................................................ 30
PWM Output (PWM0, PWM1) ................................................................................................................ 32
A/D Converter ........................................................................................................................................ 33
D/A Converter ........................................................................................................................................ 34
Serial Interface ...................................................................................................................................... 35
7.8.1
7.8.2
7.9
Asynchronous serial interface/3-wire serial I/O (UART/IOE) ...................................................... 36
Clocked serial interface (CSI) ..................................................................................................... 38
Edge Detection Function ...................................................................................................................... 39
7.10 Watchdog Timer .................................................................................................................................... 40
8.
INTERRUPT FUNCTION ................................................................................................................. 41
8.1
8.2
8.3
8.4
8.5
Interrupt Sources .................................................................................................................................. 41
Vectored Interrupt ................................................................................................................................. 43
Context Switching ................................................................................................................................. 44
Macro Service ........................................................................................................................................ 44
Application Example of Macro Service ............................................................................................... 45
4
µ
PD784031Y
9.
LOCAL BUS INTERFACE .............................................................................................................. 47
9.1
9.2
9.3
9.4
9.5
Memory Expansion ............................................................................................................................... 47
Memory Space ....................................................................................................................................... 48
Programmable Wait .............................................................................................................................. 49
Pseudo Static RAM Refresh Function ................................................................................................. 49
Bus Hold Function ................................................................................................................................ 49
10. STANDBY FUNCTION .................................................................................................................... 50
11. RESET FUNCTION ......................................................................................................................... 51
12. INSTRUCTION SET ........................................................................................................................ 52
13. ELECTRICAL SPECIFICATIONS ................................................................................................... 57
14. PACKAGE DRAWINGS .................................................................................................................. 77
15. RECOMMENDED SOLDERING CONDITIONS .............................................................................. 80
APPENDIX A. DEVELOPMENT TOOLS ............................................................................................... 82
APPENDIX B. RELATED DOCUMENTS ............................................................................................... 84
5