Home > DSP > A/D conversion
Uploaded: 03-06-2010
Code Rating:
Chip: DSP
Dev Tool: C
File Size: 1KB
Uploaded by: winfarmer
Downloads: 0
Points Required: 5

Code Description

Description: This example shows how to perform A/D conversion on up to 10
//  external channels by showing that channels A8 and A9 can be used for
//  conversion of external signals when not using these channels as external
//  reference inputs. A single sequence of conversions is performed
//  - one conversion on A8 and then one conversion on A9. Each conversion uses AVcc
//  and AVss for the references. The conversion results are stored in ADC12MEM0
//  and ADC12MEM1 respectively and are moved to 'results[]' upon completion of
//  the sequence. Test by applying voltages to pins VeREF+ for A8 and
//  VREF-/VeREF- for A9, then setting and running to a break point at the
//  "_BIC..." instruction in the ISR. To view the conversion results, open a
//  watch window in debugger and view 'results' or view ADC12MEM0 and ADC12MEM1
//  in an ADC12 SFR window.
//  This can run even in LPM4 mode as ADC has its own clock
//  *NOTE*  When using channels A8 and A9 for external signals, internal
//  references must be used for the conversions. Refer to figure 17-1 in the
//  MSP430x1xx Family User's Guide.

Latest Codes

Download

 Download [Click to enter the download page]

Todays Top Downloads

Top Downloads this Month

Top downloads