This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/MSP430FR6972: the question of using DMA to move ADC samaple data

Part Number: MSP430FR6972

Tool/software: Starterware

Hi Sir,

Now. I'm using DMA to move ADC sample data .

The ADC mode is Repeat-Sequence-of-Channels Mode from ADC12MCTL2 to ADC12MCTL5,  I want to use DMA move the data in ADC12MEM2 - ADC12MEM5 to array Voltage[4]. the code is following:

//ADC trigger
DMACTL1 |= DMA2TSEL__ADC12IFG;   
//Source Address 
 __data16_write_addr((unsigned short) &DMA1SA,(INT16U)  &ADC12MEM2);   
// Determine Address                                             
 __data16_write_addr((unsigned short) &DMA1DA,(INT16U)  &Voltage[0]); 
// transmission num	
 DMA2SZ = 4;  
// word type , source address increase, determined address increase
 DMA2CTL = DMADT_4 | DMADSTINCR_3 | DMASRCINCR_3 |DMASWDW |DMAEN;  

However, Ifound  all of the datas in the array Voltage is the data of ADC12MEM2,  without the data of ADC12MEM3 - ADC12MEM5. Why?

Another question,if I don't read the data in the ADC12MEMx during the ADC operation .  the ADC will go wrong ?

Best Regards,

Jent

**Attention** This is a public forum