Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: TI C/C++ Compiler
Hi,
I am trying to use the single phase float function in the solar library.
The input voltage frequency is 50Hz. ADC is working 20kHz sample per cycle (5 usec). I change the ADC output data type, scale it and remove the offset(maybe 2% offset exist). The sinusoidal waveform (-1,1) is applied to the spll1_ph function. With the following parameters. PLL running time is same as ADC sampling time.
Notch filter coeffs (default values).
B2_notch=0.972000003,B1_notch=-1.94019997,B0_notch=0.972000003,A2_notch=0.944000006,A1_notch=1.94019997
Low pass filter coeffs.(default values).
B1_lf=-274.8, B0_lf=250, A1_lf=-1
I am using an array to save the PLL output values for 2 cycles.
For spll.sin[x] a sinusoidal in-phase waveform with input is created by PLL(amplitude is 0.03), but for spll.cos[x] and spll.theta[x] the values are constant 0.91 and 0, respectivley.