![Marvell PXA300 Developer'S Manual Download Page 389](http://html.mh-extra.com/html/marvell/pxa300/pxa300_developers-manual_1734615389.webp)
69rlq62d-f714peg4 * Memec (Headquar
ter
s) - Unique
Tec
h,
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 389
Not approved by Document Control. For review only.
As shown in
, when the data in the counter register and the alarm register are equal, the RTC
controller checks whether the corresponding alarm-enable bit in the RTSR has been set. If so, the corresponding
alarm-detect bit in the RTSR is set, indicating that an alarm has been detected. This information is forwarded to
the interrupt controller and to the power manager as shown in
. The corresponding alarm-detect bit in
the RTSR is cleared. This process is identical for all alarm-detection events.
lists the internal registers of the RTC controller and the module associated with each register. Refer to
for the location of each of these registers.
13.5.1
Timer Module
The timer module of the RTC controller consists of a free-running counter, RTC Counter register (RCNR), that
starts incrementing after the de-assertion of a hardware reset or watchdog reset. The count value is incremented
at each rising edge of the 1-Hz clock. This value of this counter can be altered by writing to it. The value of the
counter is unaffected by transitions into and out of low-power (S0/D1/C2, S0/D2/C2, S2/D3/C4) or idle
(S0/D0/C1) modes.
The corresponding RTC Alarm register, RTAR, can be written with a value to be compared against the counter.
On each rising edge of the 1-Hz clock, the counter is incremented and then compared to the value of RTAR. If the
values match, and if the alarm-enable bit (RTSR[ALE]) is set, the corresponding alarm-detect bit (RTSR[AL]) is
set.
13.5.2
Wristwatch Module
The wristwatch module of the RTC controller consists of its two sub-modules, counters and alarms, as shown in
.
Table 13-2. RTC Controller Alarm Bit Location Summary
Module
Counter
Register
Alarm Register(s)
Alarm Detect Bit
Alarm Enable Bit
Timer
RCNR
RTAR
RTSR[AL]
RTSR[ALE]
Wristwatch
RDCR
RYCR
RDAR1, RYAR1
RDAR2, RYAR2
RTSR[RDAL1]
RTSR[RDAL2]
RTSR[RDALE1]
RTSR[RDALE2]
Stopwatch
SWCR
SWAR1
SWAR2
RTSR[SWAL1]
RTSR[SWAL2]
RTSR[SWALE1]
RTSR[SWALE2]
Periodic
Interrupt
RTCPICR
PIAR
RTSR[PIAL]
RTSR[PIALE]
Trimmer
RTTR
N/A
N/A
N/A