Output Compare Mode - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

When a selected edge occurs on the channel input, the current value of the FTM counter
is captured into the CnVH:L registers. At the same time, the CHnF bit is set and the
channel interrupt is generated if enabled by CHnIE = 1. See the following figure.
When a channel is configured for input capture, the CHn pin is an edge-sensitive input.
ELSnB:ELSnA control bits determine which edge, falling or rising, triggers input-capture
event. Note that the maximum frequency for the channel input signal to be detected
correctly is system clock divided by four, which is required to meet Nyquist criteria for
signal sampling.
When either half of the 16-bit capture register (CnVH:L) is read, the other half is latched
into a buffer to support coherent 16-bit access in big-endian or little-endian order. This
read coherency mechanism can be manually reset by writing to CnSC register.
Writes to the CnVH:L registers are ignored in input capture mode.
While in BDM, the input capture function works as configured. When a selected edge
event occurs, the FTM counter value, which is frozen because of BDM, is captured into
the CnVH:L registers and the CHnF bit is set.
channel (n) input
system clock
The input signal is always delayed three rising edges of the system clock; that is, two
rising edges to the synchronizer plus one more rising edge to the edge detector. In other
words, the CHnF bit is set on the third rising edge of the system clock after a valid edge
occurs on the channel input.

19.5.5 Output compare mode

The output compare mode is selected when (CPWMS = 0) and (MSnB:MSnA = 0:1).
NXP Semiconductors
synchronizer
edge
D
Q
D
Q
detector
CLK
CLK
falling edge
Figure 19-7. Input capture mode
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Chapter 19 FlexTimer Module (FTM)
was rising
edge selected?
CHnIE
0
0
CHnF
rising edge
1
1
0
0
was falling
edge selected?
channel (n) interrupt
CnVH:L[15:0]
FTM counter
333

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents