EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #363 background imageLoading...
Page #363 background image
UM1581
Real-time clock (RTC)
DocID023800 Rev 1
363/584
All RTC interrupts are connected to the EXTI controller.
ï‚· To enable the RTC Alarm interrupt, the following sequence is required:
 Configure and enable the EXTI Line 17 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
 Configure and enable the RTC_Alarm IRQ channel in the NVIC using the
NVIC_Init() function.
 Configure the RTC to generate RTC alarms (Alarm A and/or Alarm B) using the
RTC_SetAlarm() and RTC_AlarmCmd() functions.
ï‚· To enable the RTC Wakeup interrupt, the following sequence is required:
 Configure and enable the EXTI Line 20 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
 Configure and enable the RTC_WKUP IRQ channel in the NVIC using the
NVIC_Init() function.
 Configure the RTC to generate the RTC wakeup timer event using the
RTC_WakeUpClockConfig(), RTC_SetWakeUpCounter() and
RTC_WakeUpCmd() functions.
ï‚· To enable the RTC Tamper interrupt, the following sequence is required:
 Configure and enable the EXTI Line 19 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
 Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the
NVIC_Init() function.
 Configure the RTC to detect the RTC tamper event using the
RTC_TamperTriggerConfig() and RTC_TamperCmd() functions.
ï‚· To enable the RTC TimeStamp interrupt, the following sequence is required:
 Configure and enable the EXTI Line 19 in interrupt mode and select the rising
edge sensitivity using the EXTI_Init() function.
 Configure and enable the TAMP_STAMP IRQ channel in the NVIC using the
NVIC_Init() function.
 Configure the RTC to detect the RTC time-stamp event using the
RTC_TimeStampCmd() functions.
ï‚· RTC_ITConfig()
ï‚· RTC_GetFlagStatus()
ï‚· RTC_ClearFlag()
ï‚· RTC_GetITStatus()
ï‚· RTC_ClearITPendingBit()
19.2.12 Time and Date configuration functions
This section provide functions allowing to program and read the RTC Calendar (Time and
Date).
ï‚· RTC_SetTime()
ï‚· RTC_TimeStructInit()
ï‚· RTC_GetTime()
ï‚· RTC_GetSubSecond()
ï‚· RTC_SetDate()
ï‚· RTC_DateStructInit()
ï‚· RTC_GetDate()
19.2.13 Alarms (Alarm A and Alarm B) configuration functions
This section provides functions allowing to program and read the RTC Alarms.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F31xx and is the answer not in the manual?

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals