At the top of your program, before anything else ...
Send the value of the RCON and STKPTR registers to an LCD or serial interface to the PC.

Compare the values to table 4-3 in the datasheet.
Then you will know what caused the reset.