MK64 FTM0 Center-aligned mode output

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

MK64 FTM0 Center-aligned mode output

218 Views
xuechengjing
Contributor I

Hi,

I want to generate 3 pairs of complementary PWM outputs. About my chip's (mk64)infomation and mcuxpresso IDE configuration [Fig1-4],please refer to the following pictures.

My confusion is that, the duty cycle measured by the oscilloscope is 50%,while the function"FTM_UpdatePwmDutycycle" input is 0 [Fig5-6].  I doubt that the time modulo value  is 2500 ticks [Fig7].

Thanks!

Fig1.pngFig2.pngFig3.pngFig4.pngFig5.pngFig6.jpgFig7.png]

0 Kudos
1 Reply

143 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @xuechengjing 

For the FTM configuration that you mention, we have the following resources that you can take as reference:

FlexTimer app note: Features of the FlexTimer Module (nxp.com)

Also, you can refer to the SDK examples about FTM with the K64F.

On the other hand, the configuration that you mention is typically used in motor control application, you can take as reference the mc_pmsm SDK example from FRDM-KV31F, which has the same FTM module as the K64F device.

You can check the examples and the version of the SDK in where they appear in the following link:
MCUXpresso SDK for Motor Control | NXP Semiconductors

Pablo_Ramos_0-1713905437047.png

Hope it helps you!

0 Kudos