65
PCA-6008G2 User Manual
Appendix A
P
rogramming
the
W
atchdog
A.1.4 Example Program
1.
Enable watchdog timer and set 10 sec. as timeout interval
;-----------------------------------------------------------
Mov dx,2eh ; Unlock W83627HF
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 W83627HF
Mov
al,0aah
Out
dx,al
2.
Enable watchdog timer and set 5 minutes as timeout interval
;-----------------------------------------------------------
Mov dx,2eh ; unlock W83627H
Mov al,87h
Out dx,al
Out dx,al
;-----------------------------------------------------------
Содержание PCA-6008G2
Страница 14: ...PCA 6008G2 User Manual xiv...
Страница 15: ...Chapter 1 1 Hardware Configuration...
Страница 25: ...Chapter 2 2 Connecting Peripherals...
Страница 38: ...PCA 6008G2 User Manual 24...
Страница 39: ...Chapter 3 3 Award BIOS Setup...
Страница 58: ...PCA 6008G2 User Manual 44...
Страница 59: ...Chapter 4 4 Chipset Software Install Utility...
Страница 62: ...PCA 6008G2 User Manual 48 5 Click Next when you see the following messages...
Страница 64: ...PCA 6008G2 User Manual 50...
Страница 65: ...Chapter 5 5 VGA Setup...
Страница 68: ...PCA 6008G2 User Manual 54...
Страница 69: ...Chapter 6 6 LAN Configuration...
Страница 72: ...PCA 6008G2 User Manual 58 4 Click Finish to complete the installation...
Страница 73: ...Chapter 7 7 USB 2 0 Configuration...
Страница 75: ...Appendix A A Programming the Watchdog...
Страница 83: ...Appendix B B Programming the GPIO...
Страница 87: ...Appendix C C Pin Assignments...
Страница 103: ...89 PCA 6008G2 User Manual Appendix C Pin Assignments...