CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account
You are here: Home / GizmoBlog / MMBasic Language / Language Constructs / WATCHDOG

WATCHDOG

WATCHDOG timeout
WATCHDOG OFF

Starts the watchdog timer which can be used to restart the Maximite in the event of a programming or other error that halts a running program. This can be important in an unattended control situation.

‘timeout’ is the time in milliseconds (mS) before a restart is forced. This command should be placed in strategic locations in the running BASIC program to constantly reset the timer and therefore prevent it from counting down to zero.

If the timer count does reach zero (perhaps because the BASIC program has stopped running) the PIC32 processor will be automatically rebooted. When MMBasic is restarted it will then attempt to run the program RESTART.BAS which can be used to recover the situation before using RUN or CHAIN to run the main program.

At any time WATCHDOG OFF can be used to disable the watchdog timer (this is the default on a reset or power up).

See also:
CHAIN
RUN

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2025 · Generate Pro Theme on Genesis Framework · WordPress · Log in