ST92141 - GENERAL DESCRIPTION
An alternate function can be selected as follows.
AF Inputs:
– AF is selected implicitly by enabling the corre-
sponding peripheral. Exceptions to this are ADC
analog inputs which must be explicitly selected
as AF by software.
AF Outputs or Bidirectional Lines:
– In the case of Outputs or I/Os, AF is selected ex-
plicitly by software.
Example 1: Standard Timer input
AF: STIN, Port: P3.2, I/O Note: Schmitt trigger.
Write the port configuration bits:
P3C2.2=1
P3C1.2=0
P3C0.2=1
or P3C2.2=0
P3C1.2=0
P3C0.2=1
Enable the Standard Timer input by software as
described in the STIM chapter.
Example 2: Standard Timer output
AF: STOUT, Port: P3.3
Write the port configuration bits (for AF output
push-pull):
P3C2.3=0
P3C1.3=1
P3C0.3=1
Example 3: ADC analog input
AF: AIN2, Port: P5.2, I/O Note: does not apply to
analog inputs
Write the port configuration bits:
P5C2.2=1
P5C1.2=1
P5C0.2=1
13/179
9