Texas Instruments MSP430x1xx User Manual page 370

Texas instruments modules and peripherals user's guide
Table of Contents

Advertisement

ADC12 Operation
Sequence-of-Channels Mode
A sequence of channels is sampled and converted once. The ADC results are
written to the conversion memories starting with the ADCMEMx defined by the
CSTARTADDx bits. The sequence stops after the measurement of the
channel with a set EOS bit. Figure 17−7 shows the sequence-of-channels
mode. When ADC12SC triggers a sequence, successive sequences can be
triggered by the ADC12SC bit. When any other trigger source is used, ENC
must be toggled between each sequence.
Figure 17−7. Sequence-of-Channels Mode
CONSEQx = 01
SHSx = 0
and
ENC = 1 or
and
ADC12SC =
If x < 15 then x = x + 1
else x = 0
SAMPCON =
MSC = 1
and
SHP = 1
and
EOS.x = 0
x = pointer to ADC12MCTLx
17-12
ADC12
ADC12
off
ADC12ON = 1
ENC =
x = CSTARTADDx
Wait for Enable
ENC =
ENC =
Wait for Trigger
SAMPCON =
SAMPCON = 1
Sample, Input
Channel Defined in
ADC12MCTLx
12 x ADC12CLK
Convert
1 x ADC12CLK
Conversion
Completed,
Result Stored Into
ADC12MEMx,
ADC12IFG.x is Set
EOS.x = 1
If x < 15 then x = x + 1
else x = 0
(MSC = 0
or
SHP = 0)
and
EOS.x = 0

Advertisement

Table of Contents
loading

Table of Contents