ADC12_B Operation
885
SLAU367P – October 2012 – Revised April 2020
Copyright © 2012–2020, Texas Instruments Incorporated
ADC12_B
34.2.13 ADC12_B Calibration
The device TLV structure contains calibration values that can be used to improve the measurement
capability of the ADC12_B. Refer to
of the
System Resets, Interrupts, and Operating Modes,
System Control Module (SYS)
chapter for more details.
34.2.14 ADC12_B Interrupts
The ADC12_B has 38 interrupt sources:
•
ADC12IFG0 to ADC12IFG31
•
ADC12OVIFG: ADC12MEMx overflow
•
ADC12TOVIFG: ADC12_B conversion time overflow
•
ADC12LOIFG, ADC12INIFG, and ADC12HIIFG for ADC12MEMx
•
ADC12RDYIFG: ADC12_B local reference buffer ready
The ADC12IFGx bits are set when their corresponding ADC12MEMx memory register is loaded with a
conversion result. An interrupt request is generated if the corresponding ADC12IEx bit and the GIE bit are
set. The conversion result written into ADC12MEMx result register also sets the ADC12LOIFG,
ADC12INIFG or ADC12HIIFG if applicable. The ADC12OVIFG condition occurs when a conversion result
is written to any ADC12MEMx before its previous conversion result was read. The ADC12TOVIFG
condition is generated when another sample-and-conversion is requested before the current conversion is
completed. The DMA is triggered after the conversion in single-channel conversion mode or after the
completion of a sequence of channel conversions in sequence-of-channels conversion mode. See
for additional details. The ADC12RDYIFG is set after the sample trigger is asserted when
the ADC12_B local reference buffer is ready. Note the ADC12RDYIFG will be set even when the ADC12B
does not select the buffered reference. It can be used during extended sample mode instead of adding the
max ADC12_B local reference buffer settle time to the sample signal time.
34.2.14.1 ADC12IV, Interrupt Vector Generator
All ADC12_B interrupt sources are prioritized and combined to source a single interrupt vector. The
interrupt vector register ADC12IV is used to determine which ADC12_B interrupt source requested an
interrupt.
The highest-priority enabled ADC12_B interrupt generates a number in the ADC12IV register (see
). This number can be evaluated or added to the program counter (PC) to automatically
enter the appropriate software routine. ADC12_B interrupts that are disabled do not affect the ADC12IV
value.
Read access of the ADC12IV register automatically resets the highest pending interrupt condition and flag
except the ADC12IFGx flags. ADC12IFGx bits are reset automatically by accessing their associated
ADC12MEMx register or may be reset with software.
Write access of the ADC12IV 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 ADC12OV and ADC12IFG3 interrupts are pending when the interrupt service routine accesses the
ADC12IV register, the ADC12OV interrupt condition is reset automatically. After the RETI instruction of the
interrupt service routine is executed, the ADC12IFG3 generates another interrupt.