PPC-3151SW/3181SW/3211SW/324W-P7 User Manual
52
C.1
Watchdog Program 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
Содержание PPC-3151SW
Страница 16: ...PPC 3151SW 3181SW 3211SW 324W P7 User Manual 8...
Страница 34: ...PPC 3151SW 3181SW 3211SW 324W P7 User Manual 26...
Страница 35: ...Chapter 3 3 Jumper Settings Motherboard Layout Jumpers and Connectors External COM Ports and Pin Definitions...
Страница 41: ...Chapter 4 4 Software Setup Driver Installation BIOS Setup Program...
Страница 54: ...PPC 3151SW 3181SW 3211SW 324W P7 User Manual 46...
Страница 55: ...Appendix A A BSMI RoHS...
Страница 57: ...Appendix B B China RoHS...
Страница 59: ...Appendix C C Watchdog Program Example...