steve this is the first time i need a hardware based pwm , so dont assume i got it right