NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
189
The above information is the exclusive intellectual property of Winbond Electronics and shall not be disclosed, distributed or reproduced without permission
from Winbond.
Table No.: 2005-W90P710-11-A
15.5.3 Set
tick
interrupt
1.
Set and prepare the ISR of RTC tick interrupt
2.
When 710 RTC block is power on, programmer has to write a number 0xa5eb1357
to
INIR
to reset all logic RTC
3.
Read register
INIR
bit 0 if INIR16 equals to 1 means RTC has been set
4.
Write 0xa965 to
AER
means enable RTC access enable/disable password
5.
Read register
AER
bit 0, RTC is read/write enable if it’s equal to 1
6.
Set the
TTR
for tick interrupt happen time interval per second
7.
Set the bit 1 of
RIER
for alarm interrupt enable
8.
Write 0x0 to
AER
means disable RTC access enable/disable password
Figure 15-4 RTC Set tick interrupt flow chart