Intel BS-E098 User Manual page 126

Fanless embedded pc with intel apollo lake pentiumtm /celeron soc
Table of Contents

Advertisement

Code example for watch dog timer
Enable the watchdog timer and set the timeout interval to 30 seconds.
; ------------------------- Enter to extended function mode -------------------------------
mov
dx, 2Eh
mov
al,
87h
out
dx, al
out
dx, al
; ----------------------- Select Logical Device 7 of watchdog timer ---------------------
mov
al,
07h
out
dx, al
inc
dx
mov
al,
07h
out
dx, al
;---------------------------------Enable Watch dog feature ------------------------------
dec
dx
mov
al,
30h
out
dx, al
inc
dx
mov
al,
01h
out
dx, al
; ---------------- Set timeout interval as 30seconds and start counting --------------
dec
dx
mov
al,
F6h
out
dx, al
inc
dx
mov
al,
1Eh
out
dx, al
;------------------------------- Enable Watch PME--------------------------------------------
dec
dx
mov
al,
FAh
out
dx, al
inc
dx
BS-E098 SERIES USER MANUAL
Appendix B Technical Summary
Page: B-24

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents