256 8. ANALOG PERIPHERALS
overﬂow interrupt, and (2) when another conversion is requested before the current conversion is
not completed, called a conversion time overﬂow.
Each input channel has these two interrupts, making the total number of interrupts associated
with each analog input channel three.When a conversion result is written, the conversion completion
ﬂag (ADC12IFG0 - ADC12IFG15) is set in the ADC12_A Interrupt Flag Register (ADC12IFG).
If the local interrupt enable bit, ADC12IEx, in the ADC12 Interrupt Enable Register (ADC12IE)
along with the GIE bit in the status register are set, an interrupt is triggered. For the overﬂow and
the time overﬂow interrupts, the ADC12OVIE bit (bit 3) and ADC12TOVIE bit (bit 2) in the
ADC12CTL0 register must be enabled. The interrupt vector register (ADC12IV) contains the
source of the interrupt as shown in Table 8.2.
Contents Interrupt Source Flag Priority
0000h no interrupt no ﬂag
0002h overﬂow interrupt no ﬂag Highest
0004h time overﬂow interrupt no ﬂat
0008h ADC12MEM1 ADC12IFG1
000Ch ADC12MEM3 ADC12IFG3
000Eh ADC12MEM4 ADC12IFG4
0010h ADC12MEM5 ADC12IFG5
0012h ADC12MEM6 ADC12IFG6
0014h ADC12MEM7 ADC12IFG7
0016h ADC12MEM8 ADC12IFG8
0018h ADC12MEM9 ADC12IFG9
001Ah ADC12MEM10 ADC12IFG10
001Ch ADC12MEM11 ADC12IFG11
0020h ADC12MEM13 ADC12IFG13
0024h ADC12MEM15 ADC12IFG15 Lowest
8.5.3 PROGRAMMING THE ADC12 CONVERTER
To successfully conﬁgure and program the converter, the following steps should be followed:
1. Either connect appropriate reference voltage sources to ADC12 converter’s pins A8 and A9
and/or program ADC12SREFx bits in ADC12MCTLx registers.
2. Connect analog signal(s) for conversion to appropriate input pins (A0-A7, A12-A15).