English
Language : 

MKL04Z32VFK4 Datasheet, PDF (510/658 Pages) Freescale Semiconductor, Inc – KL04 Sub-Family Reference Manual
Functional Description
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 30-63. 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 30-64. Example of the output compare mode when the match clears 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
channel (n) output previous value
123
45 0
1 ...
CHnF bit
previous value
TOF bit
Figure 30-65. Example of the output compare mode when the match sets the channel
output
It is possible to use the output compare mode with (ELSnB:ELSnA = 0:0). In this case,
when the counter reaches the value in the CnV register, the CHnF bit is set and the
channel (n) interrupt is generated (if CHnIE = 1), however the channel (n) output is not
modified and controlled by TPM.
KL04 Sub-Family Reference Manual, Rev. 3.1, November 2012
510
Freescale Semiconductor, Inc.