Hi,
FlexTimer supports EPWM , CPWM and Combine mode, for EPWM or Combine mode, the period is determined by (MOD − CNTIN + 0x0001), and for CPWM mode, the period is determined by 2 × (MOD − CNTIN). So if the FTM selects bus clock as reference, the output frequency should be bus clock/period. So if you always set CNTIN(the counter initial value) as zero, you may have the formula as bus clock/(MOD+1) or bus clock/2MOD.
And Please kindly have my answers as below:
If I well understand your answer, it means that you have to rebuild or copy and rebuild all the mqx sources with your specific board configuration? You can't just define some macro in your project to fit to your board?
-In my understanding, if you modify some configuration in MQX, you must rebuild the BSP to let the modification take effect.
And if you don't use mqx, is there are other files to include or a processus to follow?
-Do you mean the bare board project? We do have such examples to let customer use as a starting point, for K60, you may download KINETIS_SC from the following link:
http://www.freescale.com/webapp/sps/download/license.jsp?colCode=KINETIS512_SC&location=null&fpsp=1&...
Hope that helps,
Best Regards,
Kan Li
Technical Information & Commercial Support AP (Kinetis/ColdFire)
Freescale Semiconductor (China) Limited Shanghai Branch Office