PWM implementation, n the road to #12