| Electronic Components Datasheet Search |
|
AN3133 Datasheet(PDF) 29 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3133 Datasheet(HTML) 29 Page - STMicroelectronics |
|
29 / 43 page ![]() AN3133 Application examples Doc ID 16956 Rev 5 29/43 6 Application examples STM8L/STM8AL RTC firmware is provided with a set of examples so that the user can quickly become familiar with the firmware library. This section provides five examples: ● The first one shows how to configure and display calendar and alarm settings. ● The second example shows how to configure wakeup unit in low power mode. ● The third example shows how to generate wakeup events at a frequency higher than 1 Hz. ● The fourth example shows how to use the tamper detection features. ● The fifth example shows how to use calendar and tamper detect features to implement an accurate chronometer. 6.1 Example 1: Calendar and alarm This example provides a short description of how to use the RTC peripheral calendar features: seconds, minutes, hours (12 or 24 format), day, date, month, and year. 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\RTC\RTC_WakeupLPMode\ This example runs on both the STM8L1526-EVAL and STM8L1528-EVAL boards. It enables configuring the RTC calendar and alarm and displaying their values in real-time using the LCD and joystick. After power-up, the default date and time are displayed on the LCD. The user can then modify the date, time and alarm using the joystick buttons. When an alarm occurs, a message is displayed on the LCD, and the LEDs toggle for a second. The flowcharts of this example are presented in Figure 14 and Figure 15. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |