Interrupts

Table 1. Available Interrupt Vectors and Sources
Name Vector Description Conditions
OVF Overflow interrupt The TCD finishes one TCD cycle
TRIG Trigger interrupt
  • TRIGA: On event input A
  • TRIGB: On event input B

When an interrupt condition occurs, the corresponding interrupt flag is set in the Interrupt Flags (TCDn.INTFLAGS) register.

An interrupt source is enabled or disabled by writing to the corresponding enable bit in the Interrupt Control (TCDn.INTCTRL) register.

An interrupt request is generated when the corresponding interrupt source is enabled, and the interrupt flag is set. The interrupt request remains active until the interrupt flag is cleared. See the peripheral’s INTFLAGS register for details on how to clear interrupt flags.

When several interrupt request conditions are supported by an interrupt vector, the interrupt requests are ORed together into one combined interrupt request to the interrupt controller. The user must read the peripheral’s INTFLAGS register to determine which of the interrupt conditions are present.