23.5.5 Events

The RTC can generate the following output events:

  • Overflow (OVF): Generated when the counter has reached its top value and wrapped to zero.
  • Compare (CMP0-1): Indicates a match between the counter value and the compare register.
  • Alarm (ALARM0): Indicates a match between the clock value and the alarm register.
  • Period n (PER0-7): The corresponding bit in the prescaler has toggled. Refer to 23.5.8.1 Periodic Intervals for details.
  • Periodic Daily (PERD): Generated when the COUNT/CLOCK has incremented at a fixed period of time.

Setting the Event Output bit in the Event Control Register (EVCTRL.xxxEO=1) enables the corresponding output event. Writing a zero to this bit disables the corresponding output event. Refer to the EVSYS - Event System for details on configuring the event system.