10.8
Port 9
Port 9 is an 8-bit input-only port. Port 4 has the following register.
• Port 9 register (PORT4)
10.8.1
Port 9 Register (PORT9)
PORT9 is an 8-bit read-only register that shows port 4 pin states.
PORT9 cannot be modified.
Bit
Bit Name
7
P97
6
P96
5
P95
4
P99
3
P93
2
P92
1
P91
0
P90
Note: Determined by the states of pins P97 to P90.
10.8.2
Pin Functions
Port 9 also functions as the pins for A/D converter analog input and D/A converter analog output.
The correspondence between pins are as follows.
P97/AN15/DA5
Pin function
P96/AN14/DA4
Pin function
Initial Value
R/W
—*
R
—*
R
—*
R
—*
R
—*
R
—*
R
—*
R
—*
R
Description
The pin states are always read when a port 9 read is
performed.
AN15 input
DA5 output
AN14 input
DA4 output
Rev. 1.0, 09/01, page 451 of 904