user timer interrupt between iterations of main loop
working timer interrupt and pwm