![](http://datasheet.mmic.net.cn/30000/M30855FHTGP_datasheet_2359399/M30855FHTGP_398.png)
Page 375
4
9
4
f
o
5
0
2
,
1
0
.
l
u
J
3
0
.
1
.
v
e
R
3
0
1
0
-
7
3
0
B
9
0
J
E
R
24. Programmable I/O Ports
)
T
5
8
/
C
2
3
M
,
5
8
/
C
2
3
M
(
p
u
o
r
G
5
8
/
C
2
3
M
Figure 24.4 Programmable I/O Ports (4)
Figure 24.5 PD0 to PD15 Registers
NMI
Data Bus
Input Port (P85)
NOTES:
1. Set the PD9 register immediately after the PRC2 bit in the PRCR register is set to "1" (write enable). Do not
generate an interrupt or a DMA transfer between the instruction to set the PRC2 bit to "1" and the instruction
to set the PD9 register.
2. In memory expansion mode and microprocessor mode, the PDi register cannot control pins being
used as bus control pins (A0 to A22, A23, D0 to D15, CS0 to CS3, WRL/WR, WRH/BHE,
BCLK/ALE/CLKOUT, RD, HLDA/ALE, HOLD, ALE and RDY).
M32C/85T cannot be used in memory expansion mode and microprocessor mode.
3. Set the PD11 to PD15 registers to "FF16" in the 100-pin package.
4. Nothing is assigned in the PD8_5 bit in the PD8 register, the PD11_7 to PD11_5 bits in the PD11
register (144-pin package only) and the P14_7 bit in the PD14 register (144-pin package only).
If write, set these bits to "0". When read, their contents are indeterminate.
Function
Port Pi Direction Register (i=0 to 15) (2)
Bit Name
Bit
Symbol
Address
After Reset
PD0 to PD3
03E216, 03E316, 03E616, 03E716
0016
PD4 to PD7
03EA16, 03EB16, 03C216, 03C316
0016
PD8
03C616(4)
00X0 00002
PD9 to PD10
03C716(1), 03CA16
0016
PD11
03CB16(3, 4)
XXX0 00002
PD12 to PD13
03CE, 03CF16(3)
0016
PD14
03D216(3, 4)
X000 00002
PD15
03D316(3)
0016
RW
PDi_0
PDi_1
PDi_2
Port Pi0 Direction
Bit
PDi_3
PDi_4
PDi_5
PDi_7
PDi_6
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
Port Pi1 Direction
Bit
Port Pi2 Direction
Bit
Port Pi3 Direction
Bit
Port Pi4 Direction
Bit
Port Pi5 Direction
Bit
Port Pi6 Direction
Bit
Port Pi7 Direction
Bit
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
0 : Input mode (Functions as input port)
1 : Output mode (Functions as output port)
RW
b7
b6
b5
b4
b3
b2
b1
b0