![background image](http://html1.mh-extra.com/html/aaeon/pcm-4894/pcm-4894_user-manual_3314845071.webp)
Appendix A Watchdog Timer Demo Program A-65
4. To refresh watchdog timer:
-- output the desired value to port 0x443. The timer will reset to
the new value and count down.
e.g. outportb(0x443,10);
// set time-out interval to
10 sec
…
outportb(0x443,20);
// reset watchdog timer to
20 sec
Demo program in C
outportb(0x444, 0);
// set time-out event to reset-system
outportb(0x443, 10);
// set time-out interval to 10 seconds
job1();
// execute your job here, be sure your job
will finished within 10 seconds
outputb(0x443,20);
// set time-out interval to 20 seconds and
refresh watchdog timer, otherwise the
system will reset after time-out
job2();
// another job finished within 20 seconds
outportb(0x443, 0);
// disable watchdog timer
…
Summary of Contents for PCM-4894
Page 14: ...8 PCM 4894 User Manual...
Page 56: ...50 PCM 4894 User Manual...
Page 72: ...A 66 PCM 4894 User Manual...
Page 77: ...Appendix C Optional Extras C 71 C Optional Extras APPENDIX...