Texas Instruments MSP430x1xx User Manual

Page 301

Advertising
background image

Conversion Modes

15-11

ADC12

Figure 15–5. Single-Channel, Single-Conversion 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 =

ENC = 0

ENC = 0

< 12 x ADC12CLK

Conversion
Completed,

Result Stored Into

ADC12MEMx,

ADC12IFG.x is Set

1 x ADC12CLK

† Conversion result is unpredictable

ENC = 0

ADC12ON = 1

CONSEQ = 0

An example of the conversion-memory setup is shown in Figure 15–6 for
single-channel conversion. The example uses the following conditions:

-

Single conversion of channel a4

-

Internal reference voltage with V

R+

at AV

CC

and with V

R–

at AV

SS

-

Conversion result to be stored in conversion-memory register
ADC12MEM1

This means that control bit CStartAdd in ADC12CTL0 is assigned a value of
1. The channel (INCH=4) and reference voltages (Sref=0) are selected via
ADC12MCTL1.

Advertising