Appendix A Prog. Watchdog Timer; Watchdog Programming; A.1 Watchdog Programming - Intel SOM-4486 ETX Module User Manual

Intel celeron m som-etx module with cpu, vga/lvds, audio & lan
Table of Contents

Advertisement

Appendix A Prog. Watchdog Timer

A.1 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,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
OUT DX,AL
SOM-4486 User's Manual
36

Advertisement

Table of Contents
loading

Table of Contents