add fast pwm option; avoid using 100% duty cycle as fast pwm misbehaves