Intel IB868 user manual Appendix

Page 58

APPENDIX

void copyright(void)

{

printf("\n======== Winbond 83627EHF Watch Timer Tester (AUTO DETECT) ========\n"\

"Usage : W627E_WD reset_time\n"\

"Ex : W627E_WD 3 => reset system after 3 second\n"\

"W627E_WD 0 => disable watch dog timer\n");

}

//=========================================================================== void EnableWDT(int interval)

{

unsigned char bBuf;

bBuf = Get_W627EHF_Reg( 0x2D); bBuf &= (!0x01); Set_W627EHF_Reg( 0x2D, bBuf);

Set_W627EHF_LD( 0x08);

Set_W627EHF_Reg( 0x30, 0x01);

bBuf = Get_W627EHF_Reg( 0xF5); bBuf &= (!0x08); Set_W627EHF_Reg( 0xF5, bBuf);

Set_W627EHF_Reg( 0xF6, interval);

//Enable WDTO

//switch to logic device 8 //enable timer

//count mode is second

//set timer

}

//=========================================================================== void DisableWDT(void)

{

Set_W627EHF_LD(0x08);

//switch to logic device 8

Set_W627EHF_Reg(0xF6, 0x00);

//clear watchdog timer

Set_W627EHF_Reg(0x30, 0x00);

//watchdog disabled

}

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

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

//

//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 "W627EHF.H"

#include <dos.h> //=========================================================================== unsigned int W627EHF_BASE;

void Unlock_W627EHF (void); void Lock_W627EHF (void); //=========================================================================== unsigned int Init_W627EHF(void)

{

unsigned int result; unsigned char ucDid;

W627EHF_BASE = 0x2E; result = W627EHF_BASE;

ucDid = Get_W627EHF_Reg(0x20); if (ucDid == 0x88)

{

goto Init_Finish;

}

54

IB868 User’s Manual

Image 58
Contents USER’S Manual VersionAcknowledgments Table of Contents This page is intentionally left blank Introduction Product DescriptionChecklist Specifications CPU FSBBoard Dimensions Installations Installing the CPU Installing the Memory Installing and Removing Memory ModulesSetting the Jumpers Jumper Locations on IB868 JP5 VGA Signal Select JP2 Panel Voltage SettingJP3 Clear Cmos Contents JP6 CPU Front Side Bus Frequency SettingConnectors on IB868 J1 ATX 12V/+12V Power Connector J2 System Function Connector IDE1, IDE2 Eide Connectors FDD1 Floppy Drive ConnectorFAN2, FAN3 System Fan Power Connector CN1, CN2 Serial ATA Sata ConnectorsFAN1 CPU Fan Power Connector J1 ATX 12V/+12V Power ConnectorJ2 System Function Connector ATX Power on Switch Pins 7Reset Switch Pins 9 J4, J5 Lvds Connectors 2nd channel, 1st channelJ7, J8 , J9 USB Connectors J6 Panel Inverter Power ConnectorJ10, J12 COM1 and COM2 Serial Ports Connector J13 Digital input / output Connector J11 Parallel Port ConnectorJ14 IrDA Connector J18 CD-In Audio Connector J15 Wake On LAN ConnectorJ16, J17 External PS/2 Mouse and Keyboard Connector J19 PS/2 Keyboard and Mouse ConnectorJ22 External Audio Connector J20 Primary RJ45 ConnectorJ21 Gigabit LAN RJ45 Connector J23 VGA CRT ConnectorBios Setup Bios Introduction Bios SetupPhoenix AwardBIOS Cmos Setup Utility Standard Cmos Setup DateIDE Channel Master/Slave TimeDrive a / Drive B Video 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 SeekSecurity Option Typematic Delay MsecApic Mode MPS Version Control for OSDram Timing Selectable Advanced Chipset FeaturesDram RAS# to CAS# Delay CAS Latency TimeVideo Bios Cacheable Precharge Delay tRASSystem Bios Cacheable On-Chip VGA SettingOnboard PCI-E LAN Panel ScalingPanel Number LAN PXE Option ROMIntegrated Peripherals OnChip IDE DeviceOn-chip Primary PCI IDE Enabled IDE HDD Block ModeIDE DMA Transfer Access OnChip Primary/Secondary PCI IDEKB Power on Password On-Chip Serial ATA SettingPower on Function Hot Key Power onOnboard Serial Port Power Management SetupUart Mode Select Pwron After PWR-FailSuspend Mode RUN Vgabios if S3 ResumePower Management HDD Power DownReload Global Timer Events Power On by RingResume by Alarm Soft-Off by PwrbtnPNP/PCI Configurations PC Health Status Auto Detect PCI Clk Frequency/Voltage ControlSpread Spectrum Modulated Set Supervisor Password Load Fail-Safe DefaultsLoad Optimized Defaults Save & Exit SetupDrivers Installation Intel Chipset Software Installation Utility Click IntelR Chipset Software Installation UtilityDrivers Installation VGA Drivers Installation Click IntelR 915GMChipset Family Graphics DriverImportant Note AC97 Codec Audio Driver Installation Click Realtek AC97 Codec Audio DriverLAN Drivers Installation Click Install Base Software to continueDrivers Installation Appendix O Port Address MapInterrupt Request Lines IRQ Level FunctionWatchdog Timer Configuration Sample CodeAppendix OutportbW627EHFINDEXPORT, W627EHFLOCK W627EHFLOCK