Phase shift FTM modules

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

Phase shift FTM modules

1,499 次查看
pietroserao
Contributor II

Goodmorning, can someone suggest me how can i realize a variable phase shift pwm using three FTM modules?

Need i to use some peripherals like PDB modules?

标签 (1)
0 项奖励
回复
2 回复数

1,254 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi Pietro,

With the FTM module itself you can generate phase shift PWMs using Modified Combine PWM mode. This way up to 4 phase shift PWMs can be generated on single FTM module.

 pastedImage_2.png

 

If you want to have FTM module counters somehow synchronized, the counter synchronization can be use and external HW trigger determines the time the FTM counter is reset.

The hardware trigger source can be from many other modules via TRGMUX, also FTM’s init and/or ext trigger can be used as HW trigger for FTM modules.

pastedImage_1.png

BR, Petr

1,254 次查看
pietroserao
Contributor II

Thank you. Now i need to set the FTM0 and the FTM1 in the seguent operation mode.

When FTM counter is equal to a set treshold value then i will generate an external interrupt.
The FTM0 external interrupt is connected to the FTM1 HW1trigger by trigmux.

When the FTM1 HW1trigger is set, the ftm1 will generate a new pwm signal.

How can i generate an FTM0 external interrupt?

How can i reset the FTM1 pwm signal?

Thank you.

0 项奖励
回复