About Real Time Clock

Real Time Clock

A real-time clock (RTC) is a type of digital clock that is typically used to track time even when the power is turned off. An RTC maintains its data by being powered by a small battery or capacitor and runs on an integrated circuit. It is used to keep track of current time and date. The RTC is typically found in computers, digital clocks and other devices that require accurate timekeeping. A real-time clock typically keeps track of the day, month, year, hour, minute, and second. It is often used to trigger events at certain times and dates, or to accurately time-stamp data.

How to Select Real Time Clock: A Practical Guide

Introduction

A Real Time Clock (RTC) is an electronic component designed to maintain accurate time and calendar information in an electronic system. It typically tracks seconds, minutes, hours, days, dates, months, and years, even when the main processor or system is powered down. Many RTC devices use a low-power backup battery or supercapacitor to continue timekeeping when the primary power supply is unavailable.

Real Time Clocks are commonly used in computers, embedded systems, industrial controllers, medical equipment, security systems, data loggers, smart meters, and consumer electronics. They help maintain timestamps, schedule operations, record events, and manage time-dependent functions.

Selecting the right Real Time Clock requires evaluating timekeeping accuracy, oscillator technology, backup power, communication interface, operating voltage, power consumption, calendar functions, alarms, package, and environmental requirements.


1. Identify the Application and Timekeeping Requirements

Begin by understanding how the RTC will be used in the electronic system. The application determines the required accuracy, backup duration, calendar features, and communication capabilities.

Common applications include:

  • Embedded systems: Maintains date and time when the microcontroller is switched off.

  • Industrial automation: Records machine operating hours, event timestamps, and scheduled operations.

  • Data loggers: Adds accurate timestamps to temperature, pressure, voltage, and other measurement records.

  • Security systems: Maintains event histories, access records, and scheduled alarm functions.

  • Medical equipment: Records measurement times and supports time-dependent monitoring.

  • Smart meters: Maintains time-based measurement, billing, and energy consumption records.

  • Consumer electronics: Supports clocks, calendars, alarms, and automatic power-management functions.

Determine whether the system needs only basic timekeeping or additional features such as multiple alarms, programmable timers, timestamp capture, or periodic interrupts.

Also establish how long the RTC must maintain time without the main supply. This helps determine the required backup battery or supercapacitor capacity.


2. Evaluate Timekeeping Accuracy and Frequency Stability

Timekeeping accuracy is one of the most important factors when selecting an RTC. Even a small frequency error can accumulate into significant time differences over extended periods.

Review these specifications:

  • Accuracy: Indicates how closely the RTC maintains the correct time.

  • Frequency deviation: Usually expressed in parts per million (ppm).

  • Temperature stability: Determines how accuracy changes with temperature.

  • Long-term drift: Represents timekeeping variation over extended operating periods.

  • Calibration capability: Some RTCs support digital calibration or frequency adjustment.

  • Aging characteristics: Crystal frequency may change gradually over time.

For example, a frequency error of 20 ppm corresponds to approximately 1.73 seconds of time error per day under the stated conditions. Therefore, applications requiring accurate long-term timestamps may need a higher-precision RTC.

Check whether the device uses an external 32.768 kHz crystal, an integrated crystal, or a temperature-compensated oscillator. Temperature-compensated RTCs generally provide better accuracy across changing environmental conditions, although their cost and power requirements may be higher.

Always compare accuracy specifications across the expected operating temperature range rather than relying only on typical room-temperature values.


3. Check Oscillator Type and Crystal Requirements

The oscillator provides the reference frequency used by the RTC to measure time. Its design affects accuracy, power consumption, and external component requirements.

Common oscillator arrangements include:

  • External crystal oscillator: Uses a separate 32.768 kHz crystal connected to the RTC.

  • Integrated crystal: Includes the crystal within the RTC package, reducing external components.

  • Integrated oscillator: Generates the timing reference internally.

  • Temperature-compensated oscillator (TCXO): Adjusts for temperature-related frequency changes to improve accuracy.

When selecting an RTC with an external crystal, check the supported crystal frequency, load capacitance, equivalent series resistance (ESR), and oscillator circuit recommendations.

Use a crystal that meets the RTC manufacturer's specifications. Incorrect load capacitance, poor PCB layout, or excessive leakage can affect oscillator start-up and frequency accuracy.

For applications where PCB space and component count are important, an integrated-crystal RTC may be suitable. For applications requiring higher accuracy, consider a temperature-compensated device.


4. Examine Backup Power and Battery Requirements

An RTC often needs to continue operating when the main system supply is disconnected. Backup power is therefore an important selection factor.

Review the following specifications:

  • Backup supply voltage: Confirm the acceptable battery or backup supply voltage range.

  • Backup current: Determines how much power the RTC consumes while maintaining time.

  • Battery life: Depends on battery capacity, backup current, temperature, and operating conditions.

  • Power switching: Check how the device switches between the main supply and backup source.

  • Backup supply monitoring: Some devices provide power-failure detection or low-battery indication.

  • Supercapacitor support: Useful where rechargeable backup energy storage is preferred.

Common backup sources include coin-cell batteries, rechargeable batteries, and supercapacitors. A low backup current can significantly extend battery life.

Estimate battery life using the actual backup current and usable battery capacity, allowing for battery self-discharge, temperature effects, and other system loads. Also verify whether the RTC retains its time and calendar registers during the transition between main and backup power.

For products with long maintenance intervals, select an RTC with low backup current and a suitable battery-management arrangement.


5. Verify Communication Interface and Processor Compatibility

The RTC must communicate reliably with the microcontroller, processor, or other controlling device.

Common interfaces include:

  • I2C: A widely used two-wire interface suitable for many embedded systems.

  • SPI: Provides a serial interface with separate clock and data signals.

  • Parallel interface: Available on some specialised or older RTC devices.

  • Dedicated timing outputs: May provide clock, square-wave, or interrupt signals.

Check the supported communication speed, logic voltage, address configuration, and bus timing requirements.

For I2C devices, verify the address and whether other components on the same bus may conflict. Check whether external pull-up resistors are required and whether the RTC supports the processor's I/O voltage.

For SPI devices, review clock polarity, clock phase, maximum communication frequency, and chip-select requirements.

Also consider the availability of driver libraries, sample code, and support for the microcontroller platform. A compatible interface simplifies firmware development and reduces integration effort.


6. Evaluate Calendar Functions, Alarms, and Additional Features

Different RTCs provide different timekeeping and control features. Select a device that supports the functions required by the application.

Important features include:

  • Calendar support: Seconds, minutes, hours, day, date, month, and year.

  • Leap-year compensation: Automatically handles leap years according to the device's supported calendar range.

  • 12-hour and 24-hour formats: Supports different time-display requirements.

  • Alarm functions: Generates interrupts at programmed times or dates.

  • Programmable timers: Supports periodic timing events.

  • Square-wave output: Provides a selectable clock signal for external circuits.

  • Timestamp registers: Records the time of specific events, such as power failure.

  • Power-failure detection: Helps identify loss of the main supply.

  • Time synchronisation: Some devices provide features for adjusting or calibrating time.

Check whether alarms and timers operate while the main processor is sleeping or powered down. This can help reduce overall system power consumption.

For industrial and data-logging applications, timestamp capture and power-failure detection may be particularly useful.


7. Consider Power Consumption, Package, and Environmental Conditions

RTC devices are generally designed for low-power operation, but their current consumption varies with oscillator type, communication activity, output configuration, and backup mode.

Evaluate these specifications:

  • Operating voltage: Check the main supply voltage range.

  • Operating current: Review typical and maximum current during normal operation.

  • Backup current: Important for battery-powered timekeeping.

  • Standby current: Determines consumption when the main system is inactive.

  • Operating temperature: Select a suitable commercial, industrial, or automotive grade.

  • Package type: Common options include SOIC, TSSOP, DFN, and small surface-mount packages.

The RTC should fit the PCB footprint and assembly process. For external-crystal designs, place the crystal close to the oscillator pins and follow the recommended PCB layout. Keep sensitive oscillator traces short and away from noisy switching signals.

Also consider humidity, vibration, temperature cycling, and battery replacement requirements in the intended operating environment.


8. Compare Datasheets, Manufacturer Support, and Total Cost

Before finalising an RTC, compare datasheets from established semiconductor manufacturers. Review accuracy, oscillator type, supply voltage, backup current, communication interface, calendar functions, alarms, and operating temperature.

Check whether the manufacturer provides evaluation boards, reference circuits, software libraries, and technical documentation. These resources help verify oscillator performance, battery operation, and communication with the host processor.

Also evaluate component availability, lifecycle status, product quality, and replacement options. For long-term industrial products, supply continuity is especially important.

Finally, calculate the complete implementation cost. Include the RTC, external crystal, capacitors, backup battery, battery holder, pull-up resistors, and PCB requirements. A slightly more expensive RTC with an integrated crystal or lower backup current may reduce the overall design cost.


Conclusion

Selecting Real Time Clock requires careful evaluation of timekeeping accuracy, frequency stability, oscillator technology, backup power, communication interface, calendar functions, alarms, and power consumption. Package selection, environmental conditions, development support, and long-term availability are also important.

The best Real Time Clock maintains reliable time and calendar information while meeting the accuracy, power, and operating requirements of the complete electronic system. Always verify the manufacturer's datasheet, select a compatible crystal and backup power source, and test timekeeping accuracy under actual operating conditions before finalising the component.

Looking for help? Visit our FAQ's Section to answer to all your questions

 

X-ON Worldwide Electronics

Welcome To X-ON Electronics
For more than 30 years, we have championed innovation and helped shape the electronic components supply industry. Our management philosophy aligns with our global reach and unwavering commitment to quality. Built on a strong commercial foundation, we continue to drive innovation across everything we do. If you need a trustworthy reliable partner in electronic component supply – look no further.
 

Copyright ©2026  X-ON Electronics Services. All rights reserved.
Please ensure you have read and understood our Terms & Conditions before purchasing. All prices exclude GST.

Image for all the cards that are accepted Image for all the cards that are accepted Image for all the cards that are accepted Image for all the cards that are accepted ISO Certified AS9120 Certified