I am trying to make code for PIC18F45K50. I am trying to use PORTE as digital input. That means I have to clear the ANSELE register which controls this pin behavior.
Working on MPLAB X 3.30, I tried this line of code to clear the register:
clrf ANSELE
I also tried setting the bits of the register individually, but when testing in the MPLAB X debugger, no matter what I did, the instruction just didn't do anything and the code went on. How can I enable this register to be modified in MPLAB X?
The code I'm working on is made in assembly language.