English
Language : 

SAM4L Datasheet, PDF (53/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
• Set the clock frequency to be supported in both power configurations.
• Set the high speed read mode of the FLASH to be supported in both power scaling
configurations
– Only relevant when entering or exiting BPM.PMCON.PS=2
• Configure the BPM.PMCON.PS field to the new power configuration.
• Set the BPM.PMCON.PSCREQ bit to one.
• Disable all the interrupts except the PM WCAUSE interrupt and enable only the PSOK
asynchronous event in the AWEN register of PM.
• Execute the WFI instruction.
• WAIT for PM interrupt.
The new power configuration is reached when the system is waken up by the PM interrupt
thanks to the PSOK event.
53
42023C–SAM–02/2013