A method for operating a DC-
DC converter (300) which contains a buck-
boost converter (10) with an
inductor (L) and a plurality of switching elements (S1-S4), comprises measuring a current (I) flowing through the
inductor (L) and performing the following method steps: a) comparing the current with a first
threshold current value (Ival), b) setting the buck-
boost converter into a first switching state (BOOST ON) at the beginning of a
switching cycle if the current is below the first
threshold current value, or setting the buck-
boost converter into a second switching state (BOOST OFF, BUCK ON) at the beginning of the
switching cycle if the current is not below the first
threshold current value, c) if the buck-boost converter is operated in the first switching state, comparing the current with the first threshold current value (Ival) and setting the buck-boost converter into the second switching state as soon as the current reaches the first threshold current value, d) if the buck-boost converter is operated in the second switching state, comparing the current with a second threshold current value (Ipk) which is greater than the first threshold current value and setting the buck-boost converter into the third switching state (BUCK OFF) as soon as the current reaches the second threshold current value, and repeating steps a) to d) after expiry of the predetermined
period duration (Tc).