Aaeon PCM-4330 Guia de Instalação Página 71

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 78
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 77 78

Comentários a estes Manuais

Sem comentários