A method for determining a control voltage in a phase-locked loop circuit comprising a feedback clock, comprising: - obtaining a current frequency error, e n, between a reference clock signal and a feedback clock signal; - comparing if the current frequency error is larger than a threshold value and if so: i. checking if an error sign indicator is set to indicate that the error has changed sign: 1. if the error sign indicator indicates that the sign has not changed, determining a divisor, k n, using the current frequency error, e n, a current control voltage, u n, a previous error, e n-1, and a previous control voltage, u n-1; 2. if the error sign indicator indicates that the sign has changed, determining a divisor, k n using stored values for a latest control voltage and a latest determined error when the sign of the error was negative and using stored values for a latest control voltage and a latest determined error when the sign of the error was positive; ii. determining (209, 214) a control voltage step using the current frequency error divided by the divisor, k n; and iii. determining (210, 215) a new control voltage, u n+1, using the current control voltage, u n, and the determined control voltage step. - obtaining a current frequency error, e n, between a reference clock signal and a feedback clock signal; - comparing if the current frequency error is larger than a threshold value and if so: i. checking if an error sign indicator is set to indicate that the error has changed sign: 1. if the error sign indicator indicates that the sign has not changed, determining a divisor, k n, using the current frequency error, e n, a current control voltage, u n, a previous error, e n-1, and a previous control voltage, u n-1; 2. if the error sign indicator indicates that the sign has changed, determining a divisor, k n using stored values for a latest control voltage and a latest determined error when the sign of the error was negative and using stored values for a latest control voltage and a latest determined error when the sign of the error was positive; ii. determining (209, 214) a control voltage step using the current frequency error divided by the divisor, k n; and iii. determining (210, 215) a new control voltage, u n+1, using the current control voltage, u n, and the determined control voltage step. i. checking if an error sign indicator is set to indicate that the error has changed sign: 1. if the error sign indicator indicates that the sign has not changed, determining a divisor, k n, using the current frequency error, e n, a current control voltage, u n, a previous error, e n-1, and a previous control voltage, u n-1; 2. if the error sign indicator indicates that the sign has changed, determining a divisor, k n using stored values for a latest control voltage and a latest determined error when the sign of the error was negative and using stored values for a latest control voltage and a latest determined error when the sign of the error was positive; 1. if the error sign indicator indicates that the sign has not changed, determining a divisor, k n, using the current frequency error, e n, a current control voltage, u n, a previous error, e n-1, and a previous control voltage, u n-1; 2. if the error sign indicator indicates that the sign has changed, determining a divisor, k n using stored values for a latest control voltage and a latest determined error when the sign of the error was negative and using stored values for a latest control voltage and a latest determined error when the sign of the error was positive; ii. determining (209, 214) a control voltage step using the current frequency error divided by the divisor, k n; and iii. determining (210, 215) a new control voltage, u n+1, using the current control voltage, u n, and the determined control voltage step.