Device for supplying a power supply voltage to an electronic circuit, in particular to an electronic circuit associated with a current sensor for measuring the electrical current in a high-tension line, said device comprising a current transformer having a primary circuit and a secondary circuit, a rectifier bridge shunting the secondary circuit and output terminals of the rectifier bridge, a first capacitor in parallel with a first resistor across which said power supply voltage is obtained, a first switch being disposed between the output terminals of the rectifier bridge, said device comprising between the output terminals of the rectifier bridge a branch comprising in series a second capacitor, a second switch and a second resistor, the first switch being controlled by a first threshold detector shunting the second capacitor, the second switch being controlled by a second threshold detector shunting the first capacitor, the first and second threshold detectors respectively closing the first and second switches when predetermined first and second thresholds are respectively reached, said current transformer comprising two secondary windings having different numbers of turns and magnetically connected in series to the rectifier bridge through a controlled third switch.