> One thing I notice is that stepping through the unlock sequence does > not change OSCCON in the Watch Window. Maybe OSCCON > doesn't work in Watch as other SFRs do My only experience with PPS is with a PIC24, but I guess this is similar. One thing to check out, are you doing a PPS setup somewhere else, and locking that one in that bit of code? Is the config bits set up to only allow one unlock/lock sequence? I haven't tried to work my way through your code to see if this is what you have done, but it may stop you doing another unlock. --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .