Watchdog Timer Sample Code - Advantech PCM-9363 User Manual

3.5" biscuit with intel atom n455/d525, ddr3, 24-bit lvds, crt or hdmi, 2 giga lan, mini pcie, 3 com
Hide thumbs Also See for PCM-9363:
Table of Contents

Advertisement

B.1

Watchdog Timer Sample Code

Watchdog function:
;The SCH3114 Runtime base I/O address is A00h
;Setting WatchDog time value location at offset 66h
;If set value "0", it is mean disable WatchDog function.
Superio_GPIO_Port = A00h
mov dx,Superio_GPIO_Port + 66h
mov al,00h
out dx,al
.model small
.486p
.stack 256
.data
SCH3114_IO EQU A00h
.code
org 100h
.STARTup
;====================================================
;47H
;enable WDT function bit [0]=0Ch
;====================================================
mov dx,SCH3114_IO + 47h
mov al,0Ch
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
mov al,01h
out dx,al
;====================================================
;bit[0] status bit R/W
;WD timeout occurred =1
PCM-9363 User Manual
78

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pcm-9363d-s8a1ePcm-9363n-s6a1e

Table of Contents