This application is based upon and claims the benefit of priority from the prior Japanese Patent Application No. 2021-172484, filed on Oct. 21, 2021, the entire contents of which are incorporated herein by reference.
An embodiment of the present invention relates to a phase locked loop and a sensing device.
A phase locked loop is known which performs feedback control such that the oscillation frequency of a variable-frequency oscillator does not change even when the resonance frequency of a resonance element changes due to environmental conditions such as a temperature.
However, it is practically difficult to accurately change the oscillation frequency by following the change in the resonance frequency due to the environmental conditions such as a temperature, and a frequency error between the oscillation frequency and the resonance frequency occurs. For this reason, in a physical quantity detection sensor using this type of phase locked loop, the detection accuracy of a physical quantity decreases due to the frequency error between the oscillation frequency and the resonance frequency.
According to one embodiment, a phase locked loop has:
an oscillator that varies a frequency according to a control signal;
a resonance element that resonates at a predetermined resonance frequency and output a signal obtained by shifting a phase of an output signal of the oscillator by 90 degrees at the resonance frequency;
a phase detector that detects a phase error between an output signal of the resonance element and an output signal of the oscillator;
a feedback controller that controls a frequency of an output signal of the oscillator by proportional control and integral control according to the phase error; and
a control signal corrector that corrects the control signal by adding a correction term corresponding to environment information to an output signal of the feedback controller.
Hereinafter, embodiments of a phase locked loop and a sensing device will be described with reference to the drawings. Although main components of the phase locked loop and the sensing device will be mainly described below, the phase locked loop and the sensing device may have components and functions that are not illustrated or described. The following description does not exclude components and functions that are not illustrated or described.
The phase locked loop 100 of
The variable-frequency oscillator 2 generates an oscillation signal having a variable frequency. More specifically, the variable-frequency oscillator 2 controls the frequency of the oscillation signal on the basis of the control signal output from the feedback control unit 5. The variable-frequency oscillator 2 generates the oscillation signal having a frequency obtained by multiplying the control signal by a frequency conversion coefficient K.
In
When the frequency of the output signal of the variable-frequency oscillator 2 deviates from the resonance frequency of the resonance element 3, the phase delay in the resonance element 3 deviates from 90 degrees. Assuming that a phase error signal obtained by Laplace transforming a phase error which is the deviation component is defined as θe(s) and that a signal obtained by Laplace transforming the phase of the output signal of the variable-frequency oscillator 2 is defined as θ(s), a phase signal obtained by Laplace transforming the phase of the output signal of the resonance element 3 becomes θ(s)−90°/s−θe(s).
The phase detector 4 detects a phase error between the phase of the output signal of the variable-frequency oscillator 2 and the phase of the output signal of the resonance element 3. When a difference is obtained between the phase signal θ(s) obtained by Laplace transforming the phase of the output signal of the variable-frequency oscillator 2 and the phase signal θ(s)−90°/s−θe(s) obtained by Laplace transforming the phase of the output signal of the resonance element 3, the phase error becomes 90°/s+θe(s). When an oscillation signal having a phase shifted by 90 degrees is generated in advance from the variable-frequency oscillator 2 and input to the phase detector 4, the phase error detected by the phase detector 4 becomes θe(s).
The feedback control unit 5 generates a control signal by performing proportional control (also referred to as P control) and integral control (also referred to as I control) according to the phase error detected by the phase detector 4. The feedback control unit 5 can be configured by a filter having a proportional term P and an integral term I.
The variable-frequency oscillator 2 generates an oscillation signal having a frequency obtained by multiplying the control signal output from the feedback control unit 5 by the frequency conversion coefficient K. The frequency conversion coefficient K is a coefficient unique to the variable-frequency oscillator 2. In
In a case where the oscillation frequency of the variable-frequency oscillator 2 is close to the resonance frequency of the resonance element 3, the phase characteristic in the vicinity of the resonance frequency of the resonance element 3 can be linearly approximated, and as shown in Equation (1), the phase error θe(s) can be expressed by a value obtained by multiplying a difference between the oscillation frequency of the variable-frequency oscillator 2 and the resonance frequency of the resonance element 3 by a coefficient a.
θe(s)=−a(sθ(s)−ωr(s)) (1)
Here, since the output frequency of the variable-frequency oscillator 2 may be obtained by differentiating the phase θ(s), the output frequency can be expressed as sθ(s) by multiplying s in Laplace notation. ωr(s) is obtained by Laplace transforming the resonance frequency ωr(t) of the resonance element 3 which changes with time according to the temporal change of environment. Therefore, when a frequency error between the oscillation frequency of the variable-frequency oscillator 2 and the resonance frequency of the resonance element 3 is Laplace transformed, the frequency error is expressed by sθ(s)−ωr(s). From
From Equations (1) and (2), the output signal θ(s) of the variable-frequency oscillator 2 is expressed by following Equation (3).
From Equation (3), the frequency error sθ(s)−ωr(s) between the oscillation frequency of the variable-frequency oscillator 2 and the resonance frequency of the resonance element 3 is expressed by following Equation (4).
The resonance frequency of the resonance element 3 changes according to environment information E(t), and can be expressed as ωr(t)=ωr(E(t)). For example, when the environment information E(t) is a temperature T(t), the resonance frequency ωr(t) is expressed as ωr(t)=ωr(T(t)). When a resonance frequency at a predetermined temperature T0 is ωr0 and the temperature coefficient of the resonance frequency is KT, the resonance frequency ωr(t) is expressed by following Equation (5).
ωr(t)=ωr(T(t))=ωr0+KT(T(t)−T0) (5)
When Laplace transform is performed on Equation (5), Equation (6) is obtained.
ωr(s)=ωr(T(s))=ωr0/s+KT(T(s)−T0/s) (6)
Since KTT0=ωr0, when this is substituted into Equation (6), ωr(s)=KTT(s) is obtained. When this is substituted into Equation (4), Equation (7) is obtained.
From Equation (7), it can be seen that when the temperature changes with time, the oscillation frequency of the variable-frequency oscillator 2 cannot follow the change in the resonance frequency, and a phase error according to the temperature occurs.
In this regard, the phase locked loop 1 of
The environment information acquisition unit 6 acquires the environment information E(t). As described above, the environment information E(t) is a temperature, a power supply voltage, or the like that changes with time, and can be detected by a temperature sensor, a voltage sensor, or the like. A sensor or the like that detects the environment information E(t) may be built in the phase locked loop 1. In this case, the environment information acquisition unit 6 may also serve as an environment information detection unit. Alternatively, the environment information acquisition unit 6 may acquire the environment information detected by a sensor or the like provided separately from the phase locked loop 1.
The control signal correction unit 7 of
The correction term input to the control signal correction unit 7 is a value CE·E(s) obtained by multiplying E(s) obtained by Laplace transforming the environment information E(t) by a predetermined coefficient (referred to as an environment dependence coefficient in the present specification) CE. The environment dependence coefficient CE has a fixed value corresponding to the environment information E(t). The control signal correction unit 7 corrects the control signal by adding the control signal output from the feedback control unit 5 by the correction term CE·E(s). The calculation of the correction term CE·E(s) may be performed by the environment information acquisition unit 6 or may be performed by the control signal correction unit 7.
The variable-frequency oscillator 2 controls the frequency of the output signal of the variable-frequency oscillator 2 by multiplying the control signal output from the control signal correction unit 7 by the frequency conversion coefficient K/s.
Assuming that the environment information coefficient of the resonance frequency of the resonance element 3 in
When the numerator on the right side of Equation (8) becomes zero, the phase error detected by the phase detector 4 of
As shown in Equation (9), when the environment dependence coefficient CE is represented by a ratio between the environment information coefficient KE and the frequency conversion coefficient K of the variable-frequency oscillator 2, the numerator of Equation (8) becomes zero, and even when there is a temporal change in the environment information E(t), the frequency of the variable-frequency oscillator 2 of the phase locked loop 1 according to the present embodiment can follow the resonance frequency of the resonance element 3.
Note that, even when the environment dependence coefficient CE slightly deviates from the value defined by Equation (9), an effect of reducing the frequency error between the oscillation frequency of the variable-frequency oscillator 2 and the resonance frequency of the resonance element 3 can be obtained.
The environment information may be temperature information.
The correction term input to the control signal correction unit 7 in
When the numerator on the right side of Equation (10) becomes zero, the phase error detected by the phase detector 4 in
On the other hand, in a case where the resonance element 3 is a micro electro mechanical systems (MEMS) resonance element, the environment information may be acceleration since the resonance frequency of the resonance element 3 changes by an acceleration.
In the correction term input to the control signal correction unit 7 in
When the numerator on the right side of Equation (12) becomes zero, the phase error detected by the phase detector 4 in
In a case where the output signal of the variable-frequency oscillator 2 is cos θ(t), the output signal of the resonance element 3 is expressed by following Equation (14).
When the output signal of the variable-frequency oscillator 2 and the output signal of the resonance element 3 are multiplied by the multiplier 11, the signal expressed by following Equation (15) is generated.
When the output signal of the multiplier 11 is input to the low-pass filter 12, a phase error θe(t) expressed by following Equation (16) is obtained.
The variable-frequency oscillator 2 may supply two oscillation signals having phases different from each other by 90 degrees to the phase detector 4 separately from the oscillation signal supplied to the resonance element 3, and may generate an I signal and a Q signal by multiplying each of the two oscillation signals and the output signal of the resonance element 3.
The variable-frequency oscillator 2 of
The multiplier 11 in the phase detector 4 multiplies the signal x of Equation (17) by each of two oscillation signals (2 sin θ(t), −2 cos θ(t)) having phases different from each other by 90 degrees to generate the I signal and the Q signal shown in following Equation (18).
I=x(2 sin θ(t)),Q=x(−2 cos θ(t)) (18)
The low-pass filter 12 in the phase detector 4 extracts low-pass components IL and QL included in the output signal of the multiplier 11 as expressed in Equation (19).
I
L=cos θe(t),QL=sin θe(t) (19)
As shown in Equation (20), the phase difference calculation unit 13 calculates a phase error ee by an angle formed by IL and QL in an IQ plane.
The phase locked loop 1 according to
A variable-frequency oscillator 2a, a phase detector 4a, a feedback control unit 5a, an environment information acquisition unit 6a, and a control signal correction unit 7a in
The phase locked loop 1e of
The DA converter 14 converts the digital oscillation signal output from the variable-frequency oscillator 2a into an analog oscillation signal. Similarly to
The phase detector 4a detects a phase error between the digital oscillation signal output from the variable-frequency oscillator 2a and the digital resonance signal output from the AD converter 15, and outputs a digital signal indicating the phase error.
The feedback control unit 5a performs proportional control and integral control according to the digital signal output from the phase detector 4a to generate a control signal including a digital signal.
The control signal correction unit 7a multiplies environment information including a digital signal by environment dependence coefficient including a digital signal to generate a correction term including a digital signal. In addition, the control signal correction unit 7a adds the correction term including the digital signal to the control signal including the digital signal output from the feedback control to correct the control signal including the digital signal. The variable-frequency oscillator 2a controls the frequency of the digital oscillation signal by multiplying the control signal including the digital signal generated by the control signal correction unit 7a by a frequency conversion coefficient including a digital signal.
In the phase locked loop 1e of
As described above, considering that the resonance frequency of the resonance element 3 varies due to the environment such as a temperature, the phase locked loop 1 to 1e according to the first embodiment corrects the control signal by adding the correction term according to the environment information to the control signal output from the feedback control unit 5 and controls the oscillation frequency of the variable-frequency oscillator 2 with the corrected control signal. As a result, even when the resonance frequency of the resonance element 3 varies due to the environment such as temperature, the oscillation frequency of the variable-frequency oscillator 2 can be changed with an excellent followability to the variation.
The phase locked loop 1 to 1e according to
The resonance element 3 in the sensing device 10 in
The phase locked loop 1 in the sensing device 10 of
The sensing device 10 may be, for example, an angle sensor. For example, in a case where the resonance element 3 in the phase locked loop 1 is the MEMS resonance element 3a, the present invention is applicable to an angle sensor.
The MEMS resonance element 3a vibrates a mass (weight) into an elliptical shape, the long diameter of the ellipse is defined as d, and the short diameter is defined as q. A displacement signal in the x direction of MEMS resonance element 3a is expressed by Equation (21), and a displacement signal in the y direction is expressed by Equation (22).
The multiplier 11 in the phase detector 4 multiplies the displacement signal in the x direction and the displacement signal in the y direction output from the MEMS resonance element 3a by the oscillation signal (2 sin θ(t), −2 cos θ(t)) input from the variable-frequency oscillator 2 to the phase detector 4 to generate an Ix signal and a Qx signal expressed by following Equation (23) and an Iy signal and a Qy signal expressed by Equation (24).
Ix=x(2 sin θ(t)),Qx=x(−2 cos(θ(t)) (23)
Iy=y(2 sin θ(t)),Qy=y(−2 cos(θ(t)) (24)
The low-pass filter 12 in the phase detector 4 extracts low-frequency components IxL, QxL, IyL, and QyL of the Ix signal, the Qx signal, the Iy signal, and the Qy signal.
The phase difference calculation unit 13 in the phase detector 4 calculates a phase error θe(t) on the basis of following Equation (25).
The angle calculation unit 18 in
In the angle sensor 17 of
The sensing device 10 in
The acceleration calculation unit 23 in
In the acceleration sensor 22 of
In the acceleration sensor 22 of
The acceleration calculation unit 23 in
The processing operations of the frequency error detector 25 and the calculation unit 26 in the acceleration calculation unit 23 in
As described above, also in the sensing device 10 of
The sensing device 10 illustrated in
The DA converter 14 converts the digital oscillation signal output from the variable-frequency oscillator 2a into an analog oscillation signal. Similarly to the resonance element 3 in
The AD converter 15 converts the output signal of the resonance element 3 into a digital signal. The output signal of the AD converter 15 is supplied to the phase detector 4a and the physical quantity calculation unit 16a.
As described above, by configuring the components other than the resonance element 3 in the sensing device 10, 10a by digital circuits, it is possible to suppress the variation of the frequency conversion coefficient K of the variable-frequency oscillator 2 due to a temperature, a power supply voltage, and the like. Therefore, even when the resonance frequency of the resonance element 3 changes with time due to a change in environment such as a temperature or a power supply voltage, the oscillation frequency of the variable-frequency oscillator 2 can be varied with accurately following the resonance frequency.
Since the physical quantity calculation unit 16 can be configured by a digital circuit, the physical quantity can be detected more accurately without being affected by the environment such as a temperature and a power supply voltage as compared with a case where the physical quantity calculation unit is configured by an analog circuit.
While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the disclosures. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the disclosures. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the disclosures.
Number | Date | Country | Kind |
---|---|---|---|
2021-172484 | Oct 2021 | JP | national |