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.

CCS/TMS320F28335: Get in memory a Analog Signal Input through the ADC and plot it

Part Number: TMS320F28335

Tool/software: Code Composer Studio

I have a +-10V transformer going through a Signal Conditioning board to have a 0-3V output into the DSP28335, and I want this external output to go in ADC and save it on memory to graph it later. 

I have followed Module_08 - F2833x Analogue Digital Converter, and at last I guess pointing the graph to this variable should do

Voltage_VR1 = AdcMirror.ADCRESULT0;

But I am too confused now. Should I make Voltage_VR1 an array? Like Voltage_VR1 [50] so it can be ploted?

I am really confused on how I get an external input to memory, I think this is the main problem. It should first go thro all the ADC and this result is the one that I want in memory right? 

Thanks and excuse my ignorance 

PS. Im using CCS4

  • Hi Jose,

    The graph that you mention above is the CCS Graph tool or some external tool? If CCS Graph tool, you can simply plot the variable itself (Voltage_VR1) and not the array. You can also convert the digital value to analog value and then plot it. In your case the later would make more sense.

    Regards,
    Gautam