The document describes a proposed nine-level inverter for connecting a photovoltaic (PV) system to the electric grid. A novel pulse width modulation technique is used to generate switching signals that produce nine distinct output voltage levels. A digital control system implements maximum power point tracking from the PV arrays and regulates the current injected into the grid to be sinusoidal. Simulation results show the inverter output voltage has nine levels and the grid current is filtered to resemble a pure sine wave in phase with the grid voltage, reducing harmonic distortion.