
ADC10_B Operation
16.2.7.5 Using the Multiple Sample and Convert (ADC10MSC) Bit
To configure the converter to perform successive conversions automatically and as quickly as possible, a
multiple sample and convert function is available. When ADC10MSC = 1, CONSEQx > 0, and the sample
timer is used, the first rising edge of the SHI signal triggers the first conversion. Successive conversions
are triggered automatically as soon as the prior conversion is completed. Additional rising edges on SHI
are ignored until the sequence is completed in the single-sequence mode, or until the ADC10ENC bit is
toggled in repeat-single-channel or repeated-sequence modes. The function of the ADC10ENC bit is
unchanged when using the ADC10MSC bit.
16.2.7.6 Stopping Conversions
Stopping ADC10_B activity depends on the mode of operation. The recommended ways to stop an active
conversion or conversion sequence are:
•
Reset ADC10ENC in single-channel single-conversion mode to stop the conversion immediately. The
results are unpredictable. For correct results, poll the busy bit until reset before clearing ADC10ENC.
•
Reset ADC10ENC during repeat-single-channel operation to stop the converter at the end of the
current conversion.
•
Reset ADC10ENC during a sequence or repeat-sequence mode to stop the converter at the end of the
sequence.
•
Set the CONSEQx = 0 and reset the ADC10ENC bit to immediately stop any conversion mode.
Conversion data are unreliable.
16.2.8 Window Comparator
The window comparator allows to monitor analog signals without any CPU interaction. The following list
shows the available interrupt flags and the conditions when they are asserted:
•
The
interrupt flag (ADC10LOIFG) is set if the current result of the ADC10_B conversion is
below the low threshold defined in register ADC10LO
•
The
interrupt flag (ADC10HIIFG) is set if the current result of the ADC10_B conversion is
greater than the high threshold defined in register ADC10HI
•
The ADC10IN-Interrupt flag (ADC10INIFG) is set if the current result of the ADC10_B conversion is
between the low threshold defined in register
and the high threshold defined in
These interrupts are generated independently of the conversion mode selected by the user.
The user always needs to make sure that the values in the
and
registers are in the
correct data format. If, for example, the binary data format is selected (ADC10DF = 0), then the thresholds
in the threshold registers ADC10HI and ADC10LO also need to be entered binary coded. Changing the
ADC10DF or the ADC10RES resets the threshold registers.
The interrupt flags must be reset by the user software. The ADC10_B only updates the flags each time a
new value is available in the
. This update is only a set of the corresponding interrupt flag.
When using the window comparator flags, make sure that they are reset by software according to the
application needs.
444
ADC10_B Module
SLAU272C – May 2011 – Revised November 2013
Copyright © 2011–2013, Texas Instruments Incorporated