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.

MSP430F67641A: How to initialise temperature sensor and take sample in dma interrupt vector.

Part Number: MSP430F67641A

Sir ,

Please tell me the setting of adc10 for using temperature sensor and taking samples in DMA interrupt vector. My setting is......

// DMA SETTING

DMA0CTL &=~DMAEN;
DMACTL0 = DMA0TSEL__ADC10IFG0;
__data16_write_addr((uint16_t) &DMA0SA, (uint32_t) &ADC10MEM0);
__data16_write_addr((uint16_t) &DMA0DA, (uint32_t) &dma_adc_buffer[0]);
DMA0SZ = 6;
DMA0CTL = DMADT_4 | DMADSTINCR_3 | DMAEN | DMAIE;

//ADC SETTING

ADC10CTL0 &=~ ADC10ENC;
ADC10CTL0 = ADC10SHT0 | ADC10ON | ADC10MSC;

ADC10CTL1 = ADC10SHP | ADC10SHS_3 | ADC10DIV_3 | ADC10SSEL_3 | ADC10CONSEQ_1; 

ADC10CTL2 = ADC10RES | ADC10DF ;

ADC10MCTL0 = ADC10SREF_1 | ADC10INCH_10;

SD24BTRGCTL |= SD24SCS__GROUP0; /* Trigger generation group 0 +D24TRGIE */

SD24BCTL1 |= SD24GRP0SC; /* Start group 0 */
/* Start ADC and wait for a trigger from the SD24 */
ADC10IFG = 0;
ADC10CTL0 |= ADC10ENC;

// DMA VECTOR

#pragma vector=DMA_VECTOR
__interrupt void dma_ISR(void)
{

DMA0CTL &= ~DMAIFG;

and the rest coode...........

**Attention** This is a public forum