S08 Calculating TPM bit resolution when used in PWM mode?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S08 Calculating TPM bit resolution when used in PWM mode?

跳至解决方案
840 次查看
iansmusical
Contributor V

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

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
580 次查看
kef2
Senior Contributor V

ln(16667)/ln(2) = 14.02

在原帖中查看解决方案

0 项奖励
回复
2 回复数
581 次查看
kef2
Senior Contributor V

ln(16667)/ln(2) = 14.02

0 项奖励
回复
580 次查看
iansmusical
Contributor V

Hi Edward,

Thank you for your answer, very helpful.

Ian

0 项奖励
回复