Motor winding used as power transformator