CHAPTER 6: Low Power Consumption Mode
FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E 215
4. Examples of Procedure for Setting Standby Mode
This section provides examples of procedure for setting a standby mode.
Figure 4-1 Example of Procedure for Setting Main Timer Mode
Write 0x1ACC to KEY, 0 to DSTM, 0b00
to STM in STB_CTL register together.
Execute WFI instruction or WFE
instruction.
Write 0 SUSPIE in UDCIE register,
1 to USTP in UDCC register,
0 to UCEN in UCCR register.
CPU transits to main timer mode.
Write 1 to Init in CTRLR register.
Write 0 to RTCE in PMD_CTL register.