Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 217586

Forum Post: RE: TMS320F28379D: SOC0 and SOC1 issue on ADC-A

$
0
0
Hi, [quote userid="315989" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1418819/tms320f28379d-soc0-and-soc1-issue-on-adc-a/5440536#5440536"]In that case, how does the first code above, which only uses SOC0, work, even though I'm not restarting a conversion using the ADCSOCFRC1 register?[/quote] This is a good point, I cannot see from your code how the SOCs are being triggered again. How did you configure the SOCs to be triggered? With your code it cannot be only software triggered. [quote userid="315989" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1418819/tms320f28379d-soc0-and-soc1-issue-on-adc-a/5440536#5440536"]In my ADC initialization section, I also set the ADCINTSOCSEL1 register so that ADCINT1 triggers SOC0. Could this create a conflict since ADCINT1 is set to 1 at the end of the conversion?[/quote] Oh ok, this explains the above. [quote userid="315989" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1418819/tms320f28379d-soc0-and-soc1-issue-on-adc-a/5440536#5440536"]Could the operating principle described below work:[/quote] Could you please check out the continuous example at [C2000WARE]/driverlib/f2837xd/examples/cpu1/adc/ ? Your problem is likely caused by the timing of setting and clearing the ADCINT flag, and this example will show you how to handle that by setting up the ADC in continuous conversion mode. Best Regards, Ben Collier

Viewing all articles
Browse latest Browse all 217586

Trending Articles



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