This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2148 Reset source Identification

hi,
I need to find out whether the LPC2148 is reset due to POR(power-on reset) or by the RESET pin becoming low. As per the user manual UM10139, I read about the RESET SOURCE IDENTIFICATION REGISTER (RSIR). They have mentioned the 4 possible sources of reset action i.e.: POR,RESET pin, Watchdog and Brownout detection.
My application needs to check for the first two conditions only. But the problem is, every time when my code checks for the RSIR register at the very beginning of the execution, both the bits (Power-On reset and RESET pin) of the RSIR register are SET to 1 no matter in what way I reset the microcontroller. Either of the 2 bits should be set based upon the type of reset i provide.
Please help in finding the solution to this problem.

Regards,
Karan

Parents
  • yes, I just tried writing a '1' to the zeroth and first positions of the RSID register and I could see the particular bit getting cleared. So the first part, as they mentioned "Writing a 1 to any of these bits clears the corresponding read-side bit to 0." I got it.
    but the 2nd thing as they ahve mentioned: "But if another Reset signal (e.g., External Reset) remains asserted after the POR signal is negated, then its bit is set. " is unclear to me as far as my hardware is concerned. I am not asserting any Reset signal after the POR condition, still how come the bit is set? And also vice-versa.

Reply
  • yes, I just tried writing a '1' to the zeroth and first positions of the RSID register and I could see the particular bit getting cleared. So the first part, as they mentioned "Writing a 1 to any of these bits clears the corresponding read-side bit to 0." I got it.
    but the 2nd thing as they ahve mentioned: "But if another Reset signal (e.g., External Reset) remains asserted after the POR signal is negated, then its bit is set. " is unclear to me as far as my hardware is concerned. I am not asserting any Reset signal after the POR condition, still how come the bit is set? And also vice-versa.

Children