I'm building an overcurrent protection device based on an STM32F301C8, using COMP2 to compare an analog signal from a hall sensor against the DAC1 output value.Now I'd like to generate a latching error signal that will remain asserted when the overcu...