English
Language : 

K60P100M100SF2RM Datasheet, PDF (1060/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
FTM Interrupts
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).
(4) use of software output control or initialization
to update the channel output to the zero
(3) write any value
(1) FTM reset
to CNT register
(5) write 1 to SC[CLKS]
FTM counter XXXX
0x0000
0x0010
0x0011 0x0012 0x0013 0x0014 0x0015 0x0016 0x0017 . . .
CLKS[1:0] XX
00
01
channel (n) output
(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
Figure 39-260. FTM Behavior After Reset When the Channel (n) Is in Output Compare
Mode
39.6 FTM Interrupts
This section describes FTM interrupts.
39.6.1 Timer Overflow Interrupt
The timer overflow interrupt is generated when (TOIE = 1) and (TOF = 1).
39.6.2 Channel (n) Interrupt
The channel (n) interrupt is generated when (CHnIE = 1) and (CHnF = 1).
1060
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.