* The PLL uses a 1/2 park transform to act as a frequency / phase detector. When V_grid and the reference DCO(Digital Controlled Oscillator) are 90º out of phase * the q output of the park transform will be zero. q is the phase error which is fed to the input of a PI contro...