A method for actuating a microelectromechanical gyroscope that includes a body, a driving mass movable with respect to the body with a first degree of freedom according to a driving axis, and a sensing mass mechanically coupled to the driving mass so as to be drawn in motion according to the driving axis and movable with respect to the driving mass with a second degree of freedom according to a sensing axis, in response to rotations of the body, the method comprising:
- maintaining the driving mass in oscillation according to the driving axis with a driving frequency through a microelectromechanical control loop including the body and the driving mass;
- detecting a current oscillation frequency of the driving mass at a control node of the microelectromechanical control loop;
- applying, in a first operation mode, to a first clock signal a calibrated phase shift calibrated to compensate for a phase shift caused by components of the microelectromechanical control loop arranged between the driving mass and the control node;
- producing a second clock signal that, in the first operation mode, has the same frequency as the first clock signal and a phase shift equal to the calibrated phase shift;
- producing a third clock signal having a frequency close to the driving frequency;
- comparing the frequency of the first clock signal with the frequency of the third clock signal;
- providing, in a second operation mode, the second clock signal with a frequency equal to the frequency of the third clock signal;
- switching from the first operation mode to the second operation mode when a difference between the frequency of the first clock signal and the frequency of the third clock signal exceeds a threshold stage;
- and
- switching from the second operation mode to the first operation mode when the difference between the frequency of the first clock signal and the auxiliary frequency of the third clock signal falls below the threshold.