Appendix A Watchdog Timer Demo Program A-85
Demo program
outportb(0x444, 0):
// set time-out event to reset-system
outportb(0x443x 10);
// set time-out interval to 10 seconds
iutportb(0x443);
// enable watchdog timer
customer_job();
// execute your job here, be sure your
job will finished within 10 seconds
outportb(0x80, 0);
// refresh watchdog timer, otherwise
the system will reset after time-out
outputb(0x443, 20);
// set time-out interval to 20 seconds
inportb(0x443);
// enable watchdog timer
another_job();
// another job finished in 20 seconds
outportb(0x80, 0)
// disable watchdog timer
...
...
Содержание SBC-456
Страница 1: ...SBC 456 456E Half size 486 CPU Card with Flat Panel CRT SVGA Interface ...
Страница 8: ......
Страница 16: ...8 SBC 456 456E User Manual ...
Страница 40: ...32 SBC 456 456E User Manual ...
Страница 72: ...64 SBC 456 456E User Manual ...
Страница 88: ...80 SBC 456 456E User Manual ...
Страница 94: ...A 86 SBC 456 456E User Manual ...