got pwm signal generation working