You are here

AN96667 - PSoC® Real-Time Clock Based on Power-Line Frequency | Cypress Semiconductor

AN96667 - PSoC® Real-Time Clock Based on Power-Line Frequency

Last Updated: 
Apr 28, 2017

AN96667 describes how to design an accurate real-time clock for PSoC® 3, PSoC 4, and PSoC 5LP MCUs using the 50/60-Hz frequency of the mains (utility) AC power line as the time base. It also explains how to use a 32.768-kHz watch crystal as a backup time base in case of a mains power failure.


Accurate timekeeping is a vital requirement for applications that need to perform operations at a certain time of day (for example, automated control of street lights), store the timestamp of events (such as energy meters and data acquisition devices), or display the time and date (such as a digital wall clock).These applications use a real-time clock (RTC) to generate and keep track of time. RTCs should be accurate, low cost, and low power and consume minimal printed circuit board (PCB) space.

Dear valued customer,

Thank you for choosing our products. They come with all the know-how and passion that our engineers have put into it. As you probably already know, Cypress is now Infineon. This is a major step for our company, but also for the good of you. 

Reliability and business continuity are of utmost importance for us. Hence, we remain fully committed to honoring existing customer and distributor relationships. This includes offering the legacy Cypress product portfolio. We thank you very much for your trusting support.

For the full version of this message, please download the PDF version.