Hello Everyone,
Does anyone know how to calculate the TPM bit resolution when used in edge PWM mode please? For example, if I use a bus clock of 4MHz, a prescaler of 2 to generate a 120Hz period, I calculate TPMxMOD to be 16667 but how do I calculate the bit resolution of the PWM output?
Thanks in advance,
Ian
解決済! 解決策の投稿を見る。
ln(16667)/ln(2) = 14.02
Hi Edward,
Thank you for your answer, very helpful.
Ian