Fix PWM prescaler and period values

Scalers should be sized to value - 1 for accurate scaling