Only enable PWM if valid pin selected
Switch PWM period to 32 bits in preparation for auto prescaler selection