Function that implements a state machine that detects voltage
deviations. If the voltage input V exceeds the
nominal value V_nominal by more than 1+Vtr
then the control signal y becones zero for
a period equal to tDelay.
A signal y = 0 can be used to turn off a load.