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

X  

AN3060 데이터시트(PDF) 21 Page - STMicroelectronics

부품명 AN3060
상세설명  Applications guide for serial real-time clocks
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3060 데이터시트(HTML) 21 Page - STMicroelectronics

Back Button AN3060 Datasheet HTML 15Page - STMicroelectronics AN3060 Datasheet HTML 16Page - STMicroelectronics AN3060 Datasheet HTML 17Page - STMicroelectronics AN3060 Datasheet HTML 18Page - STMicroelectronics AN3060 Datasheet HTML 19Page - STMicroelectronics AN3060 Datasheet HTML 20Page - STMicroelectronics AN3060 Datasheet HTML 21Page - STMicroelectronics AN3060 Datasheet HTML 22Page - STMicroelectronics AN3060 Datasheet HTML 23Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 21 / 23 page
background image
AN3060
RTC initialization
Doc ID 16253 Rev 2
21/23
Power-up from backup
Coming out of backup, the first thing to do is read the time. Prior to clearing the HT bit, the
RTC's buffer/transfer registers will contain the time of power down. If the duration of power
outage is needed by the application, the time of power down will be required. Otherwise,
this step can be skipped.
The next step is to clear the HT bit by writing it to 0. It is very important that the HT bit be
cleared prior to writing any of the timekeeping registers (addresses 0x00 to 0x07). Failure to
do so can resulting in corrupting the RTC counters.
If, at this point in the application flow, the present time is required, the time would be read.
With the HT bit clear, the present time will be returned by a read.
Upon servicing any interrupts from the RTC - e.g., alarm or OF - the flags register must be
cleared. Most of the flag bits clear upon reading, but the OF bit must be written to 0. Also,
the user should bear in mind that clearing the alarm flags (AF1, AF2) and oscillator fail flag
(OF) will clear the associated interrupt.
Figure 12.
Power-up from backup
Watchdog and timer
Lastly, power cycling always leaves the watchdog and timer disabled. If either is being used
by the application, they will need to be re-initialized.
Clear HT bit
Optional: Read time/date
(present time).
off_duration = present_time –
time_of-power-down
Clear any flags (read flags register)
Optional: Re-initialize watchdog.
Optional: Re-enable / Re-initialize
timer.
Optional: Read time/date
(time of power-down).
Power-up from backup
END
AM04730v1



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


데이터시트 다운로드

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