ST10F269-T3
12.10.1 - Alternate Functions of Port 7
The upper 4 lines of Port 7 (P7.7...P7.4) serve as
capture
inputs
or
compare
outputs
(CC31IO...CC28IO) for the CAPCOM2 unit.
The usage of the port lines by the CAPCOM unit,
its accessibility via software and the precautions
are the same as described for the Port 2 lines.
As all other capture inputs, the capture input
function of pins P7.7...P7.4 can also be used as
external interrupt inputs (250ns sample rate at
32MHz CPU clock).
Table 20 :
Port 7 Alternate Functions
Port 7
P7.0
P7.1
P7.2
P7.3
P7.4
P7.5
P7.6
P7.7
POUT0
POUT1
POUT2
POUT3
CC28IO
CC29IO
CC30IO
CC31IO
Alternate Function
PWM mode channel 0 output
PWM mode channel 1 output
PWM mode channel 2 output
PWM mode channel 3 output
Capture input / compare output channel 28
Capture input / compare output channel 29
Capture input / compare output channel 30
Capture input / compare output channel 31
The lower 4 lines of Port 7 (P7.3...P7.0) serve as
outputs
from
the
PWM
module
(POUT3...POUT0).
At these pins the value of the respective port
output latch is EXORed with the value of the PWM
output rather than ANDed, as the other pins do.
This allows to use the alternate output value either
as it is (port latch holds a 鈥?鈥? or to invert its level at
the pin (port latch holds a 鈥?鈥?.
Note that the PWM outputs must be enabled via
the respective PENx bit in PWMCON1.
The Table 20 summarizes the alternate functions
of Port 7.
Figure 39 :
Port 7 I/O and Alternate Functions
Port 7
P7.7
P7.6
P7.5
P7.4
P7.3
P7.2
P7.1
P7.0
CC31IO
CC30IO
CC29IO
CC28IO
POUT3
POUT2
POUT1
POUT0
Alternate Function
General Purpose Input/Output
84/160