Aaeon PFM-LNP Instrukcja Użytkownika Strona 38

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 44
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 37
PC/104 CPU Module PFM-LNP
Appendix A Programming the Watchdog Timer A-4
The following is a sample code to set WDT for 3 seconds.
;Runtime register I/O base address
SUPERIO_GPIO_PORT EQU 600h
.MODEL SMALL
.CODE
begin:
;enable WDT
mov dx, SUPERIO_GPIO_PORT + 47h
mov al, 0Ch
out dx, al
;WDT_TIME_OUT register
mov dx, SUPERIO_GPIO_PORT + 65h
mov al, 80h ;unit is second
out dx, al
;WDT_VAL register
mov dx, SUPERIO_GPIO_PORT + 66h
mov al, 03h ;3 seconds
out dx, al
;exit
mov ah,4ch
int 21h
END begin
Przeglądanie stron 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 44

Komentarze do niniejszej Instrukcji

Brak uwag