전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN3133 데이터시트(PDF) 8 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) 8 Page - STMicroelectronics

Back Button AN3133 Datasheet HTML 4Page - STMicroelectronics AN3133 Datasheet HTML 5Page - STMicroelectronics AN3133 Datasheet HTML 6Page - STMicroelectronics AN3133 Datasheet HTML 7Page - STMicroelectronics AN3133 Datasheet HTML 8Page - STMicroelectronics AN3133 Datasheet HTML 9Page - STMicroelectronics AN3133 Datasheet HTML 10Page - STMicroelectronics AN3133 Datasheet HTML 11Page - STMicroelectronics AN3133 Datasheet HTML 12Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 43 page
background image
Real-time clock overview
AN3133
8/43
Doc ID 16956 Rev 5
Example 1: If the user performs a negative shift in time of 100ms (to reach 03h25’32’’400),
he must subtract “102” subseconds (102 = 100 ms * 32768 / 32). This means that the sub-
second[15:0] field will be equal to 613 (511–(–102)).
This operation is performed by configuring:
RTC_SHIFTRH_ADD1S = 0 and
RTC_SHIFTRx_SUBFS[14:0] = 102
Example 2: If the user performs a positive shift in time of 100 ms (to reach the equivalent
03'25''32°600), he must add 1s–(1023-102 +1) sub-seconds, which means that the sub-
second[15:0] field will be equal to 1433 (511–(–(1023–102+1))) and the seconds field will be
equal to 33 (32+1). In this case, the user must take care about the fact that he will not read
3h25’32 in the time register right after the shift operation. He will read 3h25’33, with a sub-
second value = 1433
This operation is performed by configuring:
RTC_SHIFTRH_ADD1S = 1 and
RTC_SHIFTRx_SUBFS[14:0] = 1023 – 102 + 1 = 922
1.2
RTC alarm
An alarm can be generated at a given time or/and date programmed by the user.
The STM8L/STM8AL RTC provides a rich combination of alarms, and offers many features
to easily configure, and display these alarms:
Full programmable alarm: sub-seconds, seconds, minutes, hours and date fields can
be independently selected or masked to provide the user a rich combination of alarms.
Ability to exit the device from Active-halt mode when the alarm occurs.
The alarm event can be routed to a specific output pad with configurable polarity.
Dedicated alarm flag and interrupt.
Figure 3.
RTC alarm fields
1.
RTC_ALRMARx and RTC_ALRMASSRx are RTC registers.
2.
MSKx and MASKSS[3:0] are bits in the RTC_ALARMx and RTC_ALRMASSMSKR registers which
enable/disable the RTC_ALARMx fields used for alarm and calendar comparison. For more details refer to
Table 8.
ALARM
Alarm date
12h or 24h
format
ai17263
- Day of week
- Date
- AM
- PM
hh
mm
ss
Day of week
/Date
Alarm time
RTC_ALRMAR4
RTC_ALRMAR3 RTC_ALRMAR2
RTC_ALRMASSRx
MSK4
MSK3
MSK2
s
RTC_ALRMAR1
MSK1
MASKSS[3:0]



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