Hi Henrik
Thanks for looking at this.

I am using a 16F88, I forgot to change the name.

Yes I really need 0 speed. When the X and Y movement stops the sewing machine needs to stop.

I am not sure if 15 kHz is required. I started off with a much lower frequency but I was having trouble with acceleration and deceleration time of the sewing machine motor. The faster I set the encoder the better the response time became.

Wel my first design does work so I will stick with it.

Thanks for your thoughts. I will let you know if I make any improvements.
Jan