Modifications of the phase-locked loop for ensuring constant frequency when the power supply fails or is interrupted