MI946F Intel ® CoreTM 2 Duo/GM45 Mini-ITX Motherboard USER’S MANUAL Version 1.
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. Winbond is a registered trademark of Winbond Electronics Corporation. All other product names or trademarks are properties of their respective owners.
Table of Contents Introduction ...................................................... 1 Product Description ............................................................ 1 Checklist............................................................................. 2 MI946F Specifications ....................................................... 3 Board Dimensions .............................................................. 4 Installations ......................................................
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).
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. Dimensions of the board are 170mm x 170mm.
INTRODUCTION Checklist Your MI946F package should include the items listed below.
INTRODUCTION MI946F Specifications CPU Supported CPU Voltage System Speed CPU FSB Cache Green /APM CPU Socket Chipset BIOS Memory VGA SDVO (Dual CH) LVDS LCD Panel LAN USB Serial ATA Ports TPM1.2 Parallel IDE Audio LPC I/O Digital IO Keyboard/Mouse Expansion Slots AMT Edge Connector Onboard Header/ Connector Watchdog Timer System Voltage Others Board Size TM Intel® Core 2 Duo (Penryn), mobile processors 0.700V ~ 1.5V (IMVP-6) Up to 2.53GHz or above 667MHz/800MHz/1066MHz FSB 1MB/2MB/4MB APM1.
INTRODUCTION [ Board Dimensions 4 MI946F User’s Manual
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 .........
INSTALLATIONS Installing the CPU The MI946F board supports a Socket 478MN (Merom) processor socket for Intel CoreTM 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. Place the processor into the socket by making sure the notch on the corner of the CPU corresponds with the notch on the inside of the socket.
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. Hold the DDR3 module so that the key of the DDR3 module aligned with that on the memory slot. 2.
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. Jumper Locations on MI946F .............................................................. 9 JP2: LCD Panel Power Selection .......................................................
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 ....
INSTALLATIONS JP2: LCD Panel Power Selection JP2 LCD Panel Power 3.3V 5V JP4, JP5, JP6: RS232/422/485 (COM2) Selection COM1 is fixed for RS-232 use only. COM2 is selectable for RS232, RS-422 and RS-485. The following table describes the jumper settings for COM2 selection.
INSTALLATIONS COM2 is jumper selectable for RS-232, RS-422 and RS-485.
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 ........................................
INSTALLATIONS Connector Locations on MI946F MI946F User’s Manual 13
INSTALLATIONS Solder Side of MI946F 14 MI946F User’s Manual
INSTALLATIONS CN1, CN2: COM1 and VGA Connector Signal Name Pin # DCD 1 RXD 2 TXD 3 DTR 4 GND 5 [ Pin # Signal Name 6 DSR 7 RTS 8 CTS 9 RI 10 Not Used [[[[ Signal Name Red Blue GND GND N.C. N.C. HSYNC NC Pin # 1 3 5 7 9 11 13 15 MI946F User’s Manual Pin # Signal Name 2 Green 4 N.C. 6 GND 8 GND 10 GND 12 N.C.
INSTALLATIONS CN3: DVI-I Connector CRT interface is supported through the use of the DVI-I connector. Signal Name Pin # Pin # Signal Name DATA 2DATA 2+ Shield 2/4 DATA 4DATA 4+ DDC CLOCK DDC DATA VSYNC DATA 1DATA 1+ SHIELD 1/3 DATA 3DATA 3+ DDC POWER A GROUND 1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 C1 C2 C3 C4 C5 C6 HOT POWER DATA 0DATA 0+ SHIELD 0/5 DATA 5DATA 5+ SHIELD CLK CLOCK CLOCK + Red.
INSTALLATIONS ATX1: ATX Power Supply Connector 11 1 20 10 Signal Name 3.3V -12V Ground PS-ON Ground Ground Ground -5V +5V +5V Pin # 11 12 13 14 15 16 17 18 19 20 Pin # 1 2 3 4 5 6 7 8 9 10 Signal Name 3.3V 3.3V Ground +5V Ground +5V Ground Power good 5VSB +12V SYS_FAN1: System Fan Power Connector This is a 3-pin header for system fans. The fan must be a 12V (500mA). Pin # 1 2 3 Signal Name Ground +12V Rotation detection CPU_FAN1: CPU Fan Power Connector This is a 3-pin header for the CPU fan.
INSTALLATIONS LVDS1, LVDS2: LVDS Connectors (1st channel, 2nd channel) The LVDS connectors on board consist of the first channel (LVDS1) and second channel (LVDS2). Signal Name TX0Ground TX15V/3.3V TX3TX2Ground TXC5V/3.
INSTALLATIONS Power LED: Pins 11 - 15 Pin # 11 12 13 14 15 Signal Name Power LED No connect Ground No connect Ground ATX Power ON Switch: Pins 7 and 17 This 2-pin connector is an “ATX Power Supply On/Off Switch” on the system that connects to the power switch on the case. When pressed, the power switch will force the system to power on. When pressed again, it will force the system to power off.
INSTALLATIONS Hard Disk Drive LED Connector: Pins 10 and 20 This connector connects to the hard drive activity LED on control panel. This LED will flash when the HDD is being accessed.
INSTALLATIONS J11: COM3, COM4 Serial Port Signal Name DSR RTS CTS RI NA DSR RTS CTS RI NA Pin # 2 4 6 8 10 12 14 16 18 20 Pin # 1 3 5 7 9 11 13 15 17 19 Signal Name DCD RXD TXD DTR Ground DCD RXD TXD DTR Ground Pin # 1 2 3 4 5 Pin # 6 7 8 9 10 Signal Name DSR, Data set ready RTS, Request to send CTS, Clear to send RI, Ring indicator Not Used J13: Front Audio Connector Signal Name Pin # MIC2_L 1 MIC2_R 3 Line2_L 5 Sense 7 Line2_R 9 Pin # 2 4 6 8 10 J12: COM2 Serial Port Signal Name DCD, Data carri
INSTALLATIONS This page is intentionally left blank.
BIOS SETUP BIOS Setup This chapter describes the different settings available in the Award BIOS that comes with the board. The topics covered in this chapter are as follows: BIOS Introduction ............................................................................. 24 BIOS Setup ....................................................................................... 24 Main BIOS Setup .............................................................................. 25 Advanced Settings ....................
BIOS SETUP BIOS Introduction The BIOS (Basic Input/Output System) installed in your computer system’s ROM supports Intel processors. The BIOS provides critical low-level support for a standard device such as disk drives, serial ports and parallel ports. It also adds virus and password protection as well as special support for detailed fine-tuning of the chipset controlling the entire system. BIOS Setup The BIOS provides a Setup utility program for specifying the system configurations and settings.
BIOS SETUP Main BIOS Setup This setup allows you to record some basic hardware configurations in your computer system and set the system clock. BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Processor Intel(R) Core(TM)2 Duo CPU Speed : 2533MHz Count :1 T9400 @ 2.53GHz Chipset Exit Use[ENTER], [TAB] or [SHIFT-TAB] to select a field. Use [+] or [-] to configure system Time.
BIOS SETUP Advanced Settings This section allows you to configure and improve your system and allows you to set up some system features according to your preference. BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Advanced Settings Chipset Exit Configure CPU. WARNING: Setting wrong values in below sections may cause system to malfunction.
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Configure advanced CPU settings Module Version: 3F.15 Chipset Exit Configure CPU. Manufacturer: Intel Intel® Core(TM)2 Duo CPU Frequency T9400 @ 2.53GHz : 2.53GHz FSB Speed : 1066MHz Cache L1 : 64KB Cache L2 : 6144KB Ratio Actual Value: 9.
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security IDE Configuration Chipset Exit Options: Disabled Compatible Enhanced Mirrored IDER Configuration SATA#1 Configuration Configure SATA#1 as SATA#2 Configuration [Enabled] [Compatible] [IDE] [Enhanced] ► Primary IDE Master : [Not Detected] ► Primary Slave Master : [Not Detected] ► Secondary IDE Master : [Not Detected] ► Secondary IDE Slave : [Not Detected] ► Third IDE Master : [Not Detected] ► Fourth IDE Master : [Not
BIOS SETUP Onboard Serial Port/Parallel Port These fields allow you to select the onboard serial ports and their addresses. The default values for these ports are: Serial Port 1 3F8/IRQ4 Serial Port 2 2F8/IRQ3 Serial Port 3 Disabled Serial Port 4 Disabled 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. Power On Function This field is related to how the system is powered on .
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security ACPI Settings Chipset Exit General ACPI Configuration settings ►General ACPI Configuration ►Chipset ACPI Configuration <- Select Screen ↑↓ +Tab F1 F10 ESC Select Item Change Field Select Field General Help Save and Exit Exit BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security General ACPI Configuration Suspend mode [S1] Chipset General ACPI Configuration settings <- Select Screen ↑↓ +Tab F1 F10 ESC Select Item Chan
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security South Bridge ACPI Configuration High Performance Event Timer Chipset Exit General ACPI Configuration settings [Disabled] <- Select Screen ↑↓ +Tab F1 F10 ESC Select Item Change Field Select Field General Help Save and Exit Exit BIOS SETUP UTILITY Main Advanced PCIPnP AHCI Settings AHCI BIOS Support Boot Security Chipset Exit General ACPI Configuration settings [Enabled] ► AHCI Port0 [Not Detected] ► AHCI Port1 [Not Detec
BIOS SETUP 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.
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Configure Intel AMT Parameters Intel AMT Support [Enabled] Unconfigure AMT/ME [Disabled] Chipset Exit Options: Disabled Enabled <- Select Screen ↑↓ +Tab F1 F10 ESC Select Item Change Field Select Field General Help Save and Exit Exit This configuration is supported only with MI946AF (with iAMT function). The Intel AMT Configuration configures the Intel Active Management Technology (AMT) options.
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Intel VT-d Boot Security Chipset Exit Options: Disabled Enabled [Disabled] <- Select Screen ↑↓ +Tab F1 F10 ESC Select Item Change Field Select Field General Help Save and Exit Exit VT-d This configuration is supported only with MI946AF. Virtualization solutions allow multiple operating systems and applications to run in independent partitions all on a single computer.
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security USB Configuration Exit Enables support for legacy USB. AUTO option disables legacy support if no USB devices are connected. Module Version – 2.24.3.13.4 USB Devices Enabled: 1 Drive Legacy USB Support [Enabled] USB2.
BIOS SETUP BIOS SETUP UTILITY Advanced EuP/ErP Power Saving Controller Standby Power on S5 [All Enabled] [All Enabled] Provide the Standby Power for Device. [Enabled WOL] Enabled Ethernet Power for WOL. [All Disabled] Shutdown the Standby Power. <↑↓ +F1 F10 ESC Select Screen Select Item Change Field General Help Save and Exit Exit Standby Power on S5 This configuration is supported only with MI946F/MI946RF.
BIOS SETUP PCIPnP Settings This option configures the PCI/PnP settings. BIOS SETUP UTILITY Main Advanced PCIPnP Boot Security Advanced PCI/PnP Settings WARNING: Setting wrong values in below sections may cause system to malfunction.
BIOS SETUP Allocate IRQ to PCI VGA This assigns IRQ to PCI VGA card if card requests IRQ or doesn't assign IRQ to PCI VGA card even if card requests an IRQ. Palette Snooping This informs 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. IRQ# Use the IRQ# address to specify what IRQs can be assigned to a particular peripheral device.
BIOS SETUP BIOS SETUP UTILITY Boot Boot Settings Configuration 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 [Enabled] Interrupt 19 Capture [Disabled] Allows BIOS to skip certain tests while booting. This will decrease the time needed to boot the system.
BIOS SETUP Security Settings This setting comes with two options set the system password. Supervisor Password sets a password that will be used to protect the system and Setup utility. User Password sets a password that will be used exclusively on the system. To specify a password, highlight the type you want and press . The Enter Password: message prompts on the screen. Type the password and press . The system confirms your password by asking you to type it again.
BIOS SETUP Advanced Chipset Settings This setting configures the north bridge, south bridge and the ME subsystem. WARNING! Setting the wrong values may cause the system to malfunction. BIOS SETUP UTILITY Main Advanced PCIPnP Boot Advanced Chipset Settings Bridge Configuration ► South Bridge Configuration ► ME Exit Configure North Bridge features. WARNING: Setting wrong values in below sections may cause system to malfunction.
BIOS SETUP Internal Graphics Mode Select This option is used to specify the amount of system memory that can be used by the Internal graphics device.
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot Chipset Security South Bridge Chipset Configuration 82567LM LAN Boot HDA Controller [Disabled] [Enabled] SLP_S4# Min.
BIOS SETUP BIOS SETUP UTILITY Main Advanced PCIPnP Boot ME Subsystem Configuration BootBlock HECI Message HECI Message End Of Post S5 HECI Message ME HECI Configuration ME-HECI ME-IDER ME-KT [Enabled] [Enabled] [Enabled] [Enabled] [Enabled] [Enabled] Chipset Security Exit Disabled Enabled <- Select Screen ↑↓ +Tab F1 F10 ESC Select Item Change Field Select Field General Help Save and Exit Exit BootBlock HECI Message This configuration is supported only with MI946AF (with iAMT function).
BIOS SETUP ME-KT This configuration is supported only with MI946AF (with iAMT function). This option is used to enable or disable the Keyboard and Text redirection (KT) function on an AMT-capable system. KT is also known as 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.
BIOS SETUP Exit Setup The exit setup has the following settings which are: BIOS SETUP UTILITY Main Advanced PCIPnP Exit Options Save Changes and Exit Discard Changes and Exit Discard Changes Load Optimal Defaults Load Failsafe Defaults Boot Security Chipset Exit Exit system setup after saving the changes.
DRIVERS INSTALLATIONS Drivers Installation This section describes the installation procedures for software and drivers under Windows XP. The software and drivers are included with the motherboard. If you find the items missing, please contact the vendor where you made the purchase. The contents of this section include the following: Intel Chipset Software Installation Utility ........................................... 48 VGA Drivers Installation ............................................................
DRIVERS INSTALLATIONS Intel Chipset Software Installation Utility The Intel Chipset Drivers should be installed first before the software drivers to enable 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.
DRIVERS INSTALLATIONS 3. When the Welcome screen to the Intel® Chipset Device Software appears, click Next to continue. 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.
DRIVERS INSTALLATIONS 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.
DRIVERS INSTALLATIONS 4. Click Yes to to agree with the license agreement and continue the installation. 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.
DRIVERS INSTALLATIONS 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.
DRIVERS INSTALLATIONS 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.
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.
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.
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.
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.
DRIVERS INSTALLATION 2. When the Setup Progress screen appears, click Next. Then, click Finish when the setup progress has been successfully installed.
DRIVERS 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.
DRIVERS INSTALLATION 2. On the Setup screen for Microsoft .NET Framework 3.5 SPI, click Install. When Setup is complete, click Exit.
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.
APPENDIX Appendix A. I/O Port Address Map Each peripheral device in the system is assigned a set of I/O port addresses which also becomes the identity of the device. The following table lists the I/O port addresses used.
APPENDIX B. Interrupt Request Lines (IRQ) Peripheral devices use interrupt request lines to notify CPU for the service required. The following table shows the IRQ used by the devices on board.
APPENDIX C. Watchdog Timer Configuration The WDT is used to generate a variety of output signals after a user programmable count. The WDT is suitable for use in the prevention of system lock-up, such as when software becomes trapped in a deadlock. Under these sorts of circumstances, the timer will count to zero and the selected outputs will be driven. Under normal circumstance, the user will restart the WDT at regular intervals before the timer counts to zero. SAMPLE CODE: File of the W627UHG.
APPENDIX { 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) { Unlock_W627UHG(); outportb(W627UHG_INDEX_PORT, W627UHG_REG_LD); outportb(W627UHG_DATA_PORT, LD); Lock_W627UHG(); } //------------------------
APPENDIX 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.
APPENDIX File of the MAIN.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 #include #include #include #include "W627UHG.
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);........................................................................................................
APPENDIX 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.
APPENDIX File of the 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
APPENDIX { Unlock_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
APPENDIX File of the MAIN.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 #include #include #include #include "W627UHG.
APPENDIX } //--------------------------------------------------------------------------void Dio5Initial(void) { unsigned char ucBuf; Set_W627UHG_LD(0x08); //switch to logic device 8 //enable the GP5 group ucBuf = Get_W627UHG_Reg(0x30); ucBuf |= 0x02; Set_W627UHG_Reg(0x30, ucBuf); } //--------------------------------------------------------------------------void Dio5SetOutput(unsigned char NewData) { Set_W627UHG_LD(0x08); //switch to logic device 8 Set_W627UHG_Reg(0xE1, NewData); } //------------------------
APPENDIX This page is intentionally left blank.