Negative Logic In Pwm Function