
Under
Rev. G
I/O Ports
MITSUBISHI MICROCOMPUTERS
M30222 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
1-176
Fig. 1.145. Direction register
Fig. 1.146. Port register
Bit symbol
PDi_0
PDi_1
PDi_2
PDi_3
PDi_4
PDi_5
PDi_6
PDi_7
Bit name
Function
R W
Port Pi
0
direction register
Port Pi
1
direction register
Port Pi
2
direction register
Port Pi
3
direction register
Port Pi
4
direction register
Port Pi
5
direction register
Port Pi
6
direction register
Port Pi
7
direction register
Port Pi direction register (Note)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
PDi (i = 3 to 10, except 5 and 8)
Address
03E7
16
, 03EA
16
, 03EE
16
,
03EF
16
, 03F3
16
, 03F6
16
When reset
00
16
Note: Set bit 2 of protect register (address 000A
the port P9 direction register
16
to
“
1
”
before rewriting to
.
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
(i = 3, 4, 6, 7, 9, 10)
b7 b6 b5 b4 b3 b2 b1 b0
Port P8 direction register
Bit symbol
PD8_0
PD8_1
PD8_2
Nothing is assigned.
“
0" when writing to this bit. When read, the value is indeterminate.
Bit name
Function
R W
Port P8
0
direction register
Port P8
1
direction register
Port P8
2
direction register
PD8_4
Port P8
4
direction register
PD8_5
Port P8
6
direction register
PD8_6
Port P8
7
direction register
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
Symbol
PD8
Address
03F2
16
When reset
00X00000
2
Nothing is assigned.
“
0" when writing to this bit. When read, the value is indeterminate.
_ _
Bit symbol
Pi_0
Pi_1
Pi_2
Pi_3
Pi_4
Pi_5
Pi_6
Pi_7
Bit name
Function
R W
Port Pi
0
register
Port Pi
1
register
Port Pi
2
register
Port Pi
3
register
Port Pi
4
register
Port Pi
5
register
Port Pi
6
register
Port Pi
7
register
Port Pi register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
Pi (i = 3 to 10, except 5 and 8)
Address
03E5
16
, 03E8
16
, 03EC
16
,
03ED
16
, 03F1
16
, 03F4
16
When reset
Indeterminate
Data is input and output to and from
each pin by reading and writing to
and from each corresponding bit
0 :
“
L
”
level data
1 :
“
H
”
level data (Note)
(i = 3, 4, 6, 7, 9, 10)
Bit symbol
P8_0
P8_1
P8_2
P8_3
P8_4
P8_5
P8_6
Bit name
Function
R W
Port P8
0
register
Port P8
1
register
Port P8
2
register
Port P8
3
register
Port P8
4
register
Port P8
5
register
Port P8
6
register
Nothing is assigned.
Write
“
0
”
when writing to this bit. When read, the value is indeterminate.
Port P8 register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
P8
Address
03F0
16
When reset
X0000000
16
Data is input and output to and from
each pin by reading and writing to
and from each corresponding bit
except for P8
3
)
0 :
“
L
”
level data
1 :
“
H
”
level data
Note: Because P7 and P7
1
are n-channel open drain ports, the data are high impedance.