English
Language : 

PXS20RM Datasheet, PDF (709/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
Flexible Motor Control Pulse Width Modulator Module (FlexPWM)
The values of FILT_PER and FILT_CNT must also be traded off against the desire for minimal latency in
recognizing input transitions. Turning on the input filter (setting FILT_PER to a non-zero value)
introduces a latency of ((FILT_CNT+4) x FILT_PER x IPBus clock period). Note that even when the filter
is enabled, there is a combinational path to disable the PWM outputs. This is to ensure rapid response to
fault conditions and also to ensure fault response if the PWM module loses its clock. The latency induced
by the filter will be seen in the time to set the FFLAG and FFPIN bits of the FSTS register.
25.5 Interrupts
Each of the submodules within the FlexPWM can generate an interrupt from several sources. The fault
logic can also generate interrupts. The interrupt service routine (ISR) must check the related interrupt
enables and interrupt flags to determine the actual cause of the interrupt.
Table 25-6. Interrupt summary
Core
Interrupt
COF0
CAF0
RF0
COF1
CAF1
RF1
COF2
CAF2
RF2
COF3
CAF3
RF3
Interrupt
Flag
CMPF_0
CFX1_0,
CFX0_0
RF_0
CMPF_1
CFX1_1,
CFX0_1
RF_1
CMPF_2
CFX1_2,
CFX0_2
RF_2
CMPF_3
CFX1_3,
CFX0_3
RF_3
Interrupt
Enable
CMPIE_0
CFX1IE_0,
CFX0IE_0
RIE_0
CMPIE_1
CFX1IE_1,
CFX0IE_1
RIE_1
CMPIE_2
CFX1IE_2,
CFX0IE_2
RIE_2
CMPIE_3
CFX1IE_3,
CFX0IE_3
RIE_3
Name
Description
Submodule 0 compare Compare event has occurred
interrupt
Submodule 0 input Input capture event has occurred
capture interrupt
Submodule 0 reload Reload event has occurred
interrupt
Submodule 1 compare Compare event has occurred
interrupt
Submodule 1 input Input capture event has occurred
capture interrupt
Submodule 1 reload Reload event has occurred
interrupt
Submodule 2 compare Compare event has occurred
interrupt
Submodule 2 input Input capture event has occurred
capture interrupt
Submodule 2 reload Reload event has occurred
interrupt
Submodule 3 compare Compare event has occurred
interrupt
Submodule 3 input Input capture event has occurred
capture interrupt
Submodule 3 reload Reload event has occurred
interrupt
Freescale Semiconductor
PXS20 Microcontroller Reference Manual, Rev. 1
25-63