MB90820 Series
32
2.
I/O Ports
(1) Outline of I/O ports
Each I/O port outputs data from CPU to I/O pins or inputs signals from I/O pins to CPU through port data register
(PDR). Direction of the data flow (input or output) for each I/O pin can be designated in bit unit by port data
direction register (DDR). The function of each port and the resource I/O multiplexed with it are described below:
Port 0 : General-purpose I/O port/resource (PWC)
Port 1 : General-purpose I/O port/resources (DTP / Multi-functional timer)
Port 2 : General-purpose I/O port/resource (16-bit reload timer)
Port 3 : General-purpose I/O port/resource (16-bit PPG timer)
Port 4 : General-purpose I/O port/resources (16-bit PPG timer / 16-bit reload timer / UART / PWC)
Port 5 : General-purpose I/O port/resources (16-bit PPG timer / DTP)
Port 6 : General-purpose I/O port/resource (8/10-bit A/D converter)
Port 7 : General-purpose I/O port/resources (8/10-bit A/D converter / 8-bit D/A converter / UART/
16-bit free-running timer / 16-bit input capture)
Port 8 : General-purpose I/O port/resources (16-bit input capture / Multi-functional timer)
(2) Register configuration
R/W: Read/write enabled
X : Undefined
Register
Read/Write
Address
Initial value
Port 0 data register (PDR0)
R/W
000000
H
XXXXXXXX
B
Port 1 data register (PDR1)
R/W
000001
H
XXXXXXXX
B
Port 2 data register (PDR2)
R/W
000002
H
XXXXXXXX
B
Port 3 data register (PDR3)
R/W
000003
H
XXXXXXXX
B
Port 4 data register (PDR4)
R/W
000004
H
XXXXXXXX
B
Port 5 data register (PDR5)
R/W
000005
H
XXXXXXXX
B
Port 6 data register (PDR6)
R/W
000006
H
XXXXXXXX
B
Port 7 data register (PDR7)
R/W
000007
H
XXXXXXXX
B
Port 8 data register (PDR8)
R/W
000008
H
XXXXXXXX
B
Port 0 data direction register (DDR0)
R/W
000010
H
00000000
B
Port 1 data direction register (DDR1)
R/W
000011
H
00000000
B
Port 2 data direction register (DDR2)
R/W
000012
H
00000000
B
Port 3 data direction register (DDR3)
R/W
000013
H
00000000
B
Port 4 data direction register (DDR4)
R/W
000014
H
00000000
B
Port 5 data direction register (DDR5)
R/W
000015
H
XXXXXX00
B
Port 6 data direction register (DDR6)
R/W
000016
H
00000000
B
Port 7 data direction register (DDR7)
R/W
000017
H
00000000
B
Port 8 data direction register (DDR8)
R/W
000018
H
00000000
B
A/D input enable register (ADER0)
R/W
0000C5
H
11111111
B
A/D input enable register (ADER1)
R/W
0000D0
H
11111111
B
Port 0 pull-up resistor setting register (RDR0)
R/W
00008C
H
00000000
B
Port 1 pull-up resistor setting register (RDR1)
R/W
00008D
H
00000000
B
Port 2 pull-up resistor setting register (RDR2)
R/W
00008E
H
00000000
B
Port 3 pull-up resistor setting register (RDR3)
R/W
00008F
H
00000000
B