EcrioniX Logic

Clock Division Principles

A Clock Divider creates a lower frequency clock signal ($f_{out}$) from a higher frequency source ($f_{in}$). This is fundamental in digital systems for generating timing signals, baud rates, and lower-power clock domains.

1. Divide-by-2 (Toggle Flip-Flop)

The simplest divider connects the inverted output ($\overline{Q}$) of a D-Flip Flop back to its input ($D$).

  • On the first rising edge, if $Q=0$, then $\overline{Q}=1$, so the FF latches 1.
  • On the next rising edge, $Q=1$, so $\overline{Q}=0$, and the FF latches 0.
  • Result: The output toggles once for every two input cycles.
\[ f_{out} = \frac{f_{in}}{2}, \quad T_{out} = 2 \times T_{in} \]

2. Divide-by-$2^n$ (Ripple Counter)

By cascading flip-flops where the output of one drives the clock of the next, we create a binary counter. Each stage divides the frequency by 2.

  • Stage 1: Divide by 2
  • Stage 2: Divide by 4
  • Stage 3: Divide by 8

3. Divide-by-N (Mod-N Counter)

To divide by an arbitrary integer $N$ (e.g., 3, 5, 10), we use a counter that counts from $0$ to $N-1$ and then resets.

Duty Cycle Note: Simple counters often produce pulses with non-50% duty cycles. Creating a perfect 50% duty cycle for odd numbers requires logic on both rising and falling edges of the source clock.

Configuration

Division Mode
Input Frequency 1 Hz

Signal Stats

Input Period
1000 ms
Output Period
2000 ms
Effective Ratio
1 : 2
Circuit Schematic
D Q
Timing Diagram
CLK_IN CLK_OUT