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.
Hey all, I am using mcu AT89c5130A , and its just generate auto reset (I think its happend becasue of watchdog). How can I disable it ? I want that the micro will execute the code only one time. when reset occurs its always starts from the beginig ! please help. thank you
The most common way to keep a watchdog in check is to either - depending on personal preferences - kick the dog or feed it.
Have you tried to kick - or feed - it in you infinite wait loop after your program has done the required task?
Another alternative - be "green" and supply the power through a FET, where the processor toggles a processor pin and kills the power.
... a not uncommon problem is the WD running during program startup. Startup.a51 and the auto-generated code that initializes variables do not feed the puppy.
THUS if your WD is enabled by reset you need to disable it at the top of startup.a51, and do not enable it before the top of main()
Erik