Real-Time Clock
MCF52277 Reference Manual, Rev. 1
26-2
Freescale Semiconductor
26.1.2
Features
The RTC module includes:
•
Full clock—days, hours, minutes, seconds
•
Minute countdown timer with interrupt
•
Programmable daily alarm with interrupt
•
Sampling timer with interrupt
•
Once-per-day, once-per-hour, once-per-minute, and once-per-second interrupts
•
Operation determined by reference input oscillator clock frequency and value programmed into
user-accessible registers
— Minimum supported oscillator frequency is 2 Hz
•
Ability to wake the processor from low-power modes (wait, doze, and stop) via the RTC interrupts
NOTE
The RTC is enabled during stop mode.
26.1.3
Modes of Operation
The real-time-clock operates in various modes as described below:
•
Time-of-day counters
— The clock generation logic divides the reference clock down to 1 Hz using the dividers in the
RTC_GOCU and RTC_GOCL registers.
— The 1 Hz clock increments four counters that are located in three registers
– RTC_SECONDS contains the 6-bit seconds counter
– RTC_HOURMIN contains the 6-bit minutes counter and 5-bit hours counter
– RTC_DAYS contains the 16-bit day counter
•
Alarm
— There are three alarm registers that mirror the three counter registers. An alarm is set by
accessing the real-time clock alarm registers (RTC_ALRM_SEC, RTC_ALRM_HM, and
RTC_ALRM_DAY) and loading the time minus one second that the alarm should generate an
interrupt. When the TOD clock value and the alarm value coincide, one second later an
interrupt occurs.
•
Sampling Timer
— The clock generation logic divides the reference clock down to 512 Hz using the dividers in the
RTC_GOCU and RTC_GOCL registers. The sampling timer generates a periodic interrupt
with frequencies specified by the RTC_IER[SAM
n
,2HZ] bits. This timer can be used for
digitizer sampling, keyboard debouncing, or communication polling.
examples of the interrupt frequencies of the sampling timer for the possible reference clocks.
Sampling frequencies are dependent upon the RTC oscillator frequency and the value in
RTC_GOC[31:9].
•
Minute Stopwatch
Summary of Contents for MCF52277
Page 22: ...MCF52277 Reference Manual Rev 1 Freescale Semiconductor xxii...
Page 32: ...MCF52277 Reference Manual Rev 0 xxxii Freescale Semiconductor...
Page 60: ...Signal Descriptions MCF52277 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Page 128: ...Static RAM SRAM MCF52277 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Page 140: ...Clock Module MCF52277 Reference Manual Rev 1 7 12 Freescale Semiconductor...
Page 172: ...Chip Configuration Module CCM MCF52277 Reference Manual Rev 1 9 16 Freescale Semiconductor...
Page 180: ...Serial Boot Facility SBF MCF52277 Reference Manual Rev 1 10 8 Freescale Semiconductor...
Page 188: ...Reset Controller Module MCF52277 Reference Manual Rev 1 11 8 Freescale Semiconductor...
Page 210: ...Crossbar Switch XBS MCF52277 Reference Manual Rev 1 13 8 Freescale Semiconductor...
Page 542: ...FlexCAN MCF52277 Reference Manual Rev 1 23 32 Freescale Semiconductor...
Page 724: ...UART Modules MCF52277 Reference Manual Rev 1 30 34 Freescale Semiconductor...
Page 740: ...I2 C Interface MCF52277 Reference Manual Rev 1 31 16 Freescale Semiconductor...
Page 790: ...Debug Module MCF52277 Reference Manual Rev 1 32 50 Freescale Semiconductor...