how can I detect uC reset p89lpc9221 ?

Status
Not open for further replies.

drdigital

Junior Member level 3
Joined
Apr 13, 2009
Messages
31
Helped
5
Reputation
10
Reaction score
4
Trophy points
1,288
Activity points
1,525
Hello every one,
I'm testing my code and I need to check if the uC reseted in the middle or not as I leave it runing for 7 hours and not setting beside it.

I tried writting a value to the ROM :
Code:
code unsigned char RSTDetect = 0;
but it is unmodifiable during the code, so I cant update it .

so, any other ways ??
 

Oscilloscopes can be set to count events or trigger at specific events.
 

further to add. Adjust the sweep of the scope to suit to your requirement. You can use a roll mode also, usually seen with HP oscilloscopes. You should be able to see the reset happen.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…