I'm using a pic24FJ64GA004, and something is causing it to reset.
I found that the PIC has a register called RCON, which is supposed to have bits set according to what caused the reset. I've got the PIC to output the value of RCON on a debug port, but the value never changes when a reset occurs. RCON seems to start at 0x0003 as expected, but there are no changes after that.
Has anyone used that register, and is there anything that I am doing wrong?
I found that the PIC has a register called RCON, which is supposed to have bits set according to what caused the reset. I've got the PIC to output the value of RCON on a debug port, but the value never changes when a reset occurs. RCON seems to start at 0x0003 as expected, but there are no changes after that.
Has anyone used that register, and is there anything that I am doing wrong?