English
Language : 

K60P100M100SF2RM Datasheet, PDF (994/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Functional Description
39.4.5 Output Compare Mode
The output compare mode is selected when (DECAPEN = 0), (COMBINE = 0),
(CPWMS = 0), and (MSnB:MSnA = 0:1).
In output compare mode, the FTM can generate timed pulses with programmable
position, polarity, duration, and frequency. When the counter matches the value in the
CnV register of an output compare channel, the channel (n) output can be set, cleared, or
toggled.
When a channel is initially configured to toggle mode, the previous value of the channel
output is held until the first output compare event occurs.
The CHnF bit is set and the channel (n) interrupt is generated (if CHnIE = 1) at the
channel (n) match (FTM counter = CnV).
MOD = 0x0005
CnV = 0x0003
counter
overflow
channel (n) counter
match
overflow
channel (n) counter
match
overflow
CNT ... 0 1 2 3 4 5 0 1 2 3 4 5 0 1 ...
channel (n) output
previous value
CHnF bit previous value
TOF bit
Figure 39-178. Example of the Output Compare Mode when the Match Toggles the
Channel Output
MOD = 0x0005
CnV = 0x0003
counter
overflow
channel (n) counter
match
overflow
channel (n) counter
match
overflow
CNT ... 0 1 2 3 4 5 0 1 2 3 4 5 0 1 ...
channel (n) output previous value
CHnF bit
TOF bit
previous value
Figure 39-179. Example of the Output Compare Mode when the Match Clears the
Channel Output
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
994
Freescale Semiconductor, Inc.