Nexcom APPC 1220T Instrukcja Użytkownika Strona 107

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 110
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 106
Copyright © 2011 NEXCOM International Co., Ltd. All Rights Reserved.
92
APPC 1220T/1221T/1520T/1521T/1720T/1721T User Manual
Appendix A: Watchdog Timer
aPPendix a: WatChdog timer
Start
See “SetupWDT” procedure
#Setup Watchdog Timer Environment
Step 1
Step 2
See “TimeBaseWDT” procedure
#Initial Watchdog Timer
Users can select second or minute
Step 3
See “TimeCountWDT” procedure
#Set Watchdog Timer Time-out Value
Users can set time-out value
Step 4
See ExitSetup procedure
#Exit Setup Environment
End
WDT Programming Guide
APPC Series Watchdog Function Configuration Sequence Description:
Watch Dog Sample Code
#define SUPERIO_PORT 0x2E
#define WDT_SET 0x72
#define WDT_VALUE 0x73
void main(void)
{
#Enter SuperIO Configuration
outportb(SUPERIO_PORT, 0x87);
outportb(SUPERIO_PORT, 0x01);
outportb(SUPERIO_PORT, 0x55);
outportb(SUPERIO_PORT, 0x55);
# Set LDN
outportb(SUPERIO_PORT,0x07);
outportb(SUPERIO_PORT+1 ,0x07);
# Set WDT setting
outportb(WDT_SET,0xC0); # Use the second to come down
# If choose the Minute, change
value to 0x40
# Set WDT sec/min
outportb(WDT_VALUE,0x05); #Set 5 seconds
}
Przeglądanie stron 106
1 2 ... 102 103 104 105 106 107 108 109 110

Komentarze do niniejszej Instrukcji

Brak uwag