Introduction - If you have any usage issues, please Google them yourself
This code example shows how to setup the Sleep Timer for using
it as the source for waking up from a Power Mode. In the example
the system goes into Power Mode 0 after setting up the Sleep
Timer and Sleep Timer interrupt. The Sleep Timer is set up to
generate interrupt every second. When awaken, the ISR toggles
the green LED.
The clock source for the Sleep Timer is 32.768 LS XOSC
Note that in order to use PM {1-2}, it will be required to
setup PM {1-2}, but the setup of Sleep Timer shown here will be
the same.