PPC-3150SW/3180SW/324W-PN4 User Manual
42
A.1
Watchdog Timer Programming Example
The watchdog timer is provided to ensure that standalone systems can always
recover from catastrophic CPU failures and crashes. Such events may have been
caused by external EMI or a software bug. If the CPU is malfunctioning, the watch
-
dog timer performs a hardware reset to return the system to a previous state.
The following watchdog timer example code is written in Intel 8086 assembly lan
-
guage for a DOS environment. The number of watchdog timer intervals can be set as
0 ~ 255 via software.
-----------------------------------------------------
; Enter the Extended Function Mode
;-----------------------------------------------------
MOV DX, 2EH; dependency by HW strap to 2Eh
MOV AL, 87H
OUT DX, AL
OUT DX, AL
;-----------------------------------------------------------------------------
; Configure logical device 8, configuration register CR30
;-----------------------------------------------------------------------------
MOV DX, 2EH
MOV AL, 07H
OUT DX, AL; point to logical device number reg.
MOV DX, 2FH
MOV AL, 08H
OUT DX, AL; select logical device 8
;-----------------------------------------------------------------------------
;Set WDT logic device to active
;-----------------------------------------------------------------------------
MOV DX, 2EH
MOV AL, 30H
OUT DX, AL; select CR30
MOV DX, 2FH
MOV AL, 01H
OUT DX, AL; set WDT active
;-----------------------------------------------------------------------------
;Initial WDT mode
;-----------------------------------------------------------------------------
MOV DX, 2EH
MOV AL, F0H
OUT DX, AL
MOV DX, 2FH
MOV AL, 00H; bit 0: 0 = pulse mode, 1 = level mode; bit 3: 0 = second mode, 1 =
minute mode
OUT DX, AL; set second mode, default value
;-----------------------------------------------------------------------------
;Set WDT timeout value
Содержание PPC-3150SW
Страница 8: ...PPC 3150SW 3180SW 324W PN4 User Manual viii...
Страница 11: ...Chapter 1 1 General Information Introduction Specifications Dimensions...
Страница 33: ...Chapter 3 3 Jumper Setting Motherboard Layout Jumpers and Connectors External COM Ports and Pin Definitions...
Страница 38: ...PPC 3150SW 3180SW 324W PN4 User Manual 28...
Страница 39: ...Chapter 4 4 Software Setup Driver Installation BIOS Setup Program...
Страница 50: ...PPC 3150SW 3180SW 324W PN4 User Manual 40 2 Set Wake on Ring to enabled...
Страница 51: ...Appendix A A Watchdog Timer Programming...