A device that converts dc power into ac power at desired output voltage and frequency is called an inverter.