beautypg.com

Texas Instruments MSP430x1xx User Manual

Page 304

background image

Conversion Modes

15-14

An illustration of sequence of channels mode is shown in Figure 15–8.

Figure 15–8. Sequence-of-Channels Mode

ADC12

off

x = CStartAdd

Wait for Enable

ENC =

Wait for Trigger

Sample, Input

Channel Defined in

ADC12MCTLx

ENC =

ENC =

SHS = 0

and

ENC =

and

ADC12SC =

SAMPCON =

SAMPCON = 1

Convert, Use

12 x ADC12CLK

SAMPCON =

< 12 x ADC12CLK

Conversion
Completed,

Result Stored Into

ADC12MEMx,

ADC12IFG.x is Set

1 x ADC12CLK

ADC12ON = 1

CONSEQ = 1

MSC = 1

and

SHP = 1

and

EOS.x = 0

EOS.x = 1

If x < 15 then x = x + 1

else x = 0

If x < 15 then x = x + 1

else x = 0

(MSC = 0

or

SHP = 0)

and

EOS.x = 0