Intel AR-B1760 user manual Switch to logic device

Page 35

INSTALLATIONS

File of the Main.cpp //=====================================================================

//

//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(); }

}

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

AR-B1760 User’s Manual

31

Image 35
Contents Version USER’S ManualAcknowledgments Table of Contents This page is intentionally left blank Remarks Product DescriptionChecklist CPU Type AR-B1760 SpecificationsBoard Dimensions Installations Installing the CPU Lock Installing the MemorySupported Ddrm Dimm Configurations Installing and Removing Memory ModulesSetting the Jumpers Jumper Locations on AR-B1760 JP3 Compact Flash Slave/Master Configuring the CPU FrequencyJP1 Lvds Panel Power Select JP2 Gigabit LAN Enable/DisableJP8 COM1 RS232 +5V / +12V Power Setting JP4 Clear Cmos ContentsJP12 JP9 COM2 RS232 +5V / +12V Power SettingJP10 COM3 RS232 +5V / +12V Power Setting JP11 COM4 RS232 +5V / +12V Power SettingJP16 JP16 Processor Operating FrequencyConnectors on AR-B1760 Connectors on AR-B1760 Connector Locations on AR-B1760IDE1 Primary IDE Connector Signal Name Pin # FAN1, FAN2 System Fan Power ConnectorFAN3 CPU Fan Power Connector IDE1, IDE2 Eide ConnectorsCN2 AT H2/+5V Power Connector IDE2 Secondary IDE Connector Signal Name Pin #J1 CD-In Audio Connector J3 Wake On LAN Connector J2 External Audio ConnectorCN3 Digital 4-in 4-out I/O Connector Signal Name PinPower LED Pins J4 Gigabit LAN Connector used with ID240/optionJ5 System Function Connector Speaker Pins 1Hard Disk Drive LED Connector Pins 8 ATX Power on Switch Pins 5SMI/Hardware Switch Pins 6 Reset Switch Pins 7Pin Signal Name +5V J6 Tmds Connector optionJ7 10/100Mbit Ethernet Connector J8 VGA CRT ConnectorJ10 Floppy Drive Connector J17 Parallel Port Connector J14 Panel Inverter Power ConnectorJ15, J16 USB Connectors J18 Serial Ports Pin # Signal Name RS-232Pin # Signal Name RS-232 R2-422 RS-485 J20 IrDA ConnectorJ23 PS/2 Keyboard/Mouse Connector J21 ATX Power Supply ConnectorSample Code Watchdog Timer ConfigurationClear watchdog timer OUT W627HFLOCK Digital I/O Sample CodeInstallations Switch to logic device This page is intentionally left blank Bios Setup Bios Setup Bios IntroductionPhoenix AwardBIOS Cmos Setup Utility Date Standard Cmos SetupDrive a / Drive B TimeIDE Primary HDDs / IDE Secondary HDDs Halt On VideoVirus Warning Advanced Bios FeaturesCPU Feature Hard Disk Boot PriorityBoot Up Floppy Seek Quick Power On Self TestFirst/Second/Third Boot Device Boot Other DeviceMPS Version Control for OS Typematic Delay MsecApic Mode Security OptionDram Timing Selectable Advanced Chipset FeaturesActive to Precharge Delay Dram RAS# to CAS# DelayDelayed Transaction Dram Data Integrity ModeSystem Bios Cacheable Video Bios CacheableOn-Chip Frame Buffer Size Boot DisplayAGP Aperture Size On-Chip VGAIntegrated Peripherals IDE Primary/Secondary Master/Slave PIO IDE HDD Block ModeOnboard Sata chip Mode OnChip Primary/Secondary PCI IDEUSB Mouse Support USB ControllerUSB 2.0 Controller USB Keyboard SupportPwron After PWR-Fail Uart Mode SelectParallel Port Mode Acpi Function Power Management SetupPower Supply Type Power ManagementVideo Off In Suspend Suspend ModeHDD Power Down Video Off MethodReload Global Timer Events Power On by RingResume by Alarm PCI/VGA Palette Snoop PNP/PCI ConfigurationsReset Configuration Data Resources Controlled byPC Health Status CPU Warning TemperatureTemperatures/Voltages Shutdown TemperatureSpread Spectrum Modulated Frequency/Voltage ControlAuto Detect PCI Clk Save & Exit Setup Load Fail-Safe DefaultsLoad Optimized Defaults Set Supervisor PasswordThis page is intentionally left blank Drivers Installation Intel Chipset Software Intallation Utility Click IntelR Chipset Software Installation UtilityDrivers Installation Click IntelR 855GME Chipset Family Graphics Driver VGA Drivers InstallationClick Realtek AC97 Codec Audio Driver AC97 Codec Audio Driver InstallationClick Install Base Software to continue Intel PRO LAN Drivers InstallationAddress Device Description O Port Address MapLevel Function Interrupt Request Lines IRQ