Information

The following figure shows an example when the channel (n) is in output compare mode
and the channel (n) output is toggled when there is a match. In the output compare mode,
the channel output is not updated to its initial value when there is a write to CNT register
(item 3). In this case, it is recommended to use the software output control (Software
Output Control) or the initialization (Initialization) to update the channel output to the
selected value (item 4).
(1) FTM reset
0x00150x00140x00130x0012 . . .0x0010 0x00170x0016XXXX 0x0000 0x0011
FTM counter
CLKS[1:0]
channel (n) output
(5) write 1 to SC[CLKS]
(3) write any value
to CNT register
(2) FTM configuration
channel (n) pin is controlled by FTM
NOTES:
– CNTIN = 0x0010
– Channel (n) is in output compare and the channel (n) output is toggled when there is a match
– C(n)V = 0x0014
00
XX
01
(4) use of software output control or initialization
to update the channel output to the zero
Figure 37-260. FTM Behavior After Reset When the Channel (n) Is in Output Compare
Mode
37.6 FTM Interrupts
This section describes FTM interrupts.
37.6.1 Timer Overflow Interrupt
The timer overflow interrupt is generated when (TOIE = 1) and (TOF = 1).
37.6.2 Channel (n) Interrupt
The channel (n) interrupt is generated when (CHnIE = 1) and (CHnF = 1).
FTM Interrupts
K20 Sub-Family Reference Manual, Rev. 6, Nov 2011
980 Freescale Semiconductor, Inc.