ST10F269Z2Qx
12.6.1 - Alternate Functions of Port 3
The pins of Port 3 serve for various functions which include external timer control lines, the two serial
interfaces and the control lines BHE/WRH and CLKOUT.
Table 16 : Port 3 Alternative Functions
Port 3 Pin
Alternate Function
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
P3.6
P3.7
P3.8
P3.9
P3.10
P3.11
P3.12
P3.13
P3.14
P3.15
T0IN
T6OUT
CAPIN
T3OUT
T3EUD
T4IN
T3IN
T2IN
MRST
MTSR
TxD0
RxD0
BHE/WRH
SCLK
---
CLKOUT
CAPCOM1 Timer 0 Count Input
Timer 6 Toggle Output
GPT2 Capture Input
Timer 3 Toggle Output
Timer 3 External Up/Down Input
Timer 4 Count Input
Timer 3 Count Input
Timer 2 Count Input
SSC Master Receive / Slave Transmit
SSC Master Transmit / Slave Receive
ASC0 Transmit Data Output
ASC0 Receive Data Input (Output in synchronous mode)
Byte High Enable / Write High Output
SSC Shift Clock Input/Output
No pin assigned
System Clock Output
Figure 27 : Port 3 I/O and Alternate Functions
Alternate Function
No Pin
Port 3
P3.15
P3.13
P3.12
P3.11
P3.10
P3.9
P3.8
P3.7
P3.6
P3.5
P3.4
P3.3
P3.2
P3.1
P3.0
General Purpose Input/Output
a)
CLKOUT
SCLK
BHE
RxD0
TxD0
MTSR
MRST
T2IN
T3IN
T4IN
T3EUD
T3OUT
CAPIN
T6OUT
T0IN
b)
WRH
The structure of the Port 3 pins depends on their
alternate function (see figures 28 and 29). When
the on-chip peripheral associated with a Port 3 pin
is configured to use the alternate input function, it
reads the input latch, which represents the state
of the pin, via the line labeled “Alternate Data
Input”. Port 3 pins with alternate input functions
are: T0IN, T2IN, T3IN, T4IN, T3EUD and CAPIN.
When the on-chip peripheral associated with a
Port 3 pin is configured to use the alternate output
function, its “Alternate Data Output” line is ANDed
with the port output latch line. When using these
alternate functions, the user must set the direction
of the port line to output (DP3.y=1) and must set
the port output latch (P3.y=1). Otherwise the pin is
in its high-impedance state (when configured as
input) or the pin is stuck at '0' (when the port
output latch is cleared). When the alternate output
functions are not used, the “Alternate Data
Output” line is in its inactive state, which is a high
level ('1').
70/161