Watchdog Timer
73
M-302
Appendix A - Watchdog Timer
The following is a sample program for configuring the M-302’s
watchdog timer.
A.1 Sample Code
Unlock W83627DHG-A:
outportb(0x2E, 0x87)
;Unlock Super I/O
outportb(0x2E, 0x87)
;Unlock Super I/O
Select Logical Device:
outportb(0x2E, 0x07)
;Select device number register
outportb(0x2F, 0x08);Set to Logical Device 8
Activate WDT:
outportb(0x2E, 0x30)
;Select WDTO# activate register
outportb(0x2F, 0x01)
;Enable watchdog
Set Seconds or Minutes:
outportb(0x2E, 0xF5)
;Select WDTO# control register
outportb(0x2F, mode)
;where mode=0x00(Sec) or 0x08(Min)
Set Base Timer:
outportb(0x2E, 0xF6)
;Select WDTO# counter register
outportb(0x2F, timeout);where timeout=0x00~0xFF
Reset Timeout Counter:
outportb(0x2E, 0xF6)
;Select WDTO# counter register
outportb(0x2F, timeout);where timeout=0x00~0xFF
Summary of Contents for M-302
Page 6: ...vi Preface This page intentionally left blank ...
Page 10: ...x List of Figures This page intentionally left blank ...
Page 12: ...xii List of Tables This page intentionally left blank ...
Page 26: ...14 Introduction This page intentionally left blank ...
Page 48: ...36 Getting Started This page intentionally left blank ...
Page 62: ...50 BIOS Setup 4 5 Integrated Peripherals On Chip IDE Device ...
Page 78: ...66 BIOS Setup This page intentionally left blank ...
Page 86: ...74 Watchdog Timer This page intentionally left blank ...