27.10 Interrupts
The Power Manager has the following interrupt sources:
- Backup Sleep Mode Entry Ready (SLEEPRDY). This interrupt is a synchronous wake-up source.
For example, an application can set up the device to enter backup sleep mode, go to standby sleep and get a wake-up interrupt from SLEEPRDY so it can then go to backup sleep mode.
Using the PM interrupt requires the MCU interrupt controller to be configured first. Each PM interrupt source has an interrupt flag associated with it. The interrupt flag in the Interrupt Flag Status and Clear (INTFLAG) register is set when the interrupt condition occurs. An interrupt request is generated when the interrupt flag is set, and the corresponding interrupt is enabled. The interrupt request remains active until the interrupt flag is cleared, the interrupt is disabled, or the peripheral is reset. The interrupt flag is cleared by writing a ‘1’ to the corresponding bit in the INTFLAG register.