Datasheet
Section 10 I/O Ports
Rev. 3.00 Mar 17, 2006 page 461 of 926
REJ09B0283-0300
10.4 Port 4
Port 4 is an 8-bit input-only port. Port 4 has the following register.
• Port 4 register (PORT4)
10.4.1 Port 4 Register (PORT4)
PORT4 is an 8-bit read-only register that shows port 4 pin states.
PORT4 cannot be modified.
Bit Bit Name Initial Value R/W Description
7 P47 Undefined
*
R
6 P46 Undefined
*
R
5 P45 Undefined
*
R
4 P44 Undefined
*
R
3 P43 Undefined
*
R
2 P42 Undefined
*
R
1 P41 Undefined
*
R
0 P40 Undefined
*
R
The pin states are always read when a port 4 read is
performed.
Note: * Determined by the states of pins P47 to P40.
10.4.2 Pin Functions
Port 4 also functions as the A/D converter analog input and D/A converter analog output. The
correspondence between pins are as follows.
• P47/AN7/DA1
AN7 inputPin function
DA1 output
• P46/AN6/DA0
AN6 inputPin function
DA0 output