Ibm All-in-One Super7 Single Board Computer PCM-5896 Uživatelský manuál Strana 119

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 128
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 118
Appendix A Programming the Watchdog Timer 107
Demo program
outportb(0x444, 0): // set time-out event to reset-system
outportb(0x443x 10); // set time-out interval to 10 seconds
customer_job(); // execute your job here, be sure your
job will finished within 10 seconds
outportb(0x443, 0); // refresh watchdog timer, otherwise
the system will reset after time-out
outputb(0x443, 20); // set time-out interval to 20 seconds
another_job(); // another job finished in 20 seconds
outportb(0x443, 0) // disable watchdog timer
...
...
Zobrazit stránku 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 127 128

Komentáře k této Příručce

Žádné komentáře