This application note explains how to use the STR71x Real Time Clock (RTC) peripheral and demonstrates how to set up the RTC peripheral to keep track of time and date and generate alarm interrupts.
This document describes how to use the STR71x Real Time Clock (RTC) peripheral to maintain time and date, as well as to generate alarm interrupts. It details the configuration of the 32-bit binary counter and the prescaler to ensure the counter increments every second using a 32.768 kHz oscillator.
The document explains how to use the STR71x Real Time Clock (RTC) peripheral and demonstrates setting it up with a prescaler and interrupts.
The application note uses January 1, 1970 as the reference date, which is often referred to as Unix Epoch.
The algorithm rolls over on Tuesday, January 19, 03:14:07, 2038.
A prescaler value of 0x8000 (32768) is configured to achieve this frequency change.