Author's Accepted Manuscript
Improved acquisition in a phase-locked loop using sliding mode control Techniques Paul T. Lanza II, Yuri B. Shtessel, John L. Stensby
www.elsevier.com/locate/jfranklin
PII: DOI: Reference:
S0016-0032(15)00233-1 http://dx.doi.org/10.1016/j.jfranklin.2015.06.001 FI2366
To appear in:
Journal of the Franklin Institute
Received date: Revised date: Accepted date:
24 June 2014 20 January 2015 1 June 2015
Cite this article as: Paul T. Lanza II, Yuri B. Shtessel, John L. Stensby, Improved acquisition in a phase-locked loop using sliding mode control Techniques, Journal of the Franklin Institute, http://dx.doi.org/10.1016/j.jfranklin.2015.06.001 This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting galley proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.
Improved Acquisition in a Phase-Locked Loop Using Sliding Mode Control Techniques Paul T. Lanza II, Yuri B. Shtessel, John L. Stensby Abstract In many phase-lock loop (PLL) applications, the naturally occurring pull-in process is too slow and unreliable. Therefore, PLLs use acquisition aids to mitigate the process of locking onto the phase of some input reference signal. Commonly used acquisition aids have deficiencies with limiting effects. For voltage-controlled oscillator (VCO) sweeping, deficiencies include lock detector requirements and search rate limitations. For a charge-pump subsystem, the operated sequential phase detector (PD) is less resistant to errors than an analog multiplier PD. In order to overcome the deficiencies of common acquisition aids and improve PLL robustness to perturbations, it is proposed to use a conventional or a second order sliding mode controller (SMC/2-SMC) as an acquisition aid to provide robust finite-time phase-lock in the PLL. This improvement is achieved without the use of a lock detector, and the disabling of the acquisition aid is not necessary. The PLL aided by SMC/2-SMC is studied analytically and via simulations. A significant improvement of the PLL’s performance is demonstrated; specifically, the lock time is decreased, and the steady state phase error is reduced for a frequency ramp input. Keywords: Phase Locked Loop; PLL Acquisition Aid; Sliding Mode Control; Super-Twist Control; PLL VCO Sweep Rate
Authors: Paul T. Lanza II, DESE Research, Huntsville, AL 35805, USA. Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA. E-mail address:
[email protected], phone: (256) 656-8148 Yuri B. Shtessel, Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA. E-mail address:
[email protected], phone: (256) 824-6164 John L. Stensby, of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA. E-mail address:
[email protected], phone: (256) 824-6258
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Improved Acquisition in a Phase-Locked Loop Using Sliding Mode Control Techniques Paul Lanza, Yuri Shtessel, and John Stensby Abstract In many phase-lock loop (PLL) applications, the naturally occurring pull-in process is too slow and unreliable. Therefore, PLLs use acquisition aids to mitigate the process of locking onto the phase of some input reference signal. Commonly used acquisition aids have deficiencies with limiting effects. For voltage-controlled oscillator (VCO) sweeping, deficiencies include lock detector requirements and search rate limitations. For a charge-pump subsystem, the operated sequential phase detector (PD) is less resistant to errors than an analog multiplier PD. In order to overcome the deficiencies of common acquisition aids and improve PLL robustness to perturbations, it is proposed to use a conventional or a second order sliding mode controller (SMC/2-SMC) as an acquisition aid to provide robust finite-time phase-lock in the PLL. This improvement is achieved without the use of a lock detector, and the disabling of the acquisition aid is not necessary. The PLL aided by SMC/2-SMC is studied analytically and via simulations. A significant improvement of the PLL’s performance is demonstrated; specifically, the lock time is decreased, and the steady state phase error is reduced for a frequency ramp input.
I. Introduction A phase-locked loop (PLL) is an important signal tracking device that synchronizes its output signal with an input reference signal. The output signal is synchronized, or phase-locked, when it is in phase quadrature with the input signal. The process of bringing a PLL into phase-lock, which is known as acquisition, and continuously tracking the input reference signal can be achieved with a traditional PLL [1]. A functional diagram of a traditional PLL is shown in Fig. 1. The traditional PLL in Fig. 1 contains a phase detector (PD), a loop filter (LF), and a voltage-controlled oscillator (VCO) set up in a feedback configuration. Other terms shown in Fig. 1 include the Phase Detector
= √2 sin
VCO
Loop Filter
= √21 cos
Fig. 1 – A functional diagram of a traditional PLL with sinusoidal waves.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
VCO gain
K v > 0 ( rad / ( sec ² V ) ) , the PD gain K d > 0 ( rad / V ) , the LF transfer function F ( s ) , the PD
output voltage
g (t ) , and the error control voltage e(t ) . The input reference signal r (t ) and the VCO output
signal v (t ) are sinusoidal signals; therefore, a sinusoidal analog multiplier PD is used in this configuration. Traditional PLLs are used in many applications including phase locked receivers, frequency synthesis, and motor speed control. The goal of the traditional PLL is to drive the VCO generated harmonic signal output phase θ o (t ) to follow the commanded/received, processed harmonic signal input phase of this goal, the driving of
θ o ( t ) → θi ( t )
θi ( t ) ( i.e.,θo ( t ) → θi ( t ) ) .
is to occur in finite time, or as time increases in the presence of
bounded parametric uncertainties and external disturbances. This goal results in driving the phase error where
φ ( t ) = θi ( t ) − θ o ( t ) .
As a part
The PLL is said to be phase locked when the modulo- 2π value of
φ (t ) → 0 ,
φ (t )
remains
acceptably small over time so that the VCO signal leads the reference signal by a quarter of a period, approximately. Since the reference signal is known on-line only, the formulated task is a tracking problem. Although the traditional PLL can achieve its stated goal, multiple deficiencies exist that degrade its performance. The deficiencies of the traditional PLL can be summarized as follows: •
The traditional PLL is susceptible to external disturbances. For instance, this can be caused by mechanical vibrations. Furthermore, VCO parametric uncertainties yield degradation of the PLL’s performance.
First and second order PLLs cannot lock with
φ (t ) = 0
on the phase of a reference signal with a time varying
frequency (i.e., a ramp signal). When a ramp signal variation exists, a first order PLL (a PLL where
F ( s ) = 1 ) can
exhibit an infinite steady state error while a second order PLL (a PLL with a first order LF) exhibits a finite steady state error. • The naturally occurring pull-in process of a traditional PLL can be too slow and unreliable. This process may not achieve acceptably agile performance for particular applications, such as where the PLL closed-loop bandwidth is made small in order to limit the detrimental influence of noise on the reference signal. In order to mitigate the pull-in process, an acquisition aid is used in the PLL; however, each type of acquisition aid has deficiencies and limitations of its own as discussed in the next paragraph. Popular acquisition aids, such as a VCO sweeping signal or a charge-pump subsystem, are used for mitigating phase-lock [1,2,3]. The VCO sweeping signal is an external alternating ramp signal that is injected into the VCO to aid the search for the input reference signal [2]. The charge-pump subsystem distributes a fast switching charge into the LF based on the phase error [3]. However, there are some downsides of using these acquisition aids. Sweeping the VCO constrains the PLL to a blind search and a limited search rate; therefore, the expected input frequency range must be known and the maximum search rate must be calculated [2]. Additionally, sweeping the VCO requires the use of an external lock detector circuit to turn off the sweep signal upon phase lock detection.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Otherwise, the acquisition aid produces a phase error in the locked PLL [1,3]. The charge-pump PLL uses a memory containing sequential PD, which is less resistant to errors when compared to an analog multiplier PD [3]. This paper proposes the use of a conventional or a second order sliding mode controller (SMC/2-SMC) instead of the above-mentioned acquisition aids. The SMC/2-SMC aid is to improve phase acquisition of a PLL by addressing the stated deficiencies above. It is known that SMCs/2-SMCs are robust to matched uncertainties and external disturbances while providing finite time convergence [5-13]. Second order sliding mode controllers [9,12,13] retain the robustness property of an SMC while having the capability to generate a continuous control signal. They also achieve the enhanced accuracy of stabilization of the sliding variable that is proportional to
( ∆t )
2
, where
∆t is a time increment, when implemented in discrete time.
The expected advantages, in using the SMC/2-SMC [4-13] to aid the PLL instead of the mentioned acquisition aids, are listed below: •
Within a traditional PLL, phase-lock (zero phase error) is achieved in less time.
•
An external lock detector circuit is not required.
•
While the SMC provides a fast switching solution, the 2-SMC allows generation of a continuous control signal that can be beneficial for PLL applications.
•
The implementation of SMC/2-SMC is not complex and is compatible with the analog multiplier phase detector for superior tracking of signals. The SMC and 2-SMC controller design for the PLL is performed in this paper upon the following
assumptions: A1.
A second order PLL (Type II) that uses a proportional plus integral (PI) LF is considered.
A2.
Sinusoidal waves are used for input reference and VCO signals.
However, other wave types are
compatible. The organization of the paper is as follows. The traditional PLL is modeled and simulated to common input test signals in Section 2. Also in Section 2, the simulation is performed with an acquisition aid of a VCO sweep signal for comparison with the final results. Sliding mode control aid techniques are studied and applied to the PLL system in Section 3. Both proposed SMC and 2-SMC implementations are given in Section 4, and their efficiencies are demonstrated via simulations in Section 5. These simulations are performed without the presence of noise for simplicity of analysis. The conclusions are given in Section 6. The proofs of the theorems can be found in Appendices 1 and 2.
2. Traditional PLL Configuration: Mathematical Model and Motivation Example *Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The commonly used mathematical model of a PLL (Fig. 1) [1,3], which is used for SMC and 2-SMC acquisition aid design, is studied in this section. The transfer function of the proportional plus integral LF used is
F (s) =
Equations of the input reference signal
e( s ) s + α = , α > 0. g ( s) s
(1)
r (t ) and the VCO output signal v(t ) are (2)
r ( t ) = 2 A sin θi ( t ) ,
(
)
(3)
v ( t ) = 2 K1 cos θ o ( t ) = 2 K1 cos ωot + K v ∫e ( t ) dt ,
where
2K1 and
2A are signal amplitudes, ωo is the VCO center frequency ( rad / s ) , θi (t ) is the reference
signal’s phase ( rad ), and
θo ( t ) = ωot + K v ∫e(t )dt
is the VCO phase
(rad ) . The output of the analog
multiplier PD is computed using Eqs. (2), (3), and a trigonometric identity to yield
g ( t ) = K d r ( t ) v ( t ) = AK1 K d sin (φ ( t ) ) + sin ( 2ωot + θ1 + θ 2 ) ,
where the variables
θ1
and
θ2
(4)
are defined as
θ1 ( t ) = θi ( t ) − ωot ,
(5)
θ 2 ( t ) = θ o ( t ) − ωo t . Equation (5) characterizes the relative phase variables Additionally, the phase error
θ1
and
θ2
with respect to the quiescent phase
ωo t
[1].
(rad ) is
φ ( t ) = θi ( t ) − θ o ( t ) = θ1 ( t ) − θ 2 ( t ) .
(6)
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The traditional PLL described by Eqs. (1)-(6) is simulated in order to study the phase error
φ (t )
response
to common PLL test signals. The simulation diagram of this PLL is shown in Fig. 2. Multiple simulations are run under specific conditions using Python programming models originally developed in the appendices of [4]. Each simulation is run without noise and without external disturbances. The parameterization of the PLL in Fig. 2 includes the chosen phase detector gain K d = 20 , VCO gain K v = 20 , and signal amplitudes of
A = K1 = 1/ 2 for overall unity amplitudes. The integrator gain is selected to satisfy the damping ratio
ξ = 1/ 2 .
The integrator gain is solved for by the common second order closed loop damping ratio and natural frequency equations [1]
(7)
ξ = G / 4α , ωn = α G ,
20
100 $
Σ
20 $
Σ
cos∙
20,000" Fig. 2 – The simulation diagram of a traditional second order Type II PLL, where = 100, = = 20, and = 20,000".
G is the closed loop gain defined in [1,3,4] as G = AK1K v K d . As a result, the desired integrator gain is α = 100 .
where
The signal values of the simulated PLL in Fig. 2 are given. A constant VCO center frequency is selected as
ωo = 20, 000π rad / s (10 kHz ) .
The input test signals used in the simulations are a frequency step of
−400π rad / s (−200 Hz ) and a frequency ramp with the rate of 200π rad / s 2 (100 Hz / s ) . These test signals are represented as
r ( t ) = sin ( (ωo − 400π ) t ) us (t ) for the frequency step and
(
)
r ( t ) = sin ωot + 200π t 2 us ( t ) for the frequency ramp, where us (t ) is the unit step function.
φ (t ) , the following assumptions are made: sin ( 2ωot + θ1 + θ 2 ) in the PD output g (t ) , as defined in Eq. (4), is significantly
In order to reconstruct the phase error The double frequency term
attenuated by the LF and VCO dynamics. Therefore,
g (t ) is approximately estimated as
g ( t ) = AK1 K d sin φ (t ).
(8)
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The feasible set of the phase error
φ (t )
is limited by
φ (t ) ≤ π / 6 .
As a result, the PD output in Eq. (8) can be
linearized, which takes the form
(9)
g ( t ) = AK1 K d φ (t ).
Note that if
g ( t ) → 0 , then φ (t ) also converges to zero thus achieving phase lock. As a result, g ( t ) → 0 .
Therefore,
g ( t ) defined in Eq. (9) will be used in the control model of the PLL, while g ( t ) defined in Eq. (4) is
(a)
(b)
(c)
Fig. 3. Error response (&) of the traditional second order Type II PLL to (a) a frequency step, (b) a frequency ramp, and (c) a frequency step with a sweep signal injected into the VCO. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.8 secs to = 0.8003 secs.
used in the simulation model. The simulation results of the PLL in Fig. 2 are presented in Figs. 3(a) and 3(b). Specifically, the demonstrated response is where
g (t ) passed through a low-pass filter with the transfer function H ( s ) = 1/ (τ s + 1) ,
τ = 0.001 , to filter out the double frequency term in Eq. (4).
The filtered
g ( t ) response to the given
frequency step is shown in Fig. 3(a), and it converges to zero asymptotically with a settling time of approximately 0.45 seconds. The filtered
g ( t ) response to the given frequency ramp is shown in Fig. 3(b), and it converges to a
non-zero amplitude that is proportional to the rate of the frequency ramp as verified in [1,3]. In order to mitigate phase-lock in response to a frequency step input, the popular acquisition aid of sweeping the VCO is implemented into the simulation. Sweeping the VCO is achieved by inserting an alternating ramp signal into the VCO [2]. However, the sweep signal can be modeled as a continuous ramp signal without any loss of *Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
generality [2]. Therefore, a ramp signal modeled as and
(
Rt / K v (V ) , where R / K v (V / s) is the slope of the signal
)
R rad / s 2 is the sweep rate, is summed with the VCO control voltage e(t ) in Fig. 2. This sum becomes
the new VCO input [2,4]. The VCO output signal in Eq. (3) can now be written with the ramp term as
(
)
v ( t ) = 2 K1cos ωot + K v ∫ e ( t ) + Rt / K v dt .
(10)
The simulation result using Eq. (10) is presented in Fig. 3(c) for the input frequency step signal
r ( t ) = sin ( (ωo − 400π ) t ) us (t ) . The maximum sweep rate that guarantees phase-lock is calculated in [4] as
(
)
R = −10, 044 rad / s 2 , or R / K v = −502.2 ( V / s ) . The sweep rate is set to a negative value since the frequency step is known to be a negative value; however, input signals are not typically known resulting in a blind search. The result of this simulation in Fig. 3(c) shows that the filtered output of the PD
g ( t ) does not converge to
zero, but that the PLL locks with a non-zero steady state error. However, it shows that phase lock is acquired in a faster time as it crosses zero phase error at approximately 0.10 seconds and settles at approximately 0.15 seconds. It is noted that this PLL is not simulated with a frequency ramp input signal. An input frequency ramp only adds to the VCO sweep rate. Since this PLL is implemented with its maximum sweep rate, a frequency ramp input signal may cause the PLL to sweep past its lock point. Due to this reason, this simulation is omitted. From the simulation results in Fig. 3(c), the deficiencies of aiding the PLL by a VCO sweep signal are noted. The second order Type II PLL (Fig. 2) can achieve phase-lock asymptotically with zero steady state error
(φ
ss
φ ( t ) = 0 ) , computed in accordance with Eq. (8) or (9), only in response to a frequency step or ( t ) = lim t →∞
phase step [1]. Therefore, inserting a ramp signal into the VCO to mitigate the
g ( t ) convergence results in a non-
zero steady state value in response to an input frequency step. From this observation, the VCO sweep signal can only be implemented with zero steady state phase error in this PLL with a lock detector [1]. The absence of a lock detector to turn off the sweeping (ramp) signal, as soon as φ (t ) becomes equal to zero, results in a non-zero steady state phase error. This produces lower accuracy and additional stress on the system after lock is acquired [3]. Using a lock detector adds complexity to the system and increases the system’s cost. Additional to the lock detector requirement, the sweep rate is limited [2], and thus limits the PLL’s system improvement capability. In this work, it is proposed to augment the existing input of the LF in Eq. (4) by aiding it with a conventional or a second order sliding mode control (SMC/2-SMC) function. These controls are expected to eliminate the steady state phase error and guarantee the desired convergence time in PLL systems in the presence of parametric uncertainties and external disturbances. They are also expected to eliminate the need for a lock detector when mitigating phase error response in a second order Type II PLL. Remark 1. Note that the SMC/2-SMC function results in an automatic control of a VCO sweeping signal. Consider an output segment of the SMC/2-SMC function as a constant signal with non-zero amplitudes. The integrator in the LF (see Fig. 2) integrates the additive constant signal into an additive ramp signal, which is summed with the error control voltage
e ( t ) [3,4]. Since a conventional SMC alternates about zero (as shown in later sections), the
integrated signal yields an alternating ramp signal. Therefore, this technique is similar to VCO sweeping, except that the resulting ramp signal is controlled by the SMC/2-SMC function, which is a function of
g (t ) .
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
3. Problem Formulation Before designing the SMC/2-SMC control law, the system given by Eqs. (1)-(9) is presented in a state variable format [4]. The state variable format is formed by setting
x1 ( t ) = θ o (t ) to get
x 1 = K v (α x2 + u ( x1 , x2 , t ) ) + ωo + ϕ ( x1 , x2 , t ) x 2 = u ( x1 , x2 , t )
where
,
(11)
u ( x1 , x2 , t ) is the system control to be designed and ϕ ( x1 , x2 , t ) describes the unknown bounded
perturbation
( ϕ ( x , x , t ) ≤ L ) . The unknown bounded perturbation may occur due to parametric uncertainties 1
2
of the LF and VCO, mechanical vibrations, temperature, power supply switching, and external signal noise. Note that the system control
u ( x1 , x2 , t ) in the traditional PLL is the phase detector output g ( t ) in Eq. (4), i.e.
u ( x1 , x2 , t ) = g ( t ) . The problem is to redesign the control law
u = u ( x1 , x2 , t ) that drives
φ ( t ) = θi ( t ) − x1 ( t ) → 0
(12)
in finite time in the system described by Eq. (11). Holding Eq. (12) means that the PLL system locks on the phase
θi ( t )
of the input signal
r (t ) . The measurement available in the system described by Eq. (11) is the output of the
PD g (t ) . In accordance with assumption A3, g (t ) is replaced by its approximation control law design. Equation (9) can be rewritten as
g ( t ) = AK1 K d (θi ( t ) − x1 ( t ) )
g (t ) from Eq. (9) for the
(13)
by substituting Eq. (12). From Eq. (13), the PLL system is locked if
g ( t ) = 0 . Therefore, the problem is reduced
to designing a control law
u = u ( x1 , x2 , t ) that drives g ( t ) → 0 in finite time.
4. Sliding Mode Control of PLL
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The development of the SMC and 2-SMC implementations for the PLL is presented in this section. Subsection 4.1 presents a fast-switching conventional SMC for aiding the PLL. The continuous super-twisting 2SMC, which is more suitable for aiding in PLL applications, is studied in subsection 4.2. Remark 2. For both SMC and 2-SMC implementations, the original PLL is completely in-tact. In other words, if the SMC/2-SMC is removed from the loop, the original PLL still remains. Therefore, the SMC and 2-SMC implementations are acquisition aids. 4.1. Conventional Sliding Mode Control The conventional SMC used for aiding the system described by Eq. (11) is presented. This system is of relative
degree one with the internal dynamics
x 2 = u ( x1 , x2 , t ) , which are proven to be stable in Theorem 1 presented
below. The properties of the PLL aided by conventional SMC are formulated in the following theorem. Theorem 1. Assume that •
the PLL dynamics are given by Eq. (11);
the perturbation
ϕ ( x1 , x2 , t )
is bounded:
the derivative of the input signal phase the state variable
ϕ ( x1 , x2 , t ) ≤ L1 ;
θi ( t )
is bounded:
θ i ( t ) ≤ L2 ;
x2 is bounded in a reasonable performance domain of the PLL: x2 ≤ L3 ;
the variable
g ( t ) in Eqs. (9) or (13) is measured;
then the PLL locks on the input signal phase in finite time
t F ≤ g ( 0 ) / ρ , ρ > 0 and stays locked afterwards (i.e.
g ( t ) = 0 ∀ t ≥ t F ) via conventional sliding mode control
u (t ) = cp g (t ) +
( ρ + L4 ) sign g G
( t ) , c p > 0,
G = AK1 K d K v ,
(14)
where
L4 = AK1 K d ( L2 + K vα L3 + ω0 + L1 ) .
(15)
Proof of the theorem is given in Appendix 1.
4.2. Super-Twisting 2-SMC
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The continuous second order super-twisting controller (2-SMC) [9,12,13] used for aiding the system described by Eq. (11) is presented. When it is applied to systems of relative degree one, it drives the sliding variable and its derivative to zero in finite time. One of the most important features of the super-twisting control is its continuity. Therefore, it is beneficial to apply the super-twisting control law to the PLL system controller in order to mitigate chattering of the aided control signal. The properties of the PLL aided by the super-twisting controller are formulated in the following theorem. Theorem 2. Assume that •
the PLL dynamics are given by Eq. (11);
the following condition holds in a reasonable performance domain of the PLL
−c p G g ( t ) + ξ ( x1 , x2 , t ) ≤ H , c p > 0, H > 0, where
ξ ( x1 , x2 , t ) = AK1 K d θ i ( t ) − K vα x2 − ω0 − ϕ ( x1 , x2 , t )
and
g ( t ) is defined in Eq. (9) or (13);
the variable
g ( t ) in Eqs. (9) or (13) is measured;
then the PLL locks on the input signal phase in finite time and stays locked afterwards (i.e.
g ( t ) = 0 for all
consecutive time) via super-twisting control
u (t ) = cp g (t ) +
1 λ g ( t ) G
1/ 2
sign g ( t ) + v2 (t ) , c p > 0, G = AK1K d K v
(16)
v 2 ( t ) = β sign g ( t )
1/ 2
with λ = 1.5H , β = 1.1H . Proof of the theorem is given in Appendix 2. It is worth noting that the presented choice of the values for the coefficients λ , β [7,8,12] is viable but not unique. Furthermore, they can be selected based on conditions derived using Lyapunov function techniques [14].
5.
Case Study
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The studied unperturbed,
ϕ ( x1 , x2 , t ) = 0 , second order Type II PLL aided by the proposed SMC/2-SMC (from −6
Section 4) is simulated. All simulations are performed using the Euler method with the step size 10 seconds. Multiple sets of simulations are presented in order to show the performance of the PLL with the SMC/2-SMC aid. Each simulation set shows the phase error responses to an input frequency step and an input frequency ramp. Each set uses the same signals and gains as the simulated traditional PLL in Section 2 in order to show the effectiveness of the SMC/2-SMC implementation. The VCO center frequency ωo is set equal to 20,000 π , as in Section 2, and remains unchanged for all simulations. The reference signals, both frequency step and frequency ramp, in each simulation set are described by the same equations for
r ( t ) in Section 2.
Additionally, the SMC/2-SMC aid response is shown for each simulation. Therefore, the term
u1 ( t ) is introduced
where
u ( t ) = c p g ( t ) + u1 ( t ) ,
such that
(17)
u1 ( t ) represents the SMC/2-SMC aid output. The SMC/2-SMC aid output helps show the characteristics
of the aid being used as well as the disturbance compensation. The gain magnitudes of the SMC/2-SMC implementation are another important element of the simulated phase error response. Equation (14) shows that there are two components of the conventional SMC gain, ρ and L4 . The component
ρ
is used to determine the maximum reaching time, whereas
The component
L4 is calculated directly from Eq. (15).
L4 is a very large magnitude, which makes ( ρ + L4 ) / G a large magnitude. A gain with a large
magnitude is not desired in a practical sense due to the presence of noise. Therefore, smaller gain magnitudes are used within the simulations presented in this section.
5.1
Simulations of PLL Aided by Conventional SMC
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Optional
LPF
*++4
sign()
Phase Detector
./
-1
Σ
-
PI Filter
$
Σ
VCO
Fig. 4 – The configuration diagram of the second order Type II PLL with SMC implementation shown with the optional low-pass filter.
The configuration diagram of the second order Type II PLL aided by conventional SMC is presented in Fig. 4. Figure 4 presents an optional low-pass filter (LPF), which is explained in more detail later in this section. In the first set of simulations, the SMC gain magnitude
ρ + L4
is selected such that
u1 ( t ) yields a ramp signal, after
the LF integration, with a rate equal to the PLL maximum sweep rate. Recall that the maximum sweep rate given in Section 2 is
R / K v = −502.2 ( V / s ) . Therefore, the total gain magnitude of the conventional SMC is
calculated by along with
( R / K v ) / α , which yields
ρ + L4 = 5.022 .
This gain value is used in the first set of simulations
c p = 1 . The first set of simulations is also performed without the optional LPF.
The phase error and SMC aid responses to each test signal are presented in Fig. 5, and they are compared with the traditional PLL simulation results. The phase error response to the frequency step input shows that it converges to zero asymptotically with a settling time near 0.25 seconds. The phase error converges to zero in less time than the PLL without any aid (see Fig. 3(a)). The phase error response to the frequency ramp input converges to a non-zero value asymptotically. This
g ( t ) response is less than the g ( t ) response of the traditional PLL with frequency
ramp input (Fig. 3(b)). The SMC aid response
u1 ( t ) shows high frequency switching, and its average should
follow the disturbance. The disturbance at the SMC input includes the double frequency term, thus the response
u1 ( t ) in Fig. 5 shows an average close to zero.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Fig. 5 – Simulation results for the second order Type II PLL with conventional SMC implementation, without the optional LPF, and with gain value * + +1 = 5.022. The graphs on the left show the error (&) and the SMC aid responses to the frequency step and frequency ramp input signals. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.4 secs to = 0.4003 secs. The results in Fig. 5 are also compared with the simulation results from sweeping the VCO in Section 2. From the results of the frequency step input, sweeping the VCO with an implemented lock detector may still converge to zero in a faster time by comparison of Fig. 3(c). From Fig. 3(c), an implemented lock detector should turn off the sweep signal around 0.1 seconds, and additional time may be required to allow the phase error signal to settle. The conventional SMC aid follows the non-linear input and disturbances. This causes the phase error to alternate about zero multiple times as shown in Fig. 5. The alternating accounts for the slower acquisition time with the equivalent maximum sweep rate. Although this seems to put the PLL with the SMC aid at a disadvantage, later simulations show the advantage of the SMC aid. Furthermore, phase-lock is guaranteed when the SMC aided PLL *Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
has an input frequency ramp signal. The PLL with a VCO sweep signal at its maximum sweep rate cannot guarantee phase-lock with an input frequency ramp signal. For the second set of simulations, Fig. 4 is simulated under the same conditions as the first set of simulations, except the optional LPF included. The LPF is described by the transfer function
H ( s ) = 1/ (τ s + 1) , where τ = 0.001 .
The LPF further attenuates the double frequency term at the SMC input to provide a smoother input. The simulated phase error and control responses to each test signal are presented in Fig. 6. Adding the LPF improves the phase error response to both the frequency step and frequency ramp inputs as shown in Fig. 6. Remark 3. The added optional LPF can be considered as unmodeled/parasitic dynamics for the proposed sliding mode controllers that increases system’s relative degree. A rigorous analysis of SMC and 2-SMC systems with unmodeled/parasitic dynamics is presented in quite a few works. A good coverage of these techniques can be found in the work [13].
Fig. 6 – Simulation results for the second order Type II PLL with conventional SMC implementation, with the optional LPF, and with gain value * + +1 = 5.022. The graphs on the left show the error (&) and SMC aid *Department Electrical andstep Computer Engineering, University of Alabama in Huntsville, AL 35899, responses toofthe frequency and frequency ramp input signals. Each graph on the rightHuntsville, shows a zoomed in USA portion of the graph to its left from = 0.4 secs to = 0.4003 secs.
The simulation results in Fig. 6 are analyzed. The phase error response to the frequency ramp input, shown in Fig. 6, immediately converges to zero asymptotically. The phase error response to the frequency step input converges to zero in a faster time, compared to Fig. 5, of approximately 0.16 seconds. This settling time is also closer to the phase error settling time of the PLL aided by the VCO sweep signal at the maximum sweep rate (Fig. 3(c)). However, since the PLL aided by the VCO sweep signal must implement a lock detector that implements a decision rule, the phase error settle time may further increase. The SMC aid does not have to implement a lock detector. The third set of simulations shows another advantage of the SMC aid by increasing the SMC gain. Because the
Fig. 7 – Simulation results for the second order Type II PLL with conventional SMC implementation, with the optional LPF, and with an increased gain value * + +1 = 20. The graphs on the left show the error (&) and SMC aid responses to the frequency step and frequency ramp input signals. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.4 secs to = 0.4003 secs. *Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
SMC gain is not confined to a limit, unlike the rate of sweeping the VCO, the gain can be raised above ρ + L4 = 5.022 . This set is simulated under the same conditions as the previous set of simulations, except the gain is increased arbitrarily to
ρ + L4 = 20 .
The simulated phase error and control responses to each test signal
are presented in Fig. 7. The phase error response to the frequency ramp input continues to immediately converge to zero. The phase error response to the frequency step input converges to zero around 0.03 seconds. The larger SMC gain allows the PLL to lock in a faster time. This convergence time is significantly faster than sweeping the VCO at the maximum sweep rate. Therefore, the conventional SMC aid can provide faster convergence times without the need to implement a lock detector.
5.2
Simulations of PLL Aided by Super-Twisting 2-SMC
The last set of simulations shows the results of the second order Type II PLL aided by a super-twisting 2SMC. The super-twisting 2-SMC is more suitable for applications due to its continuous nature. The configuration diagram of the second order Type II PLL aided by a super-twisting 2-SMC is presented in Fig. 8. This implementation is simulated with the same test signals, with the optional LPF, and an arbitrary gain value of H = 80 , which gives λ = 13.42 and β = 88 .
|∙|
√∙
×
5
sign()
Σ
LPF $
sign()
6
./
-1
Σ
-
$
Σ
Fig. 8 – The configuration diagram of the second order Type II PLL with super-twisting 2-SMC implementation shown with the optional low-pass filter.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The phase error and 2-SMC aid responses are shown in Fig. 9. The phase error response to the frequency step input converges to zero at around 0.02 seconds. The phase error response to the frequency ramp input converges quickly to an extremely small non-zero amplitude. With this particular gain value used, the simulated phase error responses to the frequency step and frequency ramp inputs are better than all of the previous simulations. Furthermore, the 2-SMC aid response shows that it has smaller amplitude after phase-lock is acquired and has a
Fig. 9 – Simulation results for the second order Type II PLL with super-twisting 2-SMC implementation, with the optional LPF, and with a gain value 7 = 80. The graphs on the left show the error (&) and 2-SMC aid responses to the frequency step and frequency ramp input signals. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.4 secs to = 0.4003 secs. continuous signal that compensates for disturbances. The smaller amplitude of the aid response yields less stress on
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
the system after phase-lock. Therefore, the super-twisting 2-SMC is a suitable and superior aid providing fast convergence times for many PLL applications.
6. Conclusion
The improvement of the acquisition aid for a phase-locked loop (PLL) system is considered. Currently used acquisition aids, in which the goal is to mitigate the locking of the VCO output phase onto the phase of the input signal, have some deficiencies, including lock detector requirements and search rate limitations.
The
conventional sliding mode and second order sliding mode control (SMC/2-SMC) based acquisition aids are proposed and studied in this work both analytically and via simulations. Both acquisition aids provide robust, faster finite-time phase-lock in the PLL. This improvement is achieved without the use of a lock detector, which requires consecutive disabling of the acquisition aid. Each implemented SMC and 2-SMC based acquisition aid has its advantages.
The traditional fast-
switching SMC provides a robust response and is the easiest acquisition aid to implement. Also, by knowing the maximum absolute value of the phase error or the cumulative disturbance, the reaching time can be easily calculated. The super-twisting 2-SMC acquisition aid provides a robust continuous action, but is more complicated in implementation. Both SMC/2-SMC acquisition aids have the ability to precisely follow the input signal and compensate for the bounded cumulative disturbance, which the other acquisition aids cannot provide.
The
simulations confirm a significant improvement of the PLL’s performance; specifically, the lock time is decreased, and the steady state phase error is reduced for a frequency ramp input. The proposed SMC/2-SMC aids can be used in PLLs incorporating other types of input signals, including logic level binary signals. They may be also beneficial in other types of PLLs.
Appendix 1. Proof of Theorem 1
The
g ( t ) - input-output dynamics are derived taking into account Eq. (11)
g ( t ) = −v1 ( t ) + ξ ( x1 , x2 , t )
(A1)
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
where
v1 ( t ) = Gu ( x1 , x2 , t ) , G = AK1 K d K v ,
(A2)
ξ ( x1 , x2 , t ) = AK1 K d θ i ( t ) − K vα x2 − ωo − ϕ ( x1 , x2 , t ) .
(A3)
The term
ξ ( x1 , x2 , t )
is assumed bounded in a reasonable performance domain of the PLL:
ξ ( x1 , x2 , t ) ≤ AK1K d [ L2 + K vα L3 + ωo + L1 ] = L4 . A candidate to the Lyapunov function is introduced
1 2 V (t ) = g (t ) , 2
(A4)
and its derivative is computed as
V ( t ) = g ( t ) g ( t ) = g ( t ) ( −v1 ( t ) + ξ ( x1 , x2 , t ) ) .
(A5)
Substituting the control law
u (t ) = cp g (t ) +
( ρ + L4 ) sign g G
( t ) , c p > 0, ρ > 0,
(A6)
into Eq. (A5) obtains
2
V ( t ) = g ( t ) g ( t ) ≤ −c p G g ( t ) − ( ρ + L4 ) g ( t ) + L4 g ( t ) ≤ − ρ g ( t ) = − ρ 2V 1/2 .
(A7)
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Equation (A7) means that the
g (t ) - dynamics in Eq. (A1) are asymptotically stable with the finite convergence
time. The convergence time is calculated via integration of Eq. (A7) from
0 ≤ τ ≤ t F , and desiring V ( t F ) = 0 ,
yielding
tF ≤
2V 1/2 ( 0 ) 2ρ
g (0) =
ρ
(A8)
.
Therefore, the PLL in Eq. (11) locks onto the input signal phase in finite time, i.e.
g ( t ) = 0 → φ ( t ) = 0 ∀ t ≥ tF
. If the estimated value
g ( 0 ) is known, then the parameter ρ can be selected to achieve the desired reaching time
using Eq. (A8). The parameter
c p in Eq. (A6) also effects the convergence time and can be tuned up to mitigate the
convergence time, especially for large values of
g ( 0) .
The stability (input-output boundedness) of the internal/zero dynamics
x 2 = u ( x1 , x2 , t )
(A9)
is verified in the sliding mode, when
g ( t ) = 0 . It is verified by substituting v1eq (t ) , which is computed based on
g ( t ) = 0 as v1eq ( t ) = AK1 K d θ i ( t ) − K vα x2 − ωo − ϕ ( x1 , x2 , t ) ,
(A10)
into Eq. (A2) along with Eq. (A9). As a result, Eq. (A9) becomes in the sliding mode when
x 2 = −α x2 +
1 Kv
θ i ( t ) − ωo − ϕ ( x1 , x2 , t ) , α > 0.
(A11)
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
The unperturbed Eq. (A11) is asymptotically stable. Since the terms
ϕ ( x1 , x2 , t )
is assumed bounded, a solution of Eq. (A11)
θ i (t )
and
ωo
are bounded and the term
x2 is also bounded. This analysis of the internal/zero
dynamics guarantees that the conventional SMC in Eq. (14) is implementable, thus Theorem 1 is proven.
Appendix 2. Proof of the Theorem 2.
The
g ( t ) - input-output dynamics are considered as in Eq. (A1), where the bounded disturbance ξ ( x1 , x2 , t ) and
the control function
v1 ( t ) are defined in Eqs. (A2) and (A3). The super-twisting control u ( t ) that drives g ( t ) ,
g ( t ) → 0 in finite time is derived as follows [12,13]:
u (t ) = c p g (t ) +
1 λ g ( t ) G
v 2 ( t ) = β sign g ( t ) ,
1/2
sign g ( t ) + v2 (t ) ,
G = AK1 K d K v (A12)
λ , β , c p > 0.
Substituting Eq. (A12) into (A1) obtains
1/2
g ( t ) = −λ g ( t ) v 2 ( t ) = β sign g ( t ) ,
where the derivative of ψ
sign g ( t ) − v2 ( t ) + ψ ( x1 , x2 , t ) ,
(A13)
λ , β , c p > 0,
( x1 , x2 , t ) = −c pG g ( t ) + ξ ( x1 , x2 , t ) is assumed bounded in the reasonable
performance domain of the PLL as
ψ ( x1 , x2 , t ) ≤ H , H > 0 .
It is known [10,12] that the sufficient conditions for selecting the coefficients
time convergent dynamics in Eq. (A13), i.e.
λ
and
β
that guarantee the finite
g ( t ) , g ( t ) → 0 , are as follows:
β > H,
λ>
2 ( β + H )(1 + q ) , β −H 1− q
(A14)
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
where
H < qU m , 0 < q < 1 and v1 ( t ) ≤ U m . In order to enforce inequality v1 ( t ) ≤ U m , the control law in
Eq. (A13) can be modified as [10,12]
β sign (φ ( t ) ) , v2 (t ) = −v2 ( t ) ,
if v2 ( t ) ≤ U m
. if v2 ( t ) > U m
The simplified condition for selecting the coefficients
λ = 1.5 H ,
Finally, the control law
(A15)
λ
and
β
are [10,12]
β = 1.1H .
(A16)
u ( t ) in Eq. (15) is defined in accordance with Eqs. (A2) and (A12). The stability (input-
output boundedness) of the internal/zero dynamics is proven by analogy with the proof of Theorem 1, thus Theorem 2 is proven.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
References [1] J. Stensby, Phase-Locked Loops - Theory and Applications. Boca Raton, FL: CRC Press, 1997. [2] J. Stensby, "VCO sweep-rate limit for a phase-lock loop." Journal of the Franklin Institute, vol. 346, pp. 226236, Apr. 2009. [3] F. M. Gardner, Phaselock Techniques, 3rd ed. Hoboken, NJ: John Wiley & Sons, 2005. [4] P. Lanza, “Improved Phase Acquisition in a Perfect Integrator Phase-Locked Loop with Sweeping and Sliding Mode Control Techniques,” master’s thesis, Dept. Electrical and Computer Engineering, The University of Alabama In Huntsville, Huntsville, Alabama, 2012. [5] C. Edwards and S. Spurgeon, Sliding Mode Control - Theory and Applications, Boca Raton, FL: CRC Press, 1998. [6] A. Levant, “Higher order sliding modes, differentiation and output-feedback control,” International Journal of Control, vol. 76, no. 9/10, pp. 924-941, 2003. [7] Fridman, L. and Levant, A., “Higher order sliding modes,” Sliding Mode Control in Engineering, Barbot, J. P and Perruguetti, W. eds, Marcel Dekker, New York, pp. 53-102, 2002. [8] S. Laghrouche, F. Plestan, and A. Glumineau, “Higher order sliding mode control based on integral sliding mode,” Automatica, vol. 43, no. 3, pp. 531-537, 2007. [9] G. Bartolini, A. Pisano, E. Punta, and E. Usai, “A survey of applications of second order sliding mode control to mechanical systems,” International Journal of Control, vol. 76, no. 9/10, pp. 875-892, 2003. [10] A. Levant, “Sliding order and sliding accuracy in sliding mode control, International Journal of Control, vol.58, no. 6, pp. 1247-1263,1993. [11] A. Levant, “Quasi-Continuous High Order Sliding Mode Controllers,” IEEE Transactions on Automatic Control, Vol. 50, No. 11, Nov. 2005. [12] Y. Shtessel, C. Edwards, L. Fridman, and A. Levant, Sliding Mode Control and Observation, Birkhauser, Springer, New York, 371 pages, 2014. [13] I. Boiko, Discontinuous control systems. Frequency domain analysis and design. Birkhauser, 2009. [14] J. Moreno, “Strict Lyapunov Functions for the Super-Twisting Algorithm,” IEEE Transactions on Automatic Control, Val. 57, Issue 4. Pp. 1035-1040.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Phase Detector
= √2 sin
20
VCO
Loop Filter
$ 100
Σ
= √21 cos
20 $
Σ
cos∙
20,000"
Fig. 1 – A functional diagram of a traditional PLL with sinusoidal waves. Fig. 2 – The simulation diagram of a traditional second order Type II PLL, where = 100, = = 20, and = 20,000".
(a)
(b)
(c)
Fig. 3. Error response (&) of the traditional second order Type II PLL to (a) a frequency step, (b) a frequency ramp, and (c) a frequency step with a sweep signal injected into the VCO. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.8 secs to = 0.8003 secs.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Optional
LPF Phase Detector
*++4
sign()
./
-1
Σ
-
PI Filter
$
Σ
VCO
Fig. 4 – The configuration diagram of the second order Type II PLL with SMC implementation shown with the optional low-pass filter.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Fig. 5 – Simulation results for the second order Type II PLL with conventional SMC implementation, without the optional LPF, and with gain value * + +1 = 5.022. The graphs on the left show the error (&) and the SMC aid responses to the frequency step and frequency ramp input signals. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.4 secs to = 0.4003 secs.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Fig. 6 – Simulation results for the second order Type II PLL with conventional SMC implementation, with the optional LPF, and with gain value * + +1 = 5.022. The graphs on the left show the error (&) and SMC aid responses to the frequency step and frequency ramp input signals. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.4 secs to = 0.4003 secs.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Fig. 7 – Simulation results for the second order Type II PLL with conventional SMC implementation, with the optional LPF, and with an increased gain value * + +1 = 20. The graphs on the left show the error (&) and SMC aid responses to the frequency step and frequency ramp input signals. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.4 secs to = 0.4003 secs.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
|∙|
√∙
×
5
sign()
Σ
LPF $
sign()
6
./
-1
Σ
-
$
Σ
Fig. 8 – The configuration diagram of the second order Type II PLL with super-twisting 2-SMC implementation shown with the optional low-pass filter.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA
Fig. 9 – Simulation results for the second order Type II PLL with super-twisting 2-SMC implementation, with the optional LPF, and with a gain value 7 = 80. The graphs on the left show the error (&) and 2-SMC aid responses to the frequency step and frequency ramp input signals. Each graph on the right shows a zoomed in portion of the graph to its left from = 0.4 secs to = 0.4003 secs.
*Department of Electrical and Computer Engineering, University of Alabama in Huntsville, Huntsville, AL 35899, USA