Intel MB893 user manual Watchdog Timer Configuration, Sample Code

Page 25

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 sorts 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

 

 

mov cl, 30h

 

 

call

Write_Reg

;watchdog enabled

 

 

 

 

 

 

 

 

MB893 User’s Manual

21

Image 25
Contents Version USER’S ManualAcknowledgments Table of Contents MB893 Server Motherboard Introduction ChecklistProduct Description IDE SpecificationsBoard Dimensions Installations Installing the CPU Installing the Memory ATX Power InstallationSetting the Jumpers Jumper Locations on MB893 JP4 CN7 & CN10 LAN By-pass Function Setting JP3 Clear Cmos ContentsJP5 COM2 J6 Tx/Rx Signal Setting Reserved JP2 Compact Flash Master/Slave SelectJP7 Connectors on MB893 Connector Locations on MB893 ATX12V1 ATX 12V Power Connector ATX1 ATX Power Supply ConnectorCN1 Front Side Bridge Board to ID370 SYSFAN1 System Fan Power ConnectorCN11 Dual Port USB Connector CN8, CN9 Sata ConnectorCN4 Mini PCI Socket J3 USB Connector CN12 COM1 Connector J5, J6 COM2, COM3 Connectors J4 Parallel Port Connector Reserved J8 PS/2 Keyboard & Mouse Connectors IDE1 Primary IDE Connectors 40-pin 2.54mm FDD1 Floppy Drive Connector ReservedIDE2 Primary IDE Connectors 44-pin 2.0mm Sample Code Watchdog Timer ConfigurationCall LockChip ret EnableAndSetWatchdog Endp Mov dx, 2Eh mov al, 0Aah Out dx, al ret This page is intentionally left blank Bios Setup Bios Setup Bios IntroductionPhoenix AwardBIOS Cmos Setup Utility Date Standard Cmos SetupIDE Primary HDDs / IDE Secondary HDDs TimeDrive a / Drive B Halt On VideoHard Disk Boot Priority Advanced Bios FeaturesVirus Warning First/Second/Third Boot Device Quick Power On Self TestBoot Other Device Boot Up Floppy SeekTypematic Rate Setting Boot Up NumLock StatusTypematic Delay Msec Apic ModeOS Select for Dram 64MB Agent After BootConsole Redirection Baud RateAdvanced Chipset Features System Memory Frequency System Bios CacheableMemory Hole At 15M-16M On-Chip Frame Buffer Size MemoryIDE Integrated PeripheralsIDE DMA Transfer Access IDE HDD Block ModeSata Mode OnChip Primary/Secondary PCI IDEPower on Function Pata IDE ModeKB Power on Password Hot Key Power onOnboard FDC Controller Uart Mode SelectOnboard Serial/Parallel Port Pwron After PWR-FailPower Management Power Management SetupAcpi Function Video Off MethodHDD Power Down Suspend ModePower On by Ring Resume by AlarmReload Global Timer Events PNP/PCI Configurations Shutdown Temperature CPU Warning TemperatureTemperatures/Fan Speeds/Voltages PC Health Status2nd Smart Fan II Temperature CPUFAN1 / CPUFAN2 1st Smart Fan II Temperature SYSFAN1 connectorLevel2 Temperature Third phase Smart FAN functionalityCPU Clock Ratio Frequency/Voltage ControlAuto Detect PCI Clk Spread SpectrumLoad Setup Defaults Load Fail-Safe DefaultsSet Supervisor/User Password Save & Exit SetupDrivers Installation Intel 915G Chipset Software Intallation Utility Intel 915G Chipset Graphics Driver Marvell 88E8053 LAN Drivers Installation Intel PRO LAN Drivers Installation This page is intentionally left blank O Port Address Map AppendixLevel Function Interrupt Request Lines IRQ