A method for controlling a DC-DC converter comprising an energy accumulation element, an energy storage element and a switching element, said control method comprising the following steps implemented by a control unit: - a step of generating a control signal for the switching element with a duty cycle α that is a function of information relating to the output electrical conditions of said converter; and - a step of controlling said switching element by means of said control signal, characterized in that it further comprises: - a step of compensating said control signal for a continuous conduction mode; - a step of compensating said control signal for a discontinuous conduction mode; - a step of estimating the current operating mode of said converter in order to control the implementation either of the continuous conduction mode compensation step or of the discontinuous conduction mode compensation step as a function of the estimated current operating mode; said estimating step comprising the following steps: - a step of computing the theoretical duty cycle (α CCM) in continuous conduction mode; - a step of computing the theoretical value of the limit duty cycle (α lim.th) between the two CCM and DCM operating modes, the theoretical value of the limit duty cycle (α lim.th) being able to be computed on the basis of the following expression: α lim. th = 1 − 2. L p. f d Z th. N 2, where L p is the inductance of the transformer with respect to its primary winding, f d is the switching frequency of the switching element, Z th is the theoretical value of the load and N is the ratio of the number of turns of the transformer; - a step of comparing the value of the theoretical duty cycle (α CCM) in continuous conduction mode, the theoretical value of the limit duty cycle (α lim.th) and the value of the current duty cycle (α); and - a step of determining the continuous conduction mode CCM if the value of the current duty cycle (α) is greater than the value of the theoretical duty cycle (α CCM) in continuous conduction mode; - a step of determining the discontinuous conduction mode DCM if the value of the current duty cycle (α) is less than the theoretical value of the limit duty cycle (α lim.th); - a step of indetermining the operating mode if the value of the current duty cycle (α) is between the theoretical value of the limit duty cycle (α lim.th) and the value of the theoretical duty cycle (α CCM) in continuous conduction mode. - a step of generating a control signal for the switching element with a duty cycle α that is a function of information relating to the output electrical conditions of said converter; and - a step of controlling said switching element by means of said control signal, - a step of compensating said control signal for a continuous conduction mode; - a step of compensating said control signal for a discontinuous conduction mode; - a step of estimating the current operating mode of said converter in order to control the implementation either of the continuous conduction mode compensation step or of the discontinuous conduction mode compensation step as a function of the estimated current operating mode; - a step of computing the theoretical duty cycle (α CCM) in continuous conduction mode; - a step of computing the theoretical value of the limit duty cycle (α lim.th) between the two CCM and DCM operating modes, the theoretical value of the limit duty cycle (α lim.th) being able to be computed on the basis of the following expression: α lim. th = 1 − 2. L p. f d Z th. N 2, where L p is the inductance of the transformer with respect to its primary winding, f d is the switching frequency of the switching element, Z th is the theoretical value of the load and N is the ratio of the number of turns of the transformer; - a step of comparing the value of the theoretical duty cycle (α CCM) in continuous conduction mode, the theoretical value of the limit duty cycle (α lim.th) and the value of the current duty cycle (α); and - a step of determining the continuous conduction mode CCM if the value of the current duty cycle (α) is greater than the value of the theoretical duty cycle (α CCM) in continuous conduction mode; - a step of determining the discontinuous conduction mode DCM if the value of the current duty cycle (α) is less than the theoretical value of the limit duty cycle (α lim.th); - a step of indetermining the operating mode if the value of the current duty cycle (α) is between the theoretical value of the limit duty cycle (α lim.th) and the value of the theoretical duty cycle (α CCM) in continuous conduction mode.