NXP Semiconductors MC9S08SU16 Reference Manual page 334

Table of Contents

Advertisement

Functional Description
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
CnVH:CnVL registers 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 = CnVH:CnVL).
MODH:L = 0x0005
CnVH:L = 0x0003
channel (n) output
Figure 19-8. Example of the output compare mode when the match toggles the channel
MODH:L = 0x0005
CnVH:L = 0x0003
channel (n) output
Figure 19-9. Example of the output compare mode when the match clears the channel
MODH:L = 0x0005
CnVH:L = 0x0003
channel (n) output
Figure 19-10. Example of the output compare mode when the match sets the channel
334
channel (n)
counter
overflow
match
CNTH:L
...
0
1
2
previous value
CHnF bit
previous value
TOF bit
counter
channel (n)
overflow
match
CNTH:L
2
...
0
1
previous value
CHnF bit
previous value
TOF bit
counter
channel (n)
match
overflow
CNTH:L
...
0
2
1
previous value
previous value
CHnF bit
TOF bit
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
counter
channel (n)
overflow
match
3
4
5
0
1
2
3
output
counter
channel (n)
overflow
match
3
4
5
0
1
2
3
output
counter
channel (n)
overflow
match
1
3
3
4
5
0
2
output
counter
overflow
4
5
0
1
...
counter
overflow
4
5
0
1
...
counter
overflow
5
...
4
0
1
NXP Semiconductors

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents