Texas Instruments MSP430x1xx User Manual page 397

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

Advertisement

Sequence-of-Channels Mode
A sequence of channels is sampled and converted once. The sequence
begins with the channel selected by INCHx and decrements to channel A0.
Each ADC result is written to ADC10MEM. The sequence stops after
conversion of channel A0. Figure 18−6 shows the sequence-of-channels
mode. When ADC10SC triggers a sequence, successive sequences can be
triggered by the ADC10SC bit . When any other trigger source is used, ENC
must be toggled between each sequence.
Figure 18−6. Sequence-of-Channels Mode
CONSEQx = 01
ADC10ON = 1
SHS = 0
ENC = 1 or
ADC10SC =
If x > 0 then x = x −1
MSC = 1
and
x ≠ 0
x = input channel Ax
ADC10
Off
ENC =
x = INCHx
Wait for Enable
ENC =
and
and
Wait for Trigger
SAMPCON =
(4/8/16/64) x ADC10CLK
Sample,
Input Channel Ax
12 x ADC10CLK
Convert
1 x ADC10CLK
Conversion
Completed,
Result to ADC10MEM,
ADC10IFG is Set
ENC =
If x > 0 then x = x −1
MSC = 0
and
x ≠ 0
ADC10 Operation
x = 0
ADC10
18-11

Advertisement

Table of Contents
loading

Table of Contents