Quote Originally Posted by mister_e View Post
maybe... replace the gosub by a pause 10, and see what happen
I get always 20009 cycles, so multiply by 0.5uS, i get 0.010005S, or 10mS. So i assume that is correct, and works great.

Thank you Henrik and Steve!