ADC12 Operation
17-14
ADC12
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
ADC12
off
x = CSTARTADDx
Wait for Enable
ENC =
Wait for Trigger
Sample, Input
Channel Defined in
ADC12MCTLx
ENC =
ENC =
SHSx = 0
and
ENC = 1 or
and
ADC12SC =
SAMPCON =
SAMPCON = 1
SAMPCON =
12 x ADC12CLK
Conversion
Completed,
Result Stored Into
ADC12MEMx,
ADC12IFG.x is Set
1 x ADC12CLK
ADC12ON = 1
CONSEQx = 11
MSC = 1
and
SHP = 1
and
(ENC = 1
or
EOS.x = 0)
ENC = 0
and
EOS.x = 1
(MSC = 0
or
SHP = 0)
and
(ENC = 1
or
EOS.x = 0)
If EOS.x = 1 then x =
CSTARTADDx
else {if x < 15 then x = x + 1 else
x = 0}
If EOS.x = 1 then x =
CSTARTADDx
else {if x < 15 then x = x + 1 else
x = 0}
x = pointer to ADC12MCTLx
Convert