Real-Time Clock
25.5
Initialization/Application Information
25.5.1
Flow Chart of RTC Operation
Table 25-12
shows the flow chart of a typical RTC operation.
25.5.2
Programming the Alarm or Time-of-Day Registers
Use the following procedure illustrated in
hour, minute, and second) registers.
Figure 25-13. Flow Chart of Alarm and Time-of-Day Programming
25-12
Apply RTC Oscillator Clock
Configure RTC_CR
Configure RTC_DAYS
Configure RTC_SECONDS
Configure RTC_HOURMIN
Configure RTC Alarm Registers
Configure RTC_IER
Check RTC_ISR
Figure 25-12. Flow Chart of RTC Operation
Figure 25-13
Disable the alarm interrupt
(clear RTC_IER[ALM])
Program the alarm or time-of-day registers
Clear any incidental alarm interrupt
during programming
(write 1 to RTC_ISR[ALM])
Enable the alarm interrupt
(set RTC_IER[ALM]
MCF5329 Reference Manual, Rev 3
when changing the alarm or time-of-day (day,
Freescale Semiconductor