AMI MI946F User Manual

Intel core 2 duo/gm45 mini-itx motherboard
Table of Contents

Advertisement

Quick Links

MI946F
Intel
Core
2 Duo/GM45
®
TM
Mini-ITX Motherboard
USER'S MANUAL
Version 1.0

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MI946F and is the answer not in the manual?

Questions and answers

Summary of Contents for AMI MI946F

  • Page 1 MI946F Intel Core 2 Duo/GM45 ® Mini-ITX Motherboard USER’S MANUAL Version 1.0...
  • Page 2 Acknowledgments AMI is a registered trademark of AMI Software International, Inc. PS/2 is a trademark of International Business Machines Corporation. Intel and Intel® Core 2 Duo and Intel® Celeron processors are registered trademarks of Intel Corporation. Microsoft Windows is a registered trademark of Microsoft Corporation.
  • Page 3: Table Of Contents

    Board Dimensions .............. 4 Installations ............5 Installing the CPU .............. 6 Installing the Memory............7 Setting the Jumpers............. 8 Connectors on MI946F ............. 12 BIOS Setup ............23 Drivers Installation ........47 Intel Chipset Software Installation Utility ......48 VGA Drivers Installation ..........50 Realtek Audio Driver Installation ........
  • Page 4 IMPORTANT NOTE: When the system boots without the CRT being connected, there will be no image on screen when you insert the CRT/VGA cable. To show the image on screen, the hotkey must be pressed (CTRL-ALT-F1). MI946F User’s Manual...
  • Page 5: Introduction

    INTRODUCTION Introduction Product Description The MI946F Mini ITX board incorporates the Mobile Intel® GM45 Express Chipset for Embedded Computing, consisting of the Intel® GM45 Graphic Memory Controller Hub (GMCH) and Intel® I/O Controller Hub (ICH9-M), an optimized integrated graphics solution with a 1066MHz and 800MHz front-side bus.
  • Page 6: Checklist

    INTRODUCTION Checklist Your MI946F package should include the items listed below.  The MI946F Mini-ITX motherboard  This User’s Manual  1 CD containing chipset drivers and flash memory utility  Cable kit (Serial port, Serial ATA) MI946F User’s Manual...
  • Page 7: Mi946F Specifications

    Socket 478 Chipset Intel GM45 Chipset GMCH: GM45 1329-pin Micro-FCBGA ICH9M: 82801IBM 678-pin mBGA BIOS AMI BIOS, supports ACPI function Memory DDR3 800/1066 SoDIMM x2 (w/o ECC function), Max. 4GB GM45 built-in, supports CRT SDVO (Dual CH) Chrontel 7307C, DVI...
  • Page 8: Board Dimensions

    INTRODUCTION Board Dimensions MI946F User’s Manual...
  • Page 9: Installations

    INSTALLATIONS Installations This section provides information on how to use the jumpers and connectors on the MI946F in order to set up a workable system. The topics covered are: Installing the CPU ................6 Installing the Memory ................7 Setting the Jumpers ................8 Connectors on MI946F ..............
  • Page 10: Installing The Cpu

    INSTALLATIONS Installing the CPU The MI946F board supports a Socket 478MN (Merom) processor socket for Intel Core 2 Duo (Penryn), mobile processors. The processor socket comes with a screw to secure the processor. As shown in the left picture below, loosen the screw first before inserting the processor.
  • Page 11: Installing The Memory

    INSTALLATIONS Installing the Memory The MI946F board supports two DDR3 memory socket for a maximum total memory of 4GB. Installing and Removing Memory Modules To install the DDR3 modules, locate the memory slot on the board and perform the following steps: 1.
  • Page 12: Setting The Jumpers

    INSTALLATIONS Setting the Jumpers Jumpers are used on MI946F to select various settings and features according to your needs and applications. Contact your supplier if you have doubts about the best configuration for your needs. The following lists the connectors on MI946F and their respective functions.
  • Page 13: Jumper Locations On Mi946F

    INSTALLATIONS Jumper Locations on MI946F Jumpers on MI946F ................Page JP2: LCD Panel Power Selection ............10 JP4, JP5, JP6: RS232/422/485 (COM2) Selection ......10 JP8: CompactFlash Slave/Master Selection ........11 JP9: PCI/PCIE Riser Card Selection ..........11 JBAT1: Clear CMOS Setting ............. 11...
  • Page 14: Jp2: Lcd Panel Power Selection

    The following table describes the jumper settings for COM2 selection. COM2 RS-232 RS-422 RS-485 Function JP4: JP4: JP4: Jumper Setting JP5: JP5: JP5: (pin closed) 3-5 & 4-6 1-3 & 2-4 1-3 & 2-4 JP6: JP6: JP6: 3-5 & 4-6 1-3 & 2-4 1-3 & 2-4 MI946F User’s Manual...
  • Page 15: Jp8: Compactflash Slave/Master Selection

    RTS- RTS+ CTS+ CTS- JP8: CompactFlash Slave/Master Selection CF Setting Master Slave JP9: PCI/PCIE Riser Card Selection Riser Card IP390 Riser Card Install IP151, IP240 Riser Card Install JBAT1: Clear CMOS Setting JBAT1 Setting Normal Clear CMOS MI946F User’s Manual...
  • Page 16: Connectors On Mi946F

    INSTALLATIONS Connectors on MI946F Connector Locations on MI946F ............13 CN1, CN2: COM1 and VGA Connector ..........15 CN3: DVI-I Connector ..............16 USB_LAN1: 10/100/1000 RJ-45 and USB1/2 Ports ......16 USB_LAN2: 10/100/1000 RJ-45 and USB3/4 Ports ......16 CN4: Audio Connector ..............16 CN5, CN6, CN7, CN8: SATA Connectors ........
  • Page 17: Connector Locations On Mi946F

    INSTALLATIONS Connector Locations on MI946F MI946F User’s Manual...
  • Page 18 INSTALLATIONS Solder Side of MI946F MI946F User’s Manual...
  • Page 19: Cn1, Cn2: Com1 And Vga Connector

    INSTALLATIONS CN1, CN2: COM1 and VGA Connector Signal Name Pin # Pin # Signal Name Not Used [[[[ Signal Name Pin # Pin # Signal Name Green Blue N.C. N.C. N.C. N.C. HSYNC VSYNC MI946F User’s Manual...
  • Page 20: Cn3: Dvi-I Connector

    SHIELD 1/3 Green DATA 3- Blue DATA 3+ HSYNC DDC POWER Ground A GROUND 1 Ground USB_LAN1: 10/100/1000 RJ-45 and USB1/2 Ports USB_LAN2: 10/100/1000 RJ-45 and USB3/4 Ports CN4: Audio Connector CN5, CN6, CN7, CN8: SATA Connectors MI946F User’s Manual...
  • Page 21: Atx1: Atx Power Supply Connector

    Ground +12V Rotation detection CPU_FAN1: CPU Fan Power Connector This is a 3-pin header for the CPU fan. The fan must be a 12V fan. Pin # Signal Name Ground +12V Rotation detection JMINI: Mini PCIE Connector MI946F User’s Manual...
  • Page 22: Lvds1, Lvds2: Lvds Connectors (1St Channel, 2Nd Channel)

    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. Pin # Signal Name Speaker out No connect Ground MI946F User’s Manual...
  • Page 23 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. MI946F User’s Manual...
  • Page 24: J7: Digital I/O

    J7: Digital I/O Signal Name Signal Name OUT3 OUT1 OUT2 OUT0 J8: SPI Flash Connector (factory use only) J9: USB5/USB6 Connector Signal Name Signal Name Ground Ground Ground J10: USB7/USB8 Connector Signal Name Signal Name Ground Ground Ground MI946F User’s Manual...
  • Page 25: J11: Com3, Com4 Serial Port

    RI, Ring indicator GND, ground Not Used J13: Front Audio Connector Signal Name Pin # Pin # Signal Name MIC2_L Ground MIC2_R Presence# Line2_L MIC2_ID Sense Line2_R Line2_ID J14: PCI-E(x1) Slot PCI1: PCI Slot (supports 2 Master) MI946F User’s Manual...
  • Page 26 INSTALLATIONS This page is intentionally left blank. MI946F User’s Manual...
  • Page 27: Bios Setup

    Main BIOS Setup ................25 Advanced Settings ................26 PCIPnP Settings ................37 Boot Settings ..................38 Security Settings ................40 Advanced Chipset Settings ..............41 Exit Setup ..................46 Load Optimal Defaults ............... 46 Load Failsafe Defaults................ 46 MI946F User’s Manual...
  • Page 28: Bios Introduction

    <PgUp> and <PgDn> keys to change entries, <F1> for help and <Esc> to quit. When you enter the Setup utility, the Main Menu screen will appear on the screen. The Main Menu allows you to select from various setup functions and exit choices. MI946F User’s Manual...
  • Page 29: Main Bios Setup

    These defaults have been carefully chosen by both Award and your system manufacturer to provide the absolute maximum performance and reliability. Changing the defaults could cause the system to become unstable and crash in some cases. MI946F User’s Manual...
  • Page 30: Advanced Settings

    The fields in each section are shown in the following pages, as seen in the computer screen. Please note that setting the wrong values may cause the system to malfunction. If unsure, please contact technical support of your supplier. MI946F User’s Manual...
  • Page 31 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 MI946F User’s Manual...
  • Page 32 Serial Port3 Address [Disabled] Serial Port4 Address [Disabled] <- Select Screen Restore on AC Power Loss [Power Off] ↑↓ Select Item Power On Function [None] Change Field Tab Select Field General Help F10 Save and Exit ESC Exit MI946F User’s Manual...
  • Page 33: Restore On Ac Power Loss

    1.5V : 1.521V General Help CPU Smart Fan Disabled ACPI Shut down Temperature Disabled F10 Save and Exit ESC Exit The Hardware Health Configuration menu is used to show the operating temperature, fan speeds and system voltages. MI946F User’s Manual...
  • Page 34: Suspend Mode

    General ACPI Configuration settings Suspend mode [S1] <- Select Screen ↑↓ Select Item Change Field Tab Select Field General Help F10 Save and Exit ESC Exit Suspend Mode The options of this field are S1, S3 and Auto. MI946F User’s Manual...
  • Page 35 Power Management/APM Enabled a wake event. Resume On Ring Disabled Resume On PME# Disabled <- Select Screen Resume On RTC Alarm Disabled ↑↓ Select Item Change Field Tab Select Field General Help F10 Save and Exit ESC Exit MI946F User’s Manual...
  • Page 36 This option is used enable activity on the PCI PME (power managementevent) 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 from a suspended state MI946F User’s Manual...
  • Page 37 ↑↓ Select Item Change Field Tab Select Field General Help F10 Save and Exit ESC Exit This configuration is supported only with MI946AF (with iAMT function). The Intel AMT Configuration configures the Intel Active Management Technology (AMT) options. MI946F User’s Manual...
  • Page 38: Mps Version Control For Os

    This option is specifies the MPS (Multiprocessor Specification) version for your operating system. MPS version 1.4 added extended configuration tables to improve support for multiple PCI bus configurations and improve future expandability. The default setting is 1.4. MI946F User’s Manual...
  • Page 39: Legacy Usb Support

    This option is enabled by default. USB 2.0 Controller Mode Configures the USB 2.0 controller in HiSpeed (480Mbps) or FullSpeed (12Mbps).This option is enabled by HiSpeed. USB Mass Storage Device Configuration This option is used to configure USB mass storage class devices. MI946F User’s Manual...
  • Page 40 Enabled Ethernet Power for WOL. [All Disabled] Shutdown the Standby Power. <- Select Screen ↑↓ Select Item Change Field General Help F10 Save and Exit ESC Exit Standby Power on S5 This configuration is supported only with MI946F/MI946RF. MI946F User’s Manual...
  • Page 41: Pcipnp Settings

    PnP devices not required for boot if your system has a Plug and Play OS. PCI Latency Timer This item sets value in units of PCI clocks for PCI device latency timer register. Options are: 32, 64, 96, 128, 160, 192, 224, 248. MI946F User’s Manual...
  • Page 42: Allocate Irq To Pci Vga

    System Boot. ► Boot Settings Configuration ► Boot Device Priority ► Hard Disk Drives <- Select Screen ► CD/DVD Drives ↑↓ Select Item Change Field Tab Select Field General Help F10 Save and Exit ESC Exit MI946F User’s Manual...
  • Page 43: Quick Boot

    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. MI946F User’s Manual...
  • Page 44: Security Settings

    Supervisor Password : Not Installed User Password : Not Installed <- Select Screen Change Supervisor Password ↑↓ Select Item Change User Password Change Field Tab Select Field Boot Sector Virus Protection [Disabled] General Help F10 Save and Exit ESC Exit MI946F User’s Manual...
  • Page 45: Advanced Chipset Settings

    This option is used to select the graphics controller used as the primary boot device. Select either an integrated graphics controller (IGD) or a combination of PCI graphics controller, a PCI express (PEG) controller or an IGD. MI946F User’s Manual...
  • Page 46: Internal Graphics Mode Select

    This option is used to select the type of flat panel connected to the system. Options include: 640x480 18b / 800x600 18b / 1024x768 18b / 1024x768 24b / 1280x1024 24b / 1600x1200 24b Active LVDS Device This option is set to Integrated LVDS, by default. MI946F User’s Manual...
  • Page 47 Enabled Onboard PCI option ROM [Disabled] 82567LM LAN Boot This option is disabled by default. The system, then, will not boot using the Gigabit LAN interface. HDA Controller This option is used to enable the Southbridge high definition audio controller. MI946F User’s Manual...
  • Page 48 This option is enabled by default and cannot be changed. ME-IDER This configuration is supported only with MI946AF (with iAMT function). This option is used to enable or disable the IDE-Redirection (IDE-R) function on an AMT-capable system. MI946F User’s Manual...
  • Page 49 Serial-Over-Lan (SOL). When enabled, the KT function allows a management system to control an IntelR AMT clientsystem remotely. The keyboard interface of a managed client system, such as BIOS menu, is displayed through the management system. MI946F User’s Manual...
  • Page 50: Exit Setup

    These default settings are optimal and enable all high performance features. Load Failsafe Defaults This option allows you to load the troubleshooting default values permanently stored in the BIOS ROM. These default settings are non-optimal and disable all high-performance features. MI946F User’s Manual...
  • Page 51: Drivers Installation

    Intel® Management Engine Interface ..........57 Intel® AMT SOL Driver Installation..........59 IMPORTANT NOTE: After installing your Windows operating system (Windows XP), you must install first the Intel Chipset Software Installation Utility before proceeding with the drivers installation. MI946F User’s Manual...
  • Page 52: Intel Chipset Software Installation Utility

    Plug & Play INF support for Intel chipset components. Follow the instructions below to complete the installation. 1. Insert the CD that comes with the board. Click Intel and then Intel(R) GM45 Chipset Drivers. 2. Click Intel(R) Chipset Software Installation Utility. MI946F User’s Manual...
  • Page 53 4. Click Yes to accept the software license agreement and proceed with the installation process. 5. On the Readme File 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. MI946F User’s Manual...
  • Page 54: Vga Drivers Installation

    1. Insert the CD that comes with the board. Click Intel and then Intel(R) GM45 Chipset Drivers. 2. Click Intel(R) GM45 Chipset Family Graphics Driver. 3. When the Welcome screen to the Setup Program appears, click Next to continue. MI946F User’s Manual...
  • Page 55 5. On the Readme File Information screen, click Next to continue the installation of the Intel® Graphics Media Accelerator Driver. 6. On Setup Progress screen, click Next to continue. 7. Setup complete. Click Finish to restart the computer and for changes to take effect. MI946F User’s Manual...
  • Page 56: Realtek Audio Driver Installation

    1. Insert the CD that comes with the board. Click Intel and then Intel(R) GM45 Chipset Drivers. 2. Click Realtek High Definition Audio Driver. 3. On the Welcome to the InstallShield Wizard screen, click Next. 3. InstallShield Wizard is complete. Click Finish to restart the computer. MI946F User’s Manual...
  • Page 57: Lan Drivers Installation

    Follow the steps below to install the Intel LAN drivers. This one installation will cover both 82574L and 82567LM LAN controllers. 1. Insert the CD that comes with the board. Click Intel and then Intel(R) GM45 Chipset Drivers. 2. Click Intel(R) PRO LAN Network Driver. MI946F User’s Manual...
  • Page 58 DRIVERS INSTALLATIONS 3. In the Intel® Network Connections screen*, click Install Drivers and Software. 4. In the welcome screen of the InstallShield Wizard for Intel(R) Network Connections, click Next. MI946F User’s Manual...
  • Page 59 DRIVERS INSTALLATIONS 5. In the License Agreement, Select I accept the terms in the license agreement and click Next. 6. In the Setup Options, click the checkbox as shown below and click Next. MI946F User’s Manual...
  • Page 60 DRIVERS INSTALLATIONS 7. In the InstallShield Wizard screen, click Install to begin the installation. 7. InstallShield Wizard is completed. Click Finish to exit the Wizard. MI946F User’s Manual...
  • Page 61: Intel® Management Engine Interface

    DRIVERS INSTALLATION Intel® Management Engine Interface REMARKS: The Intel iAMT 4.0 Drivers can be installed on MI946AF, not MI946F. Follow the steps below to install the Intel Management Engine. 1. Insert the drivers disc that comes with the motherboard. Click Intel and then Intel(R) AMT 4.0 Drivers, then Intel(R) MEI Driver.
  • Page 62 DRIVERS INSTALLATION 2. When the Setup Progress screen appears, click Next. Then, click Finish when the setup progress has been successfully installed. MI946F User’s Manual...
  • Page 63: Intel® Amt Sol Driver Installation

    Intel® AMT SOL Driver Installation REMARKS: The Intel iAMT 4.0 Drivers can be installed on MI946AF, not MI946F. Follow the steps below to install the Intel Management Engine. 1. Insert the drivers disc that comes with the motherboard. Click Intel and then Intel(R) AMT 4.0 Drivers, then Intel(R) LMS/SOL Driver.
  • Page 64 DRIVERS INSTALLATION 2. On the Setup screen for Microsoft .NET Framework 3.5 SPI, click Install. When Setup is complete, click Exit. MI946F User’s Manual...
  • Page 65 DRIVERS INSTALLATION 3. The next screen shows the Intel® Active Management Technology setup progress where the Intel AMT SOL driver is being installed. Click Next. Click Finish when setup process is complete. MI946F User’s Manual...
  • Page 66: Appendix

    Reset Math Coprocessor 1F0h - 1F7h IDE Interface 2F8h - 2FFh Serial Port #2(COM2) 2B0 - 2DF Graphics adapter Controller 360 - 36F Network Ports 3B0 - 3BF Monochrome & Printer adapter 3F8h - 3FFh Serial Port #1(COM1) MI946F User’s Manual...
  • Page 67: Interrupt Request Lines (Irq)

    Interrupt Cascade IRQ3 Serial Port #2 IRQ4 Serial Port #1 IRQ5 Reserved IRQ6 Floppy Disk Controller IRQ8 Real Time Clock IRQ9 Reserved IRQ10 Reserved IRQ11 Reserved IRQ12 PS/2 Mouse IRQ13 80287 IRQ14 Primary IDE IRQ15 Secondary IDE MI946F User’s Manual...
  • Page 68: Watchdog Timer Configuration

    = 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) MI946F User’s Manual...
  • Page 69 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); Lock_W627UHG(); return Result; //--------------------------------------------------------------------------- MI946F User’s Manual...
  • Page 70 (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 char); //--------------------------------------------------------------------------- #endif //__W627UHG_H MI946F User’s Manual...
  • Page 71 //--------------------------------------------------------------------------- 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); ..............//Enable WDTO //--------------------------------------------------------------------------- void WDTEnable(unsigned char NewInterval) unsigned char bBuf; Set_W627UHG_LD(0x08);......................Set_W627UHG_Reg(0x30, 0x01); ............... //enable timer MI946F User’s Manual...
  • Page 72 APPENDIX bBuf = 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); ..................... //--------------------------------------------------------------------------- MI946F User’s Manual...
  • Page 73: Digital I/O Sample Code

    (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 char); //--------------------------------------------------------------------------- #endif //__W627UHG_H MI946F User’s Manual...
  • Page 74 = 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_INDEX_PORT, W627UHG_UNLOCK); outportb(W627UHG_INDEX_PORT, W627UHG_UNLOCK); //--------------------------------------------------------------------------- void Lock_W627UHG (void) outportb(W627UHG_INDEX_PORT, W627UHG_LOCK); //--------------------------------------------------------------------------- void Set_W627UHG_LD( unsigned char LD) MI946F User’s Manual...
  • Page 75 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); Lock_W627UHG(); return Result; //--------------------------------------------------------------------------- MI946F User’s Manual...
  • Page 76 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", Dio5GetDirection()); printf("Current DIO status = 0x%X\n", Dio5GetInput()); printf("Set DIO output to high\n"); Dio5SetOutput(0x0F); printf("Set DIO output to low\n"); Dio5SetOutput(0x00); return 0; MI946F User’s Manual...
  • Page 77 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_W627UHG_LD(0x08); //switch to logic device 8 result = Get_W627UHG_Reg(0xE0); return (result); //--------------------------------------------------------------------------- MI946F User’s Manual...
  • Page 78 APPENDIX This page is intentionally left blank. MI946F User’s Manual...

Table of Contents