
Level 5
mawu_4270096
Level 5
Mar 10, 2020
05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
Solved! Go to Solution.
1 Solution

Level 5
mawu_4270096
Level 5
Mar 20, 2020
12:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
4 Replies