Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

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

Back Button AN3371 Datasheet HTML 10Page - STMicroelectronics AN3371 Datasheet HTML 11Page - STMicroelectronics AN3371 Datasheet HTML 12Page - STMicroelectronics AN3371 Datasheet HTML 13Page - STMicroelectronics AN3371 Datasheet HTML 14Page - STMicroelectronics AN3371 Datasheet HTML 15Page - STMicroelectronics AN3371 Datasheet HTML 16Page - STMicroelectronics AN3371 Datasheet HTML 17Page - STMicroelectronics AN3371 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 45 page
background image
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



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