M16C/62P Group (M16C/62P, M16C/62PT)
21. Programmable I/O Ports
Rev.2.41
Jan 10, 2006
Page 263 of 390
REJ09B0185-0241
Figure 21.8
Pi Registers
Port P8 Register
After Reset
Indeterminate
Bit Symbol
RW
RW
Function
RW
P8_5
Port P8_6 Bit
RO
P8_4
RW
P8_6
Bit Name
P8
P8_2
Address
03F0h
P8_1
RW
b3 b2 b1 b0
The pin level on any I/O port w hich is set for input mode
can be read by reading the corresponding bit in this
register.
The pin level on any I/O port w hich is set for output
mode can be controlled by w riting to the corresponding
bit in this register (except for P8_5)
0 : “L” level
1 : “H” level
RW
P8_3
RW
Symbol
b7 b6 b5 b4
Port P8_7 Bit
P8_7
RW
Port P8_0 Bit
Port P8_1 Bit
Port P8_2 Bit
Port P8_3 Bit
Port P8_4 Bit
P8_0
Port P8_5 Bit
Port Pi Register (i=0 to 7 and 9 to 13)
(2, 3)
After Reset
Indeterminate
Indeterminate
Indeterminate
Indeterminate
Bit Symbol
RW
NOTES :
1.
2.
3.
Since P7_0 and P7_1 are N-channel open drain ports, the data is high-impedance.
Pi_6
RW
Pi_5
Port Pi_6 Bit
Port Pi_5 Bit
RW
Pi_4
RW
RW
Pi_3
RW
Symbol
P0 to P3
P4 to P7
Pi_2
Address
03E0h, 03E1h, 03E4h, 03E5h
03E8h, 03E9h, 03ECh, 03EDh
Pi_1
RW
b3 b2 b1 b0
03F9h
RW
Function
Bit Name
Pi_0
b7 b6 b5 b4
P13
Port Pi_1 Bit
Port Pi_2 Bit
Port Pi_3 Bit
Port Pi_4 Bit
To use ports P11 to P14, set the PU37 bit in the PUR3 register to “1” (enable). If this bit is set to “0” (disable), the P11 to
P14 registers are cleared to “0”.
P9 to P12
03F1h, 03F4h, 03F5h, 03F8h
During memory extension and microprocessor modes, the Pi 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.
Port Pi_7 Bit
Pi_7
RW
The pin level on any I/O port w hich is set for input
mode can be read by reading the corresponding bit in
this register.
The pin level on any I/O port w hich is set for output
mode can be controlled by w riting to the
orresponding bit in this register
0 : “L” level
1 : “H” level
(1)
(i = 0 to 7 and 9 to 13)
Port Pi_0 Bit
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655