Intel MAT-880 user manual Watchdog Timer Configuration, Sample Code

Page 30

INSTALLATIONS

Watchdog Timer Configuration

The WDT is used to generate a variety of output signals after a user programmable count. The WDT is suitable for use in the prevention of system lock-up, such as when software becomes trapped in a deadlock. Under these sort of circumstances, the timer will count to zero and the selected outputs will be driven. Under normal circumstance, the user will restart the WDT at regular intervals before the timer counts to zero.

SAMPLE CODE:

This code and information is provided "as is" without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

;[]================================================

;Name : Enable_And_Set_Watchdog

;IN : AL - 1sec ~ 255sec

;OUT : None ;[]================================================ Enable_And_Set_Watchdog Proc Near

pushax

;save time interval

call Unlock_Chip

 

mov cl, 2Bh

 

call Read_Reg

 

and al, NOT 10h

 

call Write_Reg

;set GP24 as WDTO

mov cl, 07h

 

mov al, 08h

 

call Write_Reg

;switch to LD8

mov cl, 0F5h

 

call Read_Reg

 

and al, NOT 08h

 

call Write_Reg

;set count mode as second

pop ax

 

mov cl, 0F6h

 

call Write_Reg

;set watchdog timer

mov al, 01h

 

 

 

 

 

26

MAT-880 User’s Manual

Image 30
Contents USER’S Manual VersionAcknowledgments Table of Contents This page is intentionally left blank Introduction Product DescriptionChecklist MAT-880 Specifications CPU TypeBoard Dimensions Installations Installing the CPU Installing and Removing Memory Modules Installing the MemorySupported Ddrm Dimm Configurations LockSetting the Jumpers Jumper Locations on MAT-880 JP2 Gigabit LAN Enable/Disable Configuring the CPU FrequencyJP1 Lvds Panel Power Select JP3 Compact Flash Slave/MasterJP4 Clear Cmos Contents JP8 COM1 RS232 +5V / +12V Power SettingJP11 COM4 RS232 +5V / +12V Power Setting JP9 COM2 RS232 +5V / +12V Power SettingJP10 COM3 RS232 +5V / +12V Power Setting JP12 ATX / AT Power SelectJP16 Processor Operating Frequency JP16Connectors on MAT-880 Connector Locations on MAT-880 IDE1, IDE2 Eide Connectors FAN1, FAN2 System Fan Power ConnectorFAN3 CPU Fan Power Connector IDE1 Primary IDE Connector Signal Name Pin #IDE2 Secondary IDE Connector Signal Name Pin # J1 CD-In Audio ConnectorCN2 AT H2/+5V Power Connector Signal Name Pin J2 External Audio ConnectorCN3 Digital 4-in 4-out I/O Connector J3 Wake On LAN ConnectorPower LED Pins J5 System Function ConnectorSpeaker Pins 1 ATX Power on Switch Pins 5Reset Switch Pins 7 Hard Disk Drive LED Connector Pins 8J6 Tmds Connector J8 VGA CRT Connector J7 10/100Mbit Ethernet ConnectorPin Signal Name Pin Signal Name +5VJ14 Panel Inverter Power Connector J15, J16 USB ConnectorsJ17 Parallel Port Connector Pin # Signal Name RS-232J18 Serial Ports J20 IrDA Connector J21 ATX Power Supply ConnectorR2-422 J23 PS/2 Keyboard/Mouse Connector Watchdog Timer Configuration Sample CodeMov cl, 30h Call WriteReg Watchdog enabled Call LockChip ret UnlockChip Proc Near mov dx, 4Eh mov al, 0AAh out dx, al ret Bios Setup Bios Introduction Bios SetupPhoenix AwardBIOS Cmos Setup Utility Standard Cmos Setup DateTime IDE Primary HDDs / IDE Secondary HDDsDrive a / Drive B Video Halt OnQuick Power On Self Test Advanced Bios FeaturesCPU Feature Virus WarningBoot Up Floppy Seek First/Second/Third Boot DeviceBoot Other Device Boot Up NumLock StatusMPS Version Control for OS Apic ModeSecurity Option OS Select for Dram 64MBDram RAS# to CAS# Delay Advanced Chipset FeaturesActive to Precharge Delay Dram Timing SelectableVideo Bios Cacheable Dram Data Integrity ModeSystem Bios Cacheable Delayed TransactionOn-Chip VGA Boot DisplayAGP Aperture Size On-Chip Frame Buffer SizeIntegrated Peripherals OnChip Primary/Secondary PCI IDE IDE HDD Block ModeOnboard Sata chip Mode IDE Primary/Secondary Master/Slave PIOUSB Keyboard Support USB ControllerUSB 2.0 Controller USB Mouse SupportUart Mode Select Parallel Port ModePwron After PWR-Fail Power Management Power Management SetupPower Supply Type Acpi FunctionVideo Off Method Suspend ModeHDD Power Down Video Off In SuspendPower On by Ring Resume by AlarmReload Global Timer Events Resources Controlled by PNP/PCI ConfigurationsReset Configuration Data PCI/VGA Palette SnoopShutdown Temperature CPU Warning TemperatureTemperatures/Voltages PC Health StatusFrequency/Voltage Control Auto Detect PCI ClkSpread Spectrum Modulated Set Supervisor Password Load Fail-Safe DefaultsLoad Optimized Defaults Save & Exit SetupMAT-880User’s Manual Drivers Installation Click IntelR Chipset Software Installation Utility Intel Chipset Software Intallation UtilityDrivers Installation VGA Drivers Installation Click IntelR 855GME Chipset Family Graphics DriverAC97 Codec Audio Driver Installation Click Realtek AC97 Codec Audio DriverIntel PRO LAN Drivers Installation Click Install Base Software to continueO Port Address Map Address Device DescriptionInterrupt Request Lines IRQ Level Function