Intel MB886 user manual Watchdog Timer Configuration, Sample Code, Installations

Page 26
Watchdog Timer Configuration

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.

//

//=========================================================================== #include <stdio.h>

#include <stdlib.h> #include "W627EHF.H" //=========================================================================== int main (int argc, char *argv[]);

void copyright(void); void EnableWDT(int); void DisableWDT(void); //=========================================================================== int main (int argc, char *argv[])

{

unsigned char bBuf; unsigned char bTime; char **endptr;

copyright();

if (argc != 2)

{

printf(" Parameter incorrect!!\n"); return 1;

}

if (Init_W627EHF() == 0)

{

printf(" Winbond 83627HF is not detected, program abort.\n"); return 1;

}

bTime = strtol (argv[1], endptr, 10);

printf("System will reset after %d seconds\n", bTime);

EnableWDT(bTime);

return 0;

}

//===========================================================================

22

MB886 User’s Manual

Image 26
Contents Version Socket LGA775 Pentium Intel 945G ChipsetIndustrial Motherboard MB886Acknowledgments Drivers Installation InstallationsBIOS Setup IntroductionThis page is intentionally left blank INTRODUCTION ChecklistIntroduction Product Description INSTALLATIONSSystem SpecificationsMB886 GraphicsBoard Dimensions Installations Installing the CPU ATX Power Installation Installing the MemorySetting the Jumpers Jumper Locations on MB886 JP4 IDE DMA Mode Setting JP6 Clear CMOS ContentsConnectors on MB886 Connector Locations on MB886 Signal Name ATX1 24-pinATX Power ConnectorATX2 ATX 12V Power Connector Pin #CN1 PS/2 Keyboard and PS/2 Mouse Connectors CN2, J2, J7, J8 COM1/2/3/4 Serial PortsCN3 Parallel Port Connector CN4: VGA CRT ConnectorCN7 GbE RJ-45and USB2/3 Connector CN5 Audio ConnectorCN6 10/100 RJ-45and USB0/1 Connector CN11, CN10, CN9, CN8 SATA0/1/2/3 ConnectorJ6 USB6/USB7 Connector J1 Digital I/O Connector 4 in, 4 outJ5 USB4/USB5 Connector J3 Audio Front HeaderSpeaker Pins J9 Wake On LAN ConnectorJ10 System Function Connector Pin # Signal NameReset Switch Pins 9 and Power LED PinsATX Power ON Switch Pins 7 and Hard Disk Drive LED Connector Pins 10 andFAN2, FAN3, FAN4 Fan Power Connectors J11 IrDA ConnectorFAN1 CPU Fan Power Connector PCIE 2, PCIE 3 x1 PCI Express Slots IDE1 Primary IDE ConnectorsPCIE_1: x16 PCI Express Slot PCI1, PCI2, PCI3, PCI4 PCI Slots SL1 ISA SlotWatchdog Timer Configuration SAMPLE CODEINSTALLATIONS INSTALLATIONS INSTALLATIONS INSTALLATIONS BIOS Setup Press DEL to Enter Setup BIOS IntroductionBIOS Setup BIOS SETUP Standard CMOS Setup DateDrive A / Drive B TimeIDE Channel Master/Slave CYLSVideo Halt OnHard Disk Boot Priority Advanced BIOS FeaturesCPU Feature Virus WarningBoot Other Device Quick Power On Self TestFirst/Second/Third Boot Device Boot Up Floppy SeekAPIC Mode Typematic Delay MsecSecurity Option MPS Version Control for OSCAS Latency Time Advanced Chipset FeaturesDRAM Timing Selectable DRAM RAS# to CAS# DelayOn-ChipVGA Setting System BIOS CacheableVideo BIOS Cacheable DRAM RAS# PrechargeOnboard Device Integrated PeripheralsOnChip IDE Device 2nd Super IO DeviceIDE HDD Block Mode IDE DMA Transfer AccessOn-chipPrimary PCI IDE Enabled OnChip Primary/Secondary PCI IDEKB Power ON Password On-ChipSerial ATA SettingPower ON Function Hot Key Power ONPWRON After PWR-Fail Onboard Serial PortUART Mode Select Power Management Power Management SetupRUN VGABIOS if S3 Resume ACPI FunctionResume by Alarm HDD Power DownPower On by Ring Video Off MethodReload Global Timer Events Init Display First PNP/PCI ConfigurationsReset Configuration Data Resources Controlled byTemperatures/Voltages PC Health StatusCPU Warning Temperature Smart Fan2 TemperatureAuto Detect PCI Clk Frequency/Voltage ControlCPU Clock Ratio Spread Spectrum ModulatedSet Supervisor Password Load Fail-SafeDefaultsLoad Optimized Defaults Save & Exit SetupRealtek Codec Audio Driver Installation Drivers InstallationChipset Software Installation Utility Intel 945GIntel 945G Chipset Software Installation Utility DRIVERS INSTALLATION Intel 945G Chipset Graphics Driver Realtek Codec Audio Driver Installation Intel LAN Drivers Installation Appendix A. I/O Port Address MapB. Interrupt Request Lines IRQ Level