TMS320F28379D: Can not trigger other epwm interrupt when use CLA trigger for one of epwm on MATLAB
조회 수: 6 (최근 30일)
이전 댓글 표시
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
답변 (1개)
Ravi
2024년 2월 2일
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
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!