30.6.4.3 Events

The TC can generate the following output events:

  • Overflow/Underflow (OVF)
  • Match or Capture (MC)

Writing a '1' to an Event Output bit in the Event Control register (EVCTRL.MCEOx) enables the corresponding output event. The output event is disabled by writing EVCTRL.MCEOx=0.

One of the following event actions can be selected by the Event Action bit group in the Event Control register (EVCTRL.EVACT):

  • Start TC (START)
  • Re-trigger TC (RETRIGGER)
  • Increment or decrement counter (depends on counter direction)
  • Count on event (COUNT)
  • Capture Period (PPW and PWP)

Writing a '1' to the TC Event Input bit in the Event Control register (EVCTRL.TCEI) enables input events to the TC. Writing a '0' to this bit disables input events to the TC. The TC requires only asynchronous event inputs. For further details on how configuring the asynchronous events, refer to EVSYS - Event System.