44.6.6 Events

The TC can generate the following output events:

  • Overflow/Underflow (OVF)
  • Match or Capture Channel x (MCX0-1)

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):
  • Disable event action (OFF)
  • Start TC (START)
  • Re-trigger TC (RETRIGGER)
    • If a re-trigger event occurs exactly at the time a Channel Compare Match occurs, the next waveform will be corrupted. To avoid this issue, use two channels to store two successive CC register values (n and n+1) and combine the related waveform outputs to provide signal redundancy.
  • Count on event (COUNT)
  • Capture time stamp (STAMP)
  • Capture Period (PPW and PWP)
  • Capture Pulse Width (PW)

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