CD4060BCN: crystal oscillator and 14-stage divider guide

Many projects need a slow, steady beat: a blinking LED, a 1-second tick or a clock for another chip. Making that directly is awkward, but making a fast stable signal and halving it many times is easy. The Fairchild CD4060BCN does both in one 16-pin DIP: it contains the amplifier for an oscillator plus fourteen divide-by-two stages. This guide explains how a binary divider works, what every pin does, how the datasheet's 32.768 kHz crystal circuit is wired and what happens from reset to the first output edge.

The basics: halving a frequency, fourteen times

A divide-by-two stage is a flip-flop that changes state once per clock pulse. Because its output goes high on one pulse and low on the next, it completes one full cycle for every two input cycles: the output frequency is half the input frequency. Chain fourteen such stages and the last one runs at the input frequency divided by 214 = 16384.

Read together, the stage outputs also form a binary counter. Q1 is the least significant bit (weight 1), Q2 has weight 2, Q4 weight 8 and Q14 weight 8192. The CD4060BC advances one count on each falling edge (high-to-low transition) of its internal clock, and a high level on RESET returns every stage to zero, independent of the clock.

It is called a ripple counter because the stages are not clocked together. Stage 1 is clocked by the oscillator, stage 2 by stage 1, and so on, so a change ripples down the chain with a small delay at every step. For a frequency divider that does not matter; for decoding several outputs at once it does (see the limits below).

The CD4060BC also contains the inverting gates for its own oscillator. Add a crystal or a resistor-capacitor network on pins 9–11 and the chip clocks itself. Only ten of the fourteen stages reach a pin: Q1–Q3 and Q11 stay inside the package.

Block diagram of the CD4060BCN: an oscillator on pins 9 to 11 at 32768 Hz feeds a chain of fourteen divide-by-two stages Q1 to Q14. Q4 to Q10 and Q12 to Q14 are brought out with their pin numbers and frequencies, from 2048 Hz at Q4 to 2 Hz at Q14; Q1 to Q3 and Q11 are not brought out. RESET on pin 12 clears every stage.
Each green stage reaches a pin. With a 32.768 kHz crystal, output Qn runs at 32768 ÷ 2n Hz.

The CD4060BCN pins

The CD4060BCN is the 16-lead plastic DIP (package N16E, 0.300 in wide) version of the CD4060BC. The output pins are deliberately not in order, so check every connection against the pinout (Fairchild datasheet, page 1):

  • Pin 16 – VDD and pin 8 – VSS: supply and ground, recommended 3 V to 15 V.
  • Pin 12 – RESET: active high. High clears all fourteen stages to zero; low lets the counter run. Never leave it floating.
  • Pin 11 – φ1: the clock input of the oscillator gate. You can also drive an external clock into this pin.
  • Pin 10 – /φ0 and pin 9 – φ0: the two inverted oscillator outputs used by the crystal or RC network.
  • Outputs: Q4 on pin 7, Q5 pin 5, Q6 pin 4, Q7 pin 6, Q8 pin 14, Q9 pin 13, Q10 pin 15, Q12 pin 1, Q13 pin 2, Q14 pin 3.
Top-view pinout of the CD4060BCN in PDIP-16: left side pins 1 to 8 are Q12, Q13, Q14, Q6, Q5, Q7, Q4 and VSS ground; right side pins 16 to 9 are VDD, Q10, Q8, Q9, RESET, φ1 oscillator input, /φ0 and φ0 oscillator outputs.
Top view of the 16-pin DIP, notch at the pin-1 end, as in the Fairchild connection diagram.

Wiring the oscillator

Fairchild shows two oscillator circuits on page 3 of the datasheet. The crystal oscillator is the most accurate and the easiest to reproduce: a 15 MΩ resistor from pin 11 to pin 10 biases the internal gate into its linear region, 330 kΩ from pin 10 feeds the crystal, and the 32.768 kHz watch crystal sits between pin 11 and the far end of that resistor. 10 pF from pin 11 to ground and a 39 pF trimmer from the other crystal end to ground set the load; turning the trimmer adjusts the frequency slightly. Pin 9 is not used.

Why 32.768 kHz? It is exactly 215 Hz, so after 14 stages Q14 delivers exactly 2 Hz. One more divide-by-two stage gives a 1 Hz tick for a clock.

The RC oscillator uses pin 9 as well: Cx from pin 9 to the junction of R1 (to pin 10) and R2 (to pin 11). The datasheet gives R2 = 2 to 10 × R1 and f ≈ 1 / (2.2 × R1 × Cx), but specifies that formula at VDD = 10 V. It also warns that the RC oscillator is not recommended below 7 V with R1 under 50 kΩ. At 5 V, either use R1 ≥ 50 kΩ and measure the actual frequency, or use the crystal.

Crystal oscillator wiring for the CD4060BCN: 15 megohm between pin 11 and pin 10, 330 kilohm from pin 10 to one end of a 32.768 kHz crystal whose other end goes to pin 11, 10 pF from pin 11 to ground, 39 pF trimmer from the crystal's other end to ground, pin 9 unconnected, RESET pin 12 tied to ground and a 2 Hz square wave out of Q14 on pin 3.
Component values from the Fairchild datasheet's crystal-oscillator connection. Add a 100 nF decoupling capacitor across pins 16 and 8.

One count from reset to 2 Hz, step by step

  1. Power the chip from 5 V: VDD (pin 16) to +5 V, VSS (pin 8) to ground, 100 nF between them close to the chip. Wire the crystal oscillator as in the figure.
  2. Hold RESET (pin 12) high, for example with a push button to +5 V and a 100 kΩ pull-down to ground. Every stage is cleared, so Q4–Q14 are all low. In the datasheet's oscillator diagram RESET also gates the oscillator, so it is held while RESET is high. At 5 V the reset pulse must be at least 450 ns long, which any button press easily exceeds.
  3. Release RESET. Pin 12 falls to ground through the pull-down, the oscillator starts and the counter begins at zero. The datasheet does not give a crystal start-up time, so allow for a short delay before the first edges.
  4. Every falling clock edge adds one to the count. After 8 edges the count is binary 1000, so Q4 (weight 8) goes high: 8 ÷ 32768 Hz ≈ 244 µs after counting starts. After 16 edges Q4 goes low again; its output is a 2048 Hz square wave.
  5. After 8192 edges, exactly 0.25 s, the count reaches 8192 and Q14 (pin 3) goes high. After 16384 edges, 0.5 s, every stage has rolled over to zero and Q14 goes low again. Q14 therefore produces a 2 Hz square wave, high for 0.25 s and low for 0.25 s.
  6. Use that output: drive an LED through a small transistor (the outputs can only supply about half a milliamp, see below), or clock a toggling flip-flop to get exactly 1 Hz.

Limits and practical notes

  • Weak outputs. At 5 V and 25 °C an output is only guaranteed to sink or source 0.51 mA while staying within 0.4 V of the rail. The datasheet quotes fan-out as two 74L or one 74LS load. Use a transistor or a buffer for LEDs and relays.
  • Ripple delay. At 5 V, Q4 may change up to 1300 ns after the clock edge, and each later stage adds up to 330 ns, so Q14 can settle up to about 4.6 µs after the edge. Outputs that are combined with logic gates can show brief false states (glitches) while the change ripples through.
  • Speed. The guaranteed maximum clock at 5 V is 1 MHz (typically 3 MHz); at 10 V it is 3 MHz.
  • CMOS inputs. Inputs must stay between VSS and VDD. Tie RESET to a defined level, and treat the oscillator pins as sensitive high-impedance nodes: keep the crystal and its components short and close to the chip.
  • Missing stages. Q1–Q3 and Q11 are internal only. For a division by 2, 4 or 8, use a different counter or an extra flip-flop.
  • Crystal values. The 10 pF/39 pF values are the datasheet's example. A crystal specified for a different load capacitance may need different capacitors; measure the result if accuracy matters.
  • Old stock. The shop's parts are new old stock and untested; check the live product listing for availability.

Related guides

To turn the 2 Hz output into a 1 Hz tick, use one half of a J-K flip-flop in toggle mode, as described in the MC14027B J-K flip-flop guide. For a clean, debounced RESET button, see the MC14093B Schmitt-trigger guide. If you only need an adjustable clock without division, the LMC555 CMOS timer guide shows the alternative.

Source

Pinout, package, oscillator connections, ratings and timing: Fairchild Semiconductor, CD4040BC, 12-Stage / CD4060BC, 14-Stage Ripple Carry Binary Counters, Rev. 1.5 (May 2007). The step-by-step example is a teaching circuit, not a tested product design.

See the CD4060BCN product · Fairchild CD4060BC datasheet (PDF)