TIDUFK2 September 2026
The instantaneous short-circuit protection uses two complementary detection paths: a sample-based current threshold and the ADC hardware window comparator.
The sample-based protection is configured in breaker_config.h using the following parameters:
The resulting RMS and peak trip thresholds are:
Each DC-filtered current sample produced by the Metrology background processing is converted into an absolute peak-current value. If three consecutive samples exceed the configured peak threshold, the breaker latches an INSTANT_CURRENT trip and de-energizes the relay. A sample below the threshold resets the evidence counter.
The comparator evaluates the load-current ADC result directly in hardware. Samples inside the configured window require no additional limit comparison in the ADC interrupt handler. Its thresholds are derived from the usable range of the current-sensing analog front end and reserve approximately 70mV of headroom to each ADC rail. When either limit is crossed, the ADC generates an interrupt and forwards the current result directly to the breaker logic. Three consecutive window violations latch an ADC_SATURATION trip.
Three consecutive threshold violations are defined to reject isolated transients. Currents only marginally above the instantaneous threshold remain covered by the inverse-time overload protection. Higher short-circuit currents produce multiple consecutive threshold violations and are disconnected through the instantaneous path.
The window-comparator path therefore provides the fastest response when the current signal approaches the analog input limits. The sample-based path independently applies the configured physical-current threshold using the scaled and DC-filtered Metrology samples.