How to check whether the microcontroller is getting reset?

Select your currency
INR Indian rupee