44.6.3 Interrupts
The PTC has the following interrupt sources:
- End of Conversion (EOC)
- Window Monitor (WCOMP)
- Analog Core Ready (ACRRDY)
These interrupts are asynchronous wake-up sources. Refer to the Sleep Mode Controller for additional information.
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 one to the corresponding bit in the Interrupt Enable Set (INTENSET) register, and disabled by writing a one 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, interrupt is disabled, or PTC is reset. Refer to the INTFLAG register for details on how to clear interrupt flags.
All interrupt requests from the peripheral are ORed together in this macro level to generate one or more combined interrupt requests to the Device Nested Vector Interrupt Controller (NVIC). The user must read the INTFLAG register to determine which interrupt condition is present.
