The formula is as follows:
PWM frequency = PWM clock source frequency / ((Pre-scale + 1) * frequency divider * (CNR + 1))
Duty Cycle = (CMR + 1) / (CNR + 1)
(CNR: 16-bit counter register; CMR: 16-bit comparator register)
How to calculate the PWM frequency and duty cycle?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests
