P C / 1 0 4 C P U M o d u l e
P F M - 5 4 0 I R e v . B
Appendix A Programming the Watchdog Timer
A-4
The following is a sample code to set WDT for 3 seconds.
;Runtime register I/O base address
SUPERIO_GPIO_PORT
EQU 800h
.MODEL SMALL
.CODE
begin:
;enable WDT
mov dx, SUPERIO_GPI 47h
mov
al,
0Ch
out
dx,
al
;WDT_TIME_OUT register
mov dx, SUPERIO_GPI 65h
mov al, 80h ;unit is second
out
dx,
al
;WDT_VAL register
mov dx, SUPERIO_GPI 66h
mov al, 03h
;3 seconds
out
dx,
al
;exit
mov
ah,4ch
int
21h
END
begin
Summary of Contents for PFM-540I
Page 16: ...PC 104 CPU Module P F M 5 4 0 I R e v B Chapter 2 Quick Installation Guide 2 4 Solder Side...
Page 18: ...PC 104 CPU Module P F M 5 4 0 I R e v B Chapter 2 Quick Installation Guide 2 6 Solder Side...
Page 47: ...PC 104 CPU Module P F M 5 4 0 I R e v B Appendix A Programming the Watchdog Timer A 3...