Log in Sign up
Back to Discover
💻

Real-time clock

technology Maturity 11-13

Some machines have a tiny clock inside.

DS1307 1438A4 +102BN.jpeg
DS1307 1438A4 +102BN.jpeg
It tells the machine what time it is. It works even when the power is off.
Inside the Real-time clock IC vnutri u nei neonka.jpg
Inside the Real-time clock IC vnutri u nei neonka.jpg
This helps the machine stay on track. It is a very smart tool. Do you use a clock every day?

55 words

Many machines have a tiny clock inside.

DS1307 1438A4 +102BN.jpeg
DS1307 1438A4 +102BN.jpeg
This helps them know the time of day. It works even if the main power is off.
Inside the Real-time clock IC vnutri u nei neonka.jpg
Inside the Real-time clock IC vnutri u nei neonka.jpg
A small battery keeps it running. Some clocks use a tiny crystal to count time. This crystal vibrates very fast. It helps the clock stay steady. This tool is very useful for computers. It keeps everything on track.

74 words

A real-time clock, or RTC, is a special tool.

DS1307 1438A4 +102BN.jpeg
DS1307 1438A4 +102BN.jpeg
It measures the passing time. Most computers and many other devices use them. This helps the machine know the time of day.

An RTC is helpful for many reasons. It keeps the time even if the power goes out. It can do this if it has a backup power source.

Inside the Real-time clock IC vnutri u nei neonka.jpg
Inside the Real-time clock IC vnutri u nei neonka.jpg
Older systems often use a lithium battery. Newer systems might use a supercapacitor. This is a part that can hold a charge.

Most RTCs use a crystal oscillator to count time.

Types of RTC modules.jpg
Types of RTC modules.jpg
This is a tiny part that vibrates. It usually vibrates at 32,768 times every second. This speed is very steady. It stays steady even when the temperature changes.

Some machines do not have an RTC. A maker might leave it out to save money. Other machines get the time from the internet. They can also get time from radio signals or GPS. This keeps the clock very accurate.

174 words

A real-time clock, or RTC, is a special electronic device. It measures the passage of time in human units like hours and minutes.

DS1307 1438A4 +102BN.jpeg
DS1307 1438A4 +102BN.jpeg
Most people know these devices inside their personal computers or servers. However, RTCs are found in almost any electronic device that needs to track the time of day. They are different from ordinary hardware clocks. Those hardware clocks only send signals to run digital electronics. They do not actually count time in a way humans can read. An RTC makes sure your device always knows the correct time.
Types of RTC modules.jpg
Types of RTC modules.jpg

Using an RTC has many helpful benefits for a machine. It reliably keeps the time even during disruptive events. This includes when a system hangs, reboots, or goes into sleep mode.

Inside the Real-time clock IC vnutri u nei neonka.jpg
Inside the Real-time clock IC vnutri u nei neonka.jpg
If the device has enough backup power, the RTC works even during a full shutdown. This means you do not have to set the time again every time you turn it on. RTCs also use very little power. This is important when a device runs on alternate power. They can also free up the main system to focus on other important tasks. Some devices, like GPS receivers, use the RTC to find their place faster.

Most RTCs work using a crystal oscillator to keep time. This is a tiny part that vibrates at a very steady rate. The frequency is usually 32,768 Hz, which is the same used in quartz watches. This specific number is helpful because it is exactly 2 to the 15th power. This makes it easy for simple circuits to count the vibrations. The low frequency helps save power while staying quiet. Most of these crystals do not change size much when they get warm or cold. This helps the clock stay accurate even as the temperature changes. Some newer chips use tiny resonators built right onto the silicon. These are smaller and cheaper but can be more sensitive to heat.

History shows how these tools have changed over many years. The IBM PC/AT introduced the RTC to compatible computers in 1984. That specific machine used a Motorola MC146818 chip. Later, Dallas Semiconductor made compatible versions that people still find on older motherboards today.

Realtimeclock Motherboard Baby AT crop.jpg
Realtimeclock Motherboard Baby AT crop.jpg
You can often spot them by their black battery caps. Many different companies make these chips now, such as Epson, Texas Instruments, and Ricoh. In 2011, even more advanced chip-scale atomic clocks became available. These are much more expensive and use more power than standard RTCs. However, they are incredibly accurate and keep time within 50 parts per trillion.

Today, we see RTCs working in many ways that connect to our world. Some modern computers do not rely only on a tiny crystal. They can receive time information through digital radio or the internet. For example, cell phone networks like LTE provide the current local time. Computers can also use the Network Time Protocol to get time from the web. Some special computers use GPS signals to stay perfectly on track. Even if a computer lacks a hardware RTC, programmers can use math to create a software version. This uses the computer's own timers to mimic a real clock. It is amazing how much work goes into making sure we always know the time.

555 words

A real-time clock, or RTC, is a specialized electronic device used to measure time in human units. Most often, these devices take the form of an integrated circuit, which is a tiny chip that holds many electronic parts. While many people associate RTCs with personal computers or servers, they are actually present in almost any electronic device that must maintain an accurate time of day. It is important to distinguish an RTC from ordinary hardware clocks. Standard hardware clocks only provide timing signals to govern digital electronics. They do not count time in units like minutes or hours. An RTC, however, provides a continuous and reliable record of time.

DS1307 1438A4 +102BN.jpeg
DS1307 1438A4 +102BN.jpeg

Using an RTC offers several technical advantages for a computer system. One primary benefit is reliability during disruptive system states. An RTC can maintain the current time during system hangs, reboots, or sleep modes. If the device is provided with sufficient backup power, the RTC can even keep time during a full hardware shutdown. This prevents the need for a user to reset the time every time the machine starts. RTCs are also designed for low power consumption. This makes them ideal for running on alternate power sources. Additionally, having a dedicated RTC frees up the main system processor to focus on time-critical tasks.

Types of RTC modules.jpg
Types of RTC modules.jpg

To keep time, most RTCs rely on a crystal oscillator. This component vibrates at a very specific and steady frequency. The most common frequency used is 32.768 kHz, which is the same rate used in quartz watches. This number is chosen because it is exactly 2 to the 15th power. This mathematical property makes it very convenient for simple binary counter circuits to process. The low frequency is efficient because it saves power while remaining above the range of human hearing. Most quartz crystals are used because their size does not change much with temperature. This stability ensures the frequency remains consistent. Some modern RTCs use a micromechanical resonator, or MEMS, built directly onto the silicon chip. While MEMS reduce cost and size, they are more sensitive to temperature changes.

Inside the Real-time clock IC vnutri u nei neonka.jpg
Inside the Real-time clock IC vnutri u nei neonka.jpg

Accuracy is a key specification for these devices. Typical crystal RTCs have an accuracy of ±100 to ±20 parts per million. In practical terms, this means they might gain or lose between 1.7 and 8.6 seconds per day. For even higher precision, temperature-compensated RTC ICs are available. These can be accurate to less than 5 parts per million, which is precise enough for celestial navigation. In 2011, a new level of precision arrived with chip-scale atomic clocks. These are much more expensive and power-hungry than standard crystals. While a standard RTC uses less than 1 microwatt of power, an atomic clock uses about 120 milliwatts. However, they are incredibly stable, keeping time within 50 parts per trillion.

The history of the RTC is closely tied to the evolution of the personal computer. The IBM PC/AT introduced the RTC to compatible computers in 1984. This specific model used a Motorola MC146818 RTC chip. Later, Dallas Semiconductor produced compatible versions that became very common. You can still find these on older motherboards today. They are easily identified by their distinctive black battery caps and silkscreened logos.

Realtimeclock Motherboard Baby AT crop.jpg
Realtimeclock Motherboard Baby AT crop.jpg
In modern computer architectures, the RTC is often integrated directly into the southbridge chip rather than being a separate component.

Some systems do not use a dedicated hardware chip at all. Instead, they use software-based RTCs. This is common in embedded systems that lack a built-in clock. Programmers can use the computer's existing hardware timers to mimic an RTC. These timers use quartz crystals to produce periodic interrupts, such as 50 Hz. Because these hardware timers can be slightly inaccurate, the software must perform complex math to adjust the time. The software tracks the rate of the clock and makes tiny adjustments, known as jitter, to maintain accuracy. This can involve using mathematical models like polynomials to compensate for temperature changes. For example, a 3rd-degree polynomial can characterize the rate changes in SC-cut crystals.

Finally, RTCs are part of a much larger global system for timekeeping. Many modern devices stay accurate by receiving time from external sources. For instance, cell phone protocols like LTE provide the current local time directly. Computers can also use the Network Time Protocol to sync with the internet. Some high-level local time servers use GPS or ultra-low frequency radio transmissions from national standards organizations. This connectivity ensures that even if a local clock drifts, the device can quickly return to the correct global time.

768 words
🖼️ Images & Media (4)
File:Types of RTC modules.jpg
Types of RTC modules.jpg
File:Inside the Real-time clock IC vnutri u nei neonka.jpg
Inside the Real-time clock IC vnutri u...
File:Realtimeclock Motherboard Baby AT crop.jpg
Realtimeclock Motherboard Baby AT crop.jpg
File:DS1307 1438A4 +102BN.jpeg
DS1307 1438A4 +102BN.jpeg
Up Next
💻
Quartz clock
Technology
More to explore

🔬 Go deeper

More advanced topics to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.