final code version - low (1.5ms period) PWM frequency