Aaeon PCM-4330 Guide d'installation Page 71

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 78
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 70
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
Vue de la page 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 77 78

Commentaires sur ces manuels

Pas de commentaire