English
Language : 

MMC2107 Datasheet, PDF (322/618 Pages) –
Freescale Semiconductor, Inc.
Timer Modules (TIM1 and TIM2)
Pin conditions such as rising or falling edges can trigger an input capture
only on a pin configured as an input.
An input capture on channel x sets the CxF flag. The CxI bit enables the
CxF flag to generate interrupt requests.
15.8.3 Output Compare
Setting an I/O select bit, IOSx, configures channel x as an output
compare channel. The output compare function can generate a periodic
pulse with a programmable polarity, duration, and frequency. When the
timer counter reaches the value in the channel registers of an output
compare channel, the timer can set, clear, or toggle the channel pin. An
output compare on channel x sets the CxF flag. The CxI bit enables the
CxF flag to generate interrupt requests.
The output mode and level bits, OMx and OLx, select, set, clear, or
toggle on output compare. Clearing both OMx and OLx disconnects the
pin from the output logic.
Setting a force output compare bit, FOCx, causes an output compare on
channel x. A forced output compare does not set the channel flag.
A successful output compare on channel 3 overrides output compares
on all other output compare channels. A channel 3 output compare can
cause bits in the output compare 3 data register to transfer to the timer
port data register, depending on the output compare 3 mask register.
The output compare 3 mask register masks the bits in the output
compare 3 data register. The timer counter reset enable bit, TCRE,
enables channel 3 output compares to reset the timer counter. A channel
3 output compare can reset the timer counter even if the OC3/PAI pin is
being used as the pulse accumulator input.
An output compare overrides the data direction bit of the output compare
pin but does not change the state of the data direction bit.
Writing to the timer port bit of an output compare pin does not affect the
pin state. The value written is stored in an internal latch. When the pin
becomes available for general-purpose output, the last value written to
the bit appears at the pin.
Technical Data
322
Timer Modules (TIM1 and TIM2)
For More Information On This Product,
Go to: www.freescale.com
MMC2107 – Rev. 2.0
MOTOROLA