Design of a new all-digital SPWM inverter