background image

www.dfi .com

75

Chapter 5 Digital I/O Programming Guide

Chapter 5

Function Description

I2CWriteByte(SlaveAddr, SubAddr, Data): 

Write a Byte data to a specified I2C Device. 

I2CReadByte(SlaveAddr, SubAddr, *Data): 

Read a Byte data from a specified I2C Device. 

SetBit(*Data, Bit) : 

Set Data bit n as “1”.

ClrBit(*Data, Bit) : 

Set Data bit n as “0”.

GetBit(Data, Bit) : 

Return the value of data bit n. 

Sample Code

GPIO Configuration

#defi ne SLAVE_ADDR               

#defi ne INPUT_PORT               

#defi ne OUTPUT_PORT            

#defi ne INVERSION_PORT       

#defi ne COMFIG_PORT            

    

GpioConfi g(int PinNum, int Mode)

{

 BYTE 

Data;

 

BYTE TempPinNum = PinNum%8;

    //Pin0-7 Input/Output Confi guration

    I2C_ReadByte(SLAVE_ADDR, CONFIG_PORT, &Data);

    if(Mode == 1){SetBit(&Data, TempPinNum);} //Input

    else                {ClrBit(&Data, TempPinNum);} //Output

    I2C_WriteByte(SLAVE_ADDR, CONFIG_PORT, Data);

    return 1;

GPIO Output Process

#defi ne SLAVE_ADDR               

#defi ne INPUT_PORT               

#defi ne OUTPUT_PORT            

#defi ne INVERSION_PORT       

#defi ne COMFIG_PORT            

GpioOut(int PinNum, int Level)

{

 BYTE 

Data;

 

BYTE TempPinNum = PinNum%8;

     //Pin0-7

     I2C_ReadByte(SLAVE_ADDR, OUTPUT_PORT, &Data);

 

if(Level == 0){ClrBit(&Data, TempPinNum);}

 

else                {SetBit(&Data, TempPinNum);}

 

I2C_WriteByte(SLAVE_ADDR, OUTPUT_PORT, Data);

 

     return 1;

GPIO Iutput Process

#defi ne SLAVE_ADDR               

#defi ne INPUT_PORT               

#defi ne OUTPUT_PORT            

#defi ne INVERSION_PORT       

#defi ne COMFIG_PORT            

GpioIn(int PinNum, int *Status)

{

 BYTE 

Data;

 

BYTE Group = PinNum/8;

 

BYTE TempPinNum = PinNum%8;

     //Pin0-7

     I2C_ReadByte(SLAVE_ADDR, INPUT_PORT, &Data);

 

*Status = GetBit(Data, TempPinNum);

 

 

     return 1;

0x42

0x00

0x01

0x02

0x03

0x42

0x00

0x01

0x02

0x03

0x42

0x00

0x01

0x02

0x03

Содержание DL631-C226

Страница 1: ...1 DL631 C226 ATX Industrial Motherboard User s Manual A27720416...

Страница 2: ...Statement on Class B This equipment has been tested and found to comply with the limits for a Class B digital device pursuant to Part 15 of the FCC rules These limits are designed to provide reason a...

Страница 3: ...22 Audio 23 I O Connectors 24 SATA Serial ATA Connectors 24 Digital I O Connector 25 Cooling Fan Connectors 25 Chassis Intrusion Connector 26 Power Connectors 26 Standby Power LED 27 Front Panel Conne...

Страница 4: ...tic electrical discharge can damage computer components without causing any signs of physical damage You must take extra care in han dling them to ensure against electrostatic build up 1 To prevent el...

Страница 5: ...rial ATA power cable COM port cable I O shield One LPC module kit COM Parallel extension module The board and accessories in the package may not come similar to the information listed above This may d...

Страница 6: ...tion processors 22nm process technology Intel Xeon E3 1275 v3 8M Cache up to 3 9 GHz 95W Intel Xeon E3 1268L v3 8M Cache up to 3 3 GHz 45W Intel Xeon E3 1225 v3 8M Cache up to 3 6 GHz 95W Intel CoreTM...

Страница 7: ...e that possesses the ability to scale speeds by forming multiple lanes The x4 PCI Express lane supports transfer rate of 4 Gigabyte per second 2 directions The PCI Express architecture also supports h...

Страница 8: ...tion and Power Interface specification ACPI has energy saving features that enables PCs to implement Power Manage ment and Plug and Play with operating systems that support OS Direct Power Management...

Страница 9: ...tate JP7 DIO 3 5 7 9 Output State JP12 DVI I HDMI Buzzer CPU Fan 1 Battery SPI Flash BIOS Power on Select JP10 Clear CMOS Data JP9 SATA 0 SATA 1 SATA 3 SATA 2 SATA 4 SATA 5 1 ATX Power DIO COM5 COM6 C...

Страница 10: ...y different However we highly recommend using identical DIMMs Not all slots need to be populated Dual Channel DIMMs of the same memory configuration are on different channels Important You can populat...

Страница 11: ...p the protective cap RMA requests will be accepted and pro cessed only if the LGA 1150 socket comes with the protective cap Note The system board used in the following illustrations may not resemble t...

Страница 12: ...bles 3 Locate the LGA 1150 CPU socket on the system board 4 Unlock the socket by push ing the load lever down moving it sideways until it is released from the reten tion tab then lift the load lever u...

Страница 13: ...must align with the corner of the CPU socket shown on the photo The CPU s notch will at the same time fit into the socket s alignment key Alignment key Alignment key Gold triangular mark 8 Close the...

Страница 14: ...rside Peel the strip that covers the paste before you place the fan heat sink on top of the CPU 2 Place the heat sink on top of the CPU The 4 push pins around the heat sink which are used to secure th...

Страница 15: ...tem and unplug the power cord 2 Set JP9 pins 2 and 3 to On Wait for a few seconds and set JP9 back to its default setting pins 1 and 2 On 3 Now plug the power cord and power on the system 2 3 On Clear...

Страница 16: ...ly must support 2A Power on Select JP10 2 3 On 5V_standby 1 2 On 5V default 3 1 2 3 1 2 USB 4 5 JP6 USB 0 1 JP5 1 3 2 1 3 2 2 3 On 5V_standby 1 2 On 5V default 2 3 On 5V_standby 1 2 On 5V default 3 1...

Страница 17: ...default 1 3 5 2 4 6 3 4 On RS422 Full Duplex 1 3 5 2 4 6 5 6 On RS485 1 3 5 2 4 6 3 5 5V 4 6 12V On RS232 with power 1 3 5 2 4 6 JP3 for COM 1 and JP14 for COM 2 are used to configure Serial COM port...

Страница 18: ...the power of DIO Digital I O signal Based on the power level of DIO Digital I O selected on JP13 JP7 DIO pin 11 13 15 17 and JP12 DIO pin 3 5 7 9 are used to select the state of DIO output pull high o...

Страница 19: ...Chapter 2 Hardware Installation Chapter 2 SATA DOM Power Select 2 3 On 5V 1 2 On GND default 3 1 2 3 1 2 JP15 Note SATA port 5 provides adequate space for SATA DOM JP15 is used to select the power of...

Страница 20: ...n PS 2 Keyboard Mouse The Wake On PS 2 Keyboard Mouse function allows you to use the PS 2 keyboard or PS 2 mouse to power on the system To use this function Jumper Setting JP1 must be set to 2 3 On 5V...

Страница 21: ...tripe on the ribbon cable is aligned with pin 1 of the COM connector BIOS Setting Configure the serial COM ports in the Advanced menu Super IO Configuration submenu of the BIOS Refer to the chapter 3...

Страница 22: ...board is equipped with four onboard USB 3 0 2 0 1 1 ports USB 0 1 4 5 and two onboard USB 2 0 1 1 ports USB 8 9 The 10 pin connectors allow you to connect 4 additional USB 2 0 1 1 ports USB 2 3 6 7 T...

Страница 23: ...o The system board is equipped with 3 audio jacks A jack is a one hole connecting interface for inserting a plug Line in Surround Jack Light Blue This jack is used to connect any audio devices such as...

Страница 24: ...connected from the system board s peripheral power connector to the SATA drive s power connector in order to provide power to the drive Features SATA 0 SATA 2 7 RXN GND TXP TXN GND 1 RXP GND SATA 4 SA...

Страница 25: ...out the chassis to prevent overheating the CPU and system board components BIOS Setting The Advanced menu PC Health Status submenu of the BIOS will display the current speed of the cooling fans Refer...

Страница 26: ...The power connectors from the power supply unit are designed to fit the 24 pin and 8 pin connectors in only one orientation Make sure to find the proper orientation before plugging the connectors The...

Страница 27: ...DD LED This LED will light when the hard drive is being accessed RESET SW Reset Switch This switch allows you to reboot without having to power off the system ATX SW ATX Power Switch This switch is us...

Страница 28: ...xpress x4 slot PCI Slot The PCI slot supports expansion cards that comply with PCI specifications You can install a PCI expansion card or a customized riser card designed for only 2 PCI slots expansio...

Страница 29: ...es supporting additional COM Parallel ports via the LPC connector EXT 6C1PR 6 RS232 COM ports 1 Parallel port EXT 4C1PR 4 RS232 COM ports 1 Parallel port EXT 2C1PR 2 RS232 COM ports 1 Parallel port CO...

Страница 30: ...of connecting the extension module to the motherboard is shown below the LPC connector on the motherboard LPC S PDIF Connector The S PDIF connector is used to connect an external S PDIF port Your S PD...

Страница 31: ...lock and CMOS memory It is an auxiliary source of power when the main power is shut off Safety Measures Danger of explosion if battery incorrectly replaced Replace only with the same or equivalent typ...

Страница 32: ...u power up the system the BIOS message appears on the screen and the memory count begins After the memory test the message Press DEL to run setup will appear on the screen If the message disappears be...

Страница 33: ...ight C 2012 American Megatrends Inc Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Defaults F4 Save Reset ESC Exit BIOS Information BIOS Vendor Core...

Страница 34: ...Change Opt F1 General Help F2 Previous Values F3 Optimized Defaults F4 Save Reset ESC Exit Trusted Computing This section configures settings relevant to Trusted Computing innovations Aptio Setup Uti...

Страница 35: ...36 Copyright C 2012 American Megatrends Inc SATA Controller s SATA Mode Selection Serial ATA Port 0 Software Preserve Serial ATA Port 1 Software Preserve Serial ATA Port 2 Software Preserve Serial ATA...

Страница 36: ...es Optimized Defaults Save Reset Exit SATA Controller Speed Indicates the maximum speed that the SATA controller can support Port 0 5 Enables or disables the SATA port Hot Plug Designates the SATA por...

Страница 37: ...t Technology This section is used to enable or disable the Intel Rapid Start Technology Aptio Setup Utility Copyright C 2012 American Megatrends Inc Version 2 15 1236 Copyright C 2012 American Megatre...

Страница 38: ...al Help F2 Previous Values F3 Optimized Defaults F4 Save Reset ESC Exit Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Defaults F4 Save Reset ESC Exi...

Страница 39: ...IO Configuration This section is used to configure the I O functions supported by the onboard Super I O chip Restore AC Power Loss help Aptio Setup Utility Copyright C 2012 American Megatrends Inc Ve...

Страница 40: ...3 Optimized Defaults F4 Save and Reset ESC Exit Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Defaults F4 Save and Reset ESC Exit Enable or Disable...

Страница 41: ...merican Megatrends Inc Version 2 15 1236 Copyright C 2012 American Megatrends Inc Serial Port 5 Configuration Serial Port Device Settings Change Settings Advanced Enabled IO 2F0h IRQ 10 Auto Select Sc...

Страница 42: ...Smart Fan Function CPU Smart Fan Control Boundary 4 Boundary 3 Boundary 2 Boundary 1 Speed Count 5 Speed Count 4 Speed Count 3 Speed Count 2 Speed Count 1 System Smart Fan 1 Control Boundary 4 Bounda...

Страница 43: ...Support Ipv6 PXE Support Advanced Enabled Enabled Enabled Enable Disable UEFI network stack Enter F1 F2 F3 F4 ESC Select Screen Select Item Select Change Opt General Help Previous Values Optimized De...

Страница 44: ...t General Help Previous Values Optimized Defaults Save and Reset Exit Intel R I210 Gigabit Network Connection 00 01 29 53 Only for reference This section is used to configure the parameters of the Gig...

Страница 45: ...zed Defaults Save and Reset Exit System Agent SA Configuration This section is used to configure the parameters of System Agent Check to enable VT d function on MCH Aptio Setup Utility Copyright C 201...

Страница 46: ...up Utility Copyright C 2012 American Megatrends Inc Version 2 15 1236 Copyright C 2012 American Megatrends Inc Graphics Configuration IGFX VBIOS Version IGfx Frequency Primary Display Internal Graphic...

Страница 47: ...2012 American Megatrends Inc Version 2 15 1236 Copyright C 2012 American Megatrends Inc LCD Control Primary IGFX Boot Display Secondary IGFX Boot Display CRT None Chipset Secondary IGFX Boot Display...

Страница 48: ...it PCH IO Configuration This section illustrates the PCH parameters Onboard I217 LAN Controller Enables or disables the onboard I217 LAN controller Onboard I210 LAN Controller Enables or disables the...

Страница 49: ...12 American Megatrends Inc Version 2 15 1236 Copyright C 2012 American Megatrends Inc PCI Express Root Port 4 PCIe Speed Chipset Select Screen Select Item Enter Select Change Opt F1 General Help F2 Pr...

Страница 50: ...Change Opt F1 General Help F2 Previous Values F3 Optimized Defaults F4 Save Reset ESC Exit USB Ports Per Port Disable Control This field is used to control each of the USB ports 0 13 disabling When e...

Страница 51: ...ion key 65535 0xFFFF denotes indefinite waiting Bootup NumLock State This allows you to determine the default state of the numeric keypad By default the system boots up with NumLock on wherein the fun...

Страница 52: ...to launch Select Screen Select Item Enter Select Change Opt F1 General Help F2 Previous Values F3 Optimized Defaults F4 Save Reset ESC Exit Security Set Administrator Password Aptio Setup Utility Copy...

Страница 53: ...any changes Restore Defaults To restore and load the optimized default values select this field and then press Enter A dialog box will appear Select Yes to restore the default values of all the setup...

Страница 54: ...ion Smbios Event Log Changes this field to enable or disable all features of Smbios Event Logging during boot Erase Event Log Chooses options for erasing Smbios Event Log Erasing is prior to any loggi...

Страница 55: ...ations required to enhance the performance of the system board Insert the CD into a CD ROM drive The autorun screen Mainboard Utility CD will appear If after inserting the CD Autorun did not automatic...

Страница 56: ...ck Microsoft NET Framework 3 5 on the main menu 1 Read the license agreement care fully Click I have read and accept the terms of the License Agree ment then click Install 2 Setup is now installing th...

Страница 57: ...ation Utility is used for updating Windows INF files so that the Intel chipset can be recognized and configured properly in the system To install the utility click Intel Chipset Software Installation...

Страница 58: ...n tips then click Next 4 Click Finish to exit setup 1 Click I accept the agreement then click Next Microsoft DirectX 9 0C For Windows XP To install the utility click Microsoft DirectX 9 0C Driver on t...

Страница 59: ...tart installation click Next 2 Read the license agreement then click Yes 3 Go through the readme document for system require ments and installation tips then click Next 5 Click Yes I want to restart t...

Страница 60: ...raphics driver and the system rebooted the screen will turn blank for 1 to 2 minutes while WinSAT is running before the Windows Vista desktop appears The blank screen period is the time Windows is tes...

Страница 61: ...l the driver click Intel Management Engine Drivers on the main menu 1 Setup is ready to install the driver Click Next 2 Read the license agreement then click Yes 3 Setup is currently installing the dr...

Страница 62: ...is ready to install the driver Click Next Intel LAN Drivers For Windows XP The LAN drivers for Windows XP supporting on the DL631 C226 system board has to be installed manually When you want to instal...

Страница 63: ...ch I will choose the driver to install in order to select the device driver from a list and click Next 6 Insert the installation disk and make sure the selected drive is correct For 32 bit the file na...

Страница 64: ...ernet Connection I217LM will appear on the computer management list Intel LAN Drivers For Windows 7 and Windows 8 To install the driver click Intel LAN Drivers on the main menu 1 Setup is ready to ins...

Страница 65: ...al the DFI Utility driver Click Next 2 Click I accept the terms in the license agreement then click Next DFI Utility DFI Utility provides information about the board Watchdog and DIO To access the uti...

Страница 66: ...pported Software Chapter 4 3 Click Install to begin the installation 4 After completing installa tion click Finish The DFI Utility icon will appear on the desktop Double click the icon to open the uti...

Страница 67: ...www dfi com 67 Chapter 4 Supported Software Chapter 4 WatchDog HW Health Set DIO...

Страница 68: ...0 Driver on the main menu 2 Read the license agreement then click Yes 1 Setup is ready to install the driver Click Next 3 Go through the readme docu ment for more installation tips then click Next 4 S...

Страница 69: ...s enhanced performance and power management for the storage subsystem To install the driver click Intel Rapid Storage Technology on the main menu 1 Setup is now ready to install the utility Click Next...

Страница 70: ...er diskette needed when you install Windows XP using the F6 installation method This will allow you to install the operating system onto a hard drive when in AHCI mode 1 Insert a blank floppy diskette...

Страница 71: ...and tool option on the main menu 1 The setup program is preparing to install the driver 2 The setup program is now ready to install the utility Click Next 3 Click I accept the terms in the license ag...

Страница 72: ...e Chapter 4 7 TPM requires installing the Micro soft Visual C package prior to installing the utility Click Install 8 The setup program is currently installing the Microsoft Visual C package 9 Click F...

Страница 73: ...Adobe Acrobat Reader 9 3 To install the reader click Adobe Acrobat Reader 9 3 on the main menu 1 Click Next to install or click Change Destination Folder to select another folder 2 Click Install to be...

Страница 74: ...reads from this register reflect the value that is in the flip flop contolling the output selection not the actual pin value BIT O 7 O 6 O 5 O 4 O 3 O 2 O 1 O 0 DEFAULT 1 1 1 1 1 1 1 1 Register 0 Inpu...

Страница 75: ...ta if Mode 1 SetBit Data TempPinNum Input else ClrBit Data TempPinNum Output I2C_WriteByte SLAVE_ADDR CONFIG_PORT Data return 1 GPIO Output Process define SLAVE_ADDR define INPUT_PORT define OUTPUT_PO...

Страница 76: ...a striping and data mirroring providing the benefits of both RAID 0 and RAID 1 Use four new drives or an existing drive and three new drives for this configuration Settings To enable the RAID function...

Страница 77: ...must continue installing the OS Leave the floppy disk in the floppy drive until the system reboots itself because Windows setup will need to copy the files again from the floppy disk to the Windows i...

Страница 78: ...rements and installa tion information then click Next 7 Confirm the installation and click Next 6 Click Next to install to the default folder or click change to choose another destination folder 8 Cli...

Страница 79: ...OS 2 In the Advanced menu select AMT Configuration ACPI Power Management Configuration Aptio Setup Utility Copyright C 2012 American Megatrends Inc Version 2 15 1236 Copyright C 2012 American Megatren...

Страница 80: ...on MEBX Screen 1 When the system reboots the following message will be displayed Press Ctrl P as soon as the message is displayed as this message will be displayed for only a few sec onds Version 2 15...

Страница 81: ...ME Password Move Highlight Enter Select Entry Esc Exit Intel R ME New Password 4 You will be asked to verify the password Enter the same new password in the space pro vided under Verify Password then...

Страница 82: ...Enter Select Entry Esc Exit 7 Select Local FW Update then press Enter Select Enabled then press Enter Intel R Management Engine BIOS Extension v9 0 0 0024 Intel R ME v9 0 10 1372 Copyright C 2003 12...

Страница 83: ...cy Redirection Mode Disabled Menu for FW Redirection Configuration INTEL R AMT CONFIGURATION 11 In the SOL IDER KVM menu select Username and Password then press Enter Select Disabled then press Enter...

Страница 84: ...ture Selection Enabled Legacy Redirection Mode Disabled Disabled Enabled 15 In the SOL IDER KVM menu select Legacy Redirection Mode then press Enter Intel R Management Engine BIOS Extension v9 0 0 002...

Страница 85: ...pt in Policy then press Enter Intel R Management Engine BIOS Extension v9 0 0 0024 Intel R ME v9 0 10 1372 Copyright C 2003 12 Intel Corporation All Rights Reserved USER CONSENT User Opt in KVM Opt in...

Страница 86: ...hts Reserved Move Highlight Enter Select Entry Esc Exit INTEL R ME NETWORK SETUP Intel R ME Network Name Settings TCP IP Settings 23 In the Intel R ME Network Name Settings menu select Host Name then...

Страница 87: ..._ Domain Name _ Shared Dedicated FQDN Shared Dynamic DNS Update Disabled Disabled Enabled 27 Select Previous Menu until you return to the Intel R ME Network Setup menu Select TCP IP Settings then pre...

Страница 88: ...nt Password Policy Anytime Network Setup Activate Netwok Access Unconfigure Network Access Full Unprovision Remote Setup And Configuration Power Control Full Unprovision 31 In the Intel R AMT Configur...

Страница 89: ..._ Provisioning Server FQDN _ RCFG TLS PSK TLS PKI Provisioning server address 35 In the Intel R Remote Automated Setup And Configuration menu select Provi sioning Server FQDN then press Enter Type FQD...

Страница 90: ...ID e g ABCD 1234 39 In the Intel R TLS PSK Configuration menu select Delete PID and PPS then press Enter Type Y then press Enter Intel R Management Engine BIOS Extension v9 0 0 0024 Intel R ME v9 0 10...

Страница 91: ...lete Hash Activate Hash Move Highlight Enter View Hash Esc Exit Active Active Active Active Active Active Active Active Active Active Active Active Active Active Active Default Default Default Default...

Страница 92: ...TEL R AMT POWER CONTROL This configurations are effective only after AMT provisioning has started Intel R ME ON in Host Sleep States Desktop ON in S0 ME Wake in S3 S4 5 Idle Timeout 65535 ENTER Comple...

Страница 93: ...the operating system and chipset used by your computer The downloaded driver files should include iaahci cat iaAHCI inf iastor cat iaStor inf IaStor sys license txt and TXTSETUP OEM 4 Insert the XP in...

Страница 94: ...table ISO Click Next 9 Click Insert and then select Multiple driver folder to select the drivers you will integrate Click Next 10 Select only the drivers ap propriate for the Windows version that you...

Страница 95: ...e uncertain of the southbridge chip used on your motherboard select all RAID AHCI controllers and then click OK 12 Click Next 13 The program is currently integrating the drivers and applying changes t...

Страница 96: ...6 Or you can choose to burn it directly to a disc by selecting the Direct Burn mode under the General section Select the optical device and all other necessary settings and then click Next 17 You have...

Страница 97: ...rted by the motherboard chipset from Intel s website Transfer the downloaded driver files to C AHCI 4 Open Device Manager and right click on one of the Intel Serial ATA Storage Controllers then select...

Страница 98: ...A warning message appeared because the se lected SATA controller did not match your hardware device Ignore the warning and click Yes to proceed 12 Click Finish 13 The system s settings have been chan...

Страница 99: ...WDT Control WDT timer MOV DX 4EH MOV AL 07H Ready to Program Logical Device OUT DX AL MOV DX 4FH MOV AL 08H Select Logical Device 8 OUT DX AL MOV DX 4EH MOV AL F1H Select watchdog timer register OUT...

Страница 100: ...which setting is correct either turn off the system and change the jumper or enter Setup and change the VIDEO selection FLOPPY DISK S fail 80 Unable to reset floppy subsystem FLOPPY DISK S fail 40 Fl...

Страница 101: ...hat the video input cable is properly attached to the monitor and the system s display adapter 4 Adjust the brightness of the display by turning the monitor s brightness control knob The picture seems...

Страница 102: ...ks by attaching it to a serial port that is working and configured correctly If the serial device does not work either the cable or the serial device has a problem If the serial device works the probl...

Отзывы: