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/TMS320F28379D: How to alter the adc-soc-epwm code to trigger the ADC using a cpu timer

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hello All,

I am Sainath. I am relatively new to the TIDSP modules. I have triggered the ADC module using the epwm module using the example codes. 

Can someone help me in how to trigger the same ADC using a cpu timer.

Is there any example code to trigger the ADC using cpu timer. If not, can someone please explain what changes do we need to do in the adc_soc_epwm code to trigger the ADC using cpu timer.

Thank you.

Sincerely,

Sainath Reddy.

  • Hi Sainath,

    Please take some time to go through this excellent training material. It will answer your question and help you a lot more especially if you are new to DSPs.

    processors.wiki.ti.com/.../C2000_Multi-Day_Workshop

    Cheers,
    Krishna
  • Hello Krishna,

    Actually I am working on the adc_soc_epwm code. In the adc_soc_epwm code example, the A/D conversion SOC is made to start in the infinite loop. But, I am looking to start the SOC inside the isr, if possible.

    Is there any example available, so that I can proceed from that.

    Thank you.

    Best Regards,
    Sainath Reddy.
  • Hi Sainath,

    Without understanding the overall context of your question and the system, I believe what you are asking is quite simple. The SOC can be issued from anywhere, so yes you can issue it from within the ISR. However, I would expect that the very first one would have to issued from outside the ISR unless you are configuring something else to trigger the interrupt? I cannot point to an exact example that will do what you are asking for but there are several examples related to the configuration and control of the ADC in the link that I sent you.

    Hope that helps, please let me know if I can be of further assistance.
  • Hi Sainath, We have not heard back from you. Would you kindly confirm that you were able to resolve the issue. Cheers! Krishna