![Advantech EPC-C301 Series User Manual Download Page 76](http://html1.mh-extra.com/html/advantech/epc-c301-series/epc-c301-series_user-manual_2857042076.webp)
EPC-C301 User Manual
66
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 ; Write EC HW ram.
out dx,al
mov dx, EC_Command_Port
mov al, 5Fh ; Watchdog reset delay time low byte (5Eh is high byte) index.
out dx,al
mov dx, EC_Data_Port
mov al, 30h ;Set 3 seconds delay time.
out dx,al
mov dx, EC_Command_Port
mov al,89h ; Write EC HW ram.
out dx,al
mov dx, EC_Command_Port
mov al, 57h ; Watch dog event flag.
out dx,al
mov dx, EC_Data_Port
mov al, 04h ; Reset event.
out dx,al
mov dx, EC_Command_Port
mov al,28h ; start WDT function.
out dx,al
.exit
END
Summary of Contents for EPC-C301 Series
Page 1: ...User Manual EPC C301 Multiple I O Fanless Embedded System ...
Page 22: ...EPC C301 User Manual 12 2 2 1 6 RJ45 2 port ...
Page 30: ...EPC C301 User Manual 20 ...
Page 31: ...Chapter 3 3 BIOS Settings ...
Page 75: ...Appendix A A Watchdog Timer Sample Code ...