分享到plurk 分享到twitter 分享到facebook

版本 ce8887a52780f5e46945c48dd05dd8ed52bae5c5

embedded/RTC

Introduction

A real-time clock (RTC) is a computer clock that keeps track of the current time. RTCs are also present in almost any electronic device that requires accurate time keeping. The real-time clock (RTC) embedded in STM32 microcontrollers acts as an independent BCD timer/ counter.

Features

  • Calendar

  • Alarm

  • Auto wakeup

  • Timestamp

  • Tamper detection

  • Programmable daylight saving time

  • Didigal calibration

  • Synchronization

  • Reference clock detection

  • Backup register

  • Alternative function IO

Clock Source

LSI RC : 32 kHz

LSE OSC : 32.768 kHz

HSE OSC : 4-26 MHz

.. image:: /stm32F4 RTC clock source

Prescaler

Prescaler generates the clock to update update the calendar.

To minimize power comsuption the prescaler is split into two prescalers, asynchronous and synchronous. It is recommended to configure the asynchronous prescaler to a high value to minimize consumption.

asynchronous prescaler clocks subsecond of calendar and propagate to synchronous prescaler to update date and time by second.

Configuration