S32K PWM fault and sync

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K PWM fault and sync

695 Views
tahirmahmood
Contributor I

I want to use the PWM pin as falut pin for FTM0 channel 0 as my PWM pin and pin 14 port A as fault pin. When the fault is cleared(no fault) the PWM starts gain when the new PWM cycle starts. I want to start the PWM as soon as fault is cleared.Therefore I need a sync pin to start the PWM immediately. How can I do this? I require both sysc and fault Pins but the sysc pin should act as soon as fault is cleared(same edge for clearing fault and doing sysc).I want o start he PWM immediately as the fault in cleared in Hardware.  

0 Kudos
2 Replies

565 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, the FTM0_FLT0 can be used as HW sync pin too
User-added image
however it is synchronized to the rising edge only, you cannot select falling edge of input signal as HW sync. Thus it will not work in the way you need, I think.

BR, Petr

0 Kudos

565 Views
tahirmahmood
Contributor I

So if I change the edges and use the FLT pin as as fault pin for falling edge and then the same pin as HW SYNC on rising edge will it work? Can I use the same pin as fault and HW sync pin on different edges. This means as soon as fault is cleared the rising edge will synchronize the PWM, will this happen?

0 Kudos