A power supply comprising: a synchronous sampled comparator comprising: a first input configured to receive a reference voltage ; and a second input configured to receive a feedback signal ; wherein the power supply is configured such that the sampling of the synchronous sampled comparator is controlled by a sampling frequency and the synchronous sampled comparator is configured to output a serial data stream corresponding to a relation between the reference voltage and the feedback signal , wherein the serial data stream has a switching frequency and wherein the sampling frequency is higher than the switching frequency; a programmable delay line , wherein the programmable delay line is configured to introduce a delay into the serial data stream that reduces the switching frequency of the serial data stream to output a delayed serial data stream ; power field effect transistors, FETs , configured to be coupled to a power source, wherein the power supply is configured to control switching of the power FETs based on the delayed serial data stream ; an inductor coupled to the power FETs and to the second input, wherein switching of the power FETs generates a power supply voltage using the inductor , and wherein the power supply voltage is a direct current, DC, power supply voltage and wherein the switching frequency produces a frequency on the power supply voltage ; and a frame length counter configured to determine a frame length of the switching frequency; a comparison module configured to compare the frame length of the switching frequency with a desired frame length ; and an integrator configured to determine an incremental increase/decrease of the delay that adjusts the frame length towards the desired frame length , wherein the desired frame length corresponds to a desired switching frequency of the power FETs. a synchronous sampled comparator comprising: a first input configured to receive a reference voltage ; and a second input configured to receive a feedback signal ; a first input configured to receive a reference voltage ; and a second input configured to receive a feedback signal ; wherein the power supply is configured such that the sampling of the synchronous sampled comparator is controlled by a sampling frequency and the synchronous sampled comparator is configured to output a serial data stream corresponding to a relation between the reference voltage and the feedback signal , wherein the serial data stream has a switching frequency and wherein the sampling frequency is higher than the switching frequency; a programmable delay line , wherein the programmable delay line is configured to introduce a delay into the serial data stream that reduces the switching frequency of the serial data stream to output a delayed serial data stream ; power field effect transistors, FETs , configured to be coupled to a power source, wherein the power supply is configured to control switching of the power FETs based on the delayed serial data stream ; an inductor coupled to the power FETs and to the second input, wherein switching of the power FETs generates a power supply voltage using the inductor , and wherein the power supply voltage is a direct current, DC, power supply voltage and wherein the switching frequency produces a frequency on the power supply voltage ; and a frame length counter configured to determine a frame length of the switching frequency; a comparison module configured to compare the frame length of the switching frequency with a desired frame length ; and an integrator configured to determine an incremental increase/decrease of the delay that adjusts the frame length towards the desired frame length , wherein the desired frame length corresponds to a desired switching frequency of the power FETs. <EOS>