| 数据搜索系统,热门电子元器件搜索 |
|
ADE7169ASTF16 数据表(PDF) 115 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE7169ASTF16 数据表(HTML) 115 Page - Analog Devices |
|
115 / 140 page ![]() Preliminary Technical Data ADE7169F16 Rev. PrD | Page 115 of 140 (TIMECON, 0xA1) to ensure that the RTC is stopped before writing the counter registers. Then the RTC should be started again by setting the RTCEN bit. Note that it takes up to two 32 kHz clock periods to update the RTC counter SFRs. This can be accomplished using the following 8052 assembly code where the current time is held in R0 through R3. SetupRTC: MOV TIMECON,#040h ; stop the RTC ; wait at least one 32 kHz clock period (30.5us) MOV TCON, #03h ; TL0 is an 8-bit timer MOV TL0,#00h ; waits 62.5us at 4.096MHz CLR TF0 ; clear overflow flag SETB TR0 ; start Timer0 Timeout: JNZ TF0, Timeout MOV HTHSEC, R0 ; using Bank 0 MOV SEC, R1 MOV MIN, R2 MOV HOUR, R3 MOV TIMECON, #041h ; start the RTC |
|
链接网址 |
| 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 |