Aaeon PCM-QM77 Manuale Utente Pagina 135

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 172
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 134
Compact Board PCM-QM77
Appendix A Programming the Watchdog Timer A-5
A.2 F81866 Watchdog Timer Initial Program
Main(){
aaeonSuperIOOpen();
aaeonWdtSetCountMode(BOOLbMinute);//Setwdtcountmode
aaeonWdtSetTimeoutCount(BYTEtTimeout);//Setwdttimer
aaeonWdtSetEnable(BOOLbEnable);//Enablewdt
aaeonSuperIOClose();
}
VoidaaeonSuperIOOpen(){ //ConfigF81866Entrykey
aaeonioWritePortByte(F81866_INDEX,0x87);
aaeonioWritePortByte(F81866_INDEX,0x87);
}
VoidaaeonWdtSetCountMode(BOOLbMinute){
BYTEWDT_CONTROL=f81866ReadByte(F81866_WDT_CONTROL_REG);
if(bMinute)
f81866WriteByte(F81866_WDT_CONTROL_REG,WDT_CONTROL|0x08);
else
f81866WriteByte(F81866_WDT_CONTROL_REG,WDT_CONTROL&0xF7);
}
Vedere la pagina 134
1 2 ... 130 131 132 133 134 135 136 137 138 139 140 ... 171 172

Commenti su questo manuale

Nessun commento