Real-Time Clock
MCF52277 Reference Manual, Rev. 1
Freescale Semiconductor
26-13
26.4.4
Minute Stopwatch
The minute stopwatch performs a countdown with a one minute resolution. It can generate an interrupt on
a minute boundary. For example, to turn off the LCD controller after five minutes of inactivity, program a
value of 0x04 into RTC_STPWCH[CNT]. At each minute, the value in the stopwatch decrements. When
the stopwatch value reaches -1, interrupt occurs. The value of the register does not change until it is
reprogrammed. The actual delay includes the seconds from setting the stopwatch to the next minute tick.
26.5
Initialization/Application Information
26.5.1
Flow Chart of RTC Operation
shows the flow chart of a typical RTC operation.
Figure 26-14. Flow Chart of RTC Operation
26.5.2
Programming the Alarm or Time-of-Day Registers
Use the following procedure illustrated in
when changing the alarm or time-of-day (day,
hour, minute, and second) registers.
Configure RTC_CR
Configure RTC_DAYS
Configure RTC_SECONDS
Configure RTC_HOURMIN
Configure RTC Alarm Registers
Configure RTC_IER
Check RTC_ISR
Apply RTC Oscillator Clock
Configure RTC_GOCU and RTC_GOCL
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...