This paper presents a novel frequency-locked-loop (FLL) scheme that provides estimates of the in-phase and square-phase fundamental components of a distorted single-phase reference signal and an estimate of its fundamental angular frequency. The main feature of the proposed scheme is that its design is fully based on the dynamical model of a single-phase signal generator, namely, the second-order harmonic oscillator (SOHO), which adds originality to the scheme. In fact, the proposed scheme owns a particular structure involving a set of orthogonal signals, which can be seen as the fixed-frame representation of three-phase balanced signals. Additionally, a plug-in block is included as a mechanism to mitigate the effect of the harmonic distortion. A proof of global stability for the proposed scheme based on nonlinear argumentation is also included, which contributes to the novelty of the work and ensures convergence disregarding the initial conditions of the to-be-estimated signal components. In addition, explicit conditions are presented for the tuning of control parameters. Experimental results corroborate the performance of the proposed scheme under angular frequency variations, phase jumps, voltage sags and harmonic distortion on the reference signal. For comparison purposes, also the state-of-the-art second-order-generalized-integrator-based FLL and the single-phase synchronous-reference frame phase-locked loop are tested.