18.6.6 Events

The RTC can generate the following output events, which are generated in the same way as the corresponding interrupts:

  • Overflow (OVF): Indicates that the counter has reached its top value and wrapped to zero.
  • Period n (PERn): The corresponding bit in the prescaler has toggled. Refer to 18.6.9.1 Periodic Events for details.
  • Compare n (CMPn): Indicates a match between the counter value and the compare register.
  • Alarm n (ALARMn): Indicates a match between the clock value and the alarm register.

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.