![NXP Semiconductors MPC5605BK Reference Manual Download Page 235](http://html.mh-extra.com/html/nxp-semiconductors/mpc5605bk/mpc5605bk_reference-manual_1721852235.webp)
Chapter 13 Real Time Clock / Autonomous Periodic Interrupt (RTC/API)
MPC5606BK Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
235
13.7
API functional description
Setting the RTCC[APIEN] bit enables the autonomous interrupt function. The 10-bit RTCC[APIVAL]
field selects the time interval for triggering an interrupt and/or wakeup event. Since the RTC is a free
running counter, the APIVAL is added to the current count to calculate an offset. When the counter reaches
the offset count, a interrupt and/or wakeup request is generated. Then the offset value is recalculated and
again re-triggers a new request when the new value is reached. APIVAL may only be updated when APIEN
is disabled. When a compare is reached, the RTCS[APIF] interrupt flag bit is set (after proper clock
synchronization). If the RTCC[APIIE] interrupt enable bit is set, then the API interrupt request is
generated. If there is a match while in low power mode, then the API will first generate a wakeup request
to force a wakeup into normal operation, then the APIF flag will be set.
Summary of Contents for MPC5605BK
Page 2: ...This page is intentionally left blank...
Page 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Page 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Page 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Page 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Page 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Page 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Page 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...