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
  • No not like that, I know the Connections to the reset pin. My doubt was the fundamental thing like, if I am just providing a 0V pulse on the reset Pin, how come the POR bit in the RSID register gets set along with the RESET bit as well.
    As far as clearing the bits is considered, How will I come to know which event(Power-On or Reset pin) has caused the reset if I clear the bits.??

Reply
  • No not like that, I know the Connections to the reset pin. My doubt was the fundamental thing like, if I am just providing a 0V pulse on the reset Pin, how come the POR bit in the RSID register gets set along with the RESET bit as well.
    As far as clearing the bits is considered, How will I come to know which event(Power-On or Reset pin) has caused the reset if I clear the bits.??

Children