A compensation network configured to improve stability of an operational amplifier by providing a variable-frequency zero in a frequency response of the operational amplifier, the compensation network (130; 330; 530) comprising: an input for coupling to an output of the operational amplifier ; a first resistance branch configured to be coupled to the operational amplifier output and comprising a series resistor (Rs); a second resistance branch and comprising a parallel resistor (R P ); and a current source , wherein the first resistance branch comprises a resistance control switch (N2) serially connected to the series resistor (R S ), and the resistance control switch (N2) is configured to control, based upon a resistance control signal, a level of current flowing through the first resistance branch, wherein the parallel resistor (R P ) of the second resistance branch is connected in parallel with a series circuit comprising the series resistor (Rs) and the resistance control switch (N2) in the first resistance branch, and wherein the current source supplies a constant current and is coupled to the first resistance branch and the second resistance branch such that the constant current is split between a current flowing through the first resistance branch and a current flowing through the second resistance branch, wherein a ratio of these currents is determined by the resistance control signal, so that the compensation network (130; 330; 530) provides a variable impedance to the input, the variable impedance having a resistance that varies between a lower resistance based upon a resistance of the series resistor (R S ) and an upper resistance based upon a resistance of the parallel resistor (R P ). an input for coupling to an output of the operational amplifier ; a first resistance branch configured to be coupled to the operational amplifier output and comprising a series resistor (Rs); a second resistance branch and comprising a parallel resistor (R P ); and a current source , wherein the first resistance branch comprises a resistance control switch (N2) serially connected to the series resistor (R S ), and the resistance control switch (N2) is configured to control, based upon a resistance control signal, a level of current flowing through the first resistance branch, wherein the parallel resistor (R P ) of the second resistance branch is connected in parallel with a series circuit comprising the series resistor (Rs) and the resistance control switch (N2) in the first resistance branch, and wherein the current source supplies a constant current and is coupled to the first resistance branch and the second resistance branch such that the constant current is split between a current flowing through the first resistance branch and a current flowing through the second resistance branch, wherein a ratio of these currents is determined by the resistance control signal, so that the compensation network (130; 330; 530) provides a variable impedance to the input, the variable impedance having a resistance that varies between a lower resistance based upon a resistance of the series resistor (R S ) and an upper resistance based upon a resistance of the parallel resistor (R P ). <EOS>