ST10R272L - PARALLEL PORTS
121/320
The figure below shows the structure of a PORT1 pin.
7.3
Port 2
Port 2 is a 4-bit port. If Port 2 is used for general purpose I/O, the direction of each line can
be configured via the corresponding direction register DP2. Each port line can be switched
into push/pull or open drain mode via the open drain control register ODP2.
7.3.1
Alternate functions of port 2
Port 2 lines P2.11...P2.8 can serve as Fast External Interrupt inputs (EX3IN...EX0IN).
P2 (FFC0h / E0h)
SFR
Reset Value: 00 - -h
Figure 30 Block diagram of a PORT1 pin
Bit
Function
P2.y
Port data register P2 bit y
5
4
3
2
1
0
11
10
9
8
7
6
15
14
13
12
-
-
-
-
-
-
rw
rw
rw
rw
-
-
rw
rw
rw
rw
P2.8
P2.9
P2.10
P2.11