![](http://datasheet.mmic.net.cn/330000/MB90F583B_datasheet_16438001/MB90F583B_34.png)
MB90580B Series
34
I
PERIPHERAL RESOURCES
1.
I/O Ports
(1) Outline of I/O ports
When a data register serving for control output is read, the data output from it as a control output is read regardless
of the value in the direction register. Note that, if a read modify write instruction (such as a bit set instruction)
is used to preset output data in the data register when changing its setting from input to output, the data read
is not the data register latched value but the input data from the pin.
Ports 0 to 4 and 6 to A are input/output ports which serve as inputs when the direction register value is “0” or
as outputs when the value is “1”.
On the MB90580B series, ports 0 to 3 also serve as external bus pins. When the device is used in external bus
mode, therefore, these ports are restricted on use.
Ports 2 and 3 can be used as ports even in external bus mode depending on the setting of the corresponding
function select bit.
(2) Register configuration
(Continued)
Port 0 data register
(
PDR0
)
bit
Address : 000000
H
Access
Initial value
Port 1 data register
(
PDR1
)
bit
Address
: 000001
H
Access
Initial value
Port 2 data register
(
PDR2
)
bit
Address
: 000002
H
Access
Initial value
Port 3 data register
(
PDR3
)
bit
Address
: 000003
H
Access
Initial value
Port 4 data register
(
PDR4
)
bit
Address
: 000004
H
Access
Initial value
(PDR1)
P07
P06
P05
P04
P03
P02
P01
P00
7
6
5
4
3
2
1
0
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
15
8
…………
(PDR0)
P17
P16
P15
P14
P13
P12
P11
P10
15
14
13
12
11
10
9
8
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
7
0
…………
(PDR3)
P27
P26
P25
P24
P23
P22
P21
P20
7
6
5
4
3
2
1
0
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
15
8
…………
(PDR2)
P37
P36
P35
P34
P33
P32
P31
P30
15
14
13
12
11
10
9
8
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
7
0
…………
(PDR5)
P47
P46
P45
P44
P43
P42
P41
P40
7
6
5
4
3
2
1
0
(R/W)
(X)
(RW)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
(R/W)
(X)
15
8
…………