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.
Tool/software: TI C/C++ Compiler
Hi,
The code i am reffering to is C2000Ware_3_01_00_00\device_support\f2837xd\examples\cpu1\adc_soc_continuous.I have worked with this code a year ago it worked fine. Now i re-run the example code from C2000 WARE , but the output is very unpredictable. I am using the same board i used previuosly.
The input is 200Hz sine wave 0.8V software generated. The output is not as expected in the AdcaResults buffer , it shows some random signals. I have changed the adc channel from A0, to A1and A3 , but the problem just persists.
Sometimes the ADCINFLG.bit.ADCINT3 bit is not set and the code is stuck inside infinite while loop.
When i connect the A0(pin30) to 3.3v (of J1) the output is perfect dc of 4096(1.5V) , but again the ADCINFLG.bit.ADCINT3 is not getting set after a few cycles. I dont know really where i am going wrong because i am using an unaltered example code.
I have added _LAUNCHXL_F28379D in properties/Build/C2000 Compiler/Advanced options/Predefined symbols .But that did not help much.
I am not understanding where i am going wrong. Is there a possibility that the Delfino board has a problem , if so is there way to check. i used the same board and same code and the out put was perfect.
I am currently using ccsv8. .
Thanks and Regards,
Ashwin
Hi Ashwin,
What board are you using? Is the signal source the same as it was before? What is the signal source?
As far as the board, you probably want to use a DMM to check the VDDA voltage as well as the VRFHI voltage. If you have any components supplying VREFHI or buffering the input signal you may want to check their power supplies as well. Verifying that the clock is working correctly might also be a good idea: you can enable XCLKOUT if it is on an available pin or use one of the ePWM examples and determine if the waveform is the expected frequency.
Hi Devin,
Thanks for the quick response.
I am working on C2000 Delfino MCU F28379D LaunchPad™ development kit.
Yes the signal source same as before.
I am using audacity software to generate signal.
I will check the board and get back to you.
Thanks and Regards,
Ashwin