A radio-frequency power generator, comprising: an output configured to output an RF power signal; a signal generator to generate an RF input signal; an RF power stage which receives the RF input signal and generates an amplified RF power signal at its output; at least one sampler configured to sample the RF signal at the output of the RF power stage; a controller comprising a digital control portion and an analogue control portion, an analogue feedback path (F A) between the at least one sampler and the controller enabling an analogue signal representation of a signal from the at least one sampler to be provided to the controller, and a digital feedback path (F D) between the at least one sampler and the controller enabling a digital signal representation of the signal from the at least one sampler to be provided to the controller; wherein the controller is configured to adjust the RF power signal at the output of the RF generator from a first state into a second state based on the analogue signal representation and/or the digital signal representation, characterized in that the digital control portion comprises a first digital control element and a second digital control element; wherein at least the second digital control element is configured to receive and to process the digital signal representation from the digital feedback path (F D) faster than the first digital control element, based on configuration settings of the second digital control element communicated by the first digital control element to the second digital control element, wherein the second digital control element is configured to override the first digital control element in a condition where the configuration settings are exceeded, and wherein the second digital control element is configured to adjust the RF signal at the RF output from the first state into the second state. an output configured to output an RF power signal; a signal generator to generate an RF input signal; an RF power stage which receives the RF input signal and generates an amplified RF power signal at its output; at least one sampler configured to sample the RF signal at the output of the RF power stage; a controller comprising a digital control portion and an analogue control portion, an analogue feedback path (F A) between the at least one sampler and the controller enabling an analogue signal representation of a signal from the at least one sampler to be provided to the controller, and a digital feedback path (F D) between the at least one sampler and the controller enabling a digital signal representation of the signal from the at least one sampler to be provided to the controller; wherein the controller is configured to adjust the RF power signal at the output of the RF generator from a first state into a second state based on the analogue signal representation and/or the digital signal representation, characterized in that the digital control portion comprises a first digital control element and a second digital control element; wherein at least the second digital control element is configured to receive and to process the digital signal representation from the digital feedback path (F D) faster than the first digital control element, based on configuration settings of the second digital control element communicated by the first digital control element to the second digital control element, wherein the second digital control element is configured to override the first digital control element in a condition where the configuration settings are exceeded, and wherein the second digital control element is configured to adjust the RF signal at the RF output from the first state into the second state.