MIO-9290 User Manual
76
C.1
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 (high byte), 0x5F (low byte)
Reset event = 0x04
Start WDT function = 0x28
Stop WDT function = 0x29
Reset WDT function = 0x2A
===============================================================
.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_Data_Port
mov al, 5Fh ; Watchdog reset delay time low byte (5Eh is high byte) index, Time-
base: 100ms
out dx,al
mov dx, EC_Data_Port
mov al, 64h ;Set 10 seconds delay time.
out dx,al
mov dx, EC_Command_Port
mov al,89h ; Write EC HW ram.
out dx,al
mov dx, EC_Data_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
Summary of Contents for MIO-9290
Page 6: ...MIO 9290 User Manual vi ...
Page 16: ...MIO 9290 User Manual 8 ...
Page 27: ...Chapter 3 3 AMI BIOS Setup ...
Page 52: ...MIO 9290 User Manual 44 ...
Page 78: ...MIO 9290 User Manual 70 ...
Page 82: ...MIO 9290 User Manual 74 ...