| Electronic Components Datasheet Search |
|
AN3371 Datasheet(PDF) 41 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3371 Datasheet(HTML) 41 Page - STMicroelectronics |
|
41 / 45 page ![]() 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) |
|
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 |