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 synchronous two interrupt but both run parallel?

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

I have taken two interrupt one is CPU ISR and the second is PWM ISR. Now, CPU ISR is running at 50 khz and PWM isr is running at 2 kHz. In CPU timer, one sin wave is generated which frequency is sometimes 40Hz and sometimes 50 Hz. Now whenever sine is at 0 degree, I want to start a PWM ISR. How can I do? Both the interrupt must be run parallel. 

  • Hi,

    Do you require both the interrupts to be executed simultaneously at the same time in parallel ? If that is the case, then you can leverage CLA (Control Law Accelerator) tasks to execute one of the ISR. EPWM modules can trigger a CLA task at a programmable frequency with event prescalers. You can refer to below resources to get started with CLA:

    https://training.ti.com/control-law-accelerator-cla-hands-workshop

    If my reply answers your question please click on "This resolved my issue" button located at the bottom of my post.

    Regards

    Himanshu

  • Hello Himanshu

    Thank you for your response. How to enable a PWM ISR interrupt in CLA at every zero degree of the sine running in CPU ISR?  Could you give an example?

  • Hi,

    The CLA task can be triggered by software too so if the sine computation being done as part of the CPU ISR then once the zero sin degree is obtained then the CLA task can be triggered directly through software. I would highly recommend you to get yourself familiar with the CLA by looking into the above resources that I shared and also refer to the CLA section in TRM for better understanding. Based on the details you should be able to design the software trigger architecture based on your system requirements.

    If my reply answers your question please click on "This resolved my issue" button located at the bottom of my post.

    Regards

    Himanshu