09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> Real-time clock (RTC)<br />

23 Real-time clock (RTC)<br />

This section applies to the whole STM32F4xx family, unless otherwise specified.<br />

23.1 Introduction<br />

The real-time clock (RTC) is an independent BCD timer/counter. The RTC provides a timeof-day<br />

clock/calendar, two programmable alarm interrupts, and a periodic programmable<br />

wakeup flag with interrupt capability. The RTC also includes an automatic wakeup unit to<br />

manage low power modes.<br />

Two 32-bit registers contain the seconds, minutes, hours (12- or 24-hour format), day (day of<br />

week), date (day of month), month, and year, expressed in binary coded decimal format<br />

(BCD). The sub-seconds value is also available in binary format.<br />

Compensations for 28-, 29- (leap year), 30-, and 31-day months are performed<br />

automatically. Daylight saving time compensation can also be performed.<br />

Additional 32-bit registers contain the programmable alarm subseconds, seconds, minutes,<br />

hours, day, and date.<br />

A digital calibration feature is available to compensate for any deviation in crystal oscillator<br />

accuracy.<br />

After power-on reset, all RTC registers are protected against possible parasitic write<br />

accesses.<br />

As long as the supply voltage remains in the operating range, the RTC never stops,<br />

regardless of the device status (Run mode, low power mode or under reset).<br />

Doc ID 018909 Rev 3 620/1416

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!