EasyManua.ls Logo

NXP Semiconductors MPC5606S - API Functional Description

NXP Semiconductors MPC5606S
1344 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Real-Time Clock (RTC/API)
MPC5606S Microcontroller Reference Manual, Rev. 7
Freescale Semiconductor 1103
32.8 API functional description
Setting 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
(offset count + 1), a interrupt and/or wakeup request is generated. Then the offset value is recalculated and
again retriggers 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.

Table of Contents

Related product manuals