MIO-2270 User Manual
76
B.1
Watchdog Timer Sample Code
Watchdog Function
The SCH3114 runtime base I/O address is 680h.
Set the Watchdog time value to offset at 66h.
If the set value is "0", the Watchdog function is disabled.
Superio_GPIO_Port = 680h
mov dx,Superio_GPI 66h
mov al,00h
out dx,al
.model small
.486p
.stack 256
.data
SCH3114_IO EQU 680h
.code
org 100h
.STARTup
;====================================================
;47H
;enable WDT function bit [0]=0Ch
;====================================================
mov dx,SCH3 47h
mov al,0Ch
out dx,al
;====================================================
;65H
;bit [1:0]=Reserved
;bit [6:2]Reserve=00000
;bit [7] WDT time-out Value Units Select
;Minutes=0 (default) Seconds=1
;====================================================
mov dx,SCH3 65h ;
mov al,080h
out dx,al
;====================================================
;66H
;WDT timer time-out value
;bit[7:0]=0~255
;====================================================
mov dx,SCH3 66h
mov al,01h
out dx,al
;====================================================
;bit[0] status bit R/W
;WD timeout occurred =1
Содержание MIO-2270
Страница 9: ...MIO 2270 User Manual viii...
Страница 30: ...Chapter 3 3 BIOS Settings...
Страница 52: ...Chapter 4 4 S W Introduction and Installation...
Страница 64: ...Appendix A A Pin Assignments...
Страница 74: ...63 MIO 2270 User Manual Appendix A Pin Assignments...
Страница 76: ...65 MIO 2270 User Manual Appendix A Pin Assignments...
Страница 78: ...67 MIO 2270 User Manual Appendix A Pin Assignments...
Страница 85: ...MIO 2270 User Manual 74...
Страница 86: ...Appendix B B WDT and GPIO...
Страница 89: ...MIO 2270 User Manual 78...
Страница 90: ...Appendix C C System Assignments...