| Electronic Components Datasheet Search |
|
AN2629 Datasheet(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2629 Datasheet(HTML) 16 Page - STMicroelectronics |
|
16 / 43 page ![]() Real-time clock (RTC) AN2629 16/43 Doc ID 13922 Rev 2 3 Real-time clock (RTC) 3.1 Introduction The real-time clock is an independent timer. The RTC provides a set of continuously-running counters which can be used, with suitable software, to provide a clock-calendar function. The counter values can be written to set the current time/date of the system. 3.2 Main features ● Programmable prescaler: division factor up to 220 ● 32-bit programmable counter for long-term measurement ● Two separate clocks: PCLK1 for the APB1 interface and RTC clock (must be at least four times slower than the PCLK1 clock) ● Two separate reset types: – The APB1 interface is reset by system reset – The RTC Core (Prescaler, Alarm, Counter and Divider) is reset only by a Backup domain reset (see “Backup domain reset” section in the STM32F10xxx reference manual). ● Three dedicated maskable interrupt lines: – Alarm interrupt, for generating a software programmable alarm interrupt. – Seconds interrupt, for generating a periodic interrupt signal with a programmable period length (up to 1 second). – Overflow interrupt, to detect when the internal programmable counter rolls over to zero. 3.3 Functional description 3.3.1 Overview The RTC consists of two main units (see Figure 3 on page 17). The first one (APB1 Interface) is used to interface with the APB1 bus. This unit also contains a set of 16-bit registers accessible from the APB1 bus in read or write mode. The APB1 interface is clocked by the APB1 bus clock in order to interface with the APB1 bus. The other unit (RTC Core) consists of a chain of programmable counters made of two main blocks. The first block is the RTC prescaler block, which generates the RTC time base TR_CLK that can be programmed to have a period of up to 1 second. It includes a 20-bit programmable divider (RTC Prescaler). Every TR_CLK period, the RTC generates an interrupt (Second Interrupt) if it is enabled in the RTC_CR register. The second block is a 32-bit programmable counter that can be initialized to the current system time. The system time is incremented at the TR_CLK rate and compared with a programmable date (stored in the RTC_ALR register) in order to generate an alarm interrupt, if enabled in the RTC_CR control register. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |