RTC Real-Time clock-backup area bkp--principle explanation

Source: Internet
Author: User
Tags time and date

RTC (Real Time clock): Realtime clock

BCD code: 4-bit 2 binary to represent the decimal form within 10.

RTC Clock Source: LSE (32.768KHZ), HSE_RTC, LSI. After a precise calibration (RTC_CALR). The 7-bit prescaler is then divided (rtc_prer, default 127+1=128) to produce a ck_apre () clock. Again after a rough calibration (RTC_CALPR). Then go through Rtc_prer (a synchronous 15-bit Prescaler (default value =256), Shadow Register (RTC_SSR)). Then, generate a Ck_spre (default 1HZ) for the true RTC core clock, then, provide a 1HZ frequency to the calendar (shadow Register, RTC_TR,RTC_DR, is the time and date register). Synchronous 15-bit Prescaler Shadow register (RTC_SSR's clock comes from Ck_apre, its initial value is from Rtc_prer, assuming 256, when it counts to zero, then ck_apre produces 256 times, and Ck_ Spre only produces one time to go to the calendar) and the calendar's shadow register determines the exact time. Alarms are generated when the time of alarm A or B is equal to the calendar time.

The following is automatic wakeup: the clock source is precision calibrated (RTC_CALR), then wucksel[1:0], and output to the clock selector. Then go to Rtc_wutr (16-bit wake-up auto reload Register). When the auto-mount Register is set to a value, such as 100, when it is reduced to 0, the Wutf is awakened, the flag is turned on, and the interrupt is generated.

Backup Register BKP

RTC Common Registers

RTC Real-Time clock-backup area bkp--principle explanation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.