Code:
ccp1con=12|((PW&3)<<4)
1. it keeps only the first two bits (Bit 0 and Bit 1) of the PW. Rest bits are set to 0
2. shifts left by 4 positions
3. Makes a Bitwise OR with the number 12 (binary 00001100) so to keep te bits 2 and 3 if they are set)
4. Places the result in ccp1con

Ioannis