Greetings,
I am trying to produce two different frequencies of square waves as a PWM output, the problem is that the two devices I work with are connected to the same FTM instance via different channels.
After studying the module registers and using the debugger to inspect them directly, it seems like there is no such option (I can use more than one source clock).
Am I correct? Is there an option I haven't considered?
thanks ,
Barak.
Hi Barak Avigdory,
The FTM block diagram can be found in Reference Manual.
You can see that one FTM instance share the same FTMx_MOD(Period) and FTMx_CNT.
So you can not produce different frequencies(Period) waveform out of different channels of the same instance of the FlexTimer module.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi
Each FlexTimer as a single period so a different mark-space value can be generated on each channel but all channels share the same period (and thus frequency).
Regards
Mark