Advantech UNO-4678 User Manual Page 36

  • Download
  • Add to my manuals
  • Print
  • Page
    / 38
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 35
UNO-4678 User Manual 30
Appendix B Watchdog Timer Program-
ming
B.1 UNO-4678
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
-----------------------------------------------------------------------------
Configured logical device 8, configuration register CRF6 |
-----------------------------------------------------------------------------
MOV DX,2EH
MOV AL,2BH
OUT DX,AL
MOV DX,2FH
IN AL,DX
AND AL.OEFH;Setbit 4=0 Pin 89=WDTO
OUT DX,AL
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
Page view 35
1 2 ... 31 32 33 34 35 36 37 38

Comments to this Manuals

No comments