Although usually not necessary, there is a PPS Unlock sequence that is missing in the above code:


PPSLOCK = $55
PPSLOCK = $AA
PPSLOCK.0 = 0

Also, I checked on available Ports for MSSP1/2...