background image

INSTALLATIONS

 

18

 

MI889 User’s Manual

 

 
J13: USB7/USB8 Connector 

 

 

 

 

Signal Name  Pin  Pin  Signal Name 

Vcc 

Ground 

D- 

D+ 

D+ 

D- 

Ground 

Vcc 

 
IDE1: 40-pin  IDE Connectors 

  

IDE1 

Signal Name 

Pin # 

Pin # 

Signal Name 

Reset IDE 

Ground 

Host data 7 

Host data 8 

Host data 6 

Host data 9 

Host data 5 

Host data 10 

Host data 4 

10 

Host data 11 

Host data 3 

11 

12 

Host data 12 

Host data 2 

13 

14 

Host data 13 

Host data 1 

15 

16 

Host data 14 

Host data 0 

17 

18 

Host data 15 

Ground 

19 

20 

Protect pin 

DRQ0 

21 

22 

Ground 

Host IOW 

23 

24 

Ground 

Host IOR 

25 

26 

Ground 

IOCHRDY 

27 

28 

Host ALE 

DACK0 

29 

30 

Ground 

IRQ14 

31 

32 

No connect 

Address 1 

33 

34 

No connect 

Address 0 

35 

36 

Address 2 

Chip select 0 

37 

38 

Chip select 1 

Activity 

39 

40 

Ground 

 
 
J15: Audio Connector (DF11 Connector) 

 

 

Signal Name 

Pin # 

Pin # 

Signal Name 

LINEOUT_R 

LINEOUT_L 

Ground 

JD_FRONT 

LINEIN_R 

LINEIN_L 

Ground 

JD_LINEIN 

MIC-In 

10 

MIC_L 

Ground 

12 

11 

JD_MIC1 

 
J16: LPC Debug Purpose (factory use only) 
 
PCIE1: PCIE  X8 Slot (supports PCIE X4) 

Содержание MI889

Страница 1: ... D ICH8M D ICH8M D ICH8M D ICH8M Luna Luna Luna Luna Pier Luna Pier Luna Pier Luna Pier Luna Pier Refresh Platform Pier Refresh Platform Pier Refresh Platform Pier Refresh Platform MiniITX Motherboard MiniITX Motherboard MiniITX Motherboard MiniITX Motherboard USER S MANUAL USER S MANUAL USER S MANUAL USER S MANUAL Version 1 0 ...

Страница 2: ...rnational Business Machines Corporation Intel and Atom are registered trademarks 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 ...

Страница 3: ...889 11 BIOS SETUP 21 Drivers Installation 41 Intel Chipset Software Installation Utility 42 Intel Pineview Chipset Family Graphics Driver Installation44 Realtek High Definition Codec Audio Driver Installation46 Realtek RTL8111DL LAN Drivers Installation 47 Appendix 49 A I O Port Address Map 49 B Interrupt Request Lines IRQ 52 C Watchdog Timer Configuration 53 D Digital I O Sample Code 58 ...

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

Страница 5: ...INSTALLATIONS MI889 User s Manual 1 Introduction MI889 MINI ITX MOTHERBOARD MI889 EDGE CONNECTORS ...

Страница 6: ... s Manual Checklist Your MI889 package should include the items listed below The MI889 Intel Atom Mini ITX motherboard This User s Manual 1 CD containing chipset drivers and flash memory utility Cables IDE cable Serial ATA cable ...

Страница 7: ...lt in one channel Ultra DMA 33 66 100 for IDE x 1 Audio Intel ICH8M built in audio controller w Realtek ALC662 Codec Supports 5 1 CH audio Line out Line in MIC LPC I O Winbond W83627UHG COM1 RS232 422 485 COM2 4 RS232 only Hardware monitor 2 thermal inputs 4 voltage monitor inputs VID0 4 1 x Fan Header Digital IO 4 in 4 out Keyboard Mouse Connector Yes Expansion Slots PCI Express x8 slot x1 x4 Lin...

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

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

Страница 10: ...Modules To install the DDR2 modules locate the memory slot on the board and perform the following steps 1 Hold the DDR2 module so that the key of the DDR2 module align with those on the memory slot 2 Gently push the DDR2 module in an upright position until the clips of the slot close to hold the DDR2 module in place when the DDR2 module touches the bottom of the slot 3 To remove the DDR2 module pr...

Страница 11: ...t the best configuration for your needs The following lists the connectors on MI889 and their respective functions Jumper Locations on MI889 8 JP1 LCD Panel Power Selection 9 JP3 JP4 JP5 RS232 422 485 COM1 Selection 9 JP6 COM1 RS232 RI 5V 12V Power Setting 9 JP8 COM4 RS232 RI 5V 12V Power Setting 9 JP9 COM3 RS232 RI 5V 12V Power Setting 10 JP7 COM4 RS232 RI 5V 12V Power Setting 10 JP11 Clear CMOS ...

Страница 12: ... on MI889 8 JP1 LCD Panel Power Selection 9 JP3 JP4 JP5 RS232 422 485 COM1 Selection 9 JP6 COM1 RS232 RI 5V 12V Power Setting 9 JP8 COM4 RS232 RI 5V 12V Power Setting 9 JP9 COM3 RS232 RI 5V 12V Power Setting 10 JP7 COM4 RS232 RI 5V 12V Power Setting 10 JP11 Clear CMOS Setting 10 ...

Страница 13: ...etting pin closed JP5 1 2 JP3 3 5 4 6 JP4 3 5 4 6 JP5 3 4 JP3 1 3 2 4 JP4 1 3 2 4 JP5 5 6 JP3 1 3 2 4 JP4 1 3 2 4 JP6 COM1 RS232 RI 5V 12V Power Setting JP6 Setting Function Pin 1 2 Short Closed 12V Pin 3 4 Short Closed RI Pin 5 6 Short Closed 5V JP8 COM4 RS232 RI 5V 12V Power Setting JP8 Setting Function Pin 1 2 Short Closed 12V Pin 3 4 Short Closed RI Pin 5 6 Short Closed 5V ...

Страница 14: ...9 Setting Function Pin 1 2 Short Closed 12V Pin 3 4 Short Closed RI Pin 5 6 Short Closed 5V JP7 COM4 RS232 RI 5V 12V Power Setting JP7 Setting Function Pin 1 2 Short Closed 12V Pin 3 4 Short Closed RI Pin 5 6 Short Closed 5V JP11 Clear CMOS Setting JP11 Setting Normal Clear CMOS ...

Страница 15: ... and USB3 4 Ports 14 CN9 10 100 1000 RJ 45 and USB5 6 Ports 14 CN7 Line in Line out Microphone Connector 14 ATX1 ATX Power Supply Connector 15 J1 LCD Backlight Connector 15 J3 LVDS 18bit Connectors 15 J4 DDR2 SO DIMM 15 J5 Digital I O 16 J6 COM2 RS232 COM3 RS232 Serial Port 16 J7 COM4 RS232 Serial Port 16 J8 Power LED 16 J9 System Function Connector 17 J10 SPI Flash Connector factory use only 17 J...

Страница 16: ...INSTALLATIONS 12 MI889 User s Manual Connector Locations on MI889 ...

Страница 17: ...e Signal Name Keyboard data 1 1 Mouse data N C 2 2 N C GND 3 3 GND 5V 4 4 5V Keyboard clock 5 5 Mouse clock N C 6 6 N C CN2 COM1 RS232 RS422 RS485 and VGA 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 ...

Страница 18: ... CN3 COM2 RS232 and COM3 RS232 Connector COM2 RS232 Signal Name Pin Pin Signal Name DCD 1 6 DSR RXD 2 7 RTS TXD 3 8 CTS DTR 4 9 RI GND 5 10 Not Used COM3 RS232 Signal Name Pin Pin Signal Name DCD 1 6 DSR RXD 2 7 RTS TXD 3 8 CTS DTR 4 9 RI GND 5 10 Not Used CN6 10 100 1000 RJ 45 and USB3 4 Ports CN9 10 100 1000 RJ 45 and USB5 6 Ports CN7 Line in Line out Microphone Connector ...

Страница 19: ...nd 17 7 Ground 5V 18 8 Power good 5V 19 9 5VSB 5V 20 10 12V J1 LCD Backlight Connector Pin Signal Name 1 12V 2 Backlight Enable 3 Brightness Control 4 Ground J3 LVDS 18bit Connectors The LVDS connectors on board Signal Name Pin Pin Signal Name TX0 2 1 TX0 Ground 4 3 Ground TX1 6 5 TX1 5V 3 3V 8 7 Ground NC 10 9 NC TX2 12 11 TX2 Ground 14 13 Ground TXC 16 15 TXC 5V 3 3V 18 17 ENABKL 12V 20 19 12V J...

Страница 20: ... NA 10 9 Ground DSR 12 11 DCD RTS 14 13 RXD CTS 16 15 TXD RI 18 17 DTR NA 20 19 Ground J7 COM4 RS232 Serial Port Signal Name Pin Pin Signal Name DCD Data carrier detect 1 6 DSR Data set ready RXD Receive data 2 7 RTS Request to send TXD Transmit data 3 8 CTS Clear to send DTR Data terminal ready 4 9 RI Ring indicator GND ground 5 10 Not Used J8 Power LED The power LED indicates the status of the m...

Страница 21: ...3 and 4 This connector connects to the hard drive activity LED on control panel This LED will flash when the HDD is being accessed Pin Signal Name 4 HDD Active 3 5V Reset Switch Pins 5 and 6 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 5V and 5VSB Signals Pins 7 a...

Страница 22: ...ta 13 Host data 1 15 16 Host data 14 Host data 0 17 18 Host data 15 Ground 19 20 Protect pin DRQ0 21 22 Ground Host IOW 23 24 Ground Host IOR 25 26 Ground IOCHRDY 27 28 Host ALE DACK0 29 30 Ground IRQ14 31 32 No connect Address 1 33 34 No connect Address 0 35 36 Address 2 Chip select 0 37 38 Chip select 1 Activity 39 40 Ground J15 Audio Connector DF11 Connector Signal Name Pin Pin Signal Name LINE...

Страница 23: ...TALLATIONS MI889 User s Manual 19 CN4 CN5 SATA Connectors FAN1 CPU Fan Power Connector This is a 3 pin header for system fans The fan must be a 12V 500mA Pin Signal Name 1 Ground 2 12V 3 Rotation detection ...

Страница 24: ...INSTALLATIONS 20 MI889 User s Manual This page is intentionally left blank ...

Страница 25: ...opics covered in this chapter are as follows BIOS Introduction 22 BIOS Setup 22 Main BIOS Setup 23 Advanced Settings 24 PCIPnP Settings 32 Boot Settings 33 Security Settings 35 Advanced Chipset Settings 36 Configure DRAM Timing by SPD 36 Exit Setup 39 Save Changes and Exit 39 Discard Changes and Exit 39 Discard Changes 39 Load Optimal Defaults 39 Load Failsafe Defaults 39 ...

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

Страница 27: ...ssor Intel R Atom TM CPU D510 1 66GHz Speed 1666MHz Count 1 System Memory Size 2038MB System Time 17 00 00 System Date Tue 05 25 2010 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 default...

Страница 28: ... system to malfunction CPU Configuration IDE Configuration Super IO Configuration Hardware Health Configuration ACPI Configuration AHCI Configuration APM Configuration USB Configuration The Advanced BIOS Settings contains the following sections CPU Configurations IDE Configuration Super IO Configuration Hardware Health Configuration ACPI Configuration AHCI Configuration APM Configuration USB Confi...

Страница 29: ...onfiguration menu shows 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 cache size Cache L2 the CPU L2 cache Max CPUID Value Limit Disabled for WindowsXP Execute Disable Bit Capability XD can prevent certain classes of malicious buffer overflow at...

Страница 30: ... Hard Disk 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 the system ATA IDE Configuration 1 Disabled 2 Compatible 3 Enhanced Configure SATA as 1 IDE Mode 2 AHCI Mode BIOS SETUP UTILITY Advanced Configure Win627UHG Super IO Chipset Allows BIOS to Sel...

Страница 31: ...5 C 167 F 80 C 176 F 85 C 185 F 90 C 194 F 95 C 203 F Select Screen Select Item Change Option Tab Select Field F1 General Help F10 Save and Exit ESC Exit System Temperature 42 C 107 F CPU Temperature 37 C 98 F CPU FAN Speed 6750 RPM Vcore 1 136 V 5VS 3VS 5 304 V 3 200 V 12 V 11 904 V 3 3V 3 408 V 1 5V 1 504V VBAT 3 536V ACPI Shutdown Temperature Disabled The Hardware Health Configuration menu is u...

Страница 32: ...CPI Configuration Select the ACPI state used for System Suspend Select Screen Select Item Change Option F1 General Help F10 Save and Exit ESC Exit Suspend mode S1 POS Suspend Mode The options of this field are S1 S3 and Auto BIOS SETUP UTILITY Advanced Advance ACPI Configuration Enable RSDP pointers to 64 bit Fixed System Description Tables Different ACPI version Has some addition Select Screen Se...

Страница 33: ...tect the presence of IDE device This displays the status of auto detection of IDE devices Select Screen Select Item Enter Go to Sub Screen F1 General Help F10 Save and Exit ESC Exit AHCI Port0 Not Detected AHCI Port1 Not Detected AHCI Port2 Not Detected BIOS SETUP UTILITY Advanced APM Configuration Enable or disable APM Select Screen Select Item Change Option F1 General Help F10 Save and Exit ESC ...

Страница 34: ...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 activity on the PCI PME power management event controller to wake up the system from a suspend or standby state Resume On RTC Alarm This option is used to specify the time the system should be awakened fro...

Страница 35: ...cy 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 disables legacy support if no USB devices are connected USB 2 0 Controller Mode Configures the USB 2 0 controller in HiSpeed 480Mbps or FullSpeed 12Mbps This option is enabled by HiSpeed BIOS EHCI Hand Off...

Страница 36: ...lay 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 Channel 6 DMA Channel 7 Reserved Memory Size Available Available Available Available Available Available Available Available Available Available Disabled Plug Play O S This lets BIOS configure all devic...

Страница 37: ...ge Option 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 Enabled Hit DEL Message Display Interrupt 19 Capture Enabled Disabled Quick Boot This allows BIOS to skip certain tests while booting This will decrease the time needed to boot the system Quite Boot When disabl...

Страница 38: ...se 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 to run Setup in POST Interrupt 19 Capture This allows option ROMs to trap interrupt 19 ...

Страница 39: ...ing 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 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 Securit...

Страница 40: ...cause system to malfunction North Bridge Configuration South Bridge Configuration BIOS SETUP UTILITY Chipset North Bridge Chipset Configuration Options Enabled Disabled Select Screen Select Item Change Option F1 General Help F10 Save and Exit ESC Exit PCI MMIO Allocation 4GB To 3072MB Configure DRAM Timing by SPD Enabled Initiate Graphics Adapter IGD Internal Graphics Mode Select Enabled 8MB PEG P...

Страница 41: ...it 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 graphics capabilities This option by default is set to DVMT Mode DVMT FIXED Memory Sets the maximum memory size assigned to the integrated graphics capabilities This option by default is set to 256MB Boot D...

Страница 42: ...rt 4 Auto PCIE Port 5 Auto 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 IOxAPIC Enable Disabled PCIE Port 4 IOxAPIC Enable Disabled PCIE Port 5 IOxAPIC Enable Disabled Enable Onboard PCI option ROM Disabled USB Function This option enables the number of USB ports desired or disables the USB ...

Страница 43: ...ine 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 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 va...

Страница 44: ...BIOS SETUP 40 MI889 User s Manual This page is intentionally left blank ...

Страница 45: ...vendor where you made the purchase The contents of this section include the following Intel Chipset Software Installation Utility 42 Intel Pineview Chipset Family Graphics Driver Installation 44 Realtek High Definition Codec Audio Driver Installation 46 Realtek RTL8111DL LAN Drivers Installation 47 IMPORTANT NOTE After installing your Windows operating system Windows XP Vista 7 you must install fi...

Страница 46: ...ay INF support for Intel 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 Drivers Click Intel R Chipset Software Installation Utility 2 When the welcome screen to the Intel R Chipset Software Installation Utility appears click Next to continue ...

Страница 47: ...icense agreement and proceed 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 Finish to restart the computer and for changes to take effect ...

Страница 48: ... drivers follow the steps 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 the welcome screen of the Intel R Graphics Media Accelerator Driver appears click Next to continue ...

Страница 49: ...s to to agree with the license 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 and for changes to take effect ...

Страница 50: ...rive Click Intel and then 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 start the installation 3 When the InstallShieldWizard has finished performing maintenance operations on Realtek High Definition Codec Audio Audio Driver click Finish to restart th...

Страница 51: ...vers DVD into the DVD drive 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 Next 3 In the InstallShield Wizard screen click Install to begin the installation 4 InstallShield Wizard completed Click Finish to exit the Wizard ...

Страница 52: ...DRIVERS INSTALLATION 48 MI889 User s Manual This page is intentionally left blank ...

Страница 53: ...resources 0064h 0064h Motherboard resources 0065h 006Fh Motherboard resources 0070h 0071h System CMOS real time clock 0072h 007Fh Motherboard resources 0080h 0080h Motherboard resources 0081h 0083h Direct memory access controller 0084h 0086h Motherboard resources 0087h 0087h Direct memory access controller 0088h 0088h Motherboard resources 0089h 008Bh Direct memory access controller 008Ch 008Eh Mo...

Страница 54: ...h Motherboard resources 0A79h 0A79h ISAPNP Read Data Port 0D00h FFFFh PCI bus B480h B48Fh Intel R ICH8M 3 port Serial ATA Storage Controller 2828 B800h B80Fh Intel R ICH8M 3 port Serial ATA Storage Controller 2828 B880h B883h Intel R ICH8M 3 port Serial ATA Storage Controller 2828 BC00h BC07h Intel R ICH8M 3 port Serial ATA Storage Controller 2828 C000h C003h Intel R ICH8M 3 port Serial ATA Storag...

Страница 55: ...Accelerator 3150 D000h DFFFh Intel R ICH8 Family PCI Express Root Port 5 2847 D800h D8FFh Realtek PCIe GBE Family Controller E000h EFFFh Intel R ICH8 Family PCI Express Root Port 6 2849 E800h E8FFh Realtek PCIe GBE Family Controller 2 FFA0h FFAFh Intel R ICH8M Ultra ATA Storage Controllers 2850 ...

Страница 56: ...cessor IRQ14 Primary IDE Channel IRQ16 Intel R Graphics Media Accelerator 3150 IRQ16 Realtek PCIe GBE Family Controller IRQ16 Standard Universal PCI to USB Host Controller IRQ17 Realtek PCIe GBE Family Controller 2 IRQ18 Intel R ICH8 Family USB Universal Host Controller 2832 IRQ18 Intel R ICH8M 3 port Serial ATA Storage Controller 2828 IRQ19 Intel R ICH8 Family USB Universal Host Controller 2831 I...

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

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

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

Страница 60: ...ude 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 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 bB...

Страница 61: ...f 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 watchdog timer Set_W627UHG_Reg 0x30 0x00 ...

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

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

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

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

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

Отзывы: