
ADC10_B Operation
16.2.11 ADC10_B Interrupts
The ADC10_B has six interrupt sources:
•
ADC10IFG0 : conversion ready interrupt
The ADC10IFG0 bit is set when the
memory register is loaded with the conversion
result. An interrupt request is generated if the ADC10IE0 bit and the GIE bit are set.
•
ADC10OVIFG :
overflow
The ADC10OV condition occurs when a conversion result is written to the ADC10MEM0 before its
previous conversion result was read.
•
ADC10TOVIFG : conversion time overflow
The ADC10TOV condition is generated when another sample-and-conversion is requested before the
current conversion is completed. The DMA is triggered after each conversion.
•
ADC10LOIFG, ADC10INIFG, ADC10HIIFG : window comparator interrupt flags
The window comparator interrupt flags are set as described in
.
16.2.11.1 ADC10IV, Interrupt Vector Generator
All ADC10_B Interrupt sources are prioritized and combined to source a single interrupt vector. The
interrupt vector register
can be read to determine which enabled ADC10_B interrupt source
requested an interrupt.
The highest-priority enabled ADC10_B interrupt generates a number in the
register (see register
description). This number can be evaluated or added to the program counter (PC) to automatically enter
the appropriate software routine. Disabled ADC10_B interrupts do not affect the ADC10IV value.
Read access of the
register automatically resets the highest pending interrupt condition and flag.
Only the ADC10IFG0 is not reset by this ADC10IV read access. ADC10IFG0 is automatically reset by
reading the
register or may be reset with software.
Write access to the
register clears all pending interrupt conditions and flags.
If another interrupt is pending after servicing of an interrupt, another interrupt is generated. For example, if
the ADC10OV, ADC10HIIFG, and ADC10IFG0 interrupts are pending when the interrupt service routine
accesses the
register, the highest priority interrupt (ADC10OV interrupt condition) is reset
automatically. After the RETI instruction of the interrupt service routine is executed, the ADC10HIIFG
generates another interrupt.
447
SLAU272C – May 2011 – Revised November 2013
ADC10_B Module
Copyright © 2011–2013, Texas Instruments Incorporated