Code: Select all
Sub Main()
Debug.Print "start"
Call OpenWatchDog(7)
Do
Call WatchDog()
Call Sleep(2.0)
Debug.Print "wakeup"
Loop
End Sub
Code: Select all
Sub Main()
Debug.Print "start"
Call OpenWatchDog(7)
Do
Call WatchDog()
Call Sleep(2.0)
Debug.Print "wakeup"
Loop
End Sub
Confirmed. In actuality, 8 and 9 have the same effect as 0 and 1 - too fast for the periodic watchdog resets thus yielding the continual reset behavior observed..mikep wrote:However if 8 or 9 is used as a parameter to OpenWatchdog then the processor continually resets itself.