added PWM with bit pins switching, started rewriting in asm