What I was attempting to say with that comment was that by using TRISB = %00001111 after the line containing INTCON2.7 = 0 you would set the bottom 4 bits to outputs causing those 4 bits to no longer have WPU , Maybe I have this backward and it should be TRISB = %11110000 Is this also wrong? As it turns out I need all 8 ports to have WPU’s so I will not be using that line. However for future use I would like to know the correct usage?
Thank you so much!