전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

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
Logo 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


링크 URL



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