TMS320F28379D: Can not trigger other epwm interrupt when use CLA trigger for one of epwm on MATLAB
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
HI everyone
I use matlab 2022a. test on F28379D Launchpad
I use CLA task trigger source for epwm1 for toggle led, it's ok
but when i use C28x_Hardware_Interrupt block trigger epwm6 interrupt, cla_subsystem not operation, led not toggle.
i remove the interrupt vector of epwm6 cla_subsystem operation, led toggle.
when i use matlab 2021a i can use CLA and epwm interrupt. How to fix this issue
0 comentarios
Respuestas (1)
Ravi
el 2 de Feb. de 2024
Hi Dang Thai Son,
I see the same issue. As a workaround you can use CLA task number 2 for CLA task trigger. If there is a need to use only the task number 1, then you need to clear the epmwx interrupt with a custom code. You can use the system outputs block inside CLA_Task_1 subsystem and the following code:
EALLOW;
EPwm1Regs.ETCLR.bit.INT = 1;
EDIS;
I hope this answer resolves the issue you are facing.
Thanks,
Ravi
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!