Quote Originally Posted by richard View Post
the code in red just wastes time ,it's not what stopped the program from working . the problem is the changing sfr's in the wrong bank.
It did stop it working on my 18F452 though.