This paper presents the modeling and simulation of a proton exchange membrane fuel cell (PEMFC) generation system for off-grid and on-grid operation and configuration. A fuel cell DG system consists of a fuel cell power plant, a DC/DC converter and a DC/AC inverter. The dynamic model for fuel cell array and its power electronic interfacing are presented also a multi-input single output (MISO) DC/DC converter and its control scheme is proposed and analyzed. This DC/DC converter is capable of interfacing fuel cell arrays to the DC/AC inverter. Also the mathematical model of the inverter is obtained by using average technique. Then the novel control strategy of DC/AC inverter for different operating conditions is demonstrated. The simulation results show the effectiveness of the suggested control systems under both on-grid and off-grid operation modes.