Page 1 of 1

PWM frequency

Posted: Thu Jan 27, 2011 2:55 pm
by D.Bouchier
Hi,

A nother problem, a nother topic...

My Ecio-40 is programmed for PWM, in the prooerties menu is written that it is +/- 48kHz, but when i meassure it, it's 3kHz. Any idea what can cause this, more important, how to solve this?

When i'm controlling a motor with it, it makes a high beep, probably the 3kHz sound wave, i have attached the flowcode...

I need this done by today, so a quick solution would be pleasent, thanks


solved by using timer0 instead of timer2

Re: PWM frequency

Posted: Thu Jan 27, 2011 7:48 pm
by medelec35
Hiya D.Bouchier,
Just had a quick look at your flowchart.
you are using, both PWM and timer2.
I believe since PWM is driven by timer2,there could there be a conflict here?
Try using timer0 instead of timer 2.

Re: PWM frequency

Posted: Fri Jan 28, 2011 10:34 am
by D.Bouchier
That could be the problem, i already solved it by using timer0, but i did not know why it solved it. i thought pwm was controlled by timer1, thanks anyway

Re: PWM frequency

Posted: Fri Jan 28, 2011 1:36 pm
by medelec35
Your welcome. Glad all working.
Thanks for letting us know.