| Electronic Components Datasheet Search |
|
AN3371 Datasheet(PDF) 14 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3371 Datasheet(HTML) 14 Page - STMicroelectronics |
|
14 / 45 page ![]() Overview of the STM32 advanced RTC AN3371 14/45 Doc ID 018624 Rev 5 1.3 RTC periodic wakeup unit Like many STMicroelectronics microcontrollers, the STM32 provides several low power modes to reduce the power consumption. The STM32 features a periodic timebase and wakeup unit that can wake up the system when the STM32 operates in low power modes. This unit is a programmable downcounting auto-reload timer. When this counter reaches zero, a flag and an interrupt (if enabled) are generated. The wakeup unit has the following features: ● Programmable downcounting auto-reload timer. ● Specific flag and interrupt capable of waking up the device from low power modes. ● Wakeup alternate function output which can be routed to RTC_ALARM output (unique pad for alarm A, alarm B or Wakeup events) with configurable polarity. ● A full set of prescalers to select the desired waiting period. 1.3.1 Programming the Auto-wakeup unit Table 7 describes the steps required to configure the Auto-wakeup unit. Table 7. Steps to configure the Auto-wakeup unit Step What to do How to do it Comments 1 Disable the RTC registers Write protection Write "0xCA" and then "0x53" into the RTC_WPR register RTC registers can be modified 2 Disable the wakeup timer. Clear WUTE bit in RTC_CR register 3 Ensure access to Wakeup auto-reload counter and bits WUCKSEL[2:0] is allowed. Poll WUTWF until it is set in RTC_ISR It takes approximately 2 RTCCLK clock cycles 4 Program the value into the wakeup timer. Set WUT[15:0] in RTC_WUTR register See Section 1.3.2: Maximum and minimum RTC wakeup period 5 Select the desired clock source. Program WUCKSEL[2:0] bits in RTC_CR register 6 Re-enable the wakeup timer. Set WUTE bit in RTC_CR register The wakeup timer restarts downcounting 7 Enable the RTC registers Write protection Write "0xFF" into the RTC_WPR register RTC registers can no more be modified |
|
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 |