6.4.3 RTC Match and Wake From Hibernation
Use the following steps to implement the RTC match and wake-up functionality of the Hibernation module:
- Write 0x0000.0040 to the HIBCTL register at offset 0x010 to enable 32.768-kHz Hibernation oscillator.
- Write the required RTC match value to the HIBRTCM0 register at offset 0x004 and the RTCSSM field in the HIBRTCSS register at offset 0x028.
- Write the required RTC load value to the HIBRTCLD register at offset 0x00C. This write causes the 15-bit subseconds counter to be cleared.
- Write any data to be retained during hibernation to the HIBDATA register at offsets 0x030-0x06F.
- Set the RTC Match Wake-Up and start the hibernation sequence by writing 0x0000.004B to the HIBCTL register at offset 0x010.