Texas Instruments MSP430x1xx manual 6. Sequence-of-Channels Mode

Models: MSP430x1xx

1 432
Download 432 pages 41.81 Kb
Page 397
Image 397

ADC10 Operation

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 ADC10

Off

ADC10ON = 1

ENC =

x = INCHx

Wait for Enable

ENC =

SHS = 0

and

ENC =

 

ENC = 1 or

 

and

Wait for Trigger

ADC10SC =

SAMPCON =

 

 

(4/8/16/64) x ADC10CLK

 

Sample,

 

 

Input Channel Ax

If x > 0 then x = x −1

If x > 0 then x = x −1

 

 

 

MSC = 1

 

12 x ADC10CLK

 

 

and

Convert

MSC = 0

x 0

 

and

 

 

 

 

x 0

 

 

1 x ADC10CLK

 

Conversion

 

 

Completed,

 

 

Result to ADC10MEM,

 

ADC10IFG is Set

 

x = 0

x = input channel Ax

ADC10 18-11

Page 397
Image 397
Texas Instruments MSP430x1xx manual 6. Sequence-of-Channels Mode