Text this: DSP-based flexible digital hysteresis in switched capacitor active power filter