background image

INSTALLATIONS 

                              MB941 User’s Manual 

21 

 
J9: USB4/USB5 Connector 

 

 

 

Signal Name  Pin  Pin  Signal Name 

Vcc 

Vcc 

D- 

D- 

D+ 

D+ 

Ground 

Ground 

 

Protect Pin 

10 

NC 

 

J10: USB6/USB7 Connector 

 

 

 

Signal Name  Pin  Pin  Signal Name 

Vcc 

Vcc 

D- 

D- 

D+ 

D+ 

Ground 

Ground 

 

Protect Pin 

10 

NC 

 

 
J11: SPI Debug Tools Port

 (Factory use only) 

 

 

PCI1, PCI2: PCI Slot 
 

 

 

PCIE1: x16 PCI Express Slot 
 
PCIE2: x1 PCI Express Slot 
 

Summary of Contents for MB941

Page 1: ...MB941 LGA775 Core 2 Duo Intel G41 Chipset Micro ATX Motherboard USER S MANUAL Version 1 0 ...

Page 2: ...usiness Machines Corporation Intel is a trademark or registered trademark of Intel Corporation Microsoft Windows is a registered trademark of Microsoft Corporation Winbond is a registered trademark of Winbond Electronics Corporation All other product names or trademarks are properties of their respective owners ...

Page 3: ...ting the Jumpers 8 Connectors on MB941 11 BIOS Setup 22 Drivers Installation 44 Intel Chipset Software Installation Utility 45 Intel G41 Chipset Family Graphics Driver Installation 48 Realtek High Definition Audio Driver Installation 51 Realtek LAN Controller Drivers Installation 53 Appendix 55 A I O Port Address Map 55 B Interrupt Request Lines IRQ 56 C Watchdog Timer Configuration 57 D Digital I...

Page 4: ...iv MB941 User s Manual This page is intentionally left blank ...

Page 5: ...motherboard package should include the items listed below The MB941 motherboard This User s manual 1x SATA cable SATA 5 1x COM port cable PK1 56 1x USB cable USB2 9 1x DVD containing the following Chipset Drivers Flash Memory Utility Remarks PK1 20B dual port COM cable is optional ...

Page 6: ...comes to life with the onboard Intel G41 integrated graphics with CRT LAN functionality is supported with two Gigabit Ethernet controllers MB941 is supports high end features including high definition audio eight fast USB ports four SATAII watchdog timer digital I O and four serial ports Board dimensions are 244mm by 244mm MB941 FEATURES Supports Intel Core 2 Quad Core 2 Duo Pentium Dual Core Cele...

Page 7: ...RS232 COM4 RS232 with pin 9 with power for 4 ports 500 mA for each port CPU fan connector supports 4 wire fan with PWM control System fan connector x1 DC fan control System fan connector x1 w o control Supports two thermal sensor CPU on board Voltage monitoring for VCC processor 3 3V 5V and 12V Hardware monitor 2 thermal inputs 4 voltage monitor inputs VID0 4 1 x fan header Digital IO 4 in 4 out E...

Page 8: ...INSTALLATIONS 4 MB941 User s Manual Board Dimensions ...

Page 9: ...section provides information on how to use the jumpers and connectors on the MB941 in order to set up a workable system The topics covered are Installing the CPU 6 ATX Power Installation 6 Installing the Memory 7 Setting the Jumpers 8 Connectors on MB941 11 ...

Page 10: ...he CPU socket Please note that the cover of the LGA775 socket must always be installed during transport to avoid damage to the socket ATX Power Installation The system power is provided to the motherboard with the ATX1 and ATX2 power connectors ATX1 is a 24 pin power connector and ATX2 is a 8 pin 12V power connector The 24 pin power connector can to be connected to a standard 20 pin ATX power conn...

Page 11: ...ly the system memory interface has the following features Supports two 64 bit wide DDR data channels Available bandwidth up to 6 4GB s DDR3 1066 for two channel mode Supports 512Mb 1Gb 2Gb DDR3 technologies Supports only x8 x16 DDR3 devices with four banks Supports only unbuffered DIMMs Supports opportunistic refresh Up to 32 simultaneously open pages four per row four rows maximum ...

Page 12: ...cording to your needs and applications Contact your supplier if you have doubts about the best configuration for your needs The following lists the connectors and their respective functions Jumper Locations on MB941 9 JP2 JP1 JP7 JP6 COM1 2 3 4 RS232 5V 12V Power Setting 10 JP3 JP4 JP5 RS232 422 485 COM1 Selection 10 JP8 Clear CMOS Contents 10 ...

Page 13: ...INSTALLATIONS MB941 User s Manual 9 Jumper Locations on MB941 DDRⅢ 2 DDRⅢ 1 JP2 JP1 JP7 JP6 COM1 2 3 4 RS232 5V 12V Power Setting JP3 JP4 JP5 RS232 422 485 COM1 Selection JP8 Clear CMOS Contents ...

Page 14: ...ectable for RS232 RS 422 and RS 485 COM1 Function RS 232 RS 422 RS 485 Jumper Setting pin closed JP3 1 2 JP4 3 5 4 6 JP5 3 5 4 6 JP3 3 4 JP4 1 3 2 4 JP5 1 3 2 4 JP3 5 6 JP4 1 3 2 4 JP5 1 3 2 4 JP8 Clear CMOS Contents Use JP8 a 3 pin header to clear the CMOS contents Note that the ATX power connector should be disconnected from the motherboard before clearing CMOS JP8 Setting Function Pin 1 2 Short...

Page 15: ... 2 Keyboard and PS 2 Mouse Connectors 15 CN2 COM1 RS232 RS422 RS485 Connector 15 CN3 Parallel Port Connector 16 CN4 VGA CRT Connector 16 CN5 Audio Connector 17 CN6 Gigabit RJ 45 USB 0 1 Connector 17 CN7 Gigabit RJ 45 USB 2 3 Connector 17 CN8 CN9 CN10 CN11 SATA HDD Connectors 17 J1 COM2 RS232 Serial Port 17 J2 For LPC I F Adaptor Card 17 J3 Digital I O Connector 4 in 4 out 18 J4 COM3 COM4 Serial Po...

Page 16: ...3 Parallel Port Connector CN4 VGA CRT Connector CN5 Audio Connector CN6 GbE RJ 45 and USB0 1 Connector CN7 GbE RJ 45 and USB2 3 Connector CN11 CN9 CN10 CN8 SATA0 1 2 3 Connector J1 COM2 RS232 Serial Port DF11 Connector J2 For LPC I F Adaptor Card J3 Digital I O Connector 4 in 4 out J4 COM3 COM4 Serial Port DF11 Connector J5 Compact Flash Connector J6 Audio CD IN Header J7 Audio Front Header J8 Sys...

Page 17: ...21 9 5VSB 5V 22 10 12V 5V 23 11 12V Ground 24 12 3 3V ATX2 ATX 12V Power Connector This connector supplies the CPU operating voltage Signal Name Pin Pin Signal Name 12V 5 1 Ground 12V 6 2 Ground 12V 7 3 Ground 12V 8 4 Ground DDRIII1 Channel A DDR3 Socket DDRIII2 Channel B DDR3 Socket FAN2 CPU Fan Power Connector Pin Signal Name 1 Ground 2 12V 3 Rotation detection 4 Control FAN1 System Fan1 Power C...

Page 18: ...INSTALLATIONS 14 MB941 User s Manual 3 Rotation detection ...

Page 19: ...al Pin Mouse Signal Keyboard data 1 Mouse data N C 2 N C GND 3 GND 5V 4 5V Keyboard clock 5 Mouse clock N C 6 N C CN2 COM1 RS232 RS422 RS485 Connector Pin Signal Name RS 232 R2 422 RS 485 1 DCD TX DATA 2 RX TX DATA 3 TX RX NC 4 DTR RX NC 5 Ground Ground Ground 6 DSR NC NC 7 RTS NC NC 8 CTS NC NC 9 RI NC NC 10 NC NC NC Pin Signal Name 1 Ground 2 12V 3 NC ...

Page 20: ...in PD3 parallel data 3 5 18 Ground PD4 parallel data 4 6 19 Ground PD5 parallel data 5 7 20 Ground PD6 parallel data 6 8 21 Ground PD7 parallel data 7 9 22 Ground ACK acknowledge 10 23 Ground Busy 11 24 Ground Paper empty 12 25 Ground Select 13 N A N A CN4 VGA CRT Connector CN4 is a DB 15 VGA connector The following table shows the pin out assignments of this connector Signal Name Pin Pin Signal N...

Page 21: ...Connectors Pin Signal Name 1 Ground 2 TX 3 TX 4 Ground 5 RX 6 RX 7 Ground J1 COM2 RS232 Serial Port Signal Name Pin Pin Signal Name DCD Data carrier detect 1 2 RXD Receive data TXD Transmit data 3 4 DTR Data terminal ready GND ground 5 6 DSR Data set ready RTS Request to send 7 8 CTS Clear to send RI Ring indicator 9 10 Not Used J2 For LPC I F Adaptor Card ...

Page 22: ...Ground 1 2 5V Out3 3 4 Out1 Out2 5 6 Out0 IN3 7 8 IN1 IN2 9 10 IN0 J4 COM3 COM4 Serial Port 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 J5 Compact Flash Socket J6 Audio CD In Connector Pin Signal Name 1 CD Audio L 2 Ground 3 Ground 4 CD Audio R ...

Page 23: ...ors that provide light indication of the computer activities and switches to change the computer status J8 is a 20 pin header that provides interfaces for the following functions Hard Disk Drive LED Reset Switch Not Defined ATX Power On Switch Not Defined Power LED Speaker Speaker Pins 1 4 This connector provides an interface to a speaker for audio tone generation An 8 ohm speaker is recommended P...

Page 24: ...he case When pressed the power switch will force the system to power on When pressed again it will force the system to power off Reset Switch Pins 9 and 19 The reset switch allows the user to reset the system without turning the main power switch off and then on again Orientation is not required when making a connection to this header Hard Disk Drive LED Connector Pins 10 and 20 This connector con...

Page 25: ...1 2 Vcc D 3 4 D D 5 6 D Ground 7 8 Ground Protect Pin 9 10 NC J10 USB6 USB7 Connector Signal Name Pin Pin Signal Name Vcc 1 2 Vcc D 3 4 D D 5 6 D Ground 7 8 Ground Protect Pin 9 10 NC J11 SPI Debug Tools Port Factory use only PCI1 PCI2 PCI Slot PCIE1 x16 PCI Express Slot PCIE2 x1 PCI Express Slot ...

Page 26: ...ettings available in the AMI BIOS that comes with the board The topics covered in this chapter are as follows BIOS Introduction 23 BIOS Setup 23 Main BIOS Setup 24 Advanced Settings 25 PCIPnP Settings 34 Boot Settings 36 Security Settings 38 Advanced Chipset Settings 39 Exit Setup 43 ...

Page 27: ...diately 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 thus preventing you from invoking the Setup If you still wish to enter Setup restart the system by pressing the Reset button or simultaneously pressing the Ctrl Alt and Delete keys You can also restar...

Page 28: ...sor Intel R Core TM 2 cpu 6400 2 13GHz Speed 2133MHz Count 1 System Memory Size 2014MB System Time 02 29 50 System Date Fri 01 02 2009 Note If the system cannot boot after making and saving system changes with Setup the AMI BIOS supports an override to the CMOS settings that resets your system to its default Warning It is strongly recommended that you avoid making any changes to the chipset defaul...

Page 29: ...ACPI Configuration APM Configuration EUP Power Saving Controller MPS Configuration Smbios Configuration USB Configuration The Advanced BIOS Settings contains the following sections CPU Configurations IDE Configuration SuperIO Configuration Hardware Health Confguration ACPI Configuration APM Configuration EUP Power Saving Controller MPS Configuration Smbios Configuration USB Configuration The field...

Page 30: ...equency 2 13GHz FSB Speed 1068MHz Cache L1 64KB Cache L2 2048KB Ratio Actual Value 8 Max CPU ID Value Limit Intel R Virtualization Tech Disabled Enabled Execute Disabled Bit Capability Enabled Core Multi Processing Enabled PECI Enabled The CPU Configuration menu shows the following CPU details Manufacturer the name of the CPU manufacturer Brand String the brand name of the CPU being used Frequency...

Page 31: ...d in the system BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Chipset Exit Configure Win627UHG Super IO Chipset Select Screen Select Item Change Field Tab Select Field F1 General Help F10 Save and Exit ESC Exit Serial Port1 Address 3F8 IRQ4 Serial Port2 Address Serial Port2 Mode Serial Port3 Address Serial Port3 IRQ Select Serial Port4 Address Serial Port4 IRQ Select Parallel Port Address ...

Page 32: ...unction SPP Standard Printer Port EPP Enhanced Parallel Port ECP Extended Capabilities Port ECP EPP Combination of ECP and EPP capabilities Normal Normal function Restore on AC Power Loss This field sets the system power status whether on or off when power returns to the system from a power failure situation ...

Page 33: ...N Mode Setting SYSTEM PWM Control CPUFAN0 Mode Setting CPUFAN0 PWM Control Manual Mode 256 Manual Mode 256 ACPI Shutdown Temperature Disabled The Hardware Health Configuration menu is used to show the operating temperature fan speeds and system voltages ACPI Shutdown Temperature The system will shut down automatically under OS with ACPI mode when the CPU temperature reaches the configured temperat...

Page 34: ...CPI Configuration General ACPI Configuration settings Select Screen Select Item Change Field Tab Select Field F1 General Help F10 Save and Exit ESC Exit Suspend mode S3 STR Repost Video on S3 Resume No Suspend Mode The options of this field are S1 S3 and Auto Repost Video on S3 Resume The default setting is No ...

Page 35: ...g Disabled Resume On PME Disabled Resume On RTC Alarm Disabled Resume on Ring This option is used to enable activity 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 activity on the PCI PME power managementevent controller to wake up the system from a suspen...

Page 36: ... This option is specifies the MPS Multiprocessor Specification version for your operating system BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Chipset Exit SMBIOS Configuration SMBIOS SMI Wrapper support for PnP Func 50h 54h Select Screen Select Item Change Field Tab Select Field F1 General Help F10 Save and Exit ESC Exit Smbios SMI Support Enabled SMBIOS SMI Support Use the SMBIOS SMI Sup...

Page 37: ...B Support Enabled USB 2 0 Controller Mode HiSpeed BIOS EHCI Hand Off Enabled The USB Configuration menu is used to read USB configuration information and configure the USB settings Legacy USB Support This option is used to enable the USB mouse and USB keyboard support This option is enabled by default USB 2 0 Controller Mode This option is used to control USB device in HiSpeed 480Mbps or FullSpeed...

Page 38: ...E BusMaster Off Board PCI ISA IDE Card Enabled Auto 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 Channel 6 DMA Channel 7 Reserved Memory Size Available Available Available Available Available Available Available Available Available Available Disabled Clear NVRAM This item is used for c...

Page 39: ...s the PCI devices that an ISA graphics device is installed in the system so the card will function correctly PCI IDE BusMaster This uses PCI busmastering for BIOS reading writing to IDE devices OffBoard PCI ISA IDE Card Some PCI IDE cards may require this to be set to the PCI slot number that is holding the card IRQ Use the IRQ address to specify what IRQs can be assigned to a particular periphera...

Page 40: ...errupt 19 Capture Enabled Disabled Quick Boot This allows BIOS to skp certain tests while booting This will decrease the time needed to boot the system Quite Boot When disabled this displays normal POST messages When enabled this displays OEM Logo instead of POST messages AddOn ROM Display Mode This allows user to force BIOS Option ROM of add on cards to be displayed during quiet boot Bootup Num L...

Page 41: ...BIOS SETUP MB941 User s Manual 37 Interrupt 19 Capture This allows option ROM to trap interrupt 19 ...

Page 42: ...o 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 message will confirm the password to be disabled Once the password is disabled the system will boot and you can enter Setup freely BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Chipset Exit Security Setting...

Page 43: ...ced PCIPnP Boot Security Chipset Exit North Bridge Chipset Configuration ENABLE Allow Remapping of Overlapped PCI memory above the total physical memory DISABLE Do not allow remapping of memory Select Screen Select Item Change Field Tab Select Field F1 General Help F10 Save and Exit ESC Exit Memory Remap Feature Enabled PCI MMIO Allocation 4GB To 3072MB DRAM Frequency Auto Configure DRAM Timing by...

Page 44: ...Mode Select Use the feature to set the amount of system memory to be used by the Internal Graphics Devices expansion cards that require a specified area of memory to work properly IGD GTT Graphics memory size This feature allows the user to select the IGD GTT Graphics Size The Default setting is No VT Mode 2 MB PAVP Mode Use the feature to select the Protect Audio Video Path Mode Video Function Co...

Page 45: ...BIOS SETUP MB941 User s Manual 41 ...

Page 46: ... F10 Save and Exit ESC Exit USB Function 6 USB Ports USB 2 0 Controller Disabled Audio Controller Auto SMBUS Controller Enabled SLP_S4 Min Assertion Width 4 to 5 seconds Enabled Onboard PCI option ROM Disabled USB Function This option enables the number of USB ports desired or disables the USB function USB 2 0 Controller This option is disabled by default Audio Controller This option is used to en...

Page 47: ...ot 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 you have made in this session Discard Changes This option allows you to discard all the changes that you have made in this session Load Optimal Defaults This option allows you to load the default values to your sys...

Page 48: ... vendor where you made the purchase The contents of this section include the following Intel Chipset Software Installation Utility 45 Intel G41 Chipset Family Graphics Driver Installation 48 Realtek High Definition Audio Driver Installation 51 Realtek LAN Controller Drivers Installation 53 IMPORTANT NOTE After installing your Windows operating system Windows XP Vista you must install first the Int...

Page 49: ... first before the software drivers to enable Plug Play INF support for Intel chipset components Follow the instructions below to complete the installation under Windows XP Vista 1 Insert the CD that comes with the board Click Intel at the left side then Intel R G41 Chipset Drivers 2 Click Intel R Chipset Software Installation Utility ...

Page 50: ... MB941 User s Manual 3 When the welcome screen to the Intel R Chipset Software Installation Utility appears click Next to continue 4 Click Yes to accept the software license agreement and proceed with the installation process ...

Page 51: ...INSTALLATION MB941 User s Manual 47 5 On Readme Information screen click Next to continue the installation 6 The Setup process is now complete Click Finish to restart the computer and for changes to take effect ...

Page 52: ...ly Graphics Driver Installation To install the VGA drivers follow the steps below to proceed with the installation 1 Insert the CD that comes with the board Click Intel at the left side then Intel R G41 Chipset Drivers 2 Click Intel G41 Chipset Family Graphics Driver ...

Page 53: ...LATION MB941 User s Manual 49 3 When the welcome screen of the Intel R Graphics Media Accelerator Driver appears click Next to continue 4 Click Yes to to agree with the license agreement and continue the installation ...

Page 54: ...LLATION 50 MB941 User s Manual 5 Click Next in the Readme File Information window 6 Click Next in the Setup Progress window 7 Setup is now complete Click Finish to restart the computer and for changes to take effect ...

Page 55: ...tek High Definition Audio Driver Installation Follow the steps below to install the Realtek HD Codec Audio Drivers 1 Insert the CD that comes with the board Click Intel and then Intel R G41 Chipset Drivers 2 Click Realtek High Definition Audio Driver ...

Page 56: ... InstallShield Wizard for Realtek High Definition Audio Driver appears click Next to start the installation 4 When the InstallShieldWizard has finished performing maintenance operations on Realtek High Definition Codec Audio Audio Driver click Finish to restart the computer ...

Page 57: ...Realtek LAN Controller Drivers Installation Follow the steps below to install the Realtek LAN Drivers 1 Insert the CD that comes with the board Click Intel then LAN Card and then Realtek Lan Controller Drivers 2 Click Realtek RTL8111E LAN Drivers ...

Page 58: ...LATION 54 MB941 User s Manual 3 When the welcome screen to InstallShield Wizard appears click Next to start the installation 4 When the InstallShieldWizard has finished installing the Realtek LAN drivers click Finish ...

Page 59: ...imer 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 Busy Signal 0F1h Reset Math Coprocessor 1F0h 1F7h IDE Interface 278h 27Fh Parallel Port 2 LPT2 2F8h 2FFh Serial Port 2 COM2 2B0h 2DFh Graphics adapter Controller 378h 3FFh Parallel Port 1 LPT1 360h 36Fh Network Ports 3B...

Page 60: ... 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 Reserved IRQ7 Parallel Port 1 IRQ8 Real Time Clock IRQ9 Reserved IRQ10 Serial Port 4 IRQ11 Serial Port 3 IRQ12 PS 2 Mouse IRQ13 80287 IRQ14 Primary IDE ...

Page 61: ...e 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 FOR A PARTICULAR PURPOSE include W627UHG H include dos h unsigned int W627UHG_BASE void Unlock_W627UHG void void Lock_W627UHG void unsigned int Init_W627UHG void unsigned int result unsigned char ucD...

Page 62: ...ock_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 REG outportb W627UHG_DATA_PORT DATA Lock_W627UHG unsigned char Get_W627UHG_Reg unsigned char REG unsigned char Result Unlock_W627UHG outportb W627UHG_INDEX_PORT REG Result inportb W627UHG_DATA_PORT Loc...

Page 63: ...BILITY 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 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 ch...

Page 64: ...627UHG 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 n return 1 WDTInitial WDTEnable 10 WDTDisable return 0 void WDTInitial void unsigned char bBuf Set_W627UHG_LD 0x08 switch to logic device 8 bBuf Get_W627UHG_Reg 0x30 bBuf 0x01 Set_W627UHG_Reg 0x30 bBuf En...

Page 65: ...t_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 watchdog timer Set_W627UHG_Reg 0x30 0x00 watchdo ...

Page 66: ... 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 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_Re...

Page 67: ...UHG 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 0x2E result W627UHG_BASE ucDid Get_W627UHG_Reg 0x20 if ucDid 0xA2 W83627UHG goto Init_Finish W627UHG_BASE 0x00 result W627UHG_BASE Init_Finish return result void Unlock_W627UHG void outportb W627UHG_IN...

Page 68: ...7UHG 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 REG unsigned char Result Unlock_W627UHG outportb W627UHG_INDEX_PORT REG Result inportb W627UHG_DATA_PORT Lock_W627UHG return Result ...

Page 69: ...d 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 if SIO 0 printf Can not detect Winbond 83627UHG program abort n return 1 Dio5Initial for GPIO50 57 Dio5SetDirection 0x0F GP50 53 input GP54 57 output printf Current DIO direction 0x X n Dio5GetDirect...

Page 70: ...logic 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 Dio5SetDirection unsigned char NewData NewData 1 for input 0 for output Set_W627UHG_LD 0x08 switch to logic device 8 Set_W627UHG_Reg 0xE0 NewData unsigned char Dio5GetDirection void unsigned char result Set_W627...

Reviews: