0 Members and 1 Guest are viewing this topic.
I am reading the reset and overflow like this:Code: [Select]rseting = RCONrsetg = STKPTR RCON = %00111111I am getting a 0 back When I read STKFUL ( I read it during the problem part of the code where it charges the battery) I am getting back a 7 or 00000111I don't think this is a problem?
rseting = RCONrsetg = STKPTR RCON = %00111111
Quote from: richcj10 on December 30, 2012, 04:57:42 pmI am reading the reset and overflow like this:Code: [Select]rseting = RCONrsetg = STKPTR RCON = %00111111I am getting a 0 back When I read STKFUL ( I read it during the problem part of the code where it charges the battery) I am getting back a 7 or 00000111I don't think this is a problem?That is fine but you need to read the value after a reset, since that's when the STKFUL bit will be set if the stack overflow.