CHAPTER 6: Low Power Consumption Mode
216 FM4 Peripheral Manual, Doc. No. 002-04856 Rev. *E
Figure 4-2 Procedure for Setting RTC Mode (with Main Clock Selected as Master Clock)
Write 0x1ACC to KEY, 0 to DSTM, 0b10
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 RTC mode.
Write 1 to Init in CTRLR register.
Write 1 to RTCE in PMD_CTL register.