Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3371 Datasheet(PDF) 34 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) 34 Page - STMicroelectronics

Back Button AN3371 Datasheet HTML 30Page - STMicroelectronics AN3371 Datasheet HTML 31Page - STMicroelectronics AN3371 Datasheet HTML 32Page - STMicroelectronics AN3371 Datasheet HTML 33Page - STMicroelectronics AN3371 Datasheet HTML 34Page - STMicroelectronics AN3371 Datasheet HTML 35Page - STMicroelectronics AN3371 Datasheet HTML 36Page - STMicroelectronics AN3371 Datasheet HTML 37Page - STMicroelectronics AN3371 Datasheet HTML 38Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 34 / 45 page
background image
RTC firmware driver API
AN3371
34/45
Doc ID 018624 Rev 5
Note:
After a reset, the backup domain (RTC registers, RTC backup data registers and backup
SRAM) is protected against any possible unwanted write access. To enable access to the
RTC domain and RTC registers:
–
Enable the Power Controller (PWR) APB1 interface clock using the
RCC_APB1PeriphClockCmd() function.
–
Enable the access to the RTC domain using the PWR_BackupAccessCmd()
function on STM32F2xx and STM32F4xx devices, or the PWR_RTCAccessCmd()
function on STM32L1xx, STM32F0xx and STM32F3xx devices.
–
Select the RTC clock source using the RCC_RTCCLKConfig() function.
–
Enable RTC Clock using the RCC_RTCCLKCmd() function.
3.1.1
Time and date configuration
To configure the RTC Calendar (Time and Date), use the
RTC_SetTime() and
RTC_SetDate() functions.
To read the RTC Calendar, use the
RTC_GetTime(), RTC_GetDate() and
RTC_GetSubSecond() functions.
To add or subtract one hour to/from the RTC Calendar, use the
RTC_DayLightSavingConfig() function.
3.1.2
Alarm configuration
RTC Alarm
To configure the RTC alarm, use the
RTC_SetAlarm() function.
To enable the selected RTC alarm, use the
RTC_AlarmCmd() function.
To read the RTC alarm, use the
RTC_GetAlarm() function.
RTC Alarm Sub-second
To configure the RTC alarm sub-second, use the
RTC_AlarmSubSecondConfig() function.
To read the RTC alarm sub-second, use the
RTC_GetAlarmSubSecond() function.
3.1.3
RTC wakeup configuration
To configure the RTC Wakeup Clock source, use the
RTC_WakeUpClockConfig() function.
To configure the RTC WakeUp Counter, use the
RTC_SetWakeUpCounter() function.
To enable the RTC WakeUp, use the
RTC_WakeUpCmd() function.
To read the RTC WakeUp Counter register, use the
RTC_GetWakeUpCounter() function.



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