S32K PWM fault and sync

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K PWM fault and sync

792 次查看
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 项奖励
2 回复数

662 次查看
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 项奖励

662 次查看
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 项奖励