| 数据搜索系统,热门电子元器件搜索 |
|
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 |
|
链接网址 |
| 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 |