FIG. 5C shows an example input voltage measurement block according to an embodiment of the present invention. In FIG. 5C, the inputs 1320 enter an optocoupler 1321 having a voltage in 1323 and a voltage out 1324, which outputs a measurement of the voltage 1322. In this example, Vin is the voltage delivered by the PS. Vin1 is the input voltage of inverter 1 (or driver DRV 1). Vin2 is the input voltage of inverter 2 (or driver DRV 2). Vout1 is the output voltage delivered by inverter 1; Vout2 is the output voltage delivered by inverter 2. For example, in an embodiment of the present invention, a microcontroller can read the voltage using at least one of the following methods: Galvanic insulated (i.e., using liner optocoupler(s)) and non-Galvanic insulation (i.e., a divider made using, e.g., resistor(s)). FIG. 5C shows a logical block for the Galvanic insulated input voltage measurement. For example, the input voltage Vin is converted into the light by a photodiode. The light is transformed back into a scaled voltage Vin_M that can be read by the microcontroller MCC through, e.g., an analogical bus M-1.