SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
The ADC peripheral provides many interrupt sources that can be configured to source a CPU interrupt event. The CPU interrupt events from the ADC are given in Table 17-4.
RIS (Bit Index) | Name | Description |
---|---|---|
0x0 | OVIFG | The conversion overflow interrupt flag is set when the ADC updates MEMRESx before the previous sample is read by the CPU or DMA. |
0x1 | TOVIFG | The sequence conversion time overflow interrupt flag is set when the ADC receives a new sampling trigger while the previous sample+conversion is still in progress. |
0x2 | HIGHIFG | A high threshold compare interrupt flag is set when the MEMRESx result register is higher than the WCHIGH threshold of the window comparator. |
0x3 | LOWIFG | A low threshold compare interrupt flag is set when the MEMRESx result register is lower than the WCLOW threshold of the window comparator. |
0x4 | INIFG | The in-range comparator interrupt flag is set when the MEMRESx result register is within the range of WCLOW and WCHIGH of the window comparator. |
0x5 | DMADONE | µDMA done interrupt flag is set when the DMA data transfer of programmed block size is completed. |
0x6 | UVIFG | Conversion underflow interrupt flag, the UVIFG flag is set when the CPU or DMA reads the MEMRESx register before the next conversion result is available. |
0x7 | ASC | Ad-hoc single conversion done |
0x8 to 0xB | MEMRESIFG[0 to 3] | The Memory register interrupt flag is set when MEMRESx is loaded with a new conversion result. |
The CPU interrupt event configuration is managed with the INT_EVENT0 event management registers. Interrupt (RIS) flags are cleared upon software writing to the respective ICLR register bits.