The µPD780031AY, 780032AY, 780033AY, and 780034AY are members of the µPD780034AY Subseries of the
78K/0 Series. This is a µPD780034A Subseries product with an added multimaster-supporting I2C bus interface, and
is suitable for AV equipment applications.
A flash memory version, the
ROM version, and various development tools, are available.
Detailed function descriptions are provided in the following user’s manuals. Be sure to read them before
designing.
P71/TI01
P70/TI00/TO0
P03/INTP3/ADTRG
P02/INTP2
P01/INTP1
P00/INTP0
V
SS1
X1
X2
IC
XT1
XT2
RESET
DD
AV
AV
REF
P10/ANI0
SS
P36
P20/SI30
P21/SO30
P24/TxD0
P23/RxD0
P22/SCK30
DD1
V
AV
P25/ASCK0
P17/ANI7
P16/ANI6
Cautions 1. Connect the IC (Internally Connected) pin directly to V
2. Connect the AVSS pin to VSS0.
Remark When the
µ
PD780031AY, 780032AY, 780033AY, and 780034AY are used in applications where the
noise generated inside the microcontroller needs to be reduced, the implementation of noise reduction
measures, such as supplying voltage to V
DD0 and VDD1 individually and connecting VSS0 and VSS1 to
different ground lines, is recommended.
8
Data Sheet U14045EJ1V0DS00
P15/ANI5
P14/ANI4
P13/ANI3
P12/ANI2
P11/ANI1
SS0 or VSS1.
µ
PD780031AY, 780032AY, 780033AY, 780034AY
A8 to A15:Address Bus
AD0 to AD7:Address/Data Bus
ADTRG:AD Trigger Input
ANI0 to ANI7:Analog Input
ASCK0:Asynchronous Serial Clock
ASTB:Address Strobe
DD:Analog Power Supply
AV
AVREF:Analog Reference Voltage
SS:Analog Ground
AV
BUZ:Buzzer Clock
IC:Internally Connected
INTP0 to INTP3:External Interrupt Input
P00 to P03:Port 0
P10 to P17:Port 1
P20 to P25:Port 2
P30 to P36:Port 3
P40 to P47:Port 4
P50 to P57:Port 5
P64 to P67:Port 6
P70 to P75:Port 7
PCL:Programmable Clock
RD:Read Strobe
RESET:Reset
RxD0:Receive Data
SCK30, SCL0:Serial Clock
SDA0:Serial Data
SI30:Serial Input
SO30:Serial Output
TI00, TI01, TI50, TI51: Timer Input
TO0, TO50, TO51:Timer Output
TxD0:Transmit Data
DD0, VDD1:Power Supply
V
VSS0, VSS1:Ground
WAIT:Wait
WR:Write Strobe
X1, X2:Crystal (Main System Clock)
XT1, XT2:Crystal (Subsystem Clock)
Data Sheet U14045EJ1V0DS00
9
2. BLOCK DIAGRAM
µ
PD780031AY, 780032AY, 780033AY, 780034AY
TI00/TO0/P70
TI01/P71
TI50/TO50/P72
TI51/TO51/P73
SI30/P20
SO30/P21
SCK30/P22
RxD0/P23
TxD0/P24
ASCK0/P25
SDA0/P32
SCL0/P33
ANI0/P10 to
ANI7/P17
AV
AV
AV
REF
INTP0/P00 to
INTP3/P03
BUZ/P75
PCL/P74
16-BIT TIMER/
EVENT COUNTER
8-BIT TIMER/
EVENT COUNTER 50
8-BIT TIMER/
EVENT COUNTER 51
WATCHDOG TIMER
WATCH TIMER
SERIAL
INTERFACE 30
UART0
I2C BUS
DD
SS
A/D CONVERTER
INTERRUPT
CONTROL
BUZZER OUTPUT
CLOCK OUTPUT
CONTROL
78K/0
CPU CORE
RAM
V
DD0VDD1VSS0VSS1
ROM
IC
PORT 0
PORT 1
PORT 2
PORT 3
PORT 4
PORT 5
PORT 6
PORT 7P70 to P75
EXTERNAL
ACCESS
SYSTEM
CONTROL
P00 to P03
P10 to P17
P20 to P25
P30 to P36
P40 to P47
P50 to P57
P64 to P67
AD0/P40 to
AD7/P47
A8/P50 to
A15/P57
RD/P64
WR/P65
WAIT/P66
ASTB/P67
RESET
X1
X2
XT1
XT2
Remark The internal ROM and RAM capacities differ depending on the product.
10
Data Sheet U14045EJ1V0DS00
µ
PD780031AY, 780032AY, 780033AY, 780034AY
3. PIN FUNCTIONS
3.1 Port Pins (1/2)
Pin NameI/OFunctionAfterAlternate
ResetFunction
P00I/OPort 0InputINTP0
P01
P02
P03
P10 to P17InputPort 1InputANI0 to ANI7
P20I/OPort 2InputSI30
P21
P22
P23
P24TxD0
P25ASCK0
P30I/OPort 3N-ch open-drain input/output portInput—
P31
P32
P33
P34An on-chip pull-up resistor can be—
P35
P36
P40 to P47I/OPort 4InputAD0 to AD7
P50 to P57I/OPort 5InputA8 to A15
P64I/OPort 6InputRD
P65
P66
P67
4-bit input/output port
Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
8-bit input-only port
6-bit input/output port
Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
7-bit input/output portThe mask option can be used to specify the
Input/output can be
specified in 1-bit units. LEDs can be driven directly.
8-bit input/output port
Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
The interrupt request flag (KRIF) is set to 1 by falling edge detection.
8-bit input/output port
LEDs can be driven directly.
Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
4-bit input/output port
Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
connection of an on-chip pull-up resistor to P30, P31.
6-bit input/output port
Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
TI01
TI50/TO50
TI51/TO51
3.2 Non-Port Pins (1/2)
Pin NameI/OFunctionAfterAlternate
ResetFunction
INTP0InputExternal interrupt request input for which the valid edge (rising edge,InputP00
INTP1
INTP2P02
INTP3P03/ADTRG
SI30InputSerial interface serial data inputInputP20
SO30Output Serial interface serial data outputInputP21
SDA0I/OSerial interface serial data input/outputInputP32
SCK30I/OSerial interface serial clock input/outputInputP22
SCL0P33
RxD0InputSerial data input for asynchronous serial interfaceInputP23
TxD0Output Serial data output for asynchronous serial interfaceInputP24
ASCK0InputSerial clock input for asynchronous serial interfaceInputP25
TI00InputExternal count clock input to 16-bit timer (TM0)InputP70/TO0
TI01Capture trigger input to capture register (CR00) of 16-bit timer (TM0)P71
TI50External count clock input to 8-bit timer (TM50)P72/TO50
TI51External count clock input to 8-bit timer (TM51)P73/TO51
TO0Output 16-bit timer (TM0) outputInputP70/TI00
TO508-bit timer (TM50) output (also used for 8-bit PWM output)InputP72/TI50
TO518-bit timer (TM51) output (also used for 8-bit PWM output)P73/TI51
PCLOutput Clock output (for trimming of main system clock and subsystem clock)InputP74
BUZOutput Buzzer outputInputP75
AD0 to AD7I/OLower address/data bus for expanding memory externallyInputP40 to P47
A8 to A15Output Higher address bus for expanding memory externallyInputP50 to P57
RDOutput Strobe signal output for reading from external memoryInputP64
WRStrobe signal output for writing to external memoryP65
WAITInputWait insertion at external memory accessInputP66
ASTBOutput Strobe output that externally latches address information output toInputP67
falling edge, or both rising and falling edges) can be specified
Capture trigger input to capture register (CR01) of 16-bit timer (TM0)
ports 4 and 5 to access external memory
P01
12
Data Sheet U14045EJ1V0DS00
µ
PD780031AY, 780032AY, 780033AY, 780034AY
3.2 Non-Port Pins (2/2)
Pin NameI/OFunctionAfterAlternate
ResetFunction
ANI0 to ANI7 InputA/D converter analog inputInputP10 to P17
ADTRGInputA/D converter trigger signal inputInputP03/INTP3
AVREFInputA/D converter reference voltage input——
AVDD—A/D converter analog power supply. Set potential to that of VDD0 or VDD1.——
AVSS—A/D converter ground potential. Set potential to that of VSS0 or VSS1.——
RESETInputSystem reset input——
X1InputConnecting crystal resonator for main system clock oscillation——
X2———
XT1InputConnecting crystal resonator for subsystem clock oscillation——
XT2———
VDD0—Positive power supply for ports——
VSS0—Ground potential of ports——
VDD1—Positive power supply (except ports)——
VSS1—Ground potential (except ports)——
IC—Internally connected. Connect directly to VSS0 or VSS1.——
Data Sheet U14045EJ1V0DS00
13
µ
PD780031AY, 780032AY, 780033AY, 780034AY
3.3 Pin I/O Circuits and Recommended Connection of Unused Pins
The input/output circuit type of each pin and recommended connection of unused pins are shown in Table 3-1.
For the input/output circuit configuration of each type, see Figure 3-1.
Table 3-1. Types of Pin Input/Output Circuits
Pin NameInput/OutputI/ORecommended Connection of Unused Pins
Circuit Type
P00/INTP0 to P02/INTP28-CInputIndependently connect to VSS0 via a resistor.
P03/INTP3/ADTRG
P10/ANI0 to P17/ANI725InputIndependently connect to VDD0 or VSS0 via a resistor.
P20/SI308-CI/O
P21/SO305-H
P22/SCK308-C
P23/RxD0
P24/TxD05-H
P25/ASCK08-C
P30, P3113-QI/OIndependently connect to VDD0 via a resistor.
P32/SDA013-R
P33/SCL0
P348-CIndependently connect to VDD0 or VSS0 via a resistor.
P355-H
P368-C
P40/AD0 to P47/AD75-HI/OIndependently connect to VDD0 via a resistor.
P50/A8 to P57/A15I/OIndependently connect to VDD0 or VSS0 via a resistor.
P64/RDI/O
P65/WR
P66/WAIT
P67/ASTB
P70/TI00/TO08-C
P71/TI01
P72/TI50/TO50
P73/TI51/TO51
P74/PCL5-H
P75/BUZ
RESET2Input—
XT116Connect to VDD0.
XT2—Leave open.
AVDD—Connect to VDD0.
AVREFConnect to VSS0.
AVSS
ICConnect directly to VSS0 or VSS1.
14
Data Sheet U14045EJ1V0DS00
µ
PD780031AY, 780032AY, 780033AY, 780034AY
Figure 3-1. Pin Input/Output Circuits
TYPE 2
IN
Schmitt-triggered input with hysteresis characteristics
TYPE 5-H
Pullup
enable
Data
Output
disable
V
DD0
P-ch
N-ch
V
SS0
V
DD0
P-ch
IN/OUT
TYPE 13-R
Data
Output disable
TYPE 16
Feedback
cut-off
P-ch
V
IN/OUT
N-ch
SS0
Input
enable
TYPE 8-C
Pullup
enable
Data
Output
disable
TYPE 13-Q
Data
Output disable
V
DD0
P-ch
N-ch
V
Mask
option
SS0
N-ch
V
SS0
XT1XT2
TYPE 25
V
DD0
P-ch
P-ch
IN/OUT
Comparator
+
–
N-ch
V
SS0
REF
(threshold voltage)
V
IN
Input
enable
V
DD0
IN/OUT
Input
enable
Data Sheet U14045EJ1V0DS00
15
µ
PD780031AY, 780032AY, 780033AY, 780034AY
4. MEMORY SPACE
Figure 4-1 shows the memory map of the µPD780031AY, 780032AY, 780033AY, and 780034AY.
Figure 4-1. Memory Map
FFFFH
Special function registers
(SFRs) 256 × 8 bits
FF00H
FEFFH
FEE0H
FEDFH
General-purpose
registers
32 × 8 bits
Data memory
space
Program memory
space
mmmmH
mmmmH – 1
F800H
F7FFH
nnnnH + 1
nnnnH
0000H
Internal high-speed
External memory
Internal ROM
Note
RAM
Reserved
Note
nnnnH
Program area
1000H
0FFFH
CALLF entry area
0800H
07FFH
Program area
0080H
007FH
CALLT table area
0040H
003FH
Vector table area
0000H
NoteThe internal ROM and internal high-speed RAM capacities differ depending on the product (see the
following table).
16
Part NumberLast Address of Internal ROM
nnnnHmmmmH
µ
PD780031AY1FFFHFD00H
µ
PD780032AY3FFFH
µ
PD780033AY5FFFHFB00H
µ
PD780034AY7FFFH
Data Sheet U14045EJ1V0DS00
Start Address of Internal High-Speed RAM
µ
PD780031AY, 780032AY, 780033AY, 780034AY
5. PERIPHERAL HARDWARE FUNCTION FEATURES
5.1 Ports
The following 3 types of I/O ports are available.
• CMOS input (Port 1):8
• CMOS input/output (Ports 0, 2 to 7, P34 to P36):39
• N-ch open-drain input/output (P30 to P33):4
Total:51
Table 5-1. Port Functions
NamePin NameFunction
Port 0P00 to P03I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 1P10 to P17Dedicated input port pins.
Port 2P20 to P25I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 3P30 to P33N-ch open-drain I/O port pins. Input/output can be specified in 1-bit units.
The mask option can be used to specify the connection of an on-chip pull-up resistor to P30, P31.
LEDs can be driven directly.
P34 to P36I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 4P40 to P47I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
The interrupt request flag (KRIF) is set to 1 by falling edge detection.
Port 5P50 to P57I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
LEDs can be driven directly.
Port 6P64 to P67I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 7P70 to P75I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Data Sheet U14045EJ1V0DS00
17
µ
PD780031AY, 780032AY, 780033AY, 780034AY
5.2 Clock Generator
A system clock generator is incorporated.
The minimum instruction execution time can be changed.
µ
• 0.24
s/0.48 µs/0.95 µs/1.91 µs/3.81 µs (@ 8.38-MHz operation with main system clock)
• 122 µs (@ 32.768-kHz operation with subsystem clock)