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
Real-Time Clock (RTC)
Copyright © 12/13/06 Marvell
CONFIDENTIAL
Doc. No. MV-TBD-00 Rev. A
December 13, 2006
Document Classification: Proprietary Information
Page 405
Not approved by Document Control. For review only.
13.6.6
Stopwatch Alarm Registers (SWARx)
SWARx, defined in
, are 32-bit registers. Following each rising edge of the 1-Hz clock, these
registers are compared to the SWCR. If either register matches, and the corresponding stopwatch alarm-enable
bit (RTSR[SWALE1/2]) is set, the RTC controller logic sets the corresponding stopwatch alarm-detect bit
(RTSR[SWAL1/2]). The stopwatch 100
th
counter is clocked with a 100-Hz clock signal and increments at each
rising edge of the 100-Hz clock signal. The stopwatch seconds, minutes and hours are clocked based on the
trimmer 1-Hz clock. Notice that because the 100
th
and seconds fields of the stopwatch are not clocked by the
same source the 100
th
value is not completely accurate.
Note: Both the SWAR1/2 registers must be programmed in pairs. If only one is used, the other register must be
programmed to a max value of 0xFFFF_FFFF to prevent any spurious wakeups.
These are read/write registers. Ignore reads from reserved bits. Write 0b0 to reserved bits.
13.6.7
Periodic Interrupt Alarm Register (PIAR)
PIAR, defined in
, is a 32-bit register. Following each rising edge of the 1-kHz clock, this register is
compared to the RTCPICR. If the two are equal and RTSR[PIALE] is set, then RTSR[PIAL] is set and the
periodic interrupt counter and RTCPICR are reset to zero. This process repeats as long as the count-enable
RTSR[PICE] remains set.
Any write to the PIAR resets the periodic-interrupt counter and RTCPICR to zero. The RTSR[PICE] bit must be
enabled only after PIAR is written with new data. There must be at least two CPU cycles delay between the two
actions.
Note:
Zero is a non-valid value for the PIAR and yields unpredictable results. The maximum value that
can be written is 65535.
This is a read/write register. Ignore reads from reserved bits. Write 0b0 to reserved bits.
Table 13-10. SWARx Bit Definitions
Physical Address
0x4090_002C
0x4090_0030
SWAR1
SWAR2
RTC Controller
User
Settings
Bit
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
0
reserved
HOURS
MINUTES
SECONDS
HUNDRETHS
Reset
?
?
?
?
?
?
?
?
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Bits
Access
Name
Description
31:24
—
—
reserved
23:19
R/W
HOURS
Match value for the stopwatch time in hours
18:13
R/W
MINUTES
Match value for the stopwatch time in minutes
12:7
R/W
SECONDS
Match value for the stopwatch time in seconds
6:0
R/W
HUNDRETHS
Match value for the stopwatch time in hundredths of a second