![](http://datasheet.mmic.net.cn/30000/M30260M3A-XXXGP-U5_datasheet_2358673/M30260M3A-XXXGP-U5_232.png)
16. Programmable I/O Ports
page 218
8
2
3
f
o
5
0
2
,
5
1
.
r
a
M
0
.
1
.
v
e
R
0
1
0
-
2
0
2
0
B
9
0
J
E
R
)
T
6
2
/
C
6
1
M
,
A
6
2
/
C
6
1
M
(
p
u
o
r
G
A
6
2
/
C
6
1
M
Figure 16.1.1. PD1, PD6, PD7, PD8, PD9, and PD10 Registers
Port Pi direction register (i=6 to 8, and 10) (Note)
Symbol
Address
After reset
PD6 to PD8
03EE16, 03EF16, 03F216
0016
PD10
03F616
0016
Bit name
Function
Bit symbol
RW
b7
b6
b5
b4
b3
b2
b1
b0
PDi_0
Port Pi0 direction bit
PDi_1
Port Pi1 direction bit
PDi_2
Port Pi2 direction bit
PDi_3
Port Pi3 direction bit
PDi_4
Port Pi4 direction bit
PDi_5
Port Pi5 direction bit
PDi_6
Port Pi6 direction bit
PDi_7
Port Pi7 direction bit
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
(i = 6 to 8, and 10)
Note: Ports must be enabled using the PACR
In 48 pin version set PACR2, PACR1, PACR0 to "1002"
In 42 pin version set PACR2, PACR1, PACR0 to "0012"
RW
Port P1 direction register (Note 1)
Symbol
Address
After reset
PD1
03E316
0016
Bit
name
Function
Bit symbol
b7
b6
b5
b4
b3
b2
b1
b0
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
RW
PD1_5
Port P15 direction bit
RW
PD1_6
Port P16 direction bit
RW
PD1_7
Port P17 direction bit
RW
Nothing is assigned. In an attempt to write to this bit, write “0”.
The value, if read, turns out to be indeterminate.
(b4-b0)
Note 1: Ports must be enabled using the PACR
In 48 pin version set PACR2, PACR1, PACR0 to "1002"
In 42 pin version set PACR2, PACR1, PACR0 to "0012"
Port P9 direction register (Note 1,2)
Symbol
Address
After reset
PD9
03F316
XXXX00002
Bit name
Function
Bit symbol
b7
b6
b5
b4
b3
b2
b1
b0
PD9_0
Port P90 direction bit
PD9_1
Port P91 direction bit
PD9_2
Port P92 direction bit
PD9_3
Port P93 direction bit
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
RW
Nothing is assigned. In an attempt to write to this bit, write “0”.
The value, if read, turns out to be indeterminate.
(B7-b4)
Note 1: Make sure the PD9 register is written to by the next instruction after setting the PRCR
register's PRC2 bit to "1"(write enabled).
Note 2: Ports must be enabled using the PACR
In 48 pin version set PACR2, PACR1, PACR0 to "1002"
In 42 pin version set PACR2, PACR1, PACR0 to "0012"