Hi Mister_E,

you helped me a lot last time I remember. OK. Principle is an Ignition that gets an input signal (raising edge on Portb.7) , starts an interrupt and after a "Delay" it sends a 0.5 ms High to an Output. After that it recieves serial the actual variable "Delay" which is a byte and is ready for the next interrupt.
This all in about 1.5 ms at maximum speed.
I have a second PIC that measures pulse width and calulates "Delay" so I save Time and code for the time critical Interrupt.

But the Delay caused by the PBP program including the serial communication is about 1ms thats way too much.