
ST10R272L - PARALLEL PORTS
122/320
DP2 (FFC2h/ E1h)
SFR
Reset Value: 00 - -h
ODP2 (F1C2h / E1h)
ESFR
Reset Value: 00 - -h
The table below summarizes the alternate functions of Port 2. .
Bit
Function
DP2.y
Port direction register DP2 bit y
DP2.y = 0: Port line P2.y is an input (high-impedance)
DP2.y = 1: Port line P2.y is an output
Bit
Function
ODP2.y
Port 2 Open Drain control register bit y
ODP2.y = 0: Port line P2.y output driver in push/pull mode
ODP2.y = 1: Port line P2.y output driver in open drain mode
Port 2 Pin
Alternate Function
P2.8
P2.9
P2.10
P2.11
EX0IN Fast External Interrupt 0 Input
EX1IN Fast External Interrupt 1 Input
EX2IN Fast External Interrupt 2 Input
EX3IN Fast External Interrupt 3 Input
Table 21 Port 2 functions
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
-
-
-
-
-
-
rw
rw
rw
rw
-
-
rw
rw
rw
rw
DP2
.11
DP2
.10
DP2
.9
DP2
.8
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
-
-
-
-
-
-
rw
rw
rw
rw
-
-
rw
rw
rw
rw
ODP2
.11
ODP2
.10
ODP2
.9
ODP2
.8