Advantek Networks (USB 2.0) User Manual Page 75

  • Download
  • Add to my manuals
  • Print
  • Page
    / 118
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 74
65 Appendix A
A.2 Watchdog programming
Bellow 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,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;
Page view 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 117 118

Comments to this Manuals

No comments