![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 256](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838256.webp)
• The channels are in input capture mode (
• The channels outputs are zero
• The channels pins are not controlled by FTM (ELS(n)B:ELS(n)A = 0b00). See table
"Mode, Edge, and Level Selection"
The following figure shows the FTM behavior after the reset. At the reset (item 1), the
FTM counter is disabled (see table "FTM Clock Source Selection"), its value is updated
to zero and the pins are not controlled by FTM (table "Mode, Edge, and Level
Selection").
After the reset, the FTM should be configured (item 2). It is necessary to define the FTM
counter mode, the FTM counting limit (MODH:L registers value), the channels mode and
CnVH:L registers value according to the channels mode.
Because of this, you should write any value to CNTH or CNTL registers (item 3). This
write updates the FTM counter with the value of 0x0000 and the channels output with its
initial value (except for channels in output compare mode) (
).
The next step is to select the FTM counter clock by the CLKS[1:0] bits (item 4). It is
important to highlight that the pins are controlled only by FTM when CLKS[1:0] bits are
different from zero (table "Mode, Edge, and Level Selection").
(1) FTM reset
. . .
0x0006
0x0005
0x0004
0x0003
0x0001
0x0008
0x0007
XXXX
0x0000
0x0002
FTM counter
CLKS[1:0]
(4) write 0b01 to CLKS[1:0]
(3) write any value to
CNTH or CNTL registers
(2) FTM configuration
channel (n) pin is controlled by FTM
Note
– Channel (n) is in high-true EPWM mode with 0 < C(n)VH:L < MODH:L
– C(n)VH:L = 0x0005
00
XX
01
channel (n) output
Figure 12-17. FTM behavior after the reset when the channel (n) is in EPWM mode
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 CNTH or
CNTL registers (item 3).
Reset overview
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
256
NXP Semiconductors
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 ...