M16C/62P Group (M16C/62P, M16C/62PT)
21. Programmable I/O Ports
Rev.2.41
Jan 10, 2006
Page 262 of 390
REJ09B0185-0241
Figure 21.7
PDi Registers
Port Pi Direction Register (i=0 to 7 and 9 to 13)
(1, 2, 3)
After Reset
00h
03EAh, 03EBh, 03EEh, 03EFh
00h
00h
00h
Bit Symbol
RW
NOTES :
1.
2.
3. To use ports P11 to P14, set the PU37 bit in the PUR3 register to “1” (enable).
PD13
03FBh
During memory extension and microprocessor modes, the PDi register for the pins functioning as bus control pins (A0
to A19, D0 to D15, CS0
_____
to CS3
_____
, RD
___
, WRL
______
/WR
___
, WRH
______
/BHE
_____
, ALE, RDY
_____
, HOLD
_______
, HLDA
_______
and BCLK) cannot be modified.
Make sure the PD9 register is w ritten to by the next instruction after setting the PRC2 bit in the PRCR register to “1”
(w rite enabled).
PDi_6
RW
PDi_5
Port Pi_6 Direction Bit
Address
RW
Port Pi_5 Direction Bit
PD9 to PD12
Symbol
PD0 to PD3
PD4 to PD7
03E2h, 03E3h, 03E6h, 03E7h
RW
PDi_3
RW
PDi_2
b7 b6 b5 b4 b3 b2 b1 b0
RW
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
(i = 0 to 7 and 9 to 13)
Port Pi_0 Direction Bit
Port Pi_1 Direction Bit
Port Pi_2 Direction Bit
Port Pi_3 Direction Bit
Port Pi_4 Direction Bit
RW
RW
RW
PDi_0
Port Pi_7 Direction Bit
PDi_7
03F3h, 03F6h, 03F73h, 03FAh
Function
Bit Name
PDi_1
PDi_4
Port P8 Direction Register
After Reset
00X00000b
Bit Symbol
RW
Nothing is assigned. When w rite, set to “0”.
When read, its content is indeterminate.
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
PD8_6
Bit Name
PD8_1
RW
—
(b5)
Port P8_6 Direction Bit
—
PD8_4
RW
RW
PD8_3
RW
Symbol
PD8
PD8_2
Address
03F2h
RW
Function
b3 b2 b1 b0
b7 b6 b5 b4
Port P8_7 Direction Bit
PD8_7
RW
Port P8_0 Direction Bit
Port P8_1 Direction Bit
Port P8_2 Direction Bit
Port P8_3 Direction Bit
Port P8_4 Direction Bit
PD8_0
RW
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655