Reset types and the RCON register
I have a program that resets ocassionally and to help find out why, I thought I'd make use of the RCON register. There is a hardware watchdog that toggles MCLR, and the internal watchdog is disabled.
The datasheet (18F8722) is a bit confusing with every reset type setting the flags in a different way, but I suppose that's to be expected for these kinds of flags. I was just wondering if anyone has used the RCON register successfully on an 18F with PBP.
Also, MCLoader is being used for the bootloader, but I have been unable to find anything saying if it messed with RCON or not.
Any help would be appreciated. I will post my progress as I go.
John
Re: Reset types and the RCON register
Hi jbutera,
Did you find a way to do this?
I have a similar problem...
I am performing a hardware MCLR (on rare occasions), and wish to detect when it occured.
My line of code is:
If RCON.1 = 0 Then GoTo mclr