47.6.4.2 Interrupts

The TCC has the following interrupt sources (refer to the INTENSET register):

  • Overflow/Underflow (OVF)
  • Retrigger (TRG)
  • Count (CNT) - refer also to description of EVCTRL.CNTSEL.
  • Capture Overflow Error (ERR)
  • Non-Recoverable Update Fault (UFS)
  • Debug Fault State (DFS)
  • Recoverable Faults (FAULTA and FAULTB)
  • Non-recoverable Faults (FAULT0 and FAULT1)
  • Compare Match or Capture Channels (MCy)

These interrupts are asynchronous wake-up sources. See Sleep Mode Entry and Exit Table in PM/Sleep Mode Controller section for details.

References:
  • PM_Sleep Mode Controller

Each interrupt source has an Interrupt flag associated with it. The Interrupt flag in the Interrupt Flag Status and Clear (INTFLAG) register is set when the Interrupt condition occurs. Each interrupt can be individually enabled by writing a '1' to the corresponding bit in the Interrupt Enable Set (INTENSET) register, and disabled by writing a '1' to the corresponding bit in the Interrupt Enable Clear (INTENCLR) register. An interrupt request is generated when the Interrupt flag is set and the corresponding interrupt is enabled. The interrupt request remains active until the Interrupt flag is cleared, the interrupt is disabled, or the TCC is reset. Refer to the INTFLAG for details on how to clear Interrupt flags. The TCC has one common interrupt request line for OVF, ERR, UFS, DFS, FAULTA, FAULTB, FAULT0, and FAULT1 interrupt sources. It contains a separate line for both TRG, and CNT interrupt sources and another line for all Compare Match or Capture Channels (MCy) interrupt sources. The user must read the INTFLAG register to determine which Interrupt condition is present.

Note: Interrupts must be globally enabled for interrupt requests to be generated. Refer to Nested Vector Interrupt Controller for details.

References:

  • Nested Vector Interrupt Controller