The invention concerns a circuit for detecting an overload in a load supplied by a switched-mode power supply, comprising: a first comparator of a first voltage based on the supply voltage of the load relative to a first threshold, supplying a regulating signal to a pulse generator controlling the switched-mode power supply; a second comparator of a second voltage relative to a second threshold, supplying a signal indicating the presence of an overload; and means for automatically controlling said second voltage by a third threshold lower than the second and higher than the first, and for deactivating the second comparator as long as said automatic control is maintained.