A computer product for implementing a method of stabilizing a voltage applied to a first, voltage-sensitive electric consuming device arranged in an onboard power supply system of a vehicle, the onboard power supply system also having a second, non-voltage-sensitive electric consuming device and a first voltage supply unit that provides a supply voltage, as well as a storage unit configured to store electric energy at least temporarily, a second voltage supply unit that provides a charging voltage, a switching unit that has connected thereto the first, voltage-sensitive electric consuming device, the storage unit, the first voltage supply unit and the second voltage supply unit, wherein a control unit controls the onboard power supply system, the computer product comprising:
- a non-transitory computer readable medium having stored thereon program code segments that:
- determine whether a stabilization of the voltage applied to the first, voltage-sensitive consuming device is to be carried out;
- activate the switching unit as long as the stabilization is not to be carried out such that the first, voltage-sensitive electric consuming device is connected to the first voltage supply unit;
- activate the switching unit as soon as the stabilization is to be carried out such that the first, voltage-sensitive electric consuming device is connected to a series connection formed by the storage unit and the first voltage supply unit in order to thereby supply the first, voltage-sensitive electric consuming device with a voltage provided by the series connection in order to compensate for any reduction of the supply voltage that is present;
- and
- activate the second voltage supply unit, the second, non-voltage-sensitive electric consuming device and the switching unit subsequent to carrying out the stabilization, in each case, at least temporarily such that:
- the second voltage supply unit provides the charging voltage having a value greater than the supply voltage of the first voltage supply unit,
- an electric current flows through the second, non-voltage-sensitive electric consuming device at least temporarily, and
- charging of the storage unit is made possible via a current path formed by the second voltage supply unit and the second, non-voltage-sensitive electric consuming device.