61
PCA-6782 User Manual
Appendix A
P
rogramming
the
W
atchdog
Timer
A.1.4
Example Program
1.
Enable watchdog timer and set 10 sec. as timeout interval
;--------------------------------------------------------------------------------
Mov dx,2e
; Unlock W83627DHG-P
Mov al,87h
Out dx,al
Out dx,al
;--------------------------------------------------------------------------------
Mov al,07h
; Select registers of watchdog timer
Out
dx,al
Inc
dx
Mov
al,08h
Out
dx,al
;--------------------------------------------------------------------------------
Dec dx
; Enable the function of watchdog timer
Mov
al,30h
Out
dx,al
Inc
dx
Mov
al,01h
Out
dx,al
;--------------------------------------------------------------------------------
Dec dx
; Set second as counting unit
Mov
al,0f5h
Out
dx,al
Inc
dx
In
al,dx
And al,not 08h
Out
dx,al
;--------------------------------------------------------------------------------
Dec dx
; Set timeout interval as 10 seconds and start counting
Mov
al,0f6h
Out
dx,al
Inc
dx
Mov
al,10
Out
dx,al
;--------------------------------------------------------------------------------
Dec dx
; lock W83627DHG-P
Mov
al,0aah
Out
dx,al
2.
Enable watchdog timer and set 5 minutes as timeout interval
;--------------------------------------------------------------------------------
Mov dx,2eh
; unlock W83627DHG-P
Mov al,87h
Out dx,al
Out dx,al
Summary of Contents for PCA-6782
Page 7: ...PCA 6782 User Manual viii...
Page 12: ...Chapter 1 1 Hardware Configuration...
Page 22: ...Chapter 2 2 Connecting Peripherals Jumper Settings...
Page 38: ...Chapter 3 3 AMI BIOS Setup...
Page 56: ...Chapter 4 4 Value Added Software Services...
Page 60: ...Chapter 5 5 Chipset Software Installation Utility...
Page 63: ...PCA 6782 User Manual 52...
Page 64: ...Chapter 6 6 Integrated Graphic Device Setup...
Page 66: ...Chapter 7 7 LAN Configuration...
Page 68: ...Appendix A A Programming the Watchdog Timer...
Page 76: ...Appendix B B I O Pin Assignments...