Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

Studio Bluetooth Forum Discussions

mawu_4270096
Level 5
5 sign-ins First like received First like given
Level 5

Hi  all:

the pwm calculation: 

   Initial count = 0xFFFF - (Input Clock Freq / PWM Freq out)

   Toggle count = 0xFFFF - ((duty cycle in percentage) * (Input Clock Freq / PWM Freq out) / 100)

   so the PWM  resolution is 1/100, I want to know if I can change the PWM resolution to 1/1000

   Calculation formula:

   Initial count = 0xFFFF - (Input Clock Freq / PWM Freq out)

   Toggle count = 0xFFFF - ((duty cycle in thousandth) * (Input Clock Freq / PWM Freq out) / 1000)

 

thanks!

mandy

0 Likes
1 Solution
mawu_4270096
Level 5
5 sign-ins First like received First like given
Level 5

Hi:

  I am sure that the PWM accuracy is the root cause, now I have enhanced the PWM accuracy, the flicker question has been resolved

thanks!

mandy

View solution in original post

0 Likes
4 Replies