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: Solar Library SPLL_3ph_SRF_CLA_MACRO

Part Number: TMS320F28379D

Tool/software:

Dear Experts,

I could finally make some improvements in using SOLAR LIBRARY leveraging CLA. I am using SPLL_3ph_SRF_CLA_MACRO to estimate theta of a 3phase signals. Currently I am simulating R,Y,B and passing them to the library to estimate theta.

interrupt void Cla1Task1 (void)
{
    SPLL_3ph_SRF_CLA PLL;
    PARK_CLA park1;
    CLARKE_CLA clarke1;
    SPLL_3ph_SRF_CLA_init(50,((float32)(1.0/20000)),PLL);

    clarke1.a = R;
    clarke1.b = Y;
    clarke1.c = B;
    CLARKE_CLA_MACRO(clarke1);

    park1.alpha=clarke1.alpha;
    park1.beta=clarke1.beta;
    park1.zero=clarke1.zero;
    park1.sin = sine;
    park1.cos = cose;
    PARK_CLA_MACRO(park1);

    PLL.v_q[0] = park1.q;

    SPLL_3ph_SRF_CLA_MACRO(PLL);

    theta= PLL.theta[1];
    
}

All I expect is, theta-the grid angle, supposed to vary between 0 to 2*pi or 0 to 1, but I see strangely theta varies between .015 and 0.017

Please correct where I am wrong.

Regards,

Rajesh.