PWM_32_v2 Frquency set math
bennettdan
Posts: 614
Hello I have been looking at Beau's object and want to know how to figure the Period of the PWM.Duty comand to get adifferent frequency.
example:
PWM.Duty(7,50,5000)
I understand this is a PWM signal on Pin 7 at 50% duty cycle but I cant wrap my head around what frequncy the 5000 represents and how to figure it to a different frquency.
Thanks
example:
PWM.Duty(7,50,5000)
I understand this is a PWM signal on Pin 7 at 50% duty cycle but I cant wrap my head around what frequncy the 5000 represents and how to figure it to a different frquency.
Thanks
Comments
PWM.Duty(1,50,125) = 1/8000hz = 0.000125ms (125us)
Is this correct?