Advantech PPC-V106 Personal Computer User Manual


 
53 Appendix A
;-----------------------------------------------------------------------------
; 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
;
MOV DX,2EH
MOV AL,F5H ; Setting counter unit is second
OUT DX,AL
MOV DX,2FH
MOV AL,00H
OUT DX,AL
;
MOV DX,2EH
MOV AL,F6H
OUT DX,AL
MOV DX,2FH
MOV AL,05H ; Set 5 seconds
OUT DX,AL