Darrel, Ingvar,
Hmm, this is interesting.
I tried Ingvars 1'st code and measured it to 82uS. Then I tried the second one and measured it to 22uS which is great! 31.25% works fine for me.

I'm still wondering though why the numbers doesn't match. Ingvars first code should take 66uS but I measure it to ~80uS. His second one should take 20 and it does, close enough. Then we have Darrel's 48 cycle code that takes ~250uS on my hardware. I just verified that again to make sure.

I would think my scope was out of calibration if it wasn't for the fact that 700uS pause I have measures correct on the scope.

The application hardware is 12F629 but the testing above is on a 16F877 @ 4MHz.

Thanks guys!
/Henrik Olsson.