Although usually not necessary, there is a PPS Unlock sequence that is missing in the above code:
Code:
PPSLOCK = $55
PPSLOCK = $AA
PPSLOCK.0 = 0
Also, I checked on available Ports for MSSP1/2 Functions and PORTB seems to work for all but SS; which A & D are the only usable PORTS for that. Just noting.