Power supplies with regulating capabilities are known as switch mode power supply units. These convert direct (including non-regulated) voltage into regulated direct voltage with electronic circuits switching between input voltages and electrical earths at high frequencies (e.g. 50 kHz). A connected inductor and capacitor filter the rectangular wave voltage and direct voltage emerges at the output. A control circuit ensures that the duty cycle is set to produce the required output voltage.