7.7
Port 7
Port 7 is an 8-bit input only port. Port 7 pins also function as the A/D converter analog input pins.
Port 7 has the following register.
• Port 7 input data register (P7PIN)
7.7.1
Port 7 Input Data Register (P7PIN)
P7PIN reflects the pin states of port 7.
Bit
Bit Name
7
P77PIN
6
P76PIN
5
P75PIN
4
P74PIN
3
P73PIN
2
P72PIN
1
P71PIN
0
P70PIN
Note:
Determined by the pin states of P77 to P70.
*
7.7.2
Pin Functions
• P77, P76
Pin Function
• P75/AN5, P74/AN4, P73/AN3, P72/AN2, P71/AN1, P70/AN0
Pin Function
Note:
*
These pins can always be used as the AN5 to AN0 input pins respectively.
Initial
Value
R/W
Undefined* R
Undefined* R
Undefined* R
Undefined* R
Undefined* R
Undefined* R
Undefined* R
Undefined* R
Description
When a P7PIN read is performed, the pin states are
always read. P7PIN has the same address as PBDDR;
if a write is performed, data will be written into PBDDR
and the port B setting will be changed.
P77, P76 input pins
P75 to P70 input pins
AN5 to AN0 input pins*
Rev. 1.00, 05/04, page 117 of 544