Appendix A Programming The Watchdog Timer; Programming The Watchdog Timer - Advantech AIMB-330F User Manual

Socket 370 sbc for multimedia applications
Table of Contents

Advertisement

Appendix A Programming the Watchdog
A.1 Programming the watchdog timer
The following example shows how you might program the watchdog
timer in assembly:
Watch Dog:
;-----------------------------------------------------------------------------------
; Enter the extended function mode ,interruptible double-write |
;-----------------------------------------------------------------------------------
MOV DX,2EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
;-----------------------------------------------------------------------------
; Configurate logical device 8, configuration register CRF6 |
;-----------------------------------------------------------------------------
MOV DX,2EH
MOV AL,07H ; point to Logical Device Number Reg.
OUT DX,AL
MOV DX,2FH
MOV AL,08H ; select logical device 8
OUT DX,AL
;
MOV DX,2EH
MOV AL,30H ;Set watch dog activate or inactivate
OUT DX,AL
MOV DX,2FH
MOV AL,01H ; 01:activate 00:inactivate
OUT DX,AL
;
AIMB-330F User's Manual
Timer
82

Advertisement

Table of Contents
loading

Table of Contents