SINGLE PHASE GRID TIED PHOTOVOLTAIC INVERTER TO CONTROL ACTIVE AND