Nepedia
Back to Discover
Fluent Reader
💻

Real-time clock

technology Maturity 11-13 Next article →

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
DS1307 1438A4 +102BN

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
Types of RTC modules

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
Inside the Real-time clock IC vnutri u nei neonka

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
Realtimeclock Motherboard Baby AT crop

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.

538 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ 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
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.