Phase shift FTM modules

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

Phase shift FTM modules

1,787 Views
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?

Labels (1)
0 Kudos
Reply
2 Replies

1,542 Views
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,542 Views
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 Kudos
Reply