- Write the timer values
- Program the desired wakeup pre-scaler value in
- Program the desired thresholds in
- Set the enable bit to 1 in the
- If desired, lock the watchdog configuration by writing 1 to the
Pet the watchdog by writing zero to the
If either timer reaches the programmed threshold, interrupts are generated from the AON_TIMER module.
Disable or reinitialize the wakeup timer if required by clearing the enable bit in
WKUP_CTRL or clearing the timer value in
Clear the interrupt by writing 1 into the Interrupt Status Register
If the timer has caused a wakeup event (
WKUP_CAUSE is set) then clear the wakeup request by writing 0 to
WKUP_COUNT remains above the threshold after clearing the interrupt or wakeup event and the timer remains enabled, the interrupt and wakeup event will trigger again at the next clock tick.