Issues reading digital inputs in Debug
I am new with Microchip microcontrollers and I have some problem during debug of my program, and in particular I can't read the digital inputs.
I'm using the Evaluation Board with PIC16F18855 MCU, connected to my PC through the USB port.
I use MCC Code Configurator Plug In in MPLAB X IDE v5.45 just setting pin RA0 as digital output, and pin RA1 as digital input (see the attached image "Digital_IO.jpg").
Generating the code, I find the MCC generated files included in my project, just put a NOP operation in the while loop, and set a breakpoint to that line to stop the debug.
NOP(); /* breakpoint at this line */
To force the digital input to 1, I connected the RA1 pin of the evaluation board to the 3.3V pin using a wire, and I see the D3 LED turn on correctly (see the attached image "EV_Board.jpg").
When I start the debug in MPLAB X IDE, the program halts at the NOP line, and I put the values of the register PORTA in the Watches window to see the values of that pins, but that register is always 0 (see the attached image "Watches.jpg").
How can I read that input? Am I missing something? Thanks all for reply, I hope someone can help me soon.