EasyManuals Logo

Texas Instruments MSP430 User Manual

Texas Instruments MSP430
413 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #203 background imageLoading...
Page #203 background image
203
Explanation
Except some minor differences, the Grace setup here is same as the one used in the DMA example.
The first difference is the Sequence of Channels selection, second is the number of ADC channels and
finally the size of memory block.
In the main, most of the things are same as in the DMA example. Since two channels are read, two
memory locations store individual ADC data. Scanning starts from topmost channel to the bottommost
and so the bottommost memory location will hold the data of the topmost channel and vice versa. In
short, the memory locations are flipped with respect to ADC channels.
ADC10CTL0 &= ~ENC;
while (ADC10CTL1 & BUSY);
ADC10CTL0 |= (ENC | ADC10SC);
lcd_print(12, 0, ADC_value[1]);
lcd_print(12, 1, ADC_value[0]);
delay_ms(400);

Table of Contents

Other manuals for Texas Instruments MSP430

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments MSP430 and is the answer not in the manual?

Texas Instruments MSP430 Specifications

General IconGeneral
BrandTexas Instruments
ModelMSP430
CategoryMicrocontrollers
LanguageEnglish

Related product manuals