43
ARK-6322 User Manual
Appendix A
P
rogramming
the
W
atchdog
Timer
A.1.3
Example Program
1.
Enable the watchdog timer and set the timeout interval as 10 seconds
;-----------------------------------------------------------
Mov dx,2eh; unlock NCT6106D
Mov al,87h
Out dx,al
Out dx,al
;-----------------------------------------------------------
Mov al,07h; select the watchdog timer registers
Out dx,al
Inc dx
Mov al,08h
Out dx,al
;-----------------------------------------------------------
Dec dx; enable the watchdog timer function
Mov al,30h
Out dx,al
Inc dx
Mov al,01h
Out dx,al
;-----------------------------------------------------------
Dec dx; set the unit of measurement as seconds
Mov al,0f0h
Out dx,al
Inc dx
In al,dx
And al,not 08h
Out dx,al
;-----------------------------------------------------------
Dec dx; set the timeout interval as 10 seconds and start counting
Mov al,0f1h
Out dx,al
Inc dx
Mov al,10
Out dx,al
;-----------------------------------------------------------
Dec dx; lock NCT6106D
Mov al,0aah
Out dx,al
2.
Enable the watchdog timer and set the timeout interval as 5 minutes
;-----------------------------------------------------------
Mov dx,2eh; unlock NCT6106D
Mov al,87h
Out dx,al
Out dx,al
Summary of Contents for ARK-6322
Page 1: ...User Manual ARK 6322 Fanless Embedded Box PC ...
Page 11: ...Chapter 1 1 General Introduction This chapter gives background information on ARK 6322 ...
Page 15: ...Chapter 2 2 General Information ...
Page 28: ...AIMB 6322 User Manual 18 ...
Page 29: ...Chapter 3 3 BIOS Operation ...