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

X  

AN3133 数据表(PDF) 31 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) 31 Page - STMicroelectronics

Back Button AN3133 Datasheet HTML 27Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 43 page
background image
AN3133
Application examples
Doc ID 16956 Rev 5
31/43
6.2
Example 2: Wakeup from low power mode
This example explains how to use the STM8L15xx LCD embedded controller to drive the
LCD glass mounted on STM8L1526-EVAL and STM8L1528-EVAL boards and how to exit
the MCU from Active-halt mode using the wakeup unit.
This example is delivered within the STM8L05x/STM8L15x/STM8L16x/STM8AL31x/
STM8AL3Lx standard peripheral library available from http://wwwst.com/stm8l (documents
and files for the STM8L family). It is located at
STM8l15x_StdPeriph_Lib.zip\Project\STM8L15x_StdPeriph_Examples\LCD\
LCD_SegmentsDrive\.
This example performs the following actions:
1.
The first step consists in displaying an ‘STM8L’ string on the LCD display in scrolling
mode.
2.
The ‘LP MODE’ string is then displayed, and the MCU enters Active-halt mode.
3.
After 20 seconds the MCU is woken up from Active-halt mode by the RTC wakeup
event and continues processing.
4.
These steps are executed in an infinite loop.
The flowcharts of this example are presented in Figure 16 and Figure 17.
Figure 16.
Wakeup from low power mode example: main program flowchart
Init LCD Glass
Display the ‘STM8L’ string on
LCD glass in scrolling mode
Display ‘LP MODE’ string on LCD
glass and Enter Active-halt mode
Set RTC wake up counter to
20 ticks (20 s)
Enab le RTC clock
Init RTC wake up unit clock
(1 counter tick = 1 second)
Enable Wakeup unit interrupt
Enable the Wakeup unit
START Main Program
ai17272
Disable the Wakeup unit



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