henrik
is there a possibility of tmr1l rolling over after tmr1h read causing an error here ?

and as you say will pulse 3 always lag pulse 2 . I also wonder what sort of resolution is required