Flipflop for pwm