TOF bit
...
7
8
8
7
7
7
6
6
6
5
5
5
4
4
3
3
2
2
1
0
1
...
previous value
CNTH:L
channel (n) output
counter
overflow
channel (n) match in
down counting
channel (n) match in
up counting
channel (n) match in
down counting
counter
overflow
CHnF bit
MODH:L = 0x0008
CnVH:L = 0x0005
Figure 12-16. CPWM signal with ELSnB:ELSnA = X:1
If (CnVH:L = 0x0000) or (CnVH:L is a negative value, that is, CnVH[7] = 1) then the
channel (n) output is a 0% duty cycle CPWM signal and CHnF bit is not set even when
there is the channel (n) match.
If (CnVH:L is a positive value, that is, CnVH[7] = 0), (CnVH:L ≥ MODH:L), and
(MODH:L ≠ 0x0000), then the channel (n) output is a 100% duty cycle CPWM signal
and CHnF bit is not set even when there is the channel (n) match. This implies that the
usable range of periods set by MODH:L is 0x0001 through 0x7FFE, or 0x7FFF if you do
not need to generate a 100% duty cycle CPWM signal. This is not a significant limitation
because the resulting period is much longer than required for normal applications.
The CPWM mode must not be used when the FTM counter is a free running counter.
12.4.8 Update of the registers with write buffers
This section describes the updating of registers that have write buffers.
12.4.8.1 MODH:L registers
If (CLKS[1:0] = 0:0), then MODH:L registers are updated when their second byte is
written.
If (CLKS[1:0] ≠ 0:0), then MODH:L registers are updated according to the CPWMS bit:
• If the selected mode is not CPWM mode, then MODH:L registers are updated after
both bytes have been written and the FTM counter changes from (MODH:L) to (all
zeroes). If the FTM counter is a free-running counter, then this update is made when
the FTM counter changes from 0xFFFF to 0x0000.
• If the selected mode is CPWM mode, then MODH:L registers are updated after both
bytes have been written and the FTM counter changes from MODH:L to (MODH:L
– 0x0001).
Functional Description
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
254
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 ...