A discontinuous switching voltage regulator is disclosed including a
charging element operable to generate an output voltage, switching
circuitry coupled to the charging element, and switch control circuitry
to configure the charging element during a cycle, including to charge the
charging element for an on-time, discharge the charging element for a
discharge time, and tristate the charging element for a tristate time. In
operation, the on-time is initialized to a first on-time, and a first
switch time is measured comprising the first on-time and a first
discharge time of a first cycle. A first tristate time of the first cycle
is measured, and a first ratio of the first tristate time to the first
switch time is determined. The first ratio is compared to a first ratio
threshold, and the on-time is adjusted to a second on-time if the first
ratio exceeds the first ratio threshold.