Intel SOM-4486 user manual Appendix a Prog. Watchdog Timer, Watchdog programming

Page 42

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

Image 42
Contents SOM-4486 ETX Module Copyright Acknowledgements Packing List Additional Information and AssistanceFCC Contents Appendix a Prog. Watchdog Timer General Information Introduction IntroductionSpecifications Standard System On Module functions4 LCI 2 VGA/flat panel InterfaceAudio function Mechanical and environmentalBoard Dimensions SOM-4486 dimensionsBoard layout dimensions SOM-4486 Top viewSOM-4486 Solder view SOM-4486 User’s Manual Connector Assignments Descriptions Connector Assignments Connector LocationsPin Assignments for X1/2/3/4 connectors Safety precautions SOM-4486 User’s Manual Software Configuration VGA display software configuration Utility CD diskBios VGA setup screen Connections for two channel Lvds SOM-4486PCI Graphic Setup Display types ChipsetDisplay memory Dual/Simultaneous DisplayPage Installation of the PCI Graphic driver Installation for Windows 98/ME/2000/XPPage SOM-4486 User’s Manual Further Information SOM-4486 User’s Manual Audio Setup Driver installation Before you beginWindows 9x/2000/Me/XP drivers SOM-4486 User’s Manual LAN Configuration Features Installation of Ethernet DriverLCI Bus Ethernet Interface Installation for Windows SOM-4486 User’s Manual Page Further information Programming the Watchdog Timer Appendix a Prog. Watchdog Timer Watchdog programmingOUT DX,AL MOV DX,2FH MOV AL,00H MOV DX,2EH MOV AL,F6H SOM-4486 User’s Manual System Assignments Appendix B System Assignments System I/O portsDMA channel assignments Table B.2 DMA channel assignmentsInterrupt assignments Table B.3 Interrupt assignments1st MB memory map Table B.4 1st MB memory mapSOM-4486 User’s Manual