Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] pulse frequency divider by 10

Status
Not open for further replies.

bobx

Junior Member level 3
Joined
Jan 11, 2010
Messages
29
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,283
Location
TEHRAN
Activity points
1,531
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,
Do you wish to divide a controlled (=variable) PWM pls?
For that job is a frequency divider not to apply :-(...
K.
 

Yes, karesz is correct. You will end up with a 50Hz square wave.

Keith
 

Re: pulse frequency divider by 10// REP.1

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?

thanks,
 

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.

Keith
 

Re: pulse frequency divider by 10// REP.1

bobx said:
...so I should use a hardware to reduced it,have you any idea and help?...
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.

Best Wishes
 

Salim,
I`m masculine & Keith is, I think, EdaBoard`s most active Dame.
Greetings!
K.
 

karesz said:
Salim,
I`m masculine & Keith is, I think, EdaBoard`s most active Dame.
Greetings!
K.

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.

Keith
 

If you just need to divide the 500Hz to 50Hz using HW.. try using a CD4017 based circuit. It is a divide by 10 ring counter.
 
  • Like
Reactions: bobx

    bobx

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top