This is for the next guy.
I was having all sorts of unpredictable effects on a 16F18877, countless days lost trying to debug the root of the problem.
So I started a new program, importing features one at a time: HSEROUT, IOC, WPU, INLVL, PPS, each with a bit of code, and so on.
Turns out I had dead LCDOUTs at the very bottom that were sending pulses to default pins. All sorts of mayhem, in my case, pin A4 (Register Select according to my old PCP manual).
Unfreaking-believable...
Bookmarks