![]() |
Forum Index : Microcontroller and PC projects : Quick WATCHDOG question....
Author | Message | ||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9486 |
This is for the full-size MM, but I guess will also apply to the MicroMite chip too. The MM manual, page 36, under WATCHDOG command, mentions that: This is NOT resetting MMBASIC - correct? This command will actually cause the PIC32 to reset, thus re-running MMBasic from the very begginning? I just want to confirm that watchdog is not just a soft-reset for MMBasic, but rather a full hardware reset, if you know what I am getting at. Essentially the same as if I had pulled the MCLR pin on the device low, albeit via a MMBasic command. I am pretty sure it is, but I just want to check that it is - assumption being the mother of all feck-ups.... Smoke makes things work. When the smoke gets out, it stops! |
||||
Lou![]() Senior Member ![]() Joined: 01/02/2014 Location: United StatesPosts: 229 |
Grogs, I'm interested in that answer also. Geoff, please chime in. Also Geoff, is there any way in software even through a backdoor or Poke to effectively hard reset the uMite without using the watchdog, and maybe set the MM.WATCHDOG flag?? That could be handy in some debugging applications. Thanks, Lou Microcontrollers - the other white meat |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
Details here: http://ww1.microchip.com/downloads/en/DeviceDoc/61114E.pdf So it is practically the same as if the device is reset by pulling the MCLR line low. Keep in mind that external components using that same MCLR signal to reset themselves will not be reset by the watchdog. The internal peripherals will reset, meaning that if there is something connected to the microcontroller you will have to make sure that when all the pins are back in there initial state nothing bad happens. Microblocks. Build with logic. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |