Software PWM not working

1.7mHz is one cycle every nearly ten minutes.