User Tools

Site Tools


en-us_commands:reference:wdt

This is an old revision of the document!


Table of Contents

WDT()

WDT() refreshes the Watchdog before its timeout expires.

WDT command operation flow

void WDT()

Commands

Command Arguments Return Value Operation
WDT() None void Refreshes the Watchdog before its timeout expires.

Example

void loop() {
  // Normal control processing
  WDT();
}

Precautions

  • Use time constants supported by the MCU.
  • Do not set a timeout shorter than the longest normal processing time.
  • Do not hide program faults by placing WDT() where it always executes unconditionally.

← Built-in Command List

en-us_commands/reference/wdt.1788785569.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki