![]() |
Forum Index : Microcontroller and PC projects : MM.Watchdog
Author | Message | ||||
OA47 Guru ![]() Joined: 11/04/2012 Location: AustraliaPosts: 982 |
Under what circumstances does the MM.watchdog flag get cleared or reset to zero? |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3282 |
On a restart (for whatever reason). Geoff Graham - http://geoffg.net |
||||
OA47 Guru ![]() Joined: 11/04/2012 Location: AustraliaPosts: 982 |
Maybe a misunderstanding. I understand that MM.Watchdog is true on a restart due to the watchdog timer but on what conditions is the flag set back to zero? GM |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3282 |
It is set to zero when the uM starts with a normal power up and it is set to true if a watchdog timeout caused the restart. It is not changed until the next power up. Currently a reset (pulling MCLR low) does not change MM.Watchdog, it requires a power recycle (I plan to change this). Are you seeing something different? Geoff Geoff Graham - http://geoffg.net |
||||
OA47 Guru ![]() Joined: 11/04/2012 Location: AustraliaPosts: 982 |
Thanks for the info Geoff all is as you have explained. I am accessing the micromite remotely (via the console port) and would like to reset the MM.watchdog flag but as you have explained I will need to power cycle the micromite. GM |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |