Datasheet

FTMx_DEADTIME field descriptions (continued)
Field Description
DTVAL selects the number of deadtime counts inserted as follows:
When DTVAL is 0, no counts are inserted.
When DTVAL is 1, 1 count is inserted.
When DTVAL is 2, 2 counts are inserted.
This pattern continues up to a possible 63 counts.
DTVAL is write protected. It can be written only when MODE[WPDIS] = 1.
12.3.20 External Trigger (FTMx_EXTTRIG)
This register indicates when a channel trigger was generated, enables the generation of a
trigger when the FTM counter is equal to its initial value, and selects which channels are
used in the generation of the channel triggers. Several FTM channels can be selected to
generate multiple triggers in one PWM period.
Channels 6 and 7 are not used to generate channel triggers.
Address: Base address + 23h offset
Bit 7 6 5 4 3 2 1 0
Read
TRIGF INITTRIGEN CH1TRIG CH0TRIG CH5TRIG CH4TRIG CH3TRIG CH2TRIG
Write
Reset
0 0 0 0 0 0 0 0
FTMx_EXTTRIG field descriptions
Field Description
7
TRIGF
Channel Trigger Flag
Set by hardware when a channel trigger is generated. Clear TRIGF by reading EXTTRIG while TRIGF is
set and then writing a 0 to TRIGF. Writing a 1 to TRIGF has no effect.
If another channel trigger is generated before the clearing sequence is completed, the sequence is reset
so TRIGF remains set after the clear sequence is completed for the earlier TRIGF.
0 No channel trigger was generated.
1 A channel trigger was generated.
6
INITTRIGEN
Initialization Trigger Enable
Enables the generation of the trigger when the FTM counter is equal to its initial value.
0 The generation of initialization trigger is disabled.
1 The generation of initialization trigger is enabled.
5
CH1TRIG
Channel 1 Trigger Enable
Enables the generation of the channel trigger when the FTM counter is equal to the CV register.
0 The generation of the channel trigger is disabled.
1 The generation of the channel trigger is enabled.
Table continues on the next page...
Memory map and register definition
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
316 Freescale Semiconductor, Inc.