A method for dynamic adjustment of a current limit of a power management unit comprising the steps of: providing a power management unit comprising a control unit controlling the operation of the power management unit, a first voltage comparing means comparing an input voltage with a threshold voltage wherein its output is used by a means of setting dynamically a maximum input current limit, a second voltage comparing means comparing an output voltage of the power management unit increased by an overhead voltage with said input voltage wherein its output is used by said means of setting dynamically a maximum input current limit, current comparing means comparing said input current with a reference current wherein its output is an input to said means of setting dynamically a maximum input current limit, a controllable current source for a reference current, wherein the current source is controlled by the control unit, a gm-amplifier enabled to add a current to the reference current, said means of setting dynamically a maximum input current limit, and means of logical functions enabling operation of the power management unit; connecting a power source to the power management unit; setting the maximal allowable input current limit to a default value; enabling power transfer between a power source and a load if the input voltage is higher than the threshold voltage and there is sufficient overhead between input voltage and output voltage; checking if the input voltage is lower than the defined threshold voltage Vin_low and, if so, go to step, else repeat step; checking if there is sufficient overhead between input voltage and output voltage if so, go to step, otherwise go to step; reducing input current limit and go to step; and disabling the power management unit. providing a power management unit comprising a control unit controlling the operation of the power management unit, a first voltage comparing means comparing an input voltage with a threshold voltage wherein its output is used by a means of setting dynamically a maximum input current limit, a second voltage comparing means comparing an output voltage of the power management unit increased by an overhead voltage with said input voltage wherein its output is used by said means of setting dynamically a maximum input current limit, current comparing means comparing said input current with a reference current wherein its output is an input to said means of setting dynamically a maximum input current limit, a controllable current source for a reference current, wherein the current source is controlled by the control unit, a gm-amplifier enabled to add a current to the reference current, said means of setting dynamically a maximum input current limit, and means of logical functions enabling operation of the power management unit; connecting a power source to the power management unit; setting the maximal allowable input current limit to a default value; enabling power transfer between a power source and a load if the input voltage is higher than the threshold voltage and there is sufficient overhead between input voltage and output voltage; checking if the input voltage is lower than the defined threshold voltage Vin_low and, if so, go to step, else repeat step; checking if there is sufficient overhead between input voltage and output voltage if so, go to step, otherwise go to step; reducing input current limit and go to step; and disabling the power management unit.