What is a Real-Time Clock?

A Real-Time Clock (RTC) is an electronic device, typically in the form of an integrated circuit, that measures the passage of time and maintains accurate timekeeping even when the power supply to the device it's connected to is turned off or interrupted. RTCs are crucial for a variety of electronic devices, including personal computers, servers, embedded systems, and almost any device that requires keeping an accurate track of time.

The primary function of an RTC is to keep track of the current time and date, which it does by using a controller, oscillator, and an embedded quartz crystal resonator. This allows the RTC to maintain time with high accuracy and reliability, often required for applications where precise timekeeping is essential, such as in embedded systems, industrial automation, and computing.

RTCs differ from ordinary hardware clocks, which are merely signals governing digital electronics without counting time in human-readable units. They should not be confused with real-time computing, despite sharing the acronym RTC. Real-time clocks are designed to continue timekeeping through disruptive system states like hangs, sleep, reboots, or even full shutdowns, provided they have sufficient backup power.

Real-time clocks (RTCs) are integral components of many systems requiring timekeeping, even when power is off. They are engineered as all-in-one devices to provide better performance than discrete components, simplify integration in new designs, and accelerate time to market. An RTC often has its own internal oscillator with an external crystal and an option to use an external frequency reference, running at 32,768 Hz. This allows the use of very accurate and stable devices such as temperature-compensated crystal oscillators (TCXOs).

In terms of accuracy, typical crystal RTCs have specifications ranging from ±100 to ±20 parts per million. However, more advanced temperature-compensated RTC ICs can achieve accuracies of less than 5 parts per million. An RTC typically includes a backup battery or power source to ensure continuous operation and timekeeping during power outages. It interfaces with the system through low-level communication protocols like I2C or SPI, providing precise time and date information. Additional features of RTCs may include alarms, timers, and temperature sensors, which can be useful in various applications.

In modern computing, RTCs are indispensable as they serve as a reference point for other system tasks, ensuring synchronized operation and maintaining precise time even when the main power is off. They also contribute to energy savings by allowing devices to enter low-power modes while still keeping accurate time.

The Significance of Real-Time Clocks in Automation

In the realm of automation, precision and synchronization are paramount. The real-time clock (RTC) emerges as a critical component in this high-stakes environment, where even a minor discrepancy in timing can lead to significant disruptions. An RTC ensures that automated processes are carried out at the exact moment they are needed, maintaining the seamless flow of operations.

The automation industry relies heavily on scheduled tasks and time-sensitive actions. For instance, in manufacturing, an RTC allows for the precise coordination of assembly lines, ensuring that each segment of the process triggers at the right moment, thus optimizing efficiency and productivity. In the context of smart factories, RTCs facilitate the timely execution of maintenance routines, reducing downtime and enhancing overall equipment effectiveness.

Another benefit of RTCs in automation is their role in data logging. Accurate timestamps are crucial for traceability, quality control, and compliance with regulatory standards. An RTC provides the exact time and date for each entry in a log file, which is essential for diagnosing issues, improving processes, and conducting audits.

Energy management is yet another area where RTCs prove beneficial. Automated systems can use RTCs to implement energy-saving measures, such as adjusting heating, ventilation, and air conditioning (HVAC) systems based on the time of day or shifting power usage to off-peak hours to take advantage of lower rates.

Furthermore, RTCs are indispensable in the synchronization of distributed systems. In large-scale automation networks, such as those found in utilities or transportation, RTCs ensure that all components work together harmoniously, despite being geographically dispersed.

Accurate timekeeping with RTCs allows industrial systems to operate more autonomously. By focusing on predetermined outcomes and meeting operational goals, these systems can minimize costs and improve overall process efficiency. The autonomous operation facilitated by RTCs is particularly beneficial in settings where manual intervention is limited or impractical.

In addition to timekeeping, RTCs often come with additional functionalities such as alarms, timers, and interrupt functions, which can be leveraged to further automate and streamline industrial processes. These features can trigger specific actions at set times, enhancing the capability of automation systems to perform complex tasks with minimal human intervention.

ISO 8601 Standard

ISO 8601 is an international standard that specifies the representation of dates and times. The standard aims to provide a clear and unambiguous way to express time, which is crucial for RTCs that are used in various devices for accurate timekeeping.

For real-time clocks, the ISO 8601 standard is important because it provides a universally accepted format for date and time representation. This means that when RTCs store or communicate time information, they can do so in a format that is easily understood and processed by different systems, software, and protocols worldwide.

IEEE 1588 Standard

The IEEE 1588 standard, also known as the Precision Time Protocol (PTP), is a protocol used to synchronize clocks throughout a computer network. It achieves clock accuracy in the sub-microsecond range on local area networks, which is essential for measurement and control systems. PTP is particularly useful in environments where precise timing is critical, such as financial transactions, mobile phone tower transmissions, sub-sea acoustic arrays, and networks that lack access to satellite navigation signals.

The IEEE 1588 standard is crucial for industrial Ethernet networks because it provides nanosecond accuracy to networked devices in industrial automation and processing applications with minimal bandwidth and low processing overhead. This level of precision is necessary for applications that require very close time synchronization, such as factory automation, test and measurement, and telecommunications.

AEC-Q100 Standard

The AEC-Q100 standard is a set of failure mechanism-based stress tests and requirements developed by the Automotive Electronics Council (AEC) for integrated circuits within automotive electronics. The objective of this standard is to ensure the reliability of electronic components under the harsh environmental conditions that they may encounter in automotive applications. This includes temperature extremes, mechanical stress, humidity, and other factors that could potentially affect the performance and longevity of electronic components.

When it comes to Real-Time Clocks (RTCs) in automotive applications, adherence to the AEC-Q100 standard is crucial because RTCs are responsible for providing accurate timekeeping, which is essential for various functions within a vehicle. This can include time-stamping for event data recorders, managing network sleep and wake-up cycles for energy savings, and ensuring synchronization for in-vehicle systems. 

IEC 61508 Standard

The IEC 61508 standard is a cornerstone in the field of functional safety for electrical, electronic, and programmable electronic safety-related systems. It provides a framework for managing potential risks and hazards associated with such systems, ensuring their safe operation in various sectors. One aspect of these systems that is critical to their safety functions is the real-time clock (RTC) specifications. In the context of IEC 61508, the RTC must be reliable and accurate to ensure that safety functions are executed at the correct times, especially in systems where timing is crucial to prevent hazardous events.

While the IEC 61508 standard itself does not explicitly detail RTC specifications, it emphasizes the importance of systematic capability and cybersecurity strength, which can be influenced by the accuracy and reliability of an RTC within a safety system. The standard's focus on detailed analysis of hardware design, including design margins that result in random failure rates in all failure modes, indirectly points to the need for robust RTCs that can meet the stringent requirements of safety-critical applications.

International Standards for Real-Time Clocks (RTCs)

RTCs are subject to various international standards that ensure their reliability, accuracy, and interoperability in different devices and systems. One of the key standards for RTCs is the ISO 8601 standard, which specifies the representation of dates and times. This helps in ensuring that RTCs across different systems can represent time consistently.

Another important set of standards comes from the Institute of Electrical and Electronics Engineers (IEEE). The IEEE 1588 standard, also known as Precision Time Protocol (PTP), is used for clock synchronization in networked distributed systems. This standard is particularly relevant for RTCs used in networks that require precise timing over Ethernet.

The International Electrotechnical Commission (IEC) also provides standards related to electronic devices, including RTCs. For example, the IEC 61508 standard is concerned with the functional safety of electrical/electronic/programmable electronic safety-related systems, which can include RTCs in safety-critical applications.

In addition to these, there are industry-specific standards that may apply to RTCs used in certain sectors. For instance, in the automotive industry, the Automotive Electronics Council (AEC) provides the AEC-Q100 standard, which defines the failure mechanism-based stress test qualification for integrated circuits, potentially including RTCs used in automotive electronics. For telecommunications equipment, standards such as those from the Telecommunications Industry Association (TIA) or European Telecommunications Standards Institute (ETSI) may be relevant to ensure that RTCs meet the specific requirements of this field. It's important to note that while there are standards that relate to the function and performance of RTCs, there may not be a single, dedicated international standard that applies exclusively to all aspects of RTC design and operation.

Related Links

Communication controllers and printed circuit boards are extensively tested at Hilscher in Germany.

当社は産業用通信を実現します。従来のフィールドバスからリアルタイム・イーサネット、そしてクラウドまで。当社のソリューションはマルチプロトコルに対応し、柔軟性と信頼性を備えています。当社のnetXソフトウェアとハードウェアの技術が機能する仕組みと、IIoTプラットフォームであるnetFIELDを使用してマシンデータへのアクセスを可能にする仕組みをご紹介します。

Two employees of Hilscher are talking about a draft on an iPad

産業用通信プロジェクトのインテグレーションパートナーをお探しですか。マルチプロトコル対応のnetXチップからIIoTアプリケーションまで - パートナー企業のネットワークでお客様に必要なサポートをお届けします。

A photo of the male and female customer support phone operator with different internationality
Customer Center / Sales Hilscher Gesellschaft für Systemautomation mbH

You've got questions? We've got the answers!