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.

Difference between Divide by n counter and clock dividers

Status
Not open for further replies.

shwetha100

Junior Member level 1
Joined
Mar 9, 2010
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Florida
Activity points
1,410
Hi,

I want to know the difference between a divide by 3 or 4 or 5 or watever counter and a clock divider. As of now, I know that a counter begins from an initial value and counts tilll a specified value. A divide by 5 counter counts upto 5 and resets to 0 after 5, then what is the concept of the clock pulse apperaing every five clock cycles and the frequency being divided by 5??? Does the counter divide the clock's frequency or count upto a paricular number in a cycle???????????????
 

Re: Difference between Divide by n counter and clock divider

the counter just counts. for instance in your example of counting up to five, you'll need a 3 bit counter, then when it reaches the value 3'b101 some combinational logic will go high (output will be a divide by five clock signal with %20 duty cycle) and cause the counter to reset to zero. the master clocks frequency never changes. if you're dividing by a power of two you can just use the MSB of the counter and get a new slower %50 duty cycle clock. eg. the MSB of a 3 bit counter is a square wave toggling at 1/2^3 of the clock signal.
 

    shwetha100

    Points: 2
    Helpful Answer Positive Rating
Re: Difference between Divide by n counter and clock divider

Thanks so much!! That helped a lot.. could you also tell me, when we are looking at the circuit, say three D flip flops connected such that Inverted output is connected back to the D input, this is Divide by 8 counter(1/2^3 like you said), Now, I am guessing that the last D flip Flop's output, q3 will give us the clock/(2^3) clock signal continuously, then where do the numbers 0 to 7 appear??? on the lines q0, q1 and q3????
 

Re: Difference between Divide by n counter and clock divider

can u give me how u connected 3 d flipflops for divide by 8 counter?

is it synchronous or asynchronous..?
 

Re: Difference between Divide by n counter and clock divider

Asynchronous, q of one going into D of the next...
 

Re: Difference between Divide by n counter and clock divider

shwetha100: what you're describing is called a "shift register" not a counter. you can also divide the clock with the circuit you described, but it will by a %50 div by 6 clock.

the best way to figure out how it works is to to draw the circuit. label all the nodes (d1,q1,d2,q2 keeping in mind that q1 = d2 and so on) if you have n registers then qn will be your output, and draw all the waveforms including the clock. you must pick a beginning state for all of your registers (this will also determine the functionality) say setting them all to zero. so all the q outputs will be zero, and all the d inputs will be zero with the exception of d1, which is 1 because of the feedback inverter. the number of register stages is the number of clock cycles that it takes for that 1 to propagate through the shift register, and similarly, the number of cycles for the 0 to propagate. so in the end this gives you a 1/(2*n) divider not a 1/(2^n) divider.

let me know if that made sense!

Added after 1 minutes:

shwetha100: that's wrong, there's nothing asynchronous in this circuit. everything is happening in sync with the clock.
 

Re: Difference between Divide by n counter and clock divider

it is a divide by 8 circuit and not divide by 6, each D flip flop output divides its input clock by 2, meaning, first flop divides the clock by 2 and this is fed to the second flop which divides this by 2, thus the original clock by 4 and the third flop divides this by 2, the original clock by 8... n its asynchronous because the D output of one clock is being fed into the next flops clock input... meaning all the flops are not getting their clock from the same master clock = asynchronous circuit..
 

Re: Difference between Divide by n counter and clock divider

shwetha100: i get it know. i think you're talking about a ripple counter as in
https://web.mit.edu/bunnie/www/xi/seminar/slide3.pdf. i was talking intially about a regular counter (simple fsm type where the current state is the counter value) and in my last post was talking about a mobius counter.

there's more than one way to make a counters and clock dividers. if it's the ripple counter then it can be viewed as a counter or a clock divider. i'm not sure if you're original question is answered or not?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top