AnsweredAssumed Answered

fsl_ftm bug ?!

Question asked by ahmed hrabi on Jan 2, 2017
Latest reply on Jan 3, 2017 by xiangjun.rong

Hi everyone, 

 

I'am using the sdk 2.0 on a k64 board. I used the fsl_ftm driver for generating a pwm signal. Well for the FTM0 ch2 with a frequency of 100Khz everything works normal. But for a lower frequency (100hz) the pwm don't work and i don't get any output signal ! 

 

So i think that there's a bug in the fsl_ftm driver.

Even when i have updated the driver with this part of code everything goes wrong:

 

reg |= (FTM_CnSC_ELSA(chnlParams->level) | FTM_CnSC_ELSB(chnlParams->level));

 

Then we fixed it and changed to use the current one, which is corrected now.

            /* Setup the active level */
            reg |= (uint32_t)(chnlParams->level << FTM_CnSC_ELSA_SHIFT);

 

BR, 

HR.A

Outcomes