A system comprising: a control circuit , the control circuit including: a plurality of detectors ; a plurality of filters , each filter coupled to a detector of the plurality of detectors a logic circuit coupled to the plurality of detectors and to the plurality of filters ; a diode circuit (DDESAT); and a switch having a gate , a first node and a second node ; wherein the diode circuit (DDESAT) is coupled between the first node of the switch and the plurality of detectors , wherein the logic circuit is coupled to the gate of the switch , wherein the plurality of detectors includes at least a first detector and a second detector , wherein each detector is configured to provide a respective event overcurrent signal by measuring a signal provided by the diode circuit (DDESAT) and comparing the signal to a detection threshold of the detector; and wherein each filter of the plurality of filters is configured to filter the event overcurrent signal of the respective detector of the plurality of detectors and to provide the filtered event overcurrent signal to the logic circuit ; characterized in that the logic circuit is configured to program the detection threshold of at least one detector of the plurality of detectors , the logic circuit is configured to count at least the event overcurrent signal of the second detector and to generate a multiple event overcurrent signal if a maximum number of event overcurrent signals of the second detector is reached, and the logic circuit is configured to program the detection threshold of the at least one detector of the plurality of detectors based on the multiple event overcurrent signal. a control circuit , the control circuit including: a plurality of detectors ; a plurality of filters , each filter coupled to a detector of the plurality of detectors a logic circuit coupled to the plurality of detectors and to the plurality of filters ; a plurality of detectors ; a plurality of filters , each filter coupled to a detector of the plurality of detectors a logic circuit coupled to the plurality of detectors and to the plurality of filters ; a diode circuit (DDESAT); and a switch having a gate , a first node and a second node ; wherein the diode circuit (DDESAT) is coupled between the first node of the switch and the plurality of detectors , wherein the logic circuit is coupled to the gate of the switch , wherein the plurality of detectors includes at least a first detector and a second detector , wherein each detector is configured to provide a respective event overcurrent signal by measuring a signal provided by the diode circuit (DDESAT) and comparing the signal to a detection threshold of the detector; and wherein each filter of the plurality of filters is configured to filter the event overcurrent signal of the respective detector of the plurality of detectors and to provide the filtered event overcurrent signal to the logic circuit ; the logic circuit is configured to program the detection threshold of at least one detector of the plurality of detectors , the logic circuit is configured to count at least the event overcurrent signal of the second detector and to generate a multiple event overcurrent signal if a maximum number of event overcurrent signals of the second detector is reached, and the logic circuit is configured to program the detection threshold of the at least one detector of the plurality of detectors based on the multiple event overcurrent signal. <EOS>