Protech Systems BU-2509 User Manual page 130

Micro atx motherboard with intel 6th gen. coretm i7/i5/i3 and xeon e3 v5 processor
Table of Contents

Advertisement

Example Program
Enable watchdog timer and set the time-out 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 ------------------------------
mov
al, 030h
out
dx, al
inc
dx
mov
al, 01h
out
dx, al
;------------------------------- Enable Watch PME--------------------------------------------
dec
dx
mov
al, 0FAh
out
dx, al
inc
dx
in
al, dx
and
al, 51h
out
dx, al
;-------------------------- Set second as counting unit --------------------------------------
dec
dx
mov
al, 0f5h
out
dx, al
inc
dx
in
al, dx
and
al, 30h
out
dx, al
; ---------------- Set timeout interval as 30seconds and start counting -----------
---
dec
dx
mov
al, 0f6h
out
dx, al
inc
dx
BU-2509 USER
S MANUAL
Appendix A Technical Summary
Page: A-14

Advertisement

Table of Contents
loading

Table of Contents