Programmable I/O Port
deeopmen
Preliminary Specifications REV.E
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M30220 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
147
Figure 1.19.6. Direction register
Port P3 direction register
Symbol
Address
When reset
PD3
03E7
16
XX000000
2
Bit name
Function
Bit symbol
PD3_0
PD3_1
PD3_2
PD3_3
W
R
b7
b6
b5
b4
b3
b2
b1
b0
Port P3
0
direction register
Port P3
1
direction register
Port P3
2
direction register
Port P3
3
direction register
PD3_4
PD3_5
Port P3
4
direction register
Port P3
5
direction register
0: Input mode
(Functions as an input port)
1: Output mode
(Functions as an output port)
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns out to be
indeterminate.
Port Pi direction register (Note)
Bit name
Function
Bit symbol
PDi_0
PDi_1
PDi_2
W
R
b7
b6
b5
b4
b3
b2
b1
b0
Port Pi
0
direction register
Port Pi
1
direction register
Port Pi
2
direction register
PDi_3
PDi_4
PDi_5
PDi_6
PDi_7
Note : Do not access the Port P12 direction register in words.
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
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
(i = 0 to 12 except 3 and 7)
Symbol
Address
When reset
00
16
PDi
( i = 0 to 12 except 3 and 7)
03E2
16
, 03E3
16
, 03E6
16
, 03EA
16
,
03EB
16
, 03EE
16
, 03F2
16
, 03F3
16
,
03F6
16
, 03F7
16
, 03FA
16
Port P7 direction register
Symbol
Address
When reset
PD7
03EF
16
X0000000
2
Bit name
Function
Bit symbol
PD7_0
PD7_1
PD7_2
PD7_3
W
R
b7
b6
b5
b4
b3
b2
b1
b0
Port P7
0
direction register
Port P7
1
direction register
Port P7
2
direction register
Port P7
3
direction register
PD7_4
PD7_5
PD7_6
Port P7
4
direction register
Port P7
5
direction register
Port P7
6
direction register
0: Input mode
(Functions as an input port)
1: Output mode
(Functions as an output port)
Nothing is assigned.
In an attempt to write to this bit, write “0”. The value, if read, turns out to be
indeterminate.
Port P13 direction register (Note)
Symbol
Address
When reset
PD13
03FB
16
XXXXX000
2
Bit name
Function
Bit symbol
PD13_0
PD13_1
W
R
b7
b6
b5
b4
b3
b2
b1
b0
Port P13
0
direction register
Port P13
1
direction register
PD13_2
Port P13
2
direction register
0: Input mode
(Functions as an input port)
1: Output mode
(Functions as an output port)
Nothing is assigned.
In an attempt to write to these bits, write “0”. The value, if read, turns out to be
indeterminate.
Note : Do not access this register in words.