background image

 

Appendix 

 

CPC-1814CLD5NA-N 

- 37 - 

 

Appendix 

GPIO Program Guide 

The board provides 8-channel programmable digital I/O pins, four of which are for 

input while the other four are for output. 

The following provides digital I/O program in C language; please follow the steps 

below to implement digital I/O programming: 

 

(1) 

Initialize digital I/O 

#define INPUT1 0 

#define INPUT2 1 

#define INPUT3 2 

#define INPUT4 3 

#define OUTPUT1 0 

#define OUTPUT2 1 

#define OUTPUT3 2 

#define OUTPUT4 3 

int BAR= 

0x500; 

 

int input[]={

1,6,7,38

}; 

  //PIN 

defining 

GPI 

int output[]={

20,22,27,28

};   //PIN 

defining 

GPO 

 

for 

(i=0;i<=3;i++)    //Initialize and organize GPIO 

 initializ_gpio(input[i]); 

   

 initializ_gpio(output[i]); 

 set_in_out(1,input[i]); 

 

set_in_out(0,output[i]);  

Содержание CPC-1814CLD5NA-N

Страница 1: ...CPC 1814CLD5NA N 双核宽温 6U Compact PCI 主板 Dual Core Wide Temperature 6U Compact PCI Motherboard Version C02 ...

Страница 2: ...on This user manual is protected by copyright No part of this manual may be reproduced stored in any retrieval system or transmitted in any form or by any means mechanical electronic photocopied recorded or otherwise without the prior written permission from the manufacturer Trademarks EVOC is a registered trademark of EVOC Intelligent Technology Co Ltd Other product names mentioned herein are use...

Страница 3: ...herboards or expansion cards first disconnect the computer and peripherals from their power sources to prevent electric shock to human bodies or damage to the product 6 Remember to disconnect the AC power cord from the socket before removing the board or moving the PC 7 For PC products remember to disconnect the computer and peripherals from the power sources before inserting or removing a board 8...

Страница 4: ...or 2 Chipset 2 Memory 2 Display Function 2 LAN Function 2 Audio Function 3 On board IO 3 Watchdog Function 3 Power Feature 3 Chapter 2 Installation 4 Product Outline 4 Locations of Connectors 5 Structure 6 Jumper Setting 7 CPCI Hot swappable Micro switch 8 JTAG Connector 9 USB 9 LPC Connector 10 Display Connector 10 SATA Connector 11 ...

Страница 5: ...r 14 Compact PCI Connector 15 PMC Connector 19 Chapter 3 BIOS Setup 22 BIOS Overview 22 BIOS Parameter Setup 22 Basic Function Setting for BIOS 23 System Resource Managed by BIOS under X86 Platform 33 Appendix 37 GPIO Program Guide 37 Watchdog Programming Guide 43 Troubleshooting and Solutions 45 ...

Страница 6: ...ctor a set of 32bit PCI PMC connector or one CompactFlash connector one serial port two USB ports and one VGA connector CPC 1814CLD5NA N is a wide temperature 6U Compact PCI motherboard which can meet requirements for different connectors together with the rear IO board CPC RP804B and CPC RP804R It mainly targets high end CPCI applications such as information communication network storage network ...

Страница 7: ... power processor complying with Intel CoreTM 2 Duo T7500 high performance and low consumption processor which provides excellent performance and can meet the growing requirement for system data processing Chipset Intel GME965 ICH8M Memory DDRII memory on board up to 2GB with excellent compatibility providing stable memory data exchange environment Display Function Intel GME965 chipset integrated w...

Страница 8: ...d brings out the other one the serial port on rear IO board supports RS 232 RS 422 RS 485 mode Three SATA connectors CPC 1814CLD5NA N has one on board while the IO board brings out the other two Two SAS connectors brought via rear IO board Four USB ports two are brought out via rear IO board One keyboard and mouse connector brought out from rear IO board One digital IO connector A set of PMC conne...

Страница 9: ... PTH9 PH1 PTH5 PH3 PH4 PH2 233 4 161 5 168 7 PTH8 Unit mm Warning Please adopt appropriate screws and proper installation methods including board allocation CPU and heat sink installation etc otherwise the board may be damaged It is recommended to use GB 818 M2 5x5 screws at PH1 PH4 and PTH5 PTH10 ...

Страница 10: ...tallation CPC 1814CLD5NA N 5 Locations of Connectors J5 JN2 JN4 JN1 CF1 JCF1 LPC1 GPIO1 VGA1 USB1 USB2 COM1 LAN1 D13 D14 RST1 JP3 JTAG1 JP7 SATA1 SW1 J1 J2 J3 PTH7 PTH6 PTH10 PTH9 PTH8 PH1 PTH5 PH3 PH4 PH2 SW2 PMC1 ...

Страница 11: ...0 L7500 LVDS PCI Express x1 2 82573E 2 USB2 0 2 PCI Express X1 2 83627DHG LPC BUS COM1 COM2 USB USB2 0 2 SATA 1 SATA Audio DVI I COM2 LAN2 3 SAS 1 2 SATA 2 3 LVDS VGA LAN Connector Transform er PCIE x4 to PCI X DIMM1 CH A DDR2 HDA Audio VGA VGA Tip How to identify the first pin of the jumpers and connectors 1 Observe the letter beside the socket it would be marked with 1 or bold lines or triangula...

Страница 12: ... PI7C9x130 Bridge Dip Switch SW1 is the dip switch to configure PI7C9x130 which has been set before delivery Please set as follows System Status SW1 Switch ON 0 OFF 1 1 Non NT Default NT 2 3 SW1 4 Used to adjust the operating frequency of the bridge chip When adopting default setting the operating frequency is 33MHz When 4 OFF the peripheral card can select between 66MHz and 33MHz automatically if...

Страница 13: ...PROM 0 and SMBus 1 Selection 3 GND MSK_IN Default Enable 1 Disable 0 Bridge Hot swap Function 4 GND Default CFN_L Internal 0 and External 1 Arbitrary Selection Note forward mode indicates that the PI7C9x13 Bridge is converted from PCIE to PCI bus while backward mode indicates that the PI7C9x13 Bridge is converted from PCI to PCIE bus CPCI Hot swappable Micro switch Pin Signal Name 1 VCC3 2 GND JP3...

Страница 14: ...D via JTAG1 on board Pin Signal Name 1 VCC 2 GND 3 TCK 4 TDO 5 TDI JTAG1 Pitch 2 54mm 6 TMS Setup Function 1 2 Short Reset PCIe signal Default JP7 Pitch 2 0mm 2 3 Short Reset PCI signal USB The board provides two standard USB ports Pin Signal Name 1 5V 2 USB_Data 3 USB_Data USB1 USB2 4 GND ...

Страница 15: ...Connector The board provides one 15 pin D sub VGA display connector Pin Signal Name Pin Signal Name 1 Red 2 Green 3 Blue 4 NC 5 GND 6 GND 7 GND 8 GND 9 NC 10 GND 11 NC 12 DDCDATA 13 HSYNC 14 VSYNC VGA1 15 DDCCLK Note when using with the rear IO boards CPC RP804B CPC RP804R please pay attention that the VGA connector of the rear IO board and that of the motherboard are alternative so as to avoid as...

Страница 16: ...ND B15 12V LAN Port The board provides one 10 100 1000Mbps LAN port ACTLED and LILED are the LEDs beside the Ethernet port which respectively indicates the activity status and transmission status of LAN Please refer to the status description for each LED MX0 MX0 positive negative data channel 0 MX1 MX1 positive negative data channel 1 MX2 MX2 positive negative data channel 2 MX3 MX3 positive negat...

Страница 17: ...s Off No Data to Transmit Off 10Mbps Note the LAN port doesn t support wake up function Serial Port The board provides a serial communication connector RJ45 which can connect with devices with standard RS 232 connectors such as mouse modem and digital camera etc Pin Signal Name 1 RTS 2 DTR 3 TXD 4 GND 5 GND 6 RXD 7 DSR COM1 8 CTS Note the serial port doesn t support wake up function ...

Страница 18: ... 2 0mm 9 GND 10 NC Note the factory default value is that Pin 1 3 5 and 7 are for input while Pin 2 4 6 and 8 are for output Indicator LED Status Description OFF Hard disk is idle HDD ON Hard disk is operating OFF Power failure PW ON Power normal OFF Normal operating status HS ON At hot swapping status OFF Cannot operate watchdog WDT ON Operate the watchdog Reset Button Pin Signal Name Pin Signal ...

Страница 19: ...figure Pin Signal Name Pin Signal Name 1 GND 26 CD1 2 D3 27 D11 3 D4 28 D12 4 D5 29 D13 5 D6 30 D14 6 D7 31 D15 7 CS0 32 CS1 8 GND 33 VS1 9 ATASEL 34 IOR 10 GND 35 IOW 11 GND 36 WE 12 GND 37 IRQ 13 VCC 38 VCC 14 GND 39 CSEL 15 GND 40 VS2 16 GND 41 RESET 17 GND 42 IORDY 18 A2 43 DREQ 19 A1 44 DACK 20 A0 45 DASP 21 D0 46 ATA66_DET 22 D1 47 D8 23 D2 48 D9 24 WP IOCS16 49 D10 25 CD2 50 GND ...

Страница 20: ...0 AD29 AD28 GND AD27 GND 8 AD26 GND V I O AD25 AD24 GND 9 C BE3 GND AD23 GND AD22 GND 10 AD21 GND 3 3V AD20 AD19 GND 11 AD18 AD17 AD16 GND C BE2 GND 12 13 14 KEY AREA 15 3 3V FRAME IRDY BD_SEL TRDY GND 16 DEVSEL GND V I O STOP LOCK GND 17 3 3V IPMB_SCL IPMB_SDA GND PERR GND 18 SERR GND 3 3V PAR C BE1 GND 19 3 3V AD15 AD14 GND AD13 GND 20 AD12 GND V I O AD11 AD10 GND 21 3 3V AD9 AD8 M66EN C BE0 GND...

Страница 21: ... DEG GND NC GND 15 NC GND FAL REQ5 GNT5 GND 14 AD35 AD34 AD33 GND AD32 GND 13 AD38 GND V I O AD37 AD36 GND 12 AD42 AD41 AD40 GND AD39 GND 11 AD45 GND V I O AD44 AD43 GND 10 AD49 AD48 AD47 GND AD46 GND 9 AD52 GND V I O AD51 AD50 GND 8 AD56 AD55 AD54 GND AD53 GND 7 AD59 GND V I O AD58 AD57 GND 6 AD63 AD62 AD61 GND AD60 GND 5 C BE5 64EN V I O C BE4 PAR64 GND 4 V I O NC C BE7 GND C BE6 GND 3 CLK4 GND ...

Страница 22: ...Y PCIE_RXN5 SATA_RXN1 GND 12 CK_100M_ LAN4 CK_100M_ LAN5 VCC3 PCIE_RXP5 SATA_RXP1 GND 11 GND GND PCIE_RXN4 GND GND GND 10 PCIE_RXN3 PCIE_TXP3 PCIE_RXP4 PCIE_TXP5 SATA_TXN1 GND 9 PCIE_RXP3 PCIE_TXN3 GND PCIE_TXN5 SATA_TXP1 GND 8 GND GND PCIE_TXP4 GND GND GND 7 LA_CLKP LA_DATAP3 PCIE_TXN4 LANA_LINK1000 SATA_RXN2 GND 6 LA_CLKN LA_DATAN3 GND LANB_LINK1000 SATA_RXP2 GND 5 GND GND LA_DATAP2 GND GND GND ...

Страница 23: ... O I O I O GND GND 16 I O I O I O I O CRT_RED GND 15 I O I O I O I O GND GND 14 I O I O I O I O CRT_GREEN GND 13 I O I O I O I O GND GND 12 I O I O I O I O CRT_BLUE GND 11 I O I O I O I O GND GND 10 I O I O I O I O CRT_HSYNC GND 9 I O I O I O I O CRT_VSYBC GND 8 I O I O I O I O GND GND 7 I O I O I O I O CRT_DDC_DATA GND 6 I O I O I O I O CRT_DDC_CLK GND 5 COM2_TXD I O COM2_DSR COM2_DTR ACZ_DET GND...

Страница 24: ... IRDY 5 PIRQB 37 DEVSEL 6 PIRQC 38 5V 7 BM1 39 GND 8 5V 40 PLOCK 9 PIRQD 41 NC 10 NC 42 NC 11 GND 43 PAR 12 3 3V 44 GND 13 CLK1 45 VIO 14 GND 46 AD15 15 GND 47 AD12 16 GNT0 48 AD11 17 REQ0 49 AD9 18 5V 50 5V 19 VIO 51 GND 20 AD31 52 C BE0 21 AD28 53 AD6 22 AD27 54 AD5 23 AD25 55 AD4 24 GND 56 GND 25 GND 57 VIO 26 C BE3 58 AD3 27 AD22 59 AD2 28 AD21 60 AD1 29 AD19 61 AD0 30 5V 62 5V 31 VIO 63 GND J...

Страница 25: ... PERR 8 NC 40 GND 9 NC 41 3 3V 10 NC 42 SERR 11 BM2 43 C BE1 12 3 3V 44 GND 13 RST 45 AD14 14 BM3 46 AD13 15 3 3V 47 M66EN 16 BM4 48 AD10 17 PME 49 AD8 18 GND 50 3 3V 19 AD30 51 AD7 20 AD29 52 REQ_B 1 21 GND 53 3 3V 22 AD26 54 GNT_B 1 23 AD24 55 NC 24 3 3V 56 GND 25 IDSEL 57 NC 26 AD23 58 EREADY 1 27 3 3V 59 GND 28 AD20 60 RSTOUT 1 29 AD18 61 ACK64 30 GND 62 3 3V 31 AD16 63 GND JN2 32 C BE2 64 Mon...

Страница 26: ... O 12 I O 44 I O 13 I O 45 I O 14 I O 46 I O 15 I O 47 I O 16 I O 48 I O 17 I O 49 I O 18 I O 50 I O 19 I O 51 I O 20 I O 52 I O 21 I O 53 I O 22 I O 54 I O 23 I O 55 I O 24 I O 56 I O 25 I O 57 I O 26 I O 58 I O 27 I O 59 I O 28 I O 60 I O 29 I O 61 I O 30 I O 62 I O 31 I O 63 I O JN4 32 I O 64 I O Notes for JN1 JN4 the default setting of VIO signal is to connect with 3 3V via 0Ω resistor therefo...

Страница 27: ...quate even incorrect BIOS parameter setting will decrease the system operating capability and make the system operating unstably even unable to operate normally BIOS Parameter Setup Prompt message for BIOS setting may appear once powering on the system At that time invalid at other time press the key specified in the prompt message usually Del to enter BIOS setting When the BIOS setting in CMOS is...

Страница 28: ...t Item Change Field Tab Select Field F1 General Help F10 Save and Exit ESC Exit V02 61 c Copyright 1985 2006 American Megatrends Inc Main System Time Choose this option and set the current time by which is displayed in the format of hour minute second Reasonable range for each option is Hour 00 23 Minute 00 59 Second 00 59 System Date Choose this option and set the current date by which is display...

Страница 29: ...Screen Tab Select Field F1 General Help F10 Save and Exit ESC Exit V02 61 c Copyright 1985 2006 American Megatrends Inc CPU Configuration BIOS SETUP UTILITY Configure advanced CPU settings Manufacturer Brand String Intel Intel Core 2 Duo CPU L7500 1 60GHz Frequency 1 60GHz FSB Speed 800MHz Cache L1 64 KB Cache L2 4096KB Ratio Actual Value 8 Intel R Virtualization TECH Core Multi Processing Enabled...

Страница 30: ...neral Help F10 Save and Exit ESC Exit V02 61 c Copyright 1985 2006 American Megatrends Inc ATA IDE Configuration This option is used to configure the operating mode of ATA there are two options for this item Enhanced and Compatible Configure SATA as SATA controller type selection there are three options for this item IDE RAID and AHCI Only when ATA IDE Configuration is under Enhanced mode are RAID...

Страница 31: ...ction and it is only effective for the hard disk supporting this function 32Bit Data Transfer This option is used to enable 32 bit hard disk accessing mode which could optimize hard disk read and write speed Super IO Configuration BIOS SETUP UTILITY Configure Win627 Super IO Chipset Floppy A Disabled OnBoard Floppy Controller Enabled Serial Port1 Address 3F8 IRQ4 Serial Port2 Address 2F8 IRQ3 Allo...

Страница 32: ...OM2 on motherboard The options are Disabled 3F8H IRQ4 3E8 IRQ4 2E8 IRQ3 and 2F8H IRQ3 Hardware Health Configuration BIOS SETUP UTILITY Hardware Health Configuration System Temperature 34 93 CPU Temperature 51 123 Vcore 1 320 V V3 3 3 312 V V5 0 5 107 V V12 0 11 481V VBAT 3 200 V Enables Hardware Health Monitoring Device Select Screen Select Item Change Field Tab Select Field F1 General Help F10 Sa...

Страница 33: ...acy USB Support Auto Enables USB host controllers Select Screen Select Item Change Field V02 61 c Copyright 1985 2006 American Megatrends Inc USB Function This option sets the amount of USB controller that is to confirm how many USB controllers it supports One controller usually supports two USB ports USB 2 0 Controller This option is used to select whether to support USB 2 0 controller Legacy USB...

Страница 34: ...ting wrong values in below sections may cause system to malfunction NorthBridge Chipset Configuration DRAM Frequency Auto Configure DRAM Timing by SPD Enabled Boot Display Device CRT Flat Panel Type 800x600 SouthBridge Chipset Configuration Audio Controller Enabled Select Screen Select Item Enter Go to Sub Screen F1 General Help F10 Save and Exit ESC Exit V02 61 c Copyright 1985 2006 American Mega...

Страница 35: ...anel Type This option is used to select the resolution for Flat Panel Onboard Audio Controller Select whether to enable the audio card controller PCIPnP BIOS SETUP UTILITY Advanced PCI PnP Settings WARNING Setting wrong values in below sections may cause system to malfunction IRQ3 Available IRQ4 Available IRQ5 Reserved IRQ7 Available IRQ9 Available IRQ10 Available IRQ11 Available IRQ14 Available I...

Страница 36: ...skipping certain test to reduce BIOS booting time Quiet Boot Configure whether to display the content of OEM LOGO Wait For F1 If Error Configure whether to prompt pressing F1 during system error 1st 4th Boot Device Configure the priority of the boot sequence for devices when the system boots Security BIOS SETUP UTILITY Security Settings Supervisor Password Not Installed User Password Not Installed...

Страница 37: ... and Exit When you have finished all the changes and want to cover the original parameters you may implement this operation and save the new parameters into CMOS storage To implement this operation you may choose this option and press Enter press Enter again to exit Discard Changes and Exit If you do not want to save the change into CMOS storage please choose this option and press Enter press Ente...

Страница 38: ...tem resources here I O port address IRQ interrupt number and DMA number DMA Level Function DMA0 DRAM Refresh DMA1 Unassigned DMA2 Unassigned DMA3 Unassigned sometimes used for hard disk DMA4 Used for DMAC Cascade DMA5 Unassigned DMA6 Unassigned DMA7 Unassigned APIC Advanced programmable interrupt controller Most motherboards above P4 level support APIC and provide more than 16 interrupt sources li...

Страница 39: ...rrupt Controller 1 022h 03Fh Motherboard Resource 040h 043h System Timer 044h 05Fh Motherboard Resource 060h Standard 101 102 Key or Microsoft Natural PS 2 Keyboard 061h System speaker 062h 063h Motherboard Resource 064h Standard 101 102 Key or Microsoft Natural PS 2 Keyboard 065h 06Fh Motherboard Resource 070h 071h Real Time Clock NMI 072h 07Fh Motherboard Resource 080h Motherboard Resource 081h ...

Страница 40: ...2FFh COM2 376h Secondary IDE dual FIFO 3B0h 3BBh Intel R Q965 Q963 Express Chipset Family 3C0h 3DFh Intel R Q965 Q963 Express Chipset Family 3F6h Primary IDE dual FIFO 3F8h 3FFh COM1 400h 41Fh Intel R 82801G ICH8 Family SMBus Controller 27DA 480h 4BFh Motherboard Resource 4D0h 4D1h Motherboard Resource 800h 87Fh Motherboard Resource B00h B0Fh Motherboard Resource B10h B1Fh Motherboard Resource A79...

Страница 41: ...h the distribution of BIOS or OS The diagram below shows parts of the interrupt distribution under X86 platform but it does not show the interrupt source occupied by the PCI devices Level Function IRQ0 System Timer IRQ1 Standard 101 102 Key or Microsoft Keyboard IRQ2 Programmable Interrupt Controller IRQ3 COM 2 IRQ4 COM 1 IRQ5 Reserved for hot swap IRQ6 Standard FDD Controller IRQ7 Reserved IRQ8 S...

Страница 42: ...se follow the steps below to implement digital I O programming 1 Initialize digital I O define INPUT1 0 define INPUT2 1 define INPUT3 2 define INPUT4 3 define OUTPUT1 0 define OUTPUT2 1 define OUTPUT3 2 define OUTPUT4 3 int BAR 0x500 int input 1 6 7 38 PIN defining GPI int output 20 22 27 28 PIN defining GPO for i 0 i 3 i Initialize and organize GPIO initializ_gpio input i initializ_gpio output i ...

Страница 43: ... is high level while return 0 is low level Required user defined functions Function Name GPIO initialization function initializ_gpio int pin_NO Input Parameters PIN number Functions initialize GPIO according to DATASHEET specification void initializ_gpio int pin_NO unsigned int ioadd BAR 0x00 unsigned char mask int offset pin_NO 8 unsigned char tempv if pin_NO 32 ioadd BAR 0x30 offset pin_NO 32 8 ...

Страница 44: ...in_out 1 input 0 output Returned Value Functions initialize GPIO according to DATASHEET specification void set_in_out const int in_out const int pin_NO the calculation of the function is the same as that of initializ_gpio int pin_NO unsigned int ioadd BAR 0x04 unsigned char mask int offset pin_NO 8 unsigned char tempv if pin_NO 31 ioadd BAR 0x34 offset pin_NO 32 8 while offset 0 ioadd offset ...

Страница 45: ...Name set high low level for output pin write_gpio int high_low int pin_NO Input Parameters high low level PIN number high_low 1 high level 0 low level Returned Value Functions initialize GPIO according to DATASHEET specification void write_gpio const int high_low const int pin_NO unsigned int ioadd BAR 0x0c int offset pin_NO 8 unsigned char mask unsigned char tempv if pin_NO 32 ioadd BAR 0x38 ...

Страница 46: ...tportb ioadd tempv else mask ich_mask 0 pin_NO tempv inportb ioadd mask outportb ioadd tempv Function Name read the function of the input pin read_gpio int pin_NO Input Parameters pre set value PIN number Returned Value return the current PIN value or Functions return the current PIN value unsigned char read_gpio const int pin_NO int read_v ...

Страница 47: ... offset tempv inportb ioadd if tempv ich_mask 1 pin_NO 0x00 return 0 else return 1 Set the output pin to low level short circuit the I O pin measure the voltage of the input pin If the input pin is low level the IO value is normal vice versa Set the output pin to high level in the same way short circuit and measure the output pin to check whether it is high level ...

Страница 48: ...ce into Reserved before using The following describes WDT program in C language The steps to program WDT are listed as follows Enter WDT programming mode Set WDT operating mode enable WDT disable WDT 1 Enter WDT Programming Mode define INDEX_PORT 0x2E define DATA_PORT 0x2F outportb INDEX_PORT 0x87 outportb INDEX_PORT 0x87 outportb INDEX_PORT 0x07 outportb DATA_PORT 0x08 outportb INDEX_PORT 0x30 ou...

Страница 49: ... the interrupt number has been listed in the beginning of this chapter 3 Configure WDT to time by minute second a Time by minute outportb INDEX_PORT 0xf5 outportb DATA_PORT 0x08 b Time by second outportb INDEX_PORT 0xf5 outportb DATA_PORT 0x00 4 Enable Disable WDT a Enable WDT outportb INDEX_PORT 0xf6 outportb DATA_PORT TIME_OUT_VALUE Please replace the constant TIME_OUT_VALUE with the unit number...

Страница 50: ...B1 1 port 3 When connecting with a USB flash drive the system prompts that a high speed device has been connected with a low speed connector Solution enable the USB high speed transmission mode on the motherboard Different motherboards may have different settings Change the FULLSPEED option to HISPEED in USB device option Analysis it could be resulted from improper operation when inserting or remo...

Страница 51: ...T or ATX find out users requirement for the PCI card voltage 6 No PCI card can be detected after entering the system Solution if the PCI card functions abnormally replace it with a new one if it functions normally when re inserted or inserted in another PCI slot then there is something wrong between the PCI card and the slot If AT power is adopted and the PCI card requires 3 3V voltage then the AT...

Отзывы: