Texas Instruments MSP430x1xx User Manual page 372

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

Advertisement

ADC12 Operation
Repeat-Sequence-of-Channels Mode
A sequence of channels is sampled and converted repeatedly. The ADC
results are written to the conversion memories starting with the ADC12MEMx
defined by the CSTARTADDx bits. The sequence ends after the measurement
of the channel with a set EOS bit and the next trigger signal re-starts the
sequence. Figure 17−9 shows the repeat-sequence-of-channels mode.
Figure 17−9. Repeat-Sequence-of-Channels Mode
CONSEQx = 11
SHSx = 0
ENC = 1 or
ADC12SC =
SAMPCON =
If EOS.x = 1 then x =
CSTARTADDx
else {if x < 15 then x = x + 1 else
x = 0}
MSC = 1
and
SHP = 1
and
(ENC = 1
or
EOS.x = 0)
x = pointer to ADC12MCTLx
17-14
ADC12
ADC12
off
ADC12ON = 1
ENC =
x = CSTARTADDx
Wait for Enable
ENC =
and
and
Wait for Trigger
SAMPCON =
Sample, Input
Channel Defined in
ADC12MCTLx
Convert
1 x ADC12CLK
Conversion
Completed,
Result Stored Into
ADC12MEMx,
ADC12IFG.x is Set
ENC =
SAMPCON = 1
If EOS.x = 1 then x =
CSTARTADDx
else {if x < 15 then x = x + 1 else
x = 0}
12 x ADC12CLK
(MSC = 0
or
SHP = 0)
and
(ENC = 1
or
EOS.x = 0)
ENC = 0
and
EOS.x = 1

Advertisement

Table of Contents
loading

Table of Contents