A power regulator includes an output terminal to provide a regulated voltage, a first control unit to control a first operation mode, a second control unit to control a second operation mode, and a detection unit connected to the output terminal. The detection unit detects, at start-up, whether or not an external inductor is connected to the output terminal, activates the first operation mode when an external inductor is detected, and activates the second operation mode when no external inductor is detected. The detection unit also detects in which of at least two distinct inductance ranges the inductance of the detected inductor lies so as to provide inductance dependent control in the first operation mode.