Quote Originally Posted by AMay View Post
You are too advanced for me, I don't recognize the code. I know PIC Basic some, and a little assembler. ...
This (see quote above) is why you thought the code was as tight as possible, yet you were only getting 10kHz. PBP is extremely inefficient. It is very simple and very nearly idiot-proof, but most certainly not the compiler to use if you are trying to get tight, fast running code.