Quote Originally Posted by richard View Post
your version cannot work since CCP1CON and CCPR1H are not in bank 0

and yes the code you marked red serves no purpose in the given example
My point was that the code in red stopped it working and I could not work out why it was there.