BS_Real time clock
RM0082
352/844
Doc ID 018672 Rev 1
20
BS_Real time clock
20.1 Overview
Within its basic subsystem, SPEAr300 provides a real time clock (RTC) acting as an APB
slave.
Main features of the RTC block are:
●
Provides time-of-day clock in 24 hours mode.
●
Provides calendar.
●
Makes available alarm capability.
●
Provides two general purpose registers.
●
Supports a self-isolation mode, which allows RTC to work even if power is not supplied
to the rest of the device.
20.2 Programming
model
20.2.1 Register
map
The RTC can be fully configured by programming its 32 bit wide registers (listed in
) which can be accessed at the base address 0xFC90_0000.
Table 301.
RTC functional registers summary
20.2.2 Register
description
20.2.3 CONTROL
register
The CONTROL is a RW register which allows the software to control the RTC. The
CONTROL register bit assignments are given
Name
Offset
Type Reset value
Description
TIME
0x000
RW
Undefined
Time register
DATE
0x004
RW
Undefined
Date register
ALARM TIME
0x008
RW
Undefined
Alarm time register
ALARM DATE
0x00C
RW
Undefined
Alarm date register
CONTROL
0x010
RW
Undefined
Control register
STATUS
0x014
RW
Undefined
Status register
REG1MC
0x018
RW
Undefined
General purpose register
REG2MC
0x01C
RW
Undefined
General purpose register