Thanks Henrik. Following your suggestions, I got it to work on PORTB.3. The crucial thing I was missing was the CCP2MX bit.