GPS-based universal clock generator using PIC16F628

Summary of GPS-based universal clock generator using PIC16F628


This article describes a DIY GPS-based universal clock generator project. By utilizing a Rockwell Jupiter GPS module's 10KHz signal and a PLL multiplier, the system achieves absolute accuracy within 10ppb for home-lab microwave counters and signal generators. The design employs a PIC16F628 microcontroller to manage frequency selection via a /2000 divider and monitor lock status, eliminating the need for external calibration or PC connection while ensuring long-term stability through VCXO synchronization.

Parts used in the GPS-based Universal Clock Generator:

  • Rockwell's Jupiter GPS module
  • PIC16F628 microcontroller (uP)
  • Voltage Controlled Crystal Oscillator (VCXO)
  • /2000 divider with 8 taps
  • Output selector controlled by uP
  • Varicap diode
  • 20MHz crystal
  • Dedicated 5V regulator
  • LOCK indicator LED

GPS satellites and GPS Ground Segment need extremely accurate timing to allow GPS users to know their own position on the Earth. Rubidium and Cesium clock generators are extensively used and maintained to synchronize and generate the signals that our inexpensive navigator gets from the GPS satellites orbiting at 20000 Km. Many commercial systems use the same GPS signals to extract time marks or high-frequency clock references with atomic-like accuracy, and with the appropriate hardware this opportunity is available also for amateurs and hobbysts. With the project described in these pages, the microwave frequency counters and signal generators we have in our home-labs will have an absolute accuracy in the range of 10ppb (parts-per-billion) without relying on external calibration facilities.

universal clock generator

OPERATION PRINCIPLES

Almost all commercially available GPS OEM modules provide a 1pps output, synchronized with GPS time. This pulse could be used as a reference to generate accurate high-frequency clocks, but special design has to address the short-term jitter affecting the 1pps signal. As a general guideline, an oven-stabilized crystal oscillator who guarantees the short-term stability is synchronized with the GPS 1pps for the long-term accuracy.

An alternate, and simpler, solution uses the higher frequency synchronization signal (10KHz) that the Rockwell’s Jupiter GPS is able to provide. Ideally, a simple PLL frequency multiplier with a loop bandwidth in the range of 50~100mHz is all you need to complete the equipment. We have bought a couple of these modules on E-bay and we started some experiments with them.

PROJECT DESCRIPTION

The projects is straightforward and basically simple. As anticipated in the previous section, it is a PLL multiplier with few auxiliary blocks to get more flexibility and to monitor the GPS status without the need of a PC.

The /2000 divider of the PLL has 8 taps at most used frequencies from 10KHz to 20MHz: an output selector controlled by the uP forwards the selected one to the main output of the equipment. One or more auxiliary outputs at fixed frequency can also be implemented to drive more instruments that need different master-clock frequencies. The PLL loop bandwidth is intentionally limited to 1/10~1/20Hz to cut-off short-term frequency jitter of the 10KHz GPS reference. As a consequence, a VCXO (Voltage Controlled Crystal Oscillator) has been chosen to avoid all instabilities and drifts outside the loop bandwidth. No temperature stabilization has been adopted: the only precautions taken have been to supply the VCXO with a dedicated 5V regulator and to keep it in a closed box protected from sudden temperature variations. A varicap in series with a 20MHz crystal gives a ±300Hz correction range, therefore excess drifts at extreme cold or warm ambient temperatures could not be corrected by GPS synchronization. A larger correction range could be reached, in theory, but at the price of oscillator Q reduction and, as a consequence, a greater phase noise that could prevent the use of this clock generator for LO generation in narrow-band microwave transverters. A LOCK signal turns-on an indicator LED and informs the uP that the phase loop is locked.

 

For more detail: GPS-based universal clock generator using PIC16F628

Quick Solutions to Questions related to GPS-based Universal Clock Generator:

  • How does this project achieve high accuracy?
    The system uses a PLL multiplier synchronized with the 10KHz signal from a GPS module to reach an absolute accuracy range of 10ppb.
  • Can this device operate without a PC?
    Yes, the design includes auxiliary blocks and a microcontroller to monitor GPS status without needing a personal computer.
  • What component ensures short-term stability?
    A Voltage Controlled Crystal Oscillator (VCXO) is chosen to avoid instabilities and drifts outside the loop bandwidth.
  • How is temperature variation handled in this design?
    No active temperature stabilization is adopted; instead, the VCXO is supplied by a dedicated 5V regulator and kept in a closed box.
  • What is the function of the varicap diode?
    A varicap in series with a 20MHz crystal provides a ±300Hz correction range for the oscillator.
  • Does the system indicate when it is locked?
    Yes, a LOCK signal turns on an indicator LED to inform the microcontroller that the phase loop is locked.
  • What frequency range can the output selector handle?
    The /2000 divider offers 8 taps covering most frequencies from 10KHz to 20MHz.
  • Why is the PLL loop bandwidth limited?
    The bandwidth is intentionally limited to 1/10~1/20Hz to cut-off short-term frequency jitter of the 10KHz GPS reference.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter