6.3.4.1 General Description
The RTC is driven by the 32-kHz oscillator and it provides the alarm and time-keeping functions.
The main functions of the RTC block are:
- Time information (seconds, minutes, hours) in binary-coded decimal (BCD) code
- Calendar information (day, month, year, day of the week) in BCD code up to year 2099
- Programmable interrupts generation; the RTC can generate two interrupts:
- Timer interrupts periodically (1-second, 1-minute, 1-hour, or 1-day periods), which can be masked during the SLEEP state to prevent the host processor from waking up
- Alarm interrupt at a precise time of the day (alarm function)
- Oscillator frequency calibration and time correction with 1/32768 resolution
Figure 6-7 shows the RTC block diagram.