FAQ

FAQ

How to calculate the PWM frequency and duty cycle?  Issue Date:2015-05-07

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)

Products: Microcontrollers ,Arm Cortex-M0 MCUs ,M051 Base Series ,M0518 Series ,Mini51 Base Series ,Nano100/102 Base Series ,Nano110/112 LCD Series ,Nano120 USB Series ,Nano130 Advanced Series ,NUC029 Series ,NUC100/200 Advanced Series ,NUC120/122/123/220 USB Series ,NUC130/230 CAN Series ,NUC131/NUC1311 CAN Series ,NUC140/240 Connectivity Series ,Arm Cortex-M4 MCUs ,M451 Base Series ,M451M Series ,M452 USB Series ,M453 CAN Series ,NUC442/472 Series ,NUC505 Series
Applications:
Function: Peripherals,Timer and PWM,PWM Output