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!
]
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
Hope it helps you!