13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.2 Watch Dog Timer Functions• EnableWDT• DisableWDTDescription:This function can be used to enable the watch dog timer (WDT) and users need toreset WDT in the assigned time set by users. Or LinPAC will reset automatically.Syntax:[C]void EnableWDT(unsigned int msecond)void DisableWDT(void)Parameter:msecond:LinPAC will reset in the assigned time if users don’t reset WDT.The unit is mini-second.Return Value:NoneExample:EnableWDT(10000); //Enable WDT interval 10000ms=10swhile (getchar()==10){printf("Refresh WDT\n");EnableWDT(10000); //Refresh WDT 10s}printf("Disable WDT\n");DisableWDT();Remark:LinPAC-8x4x SDK:61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!