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: CLAsin is not working in CLA task

Part Number: TMS320F28379D

I am using f28379d microcontroller. I am using CLA for my application,CLA task is triggered by ADC.code is working fine. I can access adc,epwm and normal mathematical equations but CLAsin is not working properly.it gives me zero value,when i am using pu or floating angle in rad.

CLA task code is given below:

__interrupt void Cla1Task7 ( void )
{
counter1 = counter1 + 0.031416;

if(counter1 >= 6.2832)
{
counter1 = 0;
}

X = CLAsin(counter1);

// X = AdcaResultRegs.ADCRESULT0;

// Y= CLAsinPU(X);

Y = (X*voltFilt);

}

CPU claisr code is given below:

__interrupt void cla1Isr7 ()
{
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1; //make sure INT1 flag is cleared
PieCtrlRegs.PIEACK.all = (PIEACK_GROUP1 | PIEACK_GROUP11);

counter++;

if(counter >= 1250)
{
counter = 0;
}

A = Y;


}

please help me to resolve this problem.