We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All, I am facing software reset problem in the XC164.I am explaining the case in detail.Fortunately i am initialising three lEDS's on every powerUp.While during the execution of the application i observed that unfortunately sometimes that three LED's are getting glowed and off.I came to the conclusion that due to the reset i got that problem.Then i probed the problem and i made confirmation that there was no hardware reset.This is confirmed as the result of checking the hardware reset active low pin.If someone knows the reason,please help me.
Regards,Thangadurai.A
How do you know that you have a reset?
Have you verified that you actually run the startup code multiple times? The LED state will also change if some broken software changes the state/config for the corresponding signal pins.
I'm not sure if you can see any signal on the external reset pin if the chip performs a watchdog reset or possibly a brownout reset.
Dear sir, In debugger i put break point at the start up code LED initialisation, i got the control there.So i concluded that its getting reset.
Can you read the value of the SYSSTAT register to see the status?
Dear sir, At first i suspected that this reset may occur due to some external harware interrupt signal.So i put while loop in all the unknown interrupts or Trap interrupts service routine to fix a bug.But the control didnt get hang anywhere in this loop but the software reset.I was amazed with that.Suddenly i had a doubt that it may be due to the supply voltage fluctuation.So i put a supply voltge waveform in a scope and observed while during the reset.But ididnt observe any fluctuation in the supply voltage,the microcontroller is consuming constatnt voltage of 5 volt>then i observed the hardware reset pin which is always 1 since it is active low which indicates that its not an hardware reset signal.Then i am suspecting the software reset but i dont know how to fix that bug....
The system status register SYSSTAT indicates the status of the clock generation unit and the recent reset with a number of flags.
What about the watchdog? It is enabled out of reset unless you explicitly disable it. What is your configuration?
You need to provide more detailed information to your problem otherwise no constructive help can be given.
Hi, Actually i had disabled the watch dog.So i couldnt observe the SYSSTAT register.
Dear Sir, I checked the SYSSTAT register.In that register the bit corresponding to the Harware Reset is in SET condition.