S08 Calculating TPM bit resolution when used in PWM mode?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S08 Calculating TPM bit resolution when used in PWM mode?

Jump to solution
684 Views
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

Labels (1)
Tags (3)
0 Kudos
1 Solution
424 Views
kef2
Senior Contributor V

ln(16667)/ln(2) = 14.02

View solution in original post

0 Kudos
2 Replies
425 Views
kef2
Senior Contributor V

ln(16667)/ln(2) = 14.02

0 Kudos
424 Views
iansmusical
Contributor V

Hi Edward,

Thank you for your answer, very helpful.

Ian

0 Kudos