CONTROL AND SIMULATION OF A THREE PHASE INVERTER