S08 Calculating TPM bit resolution when used in PWM mode?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S08 Calculating TPM bit resolution when used in PWM mode?

ソリューションへジャンプ
822件の閲覧回数
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 解決策
562件の閲覧回数
kef2
Senior Contributor V

ln(16667)/ln(2) = 14.02

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
563件の閲覧回数
kef2
Senior Contributor V

ln(16667)/ln(2) = 14.02

0 件の賞賛
返信
562件の閲覧回数
iansmusical
Contributor V

Hi Edward,

Thank you for your answer, very helpful.

Ian

0 件の賞賛
返信