Prøve GULL - Gratis
Crystal Calibration with GPS Redux
Circuit Cellar
|June 2025
Stuart revisits an article from 2020 with a different approach, exploring the calibration of microcontroller clock crystals using GPS technology, aimed at enhancing timing accuracy in various applications. Key findings highlight the importance of calibration for long-term timing precision, detailing methods to achieve significant improvements in accuracy.
I described a method of calibrating a 32kHz clock crystal in a TM4C1233D5 microcontroller (MCU) with a GPS module in my article, “Calibrating an MCU’s RTC Using GPS: Put Time on Your Side” (Circuit Cellar 360, July 2020) [1]. The Texas Instruments (TI) TM4C parts have an internal 32KHz oscillator for implementing a real-time clock (RTC). This new approach does the same thing but with a more generalized method that applies to MCUs without a dedicated RTC oscillator and calibration register.
CRYSTAL ACCURACY
A typical crystal, as used in an MCU, has some tolerance, measured in parts per million (ppm). So the frequency of a 14.7456MHz crystal, as I’m using in this design, will vary. It’s exactly like the tolerance in a resistor or capacitor, but the tolerance of resistors and capacitors is measured in percent, or parts per hundred. Crystals are more accurate, so their tolerance is measured in ppm; 1ppm is equivalent to 0.0001%. Just like resistor/capacitor tolerance, the crystal frequency can be higher or lower than the nominal frequency.
To convert this to practical numbers, if the 14.7456MHz crystal I used in this design has a tolerance of ±30ppm, then the frequency variation is ±442Hz (14.7456MHz x 30/1,000,000). Therefore, the frequency of any given part may vary from 14.745158MHz (14,7456,000 - 442) to 14.746042MHz (14.7456,000 + 442).
WHY CALIBRATE?
Denne historien er fra June 2025-utgaven av Circuit Cellar.
Abonner på Magzter GOLD for å få tilgang til tusenvis av kuraterte premiumhistorier og over 9000 magasiner og aviser.
Allerede abonnent? Logg på
FLERE HISTORIER FRA Circuit Cellar
Circuit Cellar
Mesh for Embedded Control
Mesh Networks Are Rewiring Embedded Systems
11 mins
March 2026
Circuit Cellar
A System That Detects, Tracks, and Deters Deer
Using Computer Vision, an Arduino, and a Raspberry Pi 5
14 mins
March 2026
Circuit Cellar
Analog Meets Digital
Part 4: Eliminating Mains Interference with an ADC
19 mins
March 2026
Circuit Cellar
Datasheet: Linux-Based SBCs
SBCs Running Linux Bring Enterprise Power to the Network's Edge
8 mins
March 2026
Circuit Cellar
Running Model Trains Without Human Input
A Raspberry Pi Pico Controls Two Trains
9 mins
March 2026
Circuit Cellar
Inside the Tech: E-Bikes Explained
The Future of Product Developement Nature
5 mins
March 2026
Circuit Cellar
Connector Requirements for High-Voltage Healthcare Applications
Simplifying Safety and Security
9 mins
March 2026
Circuit Cellar
PIC32CM PL10 MCUs Expand Microchip's ARM Cortex-MO+ Portfolio
Building on decades of experience, Microchip Technology has added PIC32CM PL10 MCUs to its PIC32C family of ARM Cortex-M0+ core devices. PL10 MCUs feature a rich set of Core Independent Peripherals (CIPs), 5V operation, touch capabilities, integrated toolsets and safety compliance.
1 mins
March 2026
Circuit Cellar
From Buffer Overflows to Control Flow Attacks
This article extends the January 2026 article by showing a buffer overflow attack that changes a return value. I also discuss the use of the GCC stack protection feature, and demonstrate that it's not always a bulletproof protection method, even if it is better than doing nothing.
7 mins
March 2026
Circuit Cellar
Another Matter-Enabled MCU: the ESP32-C6
The list of MCUs that support the Matter protocol continues to get longer. In this column, Brian goes in-depth on one of the newer Matter-enabled MCUs and shows just how it compares to some of the alternatives now on the market.
21 mins
March 2026
Listen
Translate
Change font size

