Added elementary software PWM