数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN3133 数据表(PDF) 32 Page - STMicroelectronics

部件名 AN3133
功能描述  A real-time clock is a computer clock that keeps track of the current time
PDF  43 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN3133 数据表(HTML) 32 Page - STMicroelectronics

Back Button AN3133 Datasheet HTML 28Page - STMicroelectronics AN3133 Datasheet HTML 29Page - STMicroelectronics AN3133 Datasheet HTML 30Page - STMicroelectronics AN3133 Datasheet HTML 31Page - STMicroelectronics AN3133 Datasheet HTML 32Page - STMicroelectronics AN3133 Datasheet HTML 33Page - STMicroelectronics AN3133 Datasheet HTML 34Page - STMicroelectronics AN3133 Datasheet HTML 35Page - STMicroelectronics AN3133 Datasheet HTML 36Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 32 / 43 page
background image
Application examples
AN3133
32/43
Doc ID 16956 Rev 5
Figure 17.
Wakeup from low power mode example: RTC ISR flowchart
6.3
Example 3: Periodic event generation using the wakeup unit
This example explains how to configure the RTC periodic wakeup unit event to toggle LEDs
every 500 ms.
The LSE clock is the RTCCLK source (default RTC clock) and the wakeup timer clock
selection is configured to RTCCLK/16 (WUCKSEL[2:0]= 000b) to obtains a wakeup period
resolution of 488.28125 µs. The wakeup unit 16-bit timer downcounter is loaded with 1023
to generate a periodic event every 500 ms (see equation below).
Periodic event = (Timer_DownCounter +1) x Timer_resolution = 1024 step = 500 ms
This example is delivered within the STM8L05x/STM8L15x/STM8L16x/STM8AL31x/
STM8AL3Lx standard peripheral library available from
STM8l15x_StdPeriph_Lib.zip\Project\STM8L15x_StdPeriph_Examples\RTC\RTC_Periodic
Wakeup500ms\
6.4
Example 4: Tamper detection
This example provides a short description of how to use the RTC peripheral's tamper
detection features: sample duration, filter, and number of samples to wait for before the
Tamper event.
The user can manipulate the application using the Tamper, Key and Joystick navigation
buttons.
After startup, 2 counters (00:000 00:000) are displayed on the LCD. Both of them consist of
2 fields [seconds on 2 digits]:[milliseconds on 3 digits].
The first counter is used to store the time when the key button is pressed.
The second counter is used to display the current time.
Clear wakeup
interrupt pending bit
Return to the Main program
RTC Interrupt Routine
ai17273



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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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