The SCR controls features of entry to and exit from low power state. See the register summary in Table 4.9 for its attributes. The bit assignments are:
Send Event on Pending bit:
0 = only enabled interrupts or events can wake up the processor, disabled interrupts are excluded.
1 = enabled events and all interrupts, including disabled interrupts, can wakeup the processor.
When an event or interrupt becomes pending, the event signal wakes up the processor from WFE. If the processor is not waiting for an event, the event is registered and affects the next WFE.
processor also wakes up on execution of an
Controls whether the processor uses sleep or deep sleep as its low power mode:
0 = sleep.
1 = deep sleep.
Indicates sleep-on-exit when returning from Handler mode to Thread mode:
0 = do not sleep when returning to Thread mode.
1 = enter sleep, or deep sleep, on return from an ISR to Thread mode.
Setting this bit to 1 enables an interrupt driven application to avoid returning to an empty main application.