Aaeon SBC-558 Manual page 111

Table of Contents

Advertisement

Example
Following is an example of programming 32 sec period for watch-
dog timer in assembly language. When timer times out, it will
generate signal of system reset.
CONFIG_PORT
DATA_PORT
SetWatchDog_Time PROC
push bx
push cx
push dx
mov
mov
call
mov
call
pop
pop
pop
mov
int
ret
SetWatchDog_Time ENDP
102
SBC-558 User Manual
dw
3f0h
dw
3f1h
bl,7
;; Select logical device number 7
ax,0130h
;; write 01h to register 30h to
;; timer
W977Write ;; mov bl,8
;; Select logical device number 8
ax,01f2h
;; write time-out value (01h) to
;; F2h
W977Write
;; set time-out value to 32 sec
dx
cx
bx
ah,4ch
21h
activate
register

Advertisement

Table of Contents
loading

Table of Contents