![Freescale Semiconductor MCF52230 ColdFire Reference Manual Download Page 143](http://html1.mh-extra.com/html/freescale-semiconductor/mcf52230-coldfire/mcf52230-coldfire_reference-manual_2330648143.webp)
Real-Time Clock
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
8-13
Freescale Semiconductor
/* Set real-time clock freq */
MCF_CLOCK_RTCDR = 48000000;
/* Device-dependent */
MCF_RTC_HOURMIN = MCF_RTC_HOURMIN_HOURS(((uint32)time_temp % 24));
MCF_RTC_HOURMIN = MCF_RTC_HOURMIN_MINUTES(((uint32)time_temp % 60));
MCF_RTC_SECONDS = MCF_RTC_SECONDS_SECONDS(((uint32)time_temp % 60));
Figure 8-13. Code Example for Initializing the Real-Time Clock
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:MCF52234CVM60,
MCF52235CVM60