Real-Time Clock
MCF52277 Reference Manual, Rev. 1
Freescale Semiconductor
26-11
26.4
Functional Description
The clock generation logic, using the incoming RTC oscillator clock and RTC_GOC value, creates a 1 Hz
signal which increments the seconds, minutes, hours, and days counters. The alarm functions, when
enabled, generate RTC interrupts when the time-of-day (TOD) settings reach programmed values. The
sampling timer generates fixed-frequency interrupts, and the minute stopwatch allows for efficient
interrupts on minute boundaries.
26.4.1
Clock Generation and Counter
The clock generation logic divides the reference clock by the value programmed into the RTC_GOC
register to obtain a 1 Hz signal. The RTC_GOC is a concatenation of the lower two bytes of the
RTC_GOCU and RTC_GOCL registers (RTC_GOCU[15:0] || RTC_GOCL[15:0]). For example:
With an RTC input clock of 32 kHz, set RTC_GOC to 0x0000_7D00 (32,000).
RTC_GOCU = 0x0000 and RTC_GOCL = 0x7D00.
With an RTC input clock of 48 kHz, set RTC_GOC to 0x0000_BB80 (48,000).
RTC_GOCU = 0x0000 and RTC_GOCL = 0xBB80.
The counter portion of the RTC module consists of four groups of counters that are physically located in
three registers:
•
The 6-bit seconds counter is located in RTC_SECONDS
•
The 6-bit minutes counter and the 5-bit hours counter are located in RTC_HOURMIN
•
The 16-bit day counter is located in RTC_DAYS
These counters cover a 24-hour clock over 65,536 days. All three registers can be read or written at any
time.
Interrupts signal when each of the four counters increments and can indicate when a counter rolls over. For
example, each tick of the seconds counter causes the 1HZ interrupt flag to set. When the seconds counter
rolls from 59 to 00, the minute counter increments and the MIN interrupt flag is set. The same is true for
the minute counter with the HR signal and the hour counter with the DAY signal.
Address: 0xFC03_C038 (RTC_GOCL)
Access: User read/write
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
R 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
CNT_LOWER
W
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 0 0 0 0 0 0 0 0
Figure 26-13. RTC General Oscillator Clock Lower Register (RTC_GOCL)
Table 26-14. RTC_GOCU Field Descriptions
Field
Description
31–16
Reserved, must be cleared.
15–0
CNT_LOWER
Lower word of RTC_GOC[31:0]; i.e. equal to RTC_GOC[15:0]. RTC_GOC, with the oscillator clock, determines
the 1 Hz and sample frequencies. A value of 0 in RTC_GOC yields no 1 Hz signal. This register resets to 0.
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...