My frequency with this configurations is 4901hz correct?
I test it and I have very noise when I try set_pwm1_duty(1) at set_pwm1_duty(175).
How I can reduce this noise?
PS: I think put frequency more than 20Khz but I don't know how make that.
best regards
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Oct 23, 2009 2:33 pm
Quote:
My frequency with this configurations is 4901hz correct?
That's close enough to the calculated frequency.
Quote:
I test it and I have very noise when I try set_pwm1_duty(1) at set_pwm1_duty(175).
How I can reduce this noise?
I don't know what you mean by "noise". You should see a clean pulse
on the oscilloscope.
Quote:
PS: I think put frequency more than 20Khz but I don't know how make that.
Did you take Algebra ? Use the equation in the link that I gave you.
Set the Timer2 Divisor value to 1, in the setup_timer_2() function.
Then solve the equation for PR2. It will give you the value to use
for the middle parameter in setup_timer_2().
filjoa
Joined: 04 May 2008 Posts: 260
Posted: Fri Oct 23, 2009 6:14 pm
Hi
noise is "iiiiiiiiiiiiiiiii" when I try break motor...
I have must algebra... but I don't know with is possible use divide timer for 1. I don't read this part of the post...
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum