Other Parts Discussed in Thread: TMS320F28035, CONTROLSUITE
Hi,
I use TMS320F28035 MCU.
I am trying to use two tasks in the CLA. I started with the cla_adc example from controlSUITE. In the example, it uses epwm to trigger ADC, and use ADC interrupt to trigger CLA task. It shows that you don't have to implement Adc_ISR, as long as we set up the ADC interrupt, it should work. So, following the same method, I enabled another task of CLA, and it was triggered by an EPwm interrrupt. But, it was only working if I actually implement a EPwm_ISR ( ) even though there was no real job inside it but clear the flag and piectrl.
I think I should not have to do it this way. There should be a way to avoid writing EPwm_ISR( ). But I just could not get both tasks working without writing it.
All the examples from controlSUITE use only one peripheral interrupt to trigger one task and use software force for other tasks.
I just want to know how to set it up properly, so I can use two different peripheral interrupts to trigger two different tasks in CLA (without software force)
for example, using ADCINT1 to trigger task1, and using EPWM2_INT to trigger task2.
Could anyone show me how to configure it or show me where I can find more examples ?
Thank you.