®
SBC82810 Pentium
M All-in-One Half-Size Board User's Manual
Watchdog Control Sample
Using the Watchdog Function
Function
Setting Base
PCI Reg. 60h , bit 2
Time
Bit2=0
Bit2=1
Read WDT
PCI Reg. 10h ~ 13h
BaseAdress
WDT unlock BaseAddress + 0Ch
80h
BaseAddress + 0Ch
86h
Set Timer
BaseAddress + 04h ~
Value
07h
Set Free
PCI Reg.68h, bit 3,2
Running
Bit2=1, Free Running
mode
mode
Reload Timer
Function
66
Reg.
Max. TimeVaule =
1ms (default)
0FFFFFh * 1 ms
1 us
mov ebx,TimeValue
mov eax,8000EC10h
mov dx,0cf8h
out dx,eax
mov dx,0cfch
in eax,dx
mov edi,eax ;; store
BaseAddress to edi
push es ; backup es
Reg.
xor ax,ax
mov es,ax
mov ax,8680h
mov es:[edi+0ch],al
mov es:[edi+0ch],ah
mov es:[edi+04h],ebx
pop es
Reg.
mov eax,8000EC68h
mov dx,0cf8h
out dx,eax
mov dl,0fch
mov al,04h
Running mode
out dx,al
Reg.
Assembler
; restore es
;; Free
Assembler
Watchdog Timer
Need help?
Do you have a question about the SBC82810 Series and is the answer not in the manual?