What is the best pwm resolution for the KL02 running at 48MHz? 20ns or 40ns or 80ns? I want to operate it from the internal clock, using the pll to get 48Mhz for the core and then the according max. speed for the pwm peripherals/timers.
Hello,
Please note that the KL02 does not count with PLL, I guess you mean FLL.
Theoretically, with the device running at 48 MHz (MCGFLLCLK as a source clock) the best PWM resolution would be 41.6 ns.
When the TPM is set as PWM, the minimum value for the TPMx_MOD is 2 and as a consequence, the PWM frequency is 24 MHz or 41.6 ns.
If you set your device as mentioned before, please note the General switching specifications in datasheet from the following link:
http://www.freescale.com/files/32bit/doc/data_sheet/KL02P20M48SF0.pdf
Hope this information will be useful for you. :smileyhappy:
Have a great day.
Best Regards,
David Diaz.
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------