Appendix A Programming Watchdog Timer; Watchdog Programming; A.1 Watchdog Programming - Advantech PCM-3386 User Manual

Intel celeron sbc with cfc/usb/lan/lpt/com/pci 104 cpu
Table of Contents

Advertisement

Appendix A Programming Watchdog

A.1 Watchdog programming

Below is a sample of programming code for controlling the Watchdog
Timer function.
-----------------------------------------------------------------------------------
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 watchdog 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
PCM-3386 User's Manual
Timer
78

Advertisement

Table of Contents
loading

Table of Contents