6. I/O ports
A96G140/A96G148/A96A148 User’s manual
62
P4FSR (Port 4 Function Selection Register): EFH
7
6
5
4
3
2
1
0
-
-
-
-
P4FSR3
P4FSR2
P4FSR1
P4FSR0
-
-
-
-
R/W
R/W
R/W
R/W
Initial value: 00H
P4FSR3
P43 Function Select
0
I/O Port
1
SS0 Function
P4FSR2
P42 Function Select
0
I/O Port
1
SCK0 Function
P4FSR1
P41 Function Select
0
I/O Port
1
TXD0/SDA0/MOSI0 Function
P4FSR0
P40 Function Select
0
I/O Port
1
RXD0/SCL0/MISO0 Function
6.7
P5 port
6.7.1
P5 port description
P5 is a 6-bit I/O port. P5 control registers consist of P5 data register (P5), P5 direction register (P5IO)
andP5 pull-up resistor selection register (P5PU). Refer to the port function selection registers for the P5
function selection.
6.7.2
Register description for P5
P5 (P5 Data Register): B0H
7
6
5
4
3
2
1
0
–
–
P55
P54
P53
P52
P51
P50
–
–
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P5[5:0]
I/O Data
P5IO (P5 Direction Register): D1H
7
6
5
4
3
2
1
0
–
–
P55IO
P54IO
P53IO
P52IO
P51IO
P50IO
–
–
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
P5IO[5:0]
P5 Data I/O Direction
0
Input
1
Output
NOTE:
EC0/EINT8/EINT10 function possible when input