Description Reset the watchdog timer, also known as “kicking the dog” (Sets the watchdog timer counter to zero) Syntax TimerWDT.reset() Parameter None Return None Example Set up watch dog timer to watch dog mode and to reboot the system every 30 seconds. Simultaneously, reset the watch dog timer every 10 seconds to prevent system reboot. […]
Description Setup watch dog timer for specific time intervals. Syntax TimerWDT.setPeriod(time) Parameter time:time interval,the unit is microsecond (μs) Return None Example Set up watch dog timer to interrupt mode, turn the LED on and off every 200ms: See also - initialize() - attachInterrupt() - detachInterrupt() Libraries Reference Home The text of the 86Duino reference is […]
Description Turns off the ISR attached by the attachInterrupt(). Syntax TimerWDT.detachInterrupt() Paramenter None. Return None. See also - attachInterrupt() Libraries Reference Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
Description This command specifies a named Interrupt Service Routine (ISR) to call on when an interrupt occurs. (Note: this function will only work when the timer is in interrupt mode) Syntax TimerWDT.attachInterrupt(isr) TimerWDT.attachInterrupt(isr, time) Parameters isr:The name of the function to be called whenever an interrupt event happens. time:Sets time duration and interval parameters (optional) […]
Description Initializes the watch dog timer from 86Duino and sets up the mode type. Syntax TimerWDT.initialize() TimerWDT.initialize(time) TimerWDT.initialize(time, mode) Parameter time:Sets the cycle time for the watch dog timer in microseconds. The limit of the time interval is 512 seconds(512000000μs);If there is no value, the default is 500ms (500000μs). mode:Sets up the watch dog timer […]
The TimerWDT Function is included in the 86Duino IDE library beginning with Coding 211. Please note that traditional watch dog API (wdt_enable()) from Arduino is also capable of being used with the 86Duino. This TimerWDT implementation provides the user with traditional watch dog functions as well as allows the user to use the callback functions […]
Sorry, this entry is only available in 简体中文 and 繁體中文.
Sorry, this entry is only available in 简体中文 and 繁體中文.
Sorry, this entry is only available in 简体中文 and 繁體中文.
Sorry, this entry is only available in 简体中文 and 繁體中文.