| 전자부품 데이터시트 검색엔진 |
|
AN3133 데이터시트(PDF) 31 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3133 데이터시트(HTML) 31 Page - STMicroelectronics |
|
31 / 43 page ![]() 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 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |