beautypg.com

MSI IM-GS45-D User Manual

Page 56

background image

4-2

SYSTEM RESOURCES

w

atch

d

og

t

iMer

S

etting

Software code
SIO_IDX equ 4EH
SIO_DTA equ 4FH

Timer equ 10; reset after 10 seconds

1. Enter configuration mode
mov dx,SIO_IDX
mov al,87h
out dx,al
out dx,al

2. Set to LDN 07
mov dx,SIO_IDX
mov al,07h
out dx,al
mov dx,SIO_DTA
mov al,07h
out dx,al

3. Set WatchDog Timer
mov dx,SIO_IDX
mov al,0f6h
out dx,al
mov dx,SIO_DTA
mov al,Timer
out dx,al

4. Exit configuration mode
mov dx,SIO_IDX
mov al,0AAh
out dx,al