Watchdog Programming - Advantech PCA-6781 User Manual

Isa celeron m half-sized sbc with vga/lcd lvds/10/100 ethernet/usb 2.0 and ssd
Hide thumbs Also See for PCA-6781:
Table of Contents

Advertisement

A.1

Watchdog Programming

;The SCH3114 Runtime base I/O address is 800h
;Setting WatchDog time value location at offset 66h
;If set value "0", it is mean disable WatchDog function.
Superio_GPIO_Port = 800h
mov dx,Superio_GPIO_Port + 66h
mov al,00h
out dx,al
.model small
.486p
.stack 256
.data
SCH3114_IO EQU 800h
.code
org
100h
.STARTup
;====================================================
;47H
;enable WDT function bit [3:2]=11
;====================================================
mov dx,SCH3114_IO + 47h
mov al,8EH
out dx,al
;====================================================
;65H
;bit [1:0]=Reserved
;bit [6:2]Reserve=00000
;bit [7] WDT time-out Value Units Select
;Minutes=0 (default) Seconds=1
;====================================================
mov dx,SCH3114_IO + 65h ;
mov al,080h
out dx,al
;====================================================
;66H
;WDT timer time-out value
;bit[7:0]=0~255
;====================================================
mov dx,SCH3114_IO + 66h
PCA-6781 User Manual
42

Advertisement

Table of Contents
loading

Table of Contents