A driving system for an electric machine, said system comprising: an electric gear comprising a first plurality of switches for switching a wiring configuration of the electric machine by connecting windings of the electric machine in either one of at least a series configuration and a parallel configuration, thereby allowing to change the characteristics of the electric machine; an inverter for converting a battery voltage into an AC voltage for driving the electric machine, the inverter comprising a second plurality of switches in a half-bridge configuration for connecting each phase of the electric machine selectively to either one of two poles of the battery voltage; a charger for charging the battery with electric power provided by an external power source; and a controller for controlling the first plurality of switches and the second plurality of switches, wherein the second plurality of switches is further configured for connecting an output of the charger to the battery, characterized in that the controller is configured for controlling the second plurality of switches in accordance with a pulse-width modulation scheme so as to generate, for each winding of the electric machine, a driving current having a desired amplitude, frequency and phase during a motor driving operation, wherein the controller is further configured for receiving a request for switching the wiring configuration of the electric machine from a first configuration to a second configuration while the electric machine is used in a motor operation, for interrupting PWM control of the second plurality of switches for a single PWM time period, changing switching states of the first plurality of switches to the second configuration, and restarting PWM control of the second plurality of switches in accordance with the second configuration, wherein the changing of the switching state of the first plurality of switches is completed within the single PWM time period. an electric gear comprising a first plurality of switches for switching a wiring configuration of the electric machine by connecting windings of the electric machine in either one of at least a series configuration and a parallel configuration, thereby allowing to change the characteristics of the electric machine; an inverter for converting a battery voltage into an AC voltage for driving the electric machine, the inverter comprising a second plurality of switches in a half-bridge configuration for connecting each phase of the electric machine selectively to either one of two poles of the battery voltage; a charger for charging the battery with electric power provided by an external power source; and a controller for controlling the first plurality of switches and the second plurality of switches, wherein the second plurality of switches is further configured for connecting an output of the charger to the battery, characterized in that the controller is configured for controlling the second plurality of switches in accordance with a pulse-width modulation scheme so as to generate, for each winding of the electric machine, a driving current having a desired amplitude, frequency and phase during a motor driving operation, wherein the controller is further configured for receiving a request for switching the wiring configuration of the electric machine from a first configuration to a second configuration while the electric machine is used in a motor operation, for interrupting PWM control of the second plurality of switches for a single PWM time period, changing switching states of the first plurality of switches to the second configuration, and restarting PWM control of the second plurality of switches in accordance with the second configuration, wherein the changing of the switching state of the first plurality of switches is completed within the single PWM time period.