Ec Watchdog Timer Sample Code - Advantech ark-3405 User Manual

Intel celeron n3160 fanless embedded box pc with rich expansion and dual removable 2.5" hdd drive bays
Table of Contents

Advertisement

A.1

EC Watchdog Timer Sample Code

EC_Command_Port = 0x29Ah
EC_Data_Port = 0x299h
Write EC HW ram = 0x89
Watch dog event flag = 0x57
Watchdog reset delay time = 0x5E
Reset event = 0x04
Start WDT function = 0x28
====================================================
.model small
.486p
.stack 256
.data
.code
org 100h
.STARTup
mov dx, EC_Command_Port
mov al,89h
out dx,al
mov dx, EC_Command_Port
mov al, 5Fh
out dx,al
mov dx, EC_Data_Port
mov al, 30h
out dx,al
mov dx, EC_Command_Port
mov al,89h
out dx,al
mov dx, EC_Command_Port
mov al, 57h
out dx,al
mov dx, EC_Data_Port
mov al, 04h
out dx,al
mov dx, EC_Command_Port
mov al,28h
out dx,al
.exit
END
ARK-3405 User Manual
; Write EC HW ram.
; Watchdog reset delay time low byte (5Eh is high byte) index.
;Set 3 seconds delay time.
; Write EC HW ram.
; Watch dog event flag.
; Reset event.
; start WDT function.
60

Advertisement

Table of Contents
loading

Table of Contents