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.

TMS320F28379D: CLA task and cpu interrupt can be triggered from same source

Part Number: TMS320F28379D

I am using CLA for my application and it is triggered by ADCINT1 and running at 10kHz but at same time, I want use adc interrupt in CPU also.

can i trigger CPU interrupt and CLA task from same source.

I having doubt in interrupt priority because CLA task ( interrupt group 11) has lower priority compare to adc interrupt in cpu (interrupt group 1).both work parallel or interrupt priority will come into the picture.

Is it possible CLA and CPU will not interfere each other task during normal running condition even trigger by same source??   

  • Sonak,

    Yes, you can trigger a CPU interrupt and a CLA task from the same ADC end-of-conversion event.  On the CPU, you would enable the appropriate interrupt and write a service routine.  The ISR would be triggered by the EOC event.

    On the CLA side, you would write a task which would automatically start on the EOC event.  You would typically configure the CLA interrupt to trigger when the task completes, so the CPU interrupt happens after the task is over.

    In this way, you would have code running in parallel on the CPU and CLA, both using the same ADC data.  The ISR and CLA task will run completely independently of each another.  There will be no interference.

    Regards,

    Richard

  • Hi Richard

    thanks for reply. I have tested my code with common trigger source for CLA and CPU interrupt.it is working fine.