background image

APPENDIX 

54

 

IB891 User’s Manual

 

 

D. Digital I/O Sample Code 

 

File of the W627UHG.H 
//--------------------------------------------------------------------------- 
//                                                                           
// 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.                                                                  
//                                                                           
//--------------------------------------------------------------------------- 
#ifndef __W627UHG_H 
#define 

__W627UHG_H 

  1 

//--------------------------------------------------------------------------- 
#define W627UHG_INDEX_PORT  

(W627UHG_BASE) 

#define W627UHG_DATA_PORT   (W627U1) 
//--------------------------------------------------------------------------- 
#define W627UHG_REG_LD 

  0x07 

//--------------------------------------------------------------------------- 
#define 

W627UHG_UNLOCK 

  0x87 

#define 

W627UHG_LOCK   0xAA 

//--------------------------------------------------------------------------- 
unsigned int Init_W627UHG(void); 
void Set_W627UHG_LD( unsigned char); 
void Set_W627UHG_Reg( unsigned char, unsigned char); 
unsigned char Get_W627UHG_Reg( unsigned char); 
//--------------------------------------------------------------------------- 
#endif //__W627UHG_H 

Содержание IB891

Страница 1: ...IB891 Intel Pineview M Pineview D ICH8M Luna Pier Luna Pier Refresh Platform 3 5 Disk Size SBC USER S MANUAL Version 1 0B...

Страница 2: ...ional Business Machines Corporation Intel and Luna Pier are registered trademarks of Intel Corporation Microsoft Windows is a registered trademark of Microsoft Corporation Winbond is a registered trad...

Страница 3: ...1 Specifications 3 Board Dimensions 4 Installations 5 Installing the Memory 6 Setting the Jumpers 7 Connectors on IB891 11 BIOS SETUP 19 Drivers Installation 39 Appendix 47 A I O Port Address Map 47 B...

Страница 4: ...iv IB891 User s Manual This page is intentionally left blank...

Страница 5: ...ics intensive and multimedia applications for the digital signage POS kiosk automation and other fanless and low noise embedded applications Measuring 102mm x 147mm the IB891 has a 3D capable built in...

Страница 6: ...al Checklist Your IB891 package should include the items listed below The IB891 3 5 disk size SBC This User s Manual 1 CD containing chipset drivers and flash memory utility Remarks The IB60 cable kit...

Страница 7: ...audio SSM2304 2W 4ohm Amplifier LPC I O Winbond W83627UHG COM1 RS232 422 485 COM2 RS232 COM3 RS232 COM4 RS232 with pin 9 with power for 2 ports 500 mA for each port Hardware monitor 2 thermal inputs 4...

Страница 8: ...INTRODUCTION Board Dimensions 4 IB891 User s Manual...

Страница 9: ...5 Installations This section provides information on how to use the jumpers and connectors on the IB891 in order to set up a workable system The topics covered are Installing the Memory 6 Setting the...

Страница 10: ...ligns with that on the memory slot Insert the module into the socket at a slight angle approximately 30 degrees Note that the socket and module are both keyed which means that the module can be instal...

Страница 11: ...er if you have doubts about the best configuration for your needs The following lists the connectors on IB891 and their respective functions Jumper Locations on IB891 8 JP1 ATX AT Mode Select 9 JP2 Cl...

Страница 12: ...n IB891 Page JP1 ATX AT Mode Select 9 JP2 Clear CMOS Setting 9 JP3 Compact Flash Slave Master Selection 9 JP5 LCD Panel Power Selection 9 JP4 JP6 COM3 4 RS232 5V 12V Power Setting 10 JP7 JP8 JP9 RS232...

Страница 13: ...P2 Clear CMOS Setting JP2 Setting Normal Clear CMOS Note Please remove the lithium battery before setting the jumper JP3 Compact Flash Slave Master Selection JP3 CF Setting Master Slave JP5 LCD Panel...

Страница 14: ...RS232 422 485 COM1 Selection COM2 COM3 COM4 are fixed for RS 232 use only COM1 is selectable for RS232 RS 422 and RS 485 The following table describes the jumper settings for COM1 selection COM1 Funct...

Страница 15: ...act Flash Connector 14 J5 DDR2 SO DIMM 14 J6 J7 J8 USB3 4 5 6 7 8 Connector 14 J9 LCD Backlight Connector 14 J10 Digital I O 15 J11 System Function Connector 15 J12 LVDS 18bit Connectors 16 J13 COM3 C...

Страница 16: ...tor 14 J5 DDR2 SO DIMM 14 J6 J7 J8 USB3 4 5 6 7 8 Connector 14 J9 LCD Backlight Connector 14 J10 Digital I O 15 J11 System Function Connector 15 J12 LVDS 18bit Connectors 16 J13 COM3 COM4 Serial Port...

Страница 17: ...Name Red 1 2 Green Blue 3 4 N C GND 5 6 GND GND 7 8 GND VCC 9 10 GND N C 11 12 DDCDATA HSYNC 13 14 VSYNC DDCCLK 15 CN7 COM1 RS232 RS422 RS485 Connector Pin Signal Name RS 232 R2 422 RS 485 1 DCD TX DA...

Страница 18: ...LED indicates the status of the main power switch Pin Signal Name 1 Power LED 2 No connect 3 Ground J4 Compact Flash Connector J5 DDR2 SO DIMM J6 J7 J8 USB3 4 5 6 7 8 Connector Signal Name Pin Pin Si...

Страница 19: ...to power on When pressed again it will force the system to power off Hard Disk Drive LED Connector Pins 3 and 4 This connector connects to the hard drive activity LED on control panel This LED will fl...

Страница 20: ...DF11 Connector Signal Name Pin Pin Signal Name DSR3 2 1 DCD3 RTS3 4 3 RXD3 CTS3 6 5 TXD3 RI3 8 7 DTR3 NC 10 9 Ground DSR4 12 11 DCD4 RTS4 14 13 RXD4 CTS4 16 15 TXD4 RI4 18 17 DTR4 NC 20 19 Ground J14...

Страница 21: ...R 6 5 LINEIN L Ground 8 7 JD LINEIN MIC In 10 9 MIC L Ground 12 11 JD MIC1 J20 COM2 RS232 Serial Port Signal Name Pin Pin Signal Name DCD Data carrier detect 1 2 RXD Receive data TXD Transmit data 3...

Страница 22: ...INSTALLATIONS 18 IB891 User s Manual This page is intentionally left blank...

Страница 23: ...n the AMI American Megatrends Inc BIOS that comes with the board The topics covered in this chapter are as follows BIOS Introduction 19 BIOS Setup 20 Main BIOS Setup 21 Advanced Settings 22 Advanced P...

Страница 24: ...iately activated Pressing the Del key immediately allows you to enter the Setup utility If you are a little bit late pressing the Del key POST Power On Self Test will continue with its test routines t...

Страница 25: ...sor Intel R Atom TM CPU N450 1 66GHz Speed 1666MHz Count 1 System Memory Size 1015MB System Time 17 00 00 System Date Fri 12 18 2009 Note If the system cannot boot after making and saving system chang...

Страница 26: ...ystem to malfunction CPU Configurations IDE Configuration Super IO Configuration Hardware Health Configuration ACPI Configuration AHCI Configuration APM Configuration USB Configuration The Advanced BI...

Страница 27: ...the following CPU details Manufacturer the name of the CPU manufacturer Brand String the brand name of the CPU being used Frequency the CPU processing speed FSB Speed the FSB speed Cache L1 the CPU L1...

Страница 28: ...Write Protect Disabled IDE Detect Time Out Sec 35 ATA PI 80Pin Cable Detection Host Device The IDE Configuration menu is used to change and or set the configuration of the IDE devices installed in th...

Страница 29: ...75 C 167 F 80 C 176 F 85 C 185 F 90 C 194 F 95 C 203 F Select Screen Select Item Change Field Tab Select Field F1 General Help F10 Save and Exit ESC Exit System Temperature 51 C 123 F CPU Temperature...

Страница 30: ...CPI Configuration Select the ACPI state used for System Suspend Select Screen Select Item Change Field F1 General Help F10 Save and Exit ESC Exit Suspend mode S1 POS Suspend Mode The options of this f...

Страница 31: ...o detect the presence of IDE device This displays the status of auto detection of IDE devices Select Screen Select Item Change Field F1 General Help F10 Save and Exit ESC Exit AHCI Port0 Not Detected...

Страница 32: ...ity on the RI ring in modem line to wake up the system from a suspend or standby state That is the system will be awakened by an incoming call on a modem Resume on PME This option is used enable activ...

Страница 33: ...USB1 1 HC Support Enabled The USB Configuration menu is used to read USB configuration information and configure the USB settings Legacy USB Support Enables support for legacy USB AUTO option disable...

Страница 34: ...ay O S No Allocate IRQ to PCI VGA Yes IRQ3 Available IRQ4 Available IRQ5 Available IRQ7 Available IRQ9 Available IRQ10 IRQ11 IRQ14 IRQ15 DMA Channel 0 DMA Channel 1 DMA Channel 3 DMA Channel 5 DMA Cha...

Страница 35: ...m Change Field F1 General Help F10 Save and Exit ESC Exit Quick Boot Enabled Quiet Boot Disabled AddOn ROM Display Mode Force BIOS Bootup Num Lock On PS 2 Mouse Support Auto Wait for F1 If Error Enabl...

Страница 36: ...e Wait for F1 If Error When set to Enabled the system waits for the F1 key to be pressed when error occurs This allows option ROM to trap interrupt 19 Hit DEL Message Display This displays Press DEL t...

Страница 37: ...ng you to type it again After setting a password the screen automatically returns to the main screen To disable a password just press the Enter key when you are prompted to enter the password A messag...

Страница 38: ...system to malfunction North Bridge Configuration South Bridge Configuration BIOS SETUP UTILITY Chipset North Bridge Chipset Configuration Options Enabled Disabled Select Screen Select Item Enter Go to...

Страница 39: ...Exit DVMT Mode Select DVMT Mode DVMT FIXED Memory 256MB Boot Display Device CRT Flat Panel Type 1024x768 Spread Spectrum Clock Disabled DVMT Mode Select Select the control mode of memory built in grap...

Страница 40: ...to PCIE Port 4 Auto PCIE Port 5 Disabled PCIE High Priority Port Disabled PCIE Port 0 IOxAPIC Enable Disabled PCIE Port 1 IOxAPIC Enable Disabled PCIE Port 2 IOxAPIC Enable Disabled PCIE Port 3 IOxAPI...

Страница 41: ...ne whether or not to accept the modifications and save all changes into the CMOS memory before exit Discard Changes and Exit This option allows you to exit the Setup utility without saving the changes...

Страница 42: ...BIOS SETUP 38 IB891 User s Manual This page is intentionally left blank...

Страница 43: ...endor where you made the purchase The contents of this section include the following Intel Chipset Software Installation Utility 40 Intel Pineview Chipset Family Graphics Driver Installation 42 Realte...

Страница 44: ...chipset components Follow the instructions below to complete the installation under Windows XP Vista 7 1 Insert the drivers DVD into the DVD drive Click Intel and then Intel R Pineview Chipset Driver...

Страница 45: ...ceed with the installation process 4 On the Readme Information screen click Next to continue When the Setup Progress screen appears click Next to continue 5 The Setup process is now complete Click Fin...

Страница 46: ...s below to proceed with the installation 1 Insert the drivers DVD into the DVD drive Click Intel and then Intel R Pineview Chipset Drivers Click Intel R Pineview Chipset Family Graphics Driver 2 When...

Страница 47: ...icense agreement and continue the installation 4 Click Next in the Readme File Information window 5 Click Next in the Setup Progress window 6 Setup is now complete Click Finish to restart the computer...

Страница 48: ...n Intel R Pineview Chipset Drivers Click Realtek High Definition Codec Audio Driver 2 When the welcome screen to InstallShield Wizard for Realtek High Definition Audio Driver appears click Next to sta...

Страница 49: ...ive Click LAN Card and then Realtek LAN Controller Drivers Click Realtek RTL8111DL LAN Drivers 2 In the welcome screen of the InstallShield Wizard for REALTEK GbE FE Ethernet PCI E NIC Driver click Ne...

Страница 50: ...DRIVERS INSTALLATION 46 IB891 User s Manual This page is intentionally left blank...

Страница 51: ...ler 1 040h 05Fh Timer 060h 06Fh Keyboard Controller 070h 07Fh Real Time Clock NMI 080h 09Fh DMA Page Register 0A0h 0BFh Interrupt Controller 2 0C0h 0DFh DMA Controller 2 0F0h Clear Math Coprocessor Bu...

Страница 52: ...ed The following table shows the IRQ used by the devices on board Level Function IRQ0 System Timer Output IRQ1 Keyboard IRQ2 Interrupt Cascade IRQ3 Serial Port 2 IRQ4 Serial Port 1 IRQ5 Reserved IRQ6...

Страница 53: ...W627UHG 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...

Страница 54: ...ck_W627UHG outportb W627UHG_INDEX_PORT W627UHG_REG_LD outportb W627UHG_DATA_PORT LD Lock_W627UHG void Set_W627UHG_Reg unsigned char REG unsigned char DATA Unlock_W627UHG outportb W627UHG_INDEX_PORT RE...

Страница 55: ...ILITY AND OR FITNESS FOR A PARTICULAR PURPOSE ifndef __W627UHG_H define __W627UHG_H 1 define W627UHG_INDEX_PORT W627UHG_BASE define W627UHG_DATA_PORT W627UHG_BASE 1 define W627UHG_REG_LD 0x07 define W...

Страница 56: ...de W627UHG H int main void void WDTInitial void void WDTEnable unsigned char void WDTDisable void int main void char SIO SIO Init_W627UHG if SIO 0 printf Can not detect Winbond 83627UHG program abort...

Страница 57: ...Get_W627UHG_Reg 0xF5 bBuf 0x08 Set_W627UHG_Reg 0xF5 bBuf count mode is second Set_W627UHG_Reg 0xF6 NewInterval set timer void WDTDisable void Set_W627UHG_LD 0x08 Set_W627UHG_Reg 0xF6 0x00 clear watch...

Страница 58: ...OF MERCHANTABILITY AND OR FITNESS FOR A PARTICULAR PURPOSE ifndef __W627UHG_H define __W627UHG_H 1 define W627UHG_INDEX_PORT W627UHG_BASE define W627UHG_DATA_PORT W627UHG_BASE 1 define W627UHG_REG_LD...

Страница 59: ...HG void unsigned int Init_W627UHG void unsigned int result unsigned char ucDid W627UHG_BASE 0x4E result W627UHG_BASE ucDid Get_W627UHG_Reg 0x20 if ucDid 0xA2 W83627UHG goto Init_Finish W627UHG_BASE 0x...

Страница 60: ...UHG void Set_W627UHG_Reg unsigned char REG unsigned char DATA Unlock_W627UHG outportb W627UHG_INDEX_PORT REG outportb W627UHG_DATA_PORT DATA Lock_W627UHG unsigned char Get_W627UHG_Reg unsigned char RE...

Страница 61: ...void Dio5Initial void void Dio5SetOutput unsigned char unsigned char Dio5GetInput void void Dio5SetDirection unsigned char unsigned char Dio5GetDirection void int main void char SIO SIO Init_W627UHG...

Страница 62: ...ogic device 8 Set_W627UHG_Reg 0xE1 NewData unsigned char Dio5GetInput void unsigned char result Set_W627UHG_LD 0x08 switch to logic device 8 result Get_W627UHG_Reg 0xE1 return result void Dio5SetDirec...

Отзывы: