Hi.I want to reduce a 5KHZ PWM output to 50HZ PWM output using a circuit
that divide that frequency of 5KHZ by 10 and get me a 50HZ.Can anybody
help me to do that?
Thanks,
Hi.Thanks for your answers.But I use mikroC for PIC(V6.2 &V8.2) compiler
and its PWM library;( void Pwm_Init(unsigned long freq); ) that only allowed to write a minimum" unsigned long freq of 500HZ" and do not accept 50HZ
so I should use a hardware to reduced it,have you any idea and help?
For something that slow you could use software rather then hardware. Depending on the resolution you require, set up a timer to interrupt every 1ms for example. Then in the interrupt you keep count of how many times you have been interrupted. So, if you want 20% duty cycle you would turn the output on for 10 interrupts and off for 40. Then you have a 20% duty cycle at 50Hz.
Hi,
As Keith told: use SW!
PWM is inpossible to divide per HW (divider/counter), because a divider delivers as output signal not the incoming pulse width in percent! :-(
It gives for you some pulses (depending of special circuit realisations) but it will be never your desired PWM signal...
K.
Hi.My special thanks to (Mr.?Mrs.)Keith1200rs that suggestions were very usefull.
Also thanks to(Mr.?Mrs.)Karesz for his/her points that are really right.
Sorry to disappoint, but last time I looked I was male! I think my name doesn't seem to make sense in non-English speaking countries so you are not the first person to be confused.