Definition: What is a Real-Time Clock (RTC)?
A real-time clock (RTC) is a computer clock, usually in the form of an integrated circuit that is solely built for keeping time. It counts hours, minutes, seconds, months, days and even years. RTC's are found in personal computers, embedded systems and servers, and almost any electronic device that requires accurate time keeping. RTCs continue to function even when the device is powered down through the use of a battery or power that is independent of the device's main source. This functionality while the device is powered down is fundamental to RTCs.
Explaining a Real-Time Clock (RTC)
RTCs must accurately keep time, even when the device is powered off, because it is often used as a trigger for turning the device on or triggering events such as alarm clocks, like in many Tech-Box.io kits. RTC ICs run on an alternate power source, which allows it to continually operate under low power or even when the computer is turned off. ICs on older systems may utilize lithium batteries, whereas newer systems make use of auxiliary batteries or supercapacitors. RTC ICs that use supercapacitors are rechargeable and can be soldered. But in most consumer-grade motherboards, the RTC is powered by a single battery that, when removed, resets the RTC to its starting point.
RTC ICs regulate time with the use of a crystal oscillator and do not rely on clock signals like most hardware clocks. Aside from being responsible for the timing function of the system and its clock, RTC ICs ensure that all processes occurring in the system are appropriately synchronized. Although some may argue that this is a job for the system clock, the system clock is actually dependent on the RTC, making the RTC indirectly responsible for synchronization.
An RTC battery should last for three to five years or more. RTCs are essential; if the battery fails, it must be replaced to ensure continued operation. A dead battery can be diagnosed with an error message at startup or if the user finds that the clock or the setup configuration has become corrupted.
RTC benefits include:
- They are more precise than other methods — such as the timer of a microcontroller.
- They free the main system from time-critical tasks.
- They have low power consumption and improved frequency stability.
- They accurately track time through various temperature and humidity changes that may affect other system clocks