Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/MSP430F67791A: ADC Interrupt issue

$
0
0

Part Number:MSP430F67791A

Tool/software: Code Composer Studio

Dear All,

I had to configure ADC such that i receive ADC Interrupt every 200uSec on completion of A to D Conversion of all  7 Channels.

I have Configured a timer for 200usec wherein

{

SD24BIE |= SD24BIE6 (Enable interrupt on conversion complete of last channel)

}

I have configured my ADC with below settings for 7 Channels available for SD24B in MSP430F67791A .

{

SD24 Clock : SMCLK = 16MHz

OSR : 256

SD24PDIV = 3

SD24DIV = 0

Left Alignment

Group Conversion

SD24BIE = SD24IE6  (In order to receive interrupt on conversion complete of the Last channel)

}

In ADC Interrupt : 

{

Samples are been taken

SD24BIE &=  ~SD24IE6 ;

}

The code works absolutely fine i.e. I receive ADC Interrupt every 200uSec, if I the last channel (Channel 6) reading are not been used.(Interrupt enabled for last channel)

Even if i move the Last channel readings (SD24BMEMH6 & SD24BMEML6) into a temp_Variable , the ADC Interrupt in not obtained every 200uSec (it is almost doubled i.e around 400usec).

It is been observed that for what ever channel SD24BIE |= SD24BIE6 ADC Interrupt is been enabled , this behavior repeats i.e. if interrupt enable been done for 5 th channel  SD24BIE |= SD24BIE5 ,on handling the results of 5th channel (SD24BMEMH5 & SD24BMEML5)  the ADC Interrupt time is altered .

Need your help for solving this issue.

Regards,

Shweta Shelar


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>