The following figure shows the FTM structure. The central component of the FTM is the
16-bit counter with programmable final value and its counting can be up or up-down.
CLKS[1:0]
CPWMS
fixed frequency clock
external clock
system clock
no clock selected
(FTM counter disable)
synchronizer
PS[2:0]
(1, 2, 4, 8, 16, 32, 64 or 128)
Prescaler
timer overflow
interrupt
TOIE
TOF
MODH:L
FTM counter
(16-bit counter)
channel 0
input
Input capture
mode logic
CPWMS
MS0B:MS0A
ELS0B:ELS0A
CH0IE
CH0F
channel 0
interrupt
channel 0
output
C0VH:L
Output modes
logic
channel 1
input
Input capture
mode logic
CPWMS
MS1B:MS1A
ELS1B:ELS1A
CH1IE
CH1F
channel 1
interrupt
channel 1
output
C1VH:L
Output modes
logic
channel 7
input
Input capture
mode logic
CPWMS
MS7B:MS7A
ELS7B:ELS7A
CH7IE
CH7F
channel 7
interrupt
channel 7
output
C7VH:L
Output modes
logic
Figure 12-1. FTM block diagram
12.2 Signal description
The following table shows the user-accessible signals for the FTM.
Chapter 12 FlexTimer Module (FTM)
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
NXP Semiconductors
235
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...