| 전자부품 데이터시트 검색엔진 |
|
AN3133 데이터시트(PDF) 6 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3133 데이터시트(HTML) 6 Page - STMicroelectronics |
|
6 / 43 page ![]() Real-time clock overview AN3133 6/43 Doc ID 16956 Rev 5 1 Real-time clock overview The real-time clock (RTC) embedded in the STM8L05xxx/STM8L101xx/STM8L15xxx/ STM8L162xx/STM8AL31xx/STM8AL3Lxx microcontrollers (referred to in this document as STM8L/STM8AL) can be used to provide a full-featured calendar, alarm and periodic wakeup unit. Additional features are available on medium+ and high density devices, such as calendar synchronization, digital calibration and advanced tamper detection. Refer to Section 4: RTC features summary for the complete list of features available on medium, medium+ and high density devices. 1.1 RTC calendar A calendar keeps track of the time (hours, minutes, seconds and sub-seconds) and date (day, week, month, year). The STM8L/STM8AL RTC calendar offers many features to easily configure and display the calendar data fields: ● Calendar with seconds, minutes, hours in 12-hour or 24-hour format, day of the week (day), day of the month (date), month, and year. ● Calendar in BCD (binary-coded decimal) format ● Sub-second field in binary format, on medium+ and high density devices ● Automatic management of 28-, 29- (leap year), 30-, and 31-day months ● Daylight saving time adjustment programmable by software Figure 1. STM8L/STM8AL RTC calendar fields 1. RCT_DRx, RTC_TRx and RTC_SSRx are RTC registers. 2. RTC_SSRx registers are read only. A software calendar can be a kind of software counter (usually 32 bits long) which represents the number of seconds. Software routines convert the counter value to hours, minutes, day of the month, day of the week, month and year. These data can be converted to BCD format and displayed on a standard LCD which is particularly useful in countries where the hours are displayed in 12-hour format plus an AM/PM indicator (see Figure 2). Conversion routines use significant program memory space and are CPU-time consuming which may be critical in certain real-time applications. When using the STM8L/STM8AL RTC calendar, software conversion routines are no longer needed because their functions are performed by hardware. RTC_DR1 RTC_DR3 12h or 24h format Date ai17262 RTC_DR2 RTC_TR3 RTC_TR2 Week date Month Year - AM - PM hh mm s RTC_TR1 DATE TIME ss RTC_SSRx |
|
링크 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 |