Essayer OR - Gratuit
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?
Cette histoire est tirée de l'édition June 2025 de Circuit Cellar.
Abonnez-vous à Magzter GOLD pour accéder à des milliers d'histoires premium sélectionnées et à plus de 9 000 magazines et journaux.
Déjà abonné ? Se connecter
PLUS D'HISTOIRES DE Circuit Cellar
Circuit Cellar
A GPS-Disciplined Frequency Counter using the PSoC 5LP
In this month's column, Brian tasks one of his mixed-signal favorite MCUs, the Infineon PSoC 5LP, to build a frequency/ period counter using a GPS satellite module to discipline the project's time base.
16 mins
November 2025
Circuit Cellar
Designing Analog Electronics
Part 1: Error and Uncertainty
23 mins
November 2025
Circuit Cellar
Samtec Launches 800-Position AcceleRate HP High-Performance Array Connectors
Samtec, Inc., a global leader in high-performance interconnect solutions and a service leader in the industry, announces the expansion of its AcceleRate HP product line with the release of 800-position APM6 and APF6 high-performance array connectors available in a low-profile 5mm stack height.
1 min
November 2025
Circuit Cellar
CIA for SBCs (and More)
Securing Embedded Systems from Evolving Threats
14 mins
November 2025
Circuit Cellar
The Future of Embedded Systems and AI: AI in Embedded Systems
Cybersecurity Challenges and Opportunities in a Smarter World
4 mins
November 2025
Circuit Cellar
An ESP32 Dashboard
Monitoring How a Popular Microcontroller Uses Resources
11 mins
November 2025
Circuit Cellar
Vishay Intertechnology Power Metal Strip Resistor Delivers Power to 5 W in Compact 1206 Case Size
Vishay Intertechnology, Inc. introduced a new surfacemount Power Metal Strip current sense resistor that combines a high power rating up to 5W, TCR down to ± 75ppm/°C, and extremely low resistance values down to 0.3mΩ in the compact 1206 case size.
2 mins
November 2025
Circuit Cellar
ROHM Develops New Smart Switches Optimized for Zonal Controllers
ROHM Semiconductor announced the release of six new high-side smart switches (IPDs: Intelligent Power Devices) featuring highly accurate current sensing and low ON resistances ranging from 9mΩ to 180mΩ.
1 min
November 2025
Circuit Cellar
Bourns Expands Semi-Shielded Power Inductor Portfolio with New Series Featuring Higher Maximum Inductance Values
Bourns, Inc., a leading manufacturer and supplier of electronic components for power, protection, and sensing solutions, announced the expansion of its semi-shielded power inductors.
1 min
November 2025
Circuit Cellar
STMicroelectronics' New Automotive Linear Voltage Regulator Preserves Battery Energy in Challenging Conditions
The TL99VR03 300mA low-dropout (LDO) regulator provides resilient and efficient power, with a wide input-voltage range and very low quiescent current consumption, only 3.5µA at no load. The IC has an enable pin for turning the regulator off, which reduces the idle current to 800nA, and integrates soft-start circuitry to limit current during power-up and fault recovery.
1 min
November 2025
Listen
Translate
Change font size
