Dear all.
I have some questions.
I was simulated to use the PSIM about Phase Locked Loop Modules.
Simulation result is below Figure 1.
Figure 1. input: Vac_in(-0.7 ~ 0.7), Output: Theta1(0 ~ 0.474), Sin1(-0.99 ~ +0.99) and cos1(-0.99 ~ +0.99).
Figure 2. Module interface definition.
For the simulation, I was using "SPLL_1ph_CLA_C.h" and "CLA C Solar Library.pdf (v1.1)".
My Questions.
1. Is this result correct?
2. v.theta0 = v.theta1 + (v.wn * SPLL_1ph_CONST_1);
SPLL_1ph_CONST_1 = 0.00000795;
here, What does mean SPLL_1ph_CONST_1(0.00000795)?
3. Figure 2. Module interface definition.
Accepthable Range of theta is float32(-2*pi ~ 2*pi). but theta range of Figure1 is 0 ~ 0.474.
My opinion:
theta range of Figure1 : maybe 0 ~ 2*pi. Is this correct?
4. interrupt void Cla1Task1(void) {
....
// SPLL call
spll1.AC_input = Vac_in;
SPLL_1ph_CLA_C(spll1);
InvSine = (spll1.sin0);
.....
}
what are the "InvSine" used?
Thank you so much your interest.