Crystal Oscillator Clock Module

Build a precision clock using a crystal oscillator with frequency dividers—accurate timing for serious digital projects.

Overview

While the 555 timer is great for learning, real digital systems often need precise, stable clock signals. Crystal oscillators provide accuracy to within parts per million. This project uses a crystal oscillator module with counter ICs as frequency dividers to generate a range of precise clock frequencies from MHz down to 1Hz.

Components Needed

  • 1x 4MHz crystal oscillator module
  • 1x SN74HC390 IC (Dual Decade Counter)
  • 1x SN74HC393 IC (Dual Binary Counter)
  • 1x DIP switch (4-position)
  • 2x LED
  • 2x 330Ω resistor
  • severalx Wires

Instructions

  1. Connect the Crystal Oscillator

    Crystal oscillator modules typically have 4 pins: VCC, GND, Output, and sometimes Enable. Connect power and ground. The output provides your base frequency (e.g., 4MHz).

  2. Add Binary Dividers

    Connect the 74HC393 dual binary counter. Feed the oscillator output to the first clock input. Each output (QA, QB, QC, QD) divides by 2, 4, 8, 16. Cascade the second counter for more division.

  3. Add Decade Dividers

    For decimal-friendly frequencies, use the 74HC390 decade counter. Each stage divides by 10: 4MHz → 400kHz → 40kHz → 4kHz → 400Hz → 40Hz → 4Hz.

  4. Build Frequency Selector

    Wire a DIP switch to select between different divider outputs. This lets you choose from a range of frequencies for different applications.

  5. Test with LED and Scope

    At low frequencies (below ~20Hz), an LED will visibly blink. At higher frequencies, use an oscilloscope to verify the output. Check that each divider stage exactly halves or tenths the frequency.

Challenges

  • Generate an exact 1Hz signal for a real-time clock
  • Build a frequency counter to measure unknown signals
  • Create a programmable frequency synthesizer
  • Add a phase-locked loop (PLL) for frequency multiplication