ECM-3410/3410L/3410N
ECM-3410/3410L/3410N User’s Manual
105
Demo Program 1 (Micro-Assembly Language)
;;==============================================================
;; Title
: ECM-3410 Watchdog Timer Demo Program (16 seconds)
;; Company : Evalue Technology Inc.
;; Date : 10/04/2000
;;==============================================================
W83977_IO_PORT EQU 3F0H
UNLOCK_ID EQU 087h
LOCK_ID EQU 0AAH
.model small
.code
;;---------------------------------------------------
;; Main Program start
;;---------------------------------------------------
WatchDog PROC
;; Set Logic Device 8 active
mov bl, 8
;; Logic Device 8
mov al, 30h
;; Register 30h
mov ah, 01h
;; Active --> 01h, Inactive --> 00h
call W977_Register_Set
;; Set watchdog time-out value = 1 (16 seconds)
mov bl, 8
;; Logic Device 8
mov al, 0F2h
;; Register F2h
mov ah, 01h
;; 01h ~ FFh = 0:16 ~ 127:16
call W977_Register_Set
mov ah,4ch
;; Return to DOS
int 21h
ret
WatchDog ENDP