Hello.
Please tell me about updating CLA data.
CLA data is updated regularly in the task cycle.
Is it possible that these old and new data are mixed in the CLA_TSK function?
When using interrupt handling, to avoid mixing old and new data ,I used DINT / EINT when updating the data.
Can I use this to stop the start of the CLA_TSK function?
The start trigger for Cla1Task1 () is EPWM1INT.
Please let me know if there is a way to prevent the old and new data from being mixed.
*Periodic task
DINT; //necessary?
C28xtoCLA.Buck.vCmd = _IQ16toF(Param->Ctrl.P12Vset);
C28xtoCLA.Buck.iCmd = _IQ16toF(Param->Ctrl.BukLmt);
EINT; //necessary?
__interrupt void Cla1Task1 ( void )
{
Clawk.Buck.error = C28xtoCLA.Buck.vCmd - wk;
:
Clawk.Buck.out = C28xtoCLA.Buck.iCmd;
:
}
Best regards,