Page 1 of 1

16 bit hints regarding PWM

Posted: Sat Nov 28, 2020 4:51 am
by alanwms
Hello Ben.

I'm having difficulty figuring out the frequency for a PWM output. I'm not sure how the "Period calc" equates to the "frequency_Calc" when the explanation hint pops up. By the way, these hints don't stay long enough on the screen to read the whole story in one shot. Quite the chore for longer hints.
Can you explain the numbers for me and the units? See attached pic.
PWM Hints.jpg
PWM Hints.jpg (26.16 KiB) Viewed 4447 times

Re: 16 bit hints regarding PWM

Posted: Sat Nov 28, 2020 10:05 am
by chipfryer27
Hi

In your example:-

Frequency Calc = 0.000358 is the frequency of your PWM pulse in KHz (0.358Hz)
Period Calc = 2796202.75 is the corresponding time taken in uS for one pulse to to complete

The wiki gives more info:
https://www.matrixtsl.com/wikiv7/index. ... :_General)

Hope this helps
Regards

Re: 16 bit hints regarding PWM

Posted: Sun Nov 29, 2020 3:12 am
by alanwms
Thanks a lot for verifying this Chip!

Units would have helped me.