fix 16bit timer pwm output

for 16bit timer, set prescale counter to avoid overflow