Electronic Components Datasheet Search
  English  ▼

X  

AN2629 Datasheet(PDF) 16 Page - STMicroelectronics

Part # AN2629
Description  low-power modes
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2629 Datasheet(HTML) 16 Page - STMicroelectronics

Back Button AN2629 Datasheet HTML 12Page - STMicroelectronics AN2629 Datasheet HTML 13Page - STMicroelectronics AN2629 Datasheet HTML 14Page - STMicroelectronics AN2629 Datasheet HTML 15Page - STMicroelectronics AN2629 Datasheet HTML 16Page - STMicroelectronics AN2629 Datasheet HTML 17Page - STMicroelectronics AN2629 Datasheet HTML 18Page - STMicroelectronics AN2629 Datasheet HTML 19Page - STMicroelectronics AN2629 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 43 page
background image
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.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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