![background image](http://html1.mh-extra.com/html/icp-das-usa/i-8411/i-8411_user-manual_3619301107.webp)
I-8000 Series (C Language Based) User Manual, Version 1.0.1 Page: 107
Copyright © 2012 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4.8.
API for WatchDog Timer (WDT)
●
The I-8000 equips the MiniOS7, the small-cored operating system. MiniOS7 uses the
Timer 2 (A CPU internal timer) as system Timer. It is 16-bits Timer, and generate
interrupt every 1 ms. So the accuracy of system is 1 ms.
●
The Watch Dog Timer is always enabled, and the system Timer ISR (Interrupt Service
Routine) refreshes it.
●
The system is reset by WatchDog. The timeout period of WatchDog is 0.8 seconds.
API for refreshing WDT
1. EnableWDT()
The WDT is always enabled, before user’s programming to refresh it, the EnableWDT()
must be called to stop refreshing WDT.
2. RefreshWDT()
After EnableWDT() stop refreshing WDT, the RefreshWDT() must be called to refresh
the WDT.
3. DisableWDT()
After user’s programming to refresh WDT, the DisableWDT() should be called to
automatically refresh the WDT.