Table 12-2. Mode, edge, and level selection (continued)
CPWMS
MSnB:MSnA
ELSnB:ELSnA
Mode
Configuration
1
XX
10
Center-aligned PWM
High-true pulses (clear
Output on match-up)
X1
Low-true pulses (set
Output on match-up)
Address: Base a 5h (3d × i), where i=0d to 1d
Bit
7
6
5
4
3
2
1
0
Read
Write
0
Reset
0
0
0
0
0
0
0
0
FTMx_CnSC field descriptions
Field
Description
7
CHF
Channel Flag
Set by hardware when an event occurs on the channel. CHF is cleared by reading the CnSC register while
CHnF is set and then writing a 0 to the CHF bit. Writing a 1 to CHF has no effect.
If another event occurs between the read and write operations, the write operation has no effect; therefore,
CHF remains set indicating an event has occurred. In this case a CHF interrupt request is not lost due to
the clearing sequence for a previous CHF.
0
No channel event has occurred.
1
A channel event has occurred.
6
CHIE
Channel Interrupt Enable
Enables channel interrupts.
0
Disable channel interrupts. Use software polling.
1
Enable channel interrupts.
5
MSB
Channel Mode Select
Used for further selections in the channel logic. Its functionality is dependent on the channel mode. See
the table in the register description.
4
MSA
Channel Mode Select
Used for further selections in the channel logic. Its functionality is dependent on the channel mode. See
the table in the register description.
3
ELSB
Edge or Level Select
The functionality of ELSB and ELSA depends on the channel mode. See the table in the register
description.
2
ELSA
Edge or Level Select
The functionality of ELSB and ELSA depends on the channel mode. See the table in the register
description.
1
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
0
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
Memory map and register definition
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
242
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 ...