![how to update watchdog timer how to update watchdog timer](https://cdn.windowsreport.com/wp-content/uploads/2021/05/b4GBxR2tu9.png)
LJ_ioSWDT_CONFIG // Channel is enable or disable constant. There is one IOType used to configure and control the watchdog: This resets all power-up settings to factory default values. Power up the U6 with a short from FIO2 to SPC, then remove the jumper and power cycle the device again. In such a case, the reset-to-default jumper can be used to turn off the watchdog. If the watchdog is accidentally configured to reset the processor with a very low timeout period (such as 1 second), it could be difficult to establish any communication with the device. With such hubs, the operating system will quit reenumerating the device on reset and the computer will have to be rebooted, so avoid excessive resets with hubs that seem to have this problem. Note that some USB hubs do not like to have any USB device repeatedly reset.
HOW TO UPDATE WATCHDOG TIMER SOFTWARE
For initial testing, “config defaults” in LJCP can be used to enable the watchdog all the time, but often it is desirable to enable/disable the watchdog in user software so it is only active while that software is running. Typical usage of the watchdog is to configure the reset defaults (condition of digital I/O and analog outputs) as desired (use the “config defaults” option in LJControlPanel V2.26+), and then use the watchdog simply to reset the device on timeout.
![how to update watchdog timer how to update watchdog timer](https://www.cnx-software.com/wp-content/uploads/2014/03/Stellaris_ICDI_Driver_Device_Manager.jpg)
Timeout of the watchdog on the U6 can be specified to cause a device reset (most common), update the state of 1 digital I/O (must be configured as output by user), or both. Note that while streaming, data is only going out, so some other command will have to be called periodically to reset the watchdog timer. If this timer reaches the defined TimeoutPeriod before being reset, the specified actions will occur.
![how to update watchdog timer how to update watchdog timer](https://i0.wp.com/www.switchdoc.com/wp-content/uploads/2014/11/SimpleWatchdogTimer.gif)
When any of the options are enabled, an internal timer is enabled which resets on any incoming USB communication. Unattended systems requiring maximum up-time might use this capability to reset the U6 or the entire system. The U6 has firmware based watchdog capability.