データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

AN3133 データシート(PDF) 29 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) 29 Page - STMicroelectronics

Back Button AN3133 Datasheet HTML 25Page - STMicroelectronics AN3133 Datasheet HTML 26Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 29 / 43 page
background image
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.



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