2 Attachment(s)
PWM - Dutycycle affecting frequency?
Hi,
I'm just playing around with PWM (...and PicMultiCalc).
While making some experiments, I notice that changing the dutycycle will affect the Period's duration (frequency).
First, I set dutycylce to 127 (=50%). The frequency is 92,24kHz.
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1640&stc=1&d=117939319 7">
Second, same test at 64 (=25%) dutycycle. The frequency is now 46,02kHz.
<img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1639&stc=1&d=117939319 7">
In my comprehension of PWM, dutycycle would affect only the ratio of the HIGH against the LOW signal.
Is this okay or am I measuring something wrong?
What is it about: knowledge ...and money!
You're right Steeve,
I could, I should and I actually use the CCP module of my 12F683.
But not all "small" PICs have this option so I want to make sure I can get the same result in both cases (HPWM & PWM).
The other aspect of the problem is costs related. For your information, the PIC's prices in Switzerland are "slightly" different as those I can see in MICROCHIP's website or on components suppliers out of my country. Where a 12F683 costs $ 0,87 in USA, I will pay CHF 5,49 ($ 4,47)!!!
So, even for fun, I don't like to throw money out of my window ;)
LeCroy = Jumbo Jet 747...
You might be right: my cheap oscillo has its limits.
I can grab a LeCroy at the office but to me, its like a "Jumbo Jet 747" (must have at least 30 contextual buttons on the front pannel and a 3 kilos user manual...).
But maybe I'll try this anyway.
Nothing is impossible...