NO:
W90P710 Programming Guide
VERSION:
2.0
PAGE:
185
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
(b)
FCR
fraction(RTC_FCR bit 5:0): Formula: FCR_int = (fraction part of detected value) X 60
Example 1,
Frequency counter measurement : 32773.65Hz
Integer part : 32773 => FCR [11:8] = 0xc
Fraction part : 0.65 X 60 = 39 (0x27) => FCR[5:0]=0x27
Example 2,
Frequency counter measurement : 32765.27Hz
Integer part : 32765 =>
FCR [11:8] = 0x4
Fraction part : 0.27 X 60 = 16.2 (0x10) => FCR [5:0] = 0x10
z
In
TLR
and
TAR
, only 2 BCD digits are used to express “year”. We assume 2 BCD digits of XY
denote 20XY ,but not 19XY or 21XY.
15.5 Programming Note
15.5.1.1
Set Calendar and Time
1.
When 710 RTC block is power on, programmer has to write a number 0xa5eb1357
to
INIR
to reset all logic RTC
2.
Read register
INIR
bit 0 if INIR0 equals to 1 means RTC has been set
3.
Write 0xa965 to
AER
means enable RTC access enable/disable password
4.
Read register
AER
bit 0, RTC is read/write enable if it’s equal to 1
5.
Set register
TSSR
bit 1 select to 24-hour time scale test
6.
Set year, month and day to register
CLR
7.
Set day of week to register
DWR
8.
Set hour, minute and second to register
TLR
9.
Write 0x0 to
AER
means disable RTC access enable/disable password