• 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
Содержание MC9S08PA4
Страница 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Страница 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Страница 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Страница 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Страница 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Страница 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Страница 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Страница 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Страница 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Страница 268: ...Initialization application information MC9S08PA4 Reference Manual Rev 5 08 2017 268 NXP Semiconductors ...
Страница 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Страница 370: ...Memory map and register description MC9S08PA4 Reference Manual Rev 5 08 2017 370 NXP Semiconductors ...
Страница 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Страница 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...