Rtc Programming Model - Analog Devices ADSP-BF535 Blackfin Hardware Reference Manual

Table of Contents

Advertisement

RTC Programming Model

The RTC provides two alarm features. The application can program an
exact time (hour, minute, and second) into the RTC Alarm register
(
). When the alarm interrupt is enabled, the RTC generates an
RTC_ALARM
interrupt each day at the specified time. The second alarm feature allows
the application to specify a day as well as a time. When the day alarm
interrupt is enabled, the RTC generates an interrupt on the day and time
specified by the application. The alarm interrupt and day-alarm interrupt
can be enabled or disabled independently.
The RTC provides a stopwatch function that acts a countdown timer. The
application can program a minute count into the RTC Stopwatch Count
register (
RTC_SWCNT
specified number of minutes have elapsed, the RTC generates an
interrupt.
The RTC can also generate an interrupt once every second, minute, and
day. Each of these interrupts can be independently controlled.
Note that although each of the RTC counters operates continually and
cannot be stopped by the application, no interrupts are generated unless
enabled in the RTC Interrupt Control register (
RTC Programming Model
The RTC programming model consists of a set of system MMRs. Soft-
ware can configure the RTC and can determine the status of the RTC
through reads and writes to these registers. The RTC Interrupt Control
register (
RTC_ICTL
provide RTC interrupt management capability.
Note that software cannot disable the RTC counting function. However,
all RTC interrupts can be disabled, or masked. The RTC state can be read
via the system MMR status registers at any time.
17-2
). When the stopwatch interrupt is enabled and the
) and the RTC Interrupt Status register (
ADSP-BF535 Blackfin Processor Hardware Reference
).
RTC_ICTL
RTC_ISTAT
)

Advertisement

Table of Contents
loading

Table of Contents