Electronic Components Datasheet Search
  English  ▼

X  

AN3371 Datasheet(PDF) 41 Page - STMicroelectronics

Part # AN3371
Description  Using the hardware real-time clock
PDF  45 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3371 Datasheet(HTML) 41 Page - STMicroelectronics

Back Button AN3371 Datasheet HTML 37Page - STMicroelectronics AN3371 Datasheet HTML 38Page - STMicroelectronics AN3371 Datasheet HTML 39Page - STMicroelectronics AN3371 Datasheet HTML 40Page - STMicroelectronics AN3371 Datasheet HTML 41Page - STMicroelectronics AN3371 Datasheet HTML 42Page - STMicroelectronics AN3371 Datasheet HTML 43Page - STMicroelectronics AN3371 Datasheet HTML 44Page - STMicroelectronics AN3371 Datasheet HTML 45Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 41 / 45 page
background image
AN3371
Application examples
Doc ID 018624 Rev 5
41/45
4
Application examples
The RTC firmware driver is provided with a set of examples, so that you can quickly become
familiar with the RTC peripheral.
This section provides descriptions of examples that are delivered within the STM32F2xx,
STM32F4xx and STM32L1xx Standard Peripherals Libraries available from
http://www.st.com/.
For the STM32F2xx family, the examples can be found in the following directory:
STM32F2xx_StdPeriph_Lib_vX.Y.Z\Project\STM32F2xx_StdPeriph_Examples\RTC\
For the STM32L1xx family, the examples can be found in the following directory:
STM32L1xx_StdPeriph_Lib_vX.Y.Z\Project\STM32L1xx_StdPeriph_Examples\RTC\
For the STM32F4xx family, the examples can be found in the following directory:
STM32F4xx_StdPeriph_Lib_vX.Y.Z\Project\STM32F4xx_StdPeriph_Examples\RTC\
For the STM32F0xx family, the examples can be found in the following directory:
STM32F0xx_StdPeriph_Lib_vX.Y.Z\Project\STM32F0xx_StdPeriph_Examples\RTC\
For the STM32F3xx family, the examples can be found in the following directory:
STM323F3xx_StdPeriph_Lib_vX.Y.Z\Project\STM32F3xx_StdPeriph_Examples\RTC\
Table 17.
Example descriptions
Example
Description
Covered features
RTC Hardware
Calendar (1)
This example describes how to use the RTC peripheral calendar
features: seconds, minutes, hours (12 or 24 format), day, date, month,
and year.
As an application example, it demonstrates how to set up the RTC
peripheral, in terms of prescaler and interrupts to be used to keep time
and to generate an alarm interrupt.
– Hardware calendar
– Alarm (interrupt)
– Prescalers
– RTC backup registers
RTC Backup
domain (2)
This example demonstrates and explains how to use the peripherals
available on the Backup domain. These peripherals are the RCC
BDCR register containing the LSE oscillator configuration and the RTC
Clock enable/disable bits.
This example embeds the RTC peripheral and its associated Backup
Data registers, and the Backup SRAM (4KB) with its low power
regulator (which enables it to preserve its contents when the product is
powered by VBAT pin).
As an application example, it demonstrates how to set up the RTC
hardware calendar, and read/write operations for RTC Backup Data
registers and BKPSRAM (Backup SRAM).
– RTC Backup registers
– Backup SRAM
– Low power regulator
for Backup SRAM
– Hardware calendar
– Wakeup (interrupt)
Auto calibration
using LSI
This example demonstrates and explains how to use the LSI clock
source auto calibration to get a precise RTC clock.
The Low Speed Internal (LSI) clock is used as the RTC clock source.
The RTC WakeUp is configured to generate an interrupt each 1s. The
WakeUp counter is clocked by the RTC CK_SPRE signal (1Hz) and its
counter is set to zero.
– Prescalers
– RTC backup registers
– Hardware calendar
– Wakeup (interrupt)



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 44 45


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