Also, Microchip appnote DS41214A (CCP tricks and tip) is also a good reference