Intel MB890 user manual Appendix

Page 65
Manual background

APPENDIX

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

//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 <dos.h>

#include <conio.h> #include <stdio.h> #include <stdlib.h> #include "W627HF.H" //===================================================================== void ClrKbBuf(void);

int main (int argc, char *argv[]); //===================================================================== int main (int argc, char *argv[])

{

unsigned char ucDO = 0;

//data for digital output

unsigned char ucDI;

//data for digital input

unsigned char ucBuf;

 

Set_W627HF_LD( 0x07);

//switch to logic device 7

Set_W627HF_Reg(0xF1, 0x00);

//clear

ucDI = Get_W627HF_Reg(0xF1) & 0x0F;

 

ClrKbBuf();

while(1)

{

ucDO++;

Set_W627HF_Reg(0xF1, ((ucDO & 0x0F) << 4)); ucBuf = Get_W627HF_Reg(0xF1) & 0x0F;

if (ucBuf != ucDI)

{

ucDI = ucBuf;

printf("Digital I/O Input Changed. Current Data is 0x%X\n",ucDI);

}

if (kbhit())

{

getch();

break;

}

delay(500);

}

return 0;

}

//===================================================================== void ClrKbBuf(void)

{

while(kbhit())

{ getch(); }

}

//---------------------------------------------------------------------------

MB890 User’s Manual

61

Image 65
Contents MB890 Intel Pentium M Mini-ITXMotherboardVersion 1.1A Acknowledgments BIOS Setup InstallationsDrivers Installation IntroductionThis page is intentionally left blank INTRODUCTION IntroductionProduct Description The MB890 Pentium M Mini-ITXmotherboard ChecklistCable kit IDE, Power, Audio, VGA CRT MB890 Specifications Board Dimensions INSTALLATIONS InstallationsInstalling the CPU Lock Installing the MemoryDDR Module Setting the Jumpers Jumper Locations on MB890 JP3 LVDS Power Setting JP2 Power Mode SettingJP1 CPU Host Clock JP4 1394 Controller EEPROM Write ProtectJP10 COM1 RS232 Pin9 Setting JP9 COM2 RS232 Pin9 SettingJP13 Compact Flash Mode Setting JP11 Clear CMOS ContentsJ13 Intel 82541GI Gigabit LAN Enable/Disable JP14 CPU VCCA Voltage Setting錯誤! 尚未定義書籤。 Connectors on MB890錯誤! 尚未定義書籤。 Connector Locations on MB890CN3 DVI-IConnector CN2 PS/2 Keyboard and PS/2 Mouse ConnectorsCN1 DC Jack for DC Adaptor KeyboardCN5, CN8 1394 Connectors option CN4 Parallel Port ConnectorCN6 RJ45 and 2 USB Ports CN7 COM1 and COM2 Serial PortsJ5 LCD Backlight Setting J2 HDD Power ConnectorJ3 Internal DC-InPower Connector J7 IrDA Connector J6, J8 LVDS Connectors 1st channel, 2nd channelJ10 Digital I/O J11, J12 USB Port Pin HeaderJ18, J19 Primary and Secondary IDE Connectors J16 HDD Power Pin HeaderJ17 Mini PCI Socket J18 Primary IDE ConnectorJ19 Secondary IDE Connector J20 CD-In Pin HeaderJ22 System Function Connector J21 External Audio ConnectorJ23 Wake On LAN Connector J24 Compact Flash SocketJ26 Power Connector for MB890D / MB890FD J25 VGA CRT ConnectorFAN1 CPU Fan Power Connector FAN2 System Fan Power ConnectorBIOS Setup Press DEL to Enter Setup BIOS IntroductionBIOS Setup BIOS SETUP Date Standard CMOS SetupIDE Primary HDDs / IDE Secondary HDDs TimeDrive A / Drive B CYLSHalt On VideoCPU Feature Advanced BIOS FeaturesQuick Power On Self Test Virus WarningBoot Other Device First/Second/Third Boot DeviceBoot Up Floppy Seek Boot Up NumLock StatusAPIC Mode Security OptionMPS Version Control for OS OS Select for DRAM 64MBDRAM Timing Selectable Advanced Chipset FeaturesCAS Latency Time Active to Precharge DelayVideo BIOS Cacheable System BIOS CacheableDRAM RAS# Precharge DRAM Data Integrity ModeAGP Aperture Size Boot DisplayOn-ChipVGA On-ChipFrame Buffer SizeIntegrated Peripherals IDE Primary/Secondary Master/Slave PIO OnChip Primary/Secondary PCI IDEIDE Primary/Secondary Master/Slave UDMA IDE HDD Block ModeUSB 2.0 Controller Power On After FailUSB Keyboard Support USB Mouse SupportParallel Port Mode UART Mode SelectStandard Printer Port Enhanced Parallel PortPower Supply Type Power Management SetupPower Management ACPI FunctionVideo Off Method HDD Power DownVideo Off In Suspend Suspend TypeReload Global Timer Events Power On by RingResume by Alarm Reset Configuration Data PNP/PCI ConfigurationsResources Controlled by PCI/VGA Palette SnoopCPU Warning Temperature PC Health StatusTemperatures/Voltages Shutdown TemperatureSpread Spectrum Modulated Frequency/Voltage ControlAuto Detect PCI Clk Load Optimized Defaults Load Fail-SafeDefaultsSet Supervisor Password Save & Exit SetupThis page is intentionally left blank AC97 Codec Audio Driver Installation Drivers InstallationDRIVER INSTALLATION Intel Chipset Software Intallation UtilityDRIVERS INSTALLATION VGA Drivers Installation 2.Click Realtek AC97 Codec Audio Driver AC97 Codec Audio Driver Installation2.Click Install Base Software to continue Intel PRO LAN Drivers InstallationA. I/O Port Address Map AppendixLevel B. Interrupt Request Lines IRQC. Watchdog Timer Configuration mov cl, 0F5h Name Unlock Chip IN None Name Read Reg IN CL - register index D. Digital I/O Sample Code APPENDIX APPENDIX APPENDIX This page is intentionally left blank