![Marvell PXA300 Developer'S Manual Download Page 392](http://html.mh-extra.com/html/marvell/pxa300/pxa300_developers-manual_1734615392.webp)
69rlq62d-f714peg4 * Memec (Headquar
ter
s) - Unique
Tec
h,
Insight,
Impact
MAR
VELL CONFIDENTIAL,
UNDER ND
A# 12101050
69rlq62d-f714peg4 * Memec (Headquar
ter
s) - Unique
Tec
h,
Insight,
Impact
MAR
VELL CONFIDENTIAL,
UNDER ND
A# 12101050
69r
lq62d-f714peg4 * Memec (Headquar
ters) - Unique
T
ech, Insight, Impact * UNDER ND
A# 12101050
MAR
VELL CONFIDENTIAL - UNA
UTHORIZED DISTRIB
UTION OR USE STRICTL
Y PR
OHIBITED
PXA300 Processor and PXA310 Processor
Vol. I: System and Timer Configuration Developers Manual
Doc. No. MV-TBD-00 Rev. A
CONFIDENTIAL
Copyright © 12/13/06 Marvell
Page 392
Document Classification: Proprietary Information
December 13, 2006
Not approved by Document Control. For review only.
Note:
The Day-of-Month (DOM) field is a special case. Depending on the month and the type of year,
the validity of the data in this field varies.
lists the valid values for this field for each
month.
For the months January, March, May, July, August, October, and December, the count can go from 1 to 31,
because there are 31 days in these months. Because 31 is the maximum decimal number for the DOM field, five
bits are needed to represent this number. Zero is the only invalid data for these months.
For the months April, June, September, and November, the count goes from 1 to 30, because there are only 30
days in these particular months. The invalid data in this case is 31 and zero.
If the year is a leap year, the count in February goes from 1 to 29; and the invalid data in this case is 30, 31, and
zero. If the year is not a leap year, the count in February goes from 1 to 28; therefore, the invalid data in this case
is 29, 30, 31, and zero.
13.5.2.3
Effects of Data Written to Wristwatch Register Fields
This section describes the effects of writing the wristwatch register fields with valid and invalid data. The
discussion is separated for counter registers and alarm registers. Zero and non-zero data is described separately
for the alarm registers.
13.5.2.3.1
Writing Counter Registers with Valid Data
The counter registers are updated only for a write to the RTC Day Counter register (RDCR). When software
writes to the RYCR register, the new RYCR value is stored in an internal register. This new RYCR value is only
written into the RYCR register after a write to the RDCR occurs. If a write to the RDCR is not issued, the new
RYCR value in the internal register is never written into RYCR, and users would read the original RYCR register
value.
13.5.2.3.2
Writing Counter Registers with Invalid Data
Any attempt to write invalid data to the counter registers results in unpredictable behavior.
Valid and correct data must be written to the Wristwatch registers (RDCR and RYCR) initially. Subsequently, the
registers are to be treated as read-only registers. The RDCR and RYCR registers rarely need to be updated after
they receive an initial write of valid data.
Table 13-4. Valid Data for Day of Month (DOM) Field In RYCR
Month
Year Valid
Data
Invalid
Data
January,
March, May,
July, August,
October,
December
Any
1 to 31
0
April, June,
September,
November
Any
1 to 30
0,31
February
Leap Year
1 to 29
0,30,31
Nonleap Year
1 to 28
0,29,30,31