MB945 - User Manual - V1.0B
MB945 - User Manual - V1.0B
MB945 - User Manual - V1.0B
Socket LGA775
Intel® Q45 Chipset
Industrial Motherboard
USER’S MANUAL
Version 1.0B
Acknowledgments
Award is a registered trademark of Award Software International,
Inc.
PS/2 is a trademark of International Business Machines
Corporation.
Intel is a 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.
Table of Contents
Introduction ....................................................... 1
Checklist .............................................................................. 1
Product Description ............................................................. 2
Specifications ...................................................................... 3
Board Dimensions ............................................................... 4
Installations ....................................................... 5
Installing the CPU ............................................................... 6
ATX Power Installation ...................................................... 7
Installing the Memory ......................................................... 8
Setting the Jumpers ............................................................. 9
Connectors on MB945 ...................................................... 14
Appendix ........................................................... 68
A. I/O Port Address Map................................................... 68
B. Interrupt Request Lines (IRQ) ...................................... 69
C. Watchdog Timer Configuration.................................... 70
Introduction
Checklist
Your MB945 motherboard package should include the items listed
below:
• The MB945 motherboard
• This User’s manual
• 1 Back I/O shield
• 1 IDE cable
• 1 Floppy cable
• 1 SATA cable
• 1 Serial-Port cable
• 1 CD containing the following:
• Chipset Drivers
• Flash Memory Utility
Product Description
The MB945 LGA 775 motherboard incorporates the Intel Q45 chipset
that utilizes a single LGA775 processor and supports
800/1066/1333MT/s (200/266/333 MHz) FSB.
The Q45 chipset is designed for use with the Core 2 processor family,
including a faster 1333 MHz system bus. The integrated GMCH
component provides the CPU interface, DDR3 interface, Hub Interface
and PCI Express graphics interface.
The board is designed with an Intel 82567LM Gigabit Ethernet PHY and
an optional Intel 82574LM PCI Express Gigabit Ethernet. Six Serial-II
ATA connectors offer 3Gb/s data throughput speed - faster than the most
advanced parallel ATA.
Expansion includes four PCI slots, one PCI Express x1 and one PCI
Express x16 and one ISA slot. Other advanced features include twelve
USB 2.0 ports, IrDA interface, digital I/O, four serial ports, watchdog
timer and audio function. Dimensions of the board are 12” by 9.5” in an
ATX form factor.
Specifications
Product Name MB945
Form Factor ATX
CPU Type Intel® Core™2 Duo Processor E8000 and E7000 series
Intel® Core™2 Quad Processor Q9000 series
Intel® Core™2 Extreme Processor QX9000 series
CPU Speed Up to 3.0 GHz or higher
CPU FSB 800/1066/1333MHz FSB
L2 Cache Up to 12MB
Green /APM APM1.2
CPU Socket LGA775
Chipset Intel Eaglelake:Q45 + ICH10DO Chipset
GMCH : AC82Q45, 34mm x 34mm, 1254-pin FC-BGA
ICH10DO: AF82801JDO, 31mm x 31mm, 676-pin mBGA
BIOS Award BIOS, support ACPI Function
Memory DDRIII 800/1066MHz
- DIMM x 4 (w/o ECC), Max. 8GB
Q45 built-in Intel gen.5.0 Graphics Media Accelerator , supports
VGA DirectX10 (Vista), Integrated DP, DVI, VGA SDVO; Dual
Independent Display
1. ICH10DO Gigabit MAC + PHY:
LAN • Intel 82567LM Gigabit Ethernet PHY
2. Intel 82574L PCI-e Gigabit LAN controller x1 (MB945F)
USB ICH10DO built-in USB 2.0 host controller, supports 12 ports
Serial ATA ICH10DO built-in SATA controller, supports 6 ports
Parallel IDE/ CF - JMicron JM368 (PCI-e to PATA) x1 for 1 PATA channel for
IDE & CF: IDE 40 pin and vertical CF socket x 1
Audio ICH10DO built-in HD Audio controller: ALC888 w/ 7.1 channels
LPC I/O Winbond W83627DHG: IrDA x1, COM1 (RS232), COM2
(RS232/422/485), Hardware monitor (3 thermal inputs,
4 voltage monitor inputs, VID0-4 & 2 Fan Headers)
- Fintek 81216G for COM 3. COM4
Digital IO 4 in & 4 out
TPM1.2 ICH10DO built-in iTPM version1.2 controller by firmware
Keyboard/Mouse Supports PS/2 Keyboard/Mouse connector
Expansion Slots PCI slot x4, PCI-e (x1) slot x1 and PCI-e (x16) slot x1, ISA slot x1
Edge Connector PS/2 Connector x1 for keyboard/mouse
Gigabit LAN RJ-45 + dual USB stack connector x2
DB9 + DB15 stack connector x1 for COM 1 & VGA
DB25 connector x1 for SPP/ECP/EPP
RCA Jack 3x2 for HD Audio
Onboard 40-pin box-header x1 for IDE
Header/Connector 34-pin box-header x1 for FDD
SATA connector x6 for 6 ports SATAI/SATAII
CF connector x1 for CF Card
2x5-pin pin-header x4 for 8 ports USB
2x5-pin pin-header x1 for front panel audio
2x5-pin pin-header x3 for COM2/3/4
2x5-pin pin-header x1 for Digital IO
Watchdog Timer Yes (256 segments, 0, 1, 2…255 sec/min)
System Voltage +5V, +3.3V, +12V, -12V, 5VSB (2A)
Other LAN Wakeup
RoHS Yes
Board Size 305mm x 244mm (12” x 9.5”)
Board Dimensions
Installations
This section provides information on how to use the jumpers and
connectors on the MB945/MB945F in order to set up a workable system.
The topics covered are:
Installing the CPU ................................................................................. 6
ATX Power Installation ......................................................................... 7
Installing the Memory ........................................................................... 8
Setting the Jumpers................................................................................ 9
Connectors on MB945 ......................................................................... 14
The LGA 775 processor socket comes with a lever to secure the
processor. Refer to the pictures below, from left to right, on how to place
the processor into the CPU socket. Please note that the cover of the
LGA775 socket must always be installed during transport to avoid
damage to the socket.
Pin 1-2
Short/Closed +5V
Pin 2-3
Short/Closed +5VSB
Pin 1-2
Short/Closed Normal
Pin 2-3
Short/Closed Clear CMOS
Master
Slave
JP6 Function
Disable
Enable
Connectors on MB945
The connectors on MB945 allows you to connect external devices such
as keyboard, floppy disk drives, hard disk drives, printers, etc.
ATX1: 24-pin ATX Power Connector.............................................................. 16
ATX_12V_2X1: ATX 12V Power Connector.................................................. 16
DDRIII1, DDRIII 3: Channel A DDR3 Socket ................................................ 17
DDRIII2, DDRIII 4: Channel B DDR3 Socket ................................................ 17
CN1: VGA CRT Connector ............................................................................. 17
CN2: Parallel Port Connector ........................................................................... 17
CN3: Serial Ports(COM1) ................................................................................ 18
CN4: PS/2 Keyboard and PS/2 Mouse Connectors .......................................... 18
CN5: HD Audio Connector .............................................................................. 18
CN8: Gigabit LAN (Intel 567LM) RJ-45&USB 4/5 Connector ....................... 18
CN9: Gigabit LAN (Intel 574L) RJ-45 &USB 10/11 Connector .................... 18
CN10: Compact Flash Type II Socket .............................................................. 18
IDE1: Primary IDE Connectors ........................................................................ 19
SATA1~SATA6: SATAII Connectors ............................................................. 19
CD_IN1: CD-In Audio Connector.................................................................... 19
COM3,COM4: COM3, COM4 Serial Ports(RS232) ........................................ 20
J1: Wake On LAN Connector........................................................................... 20
J2: SPDIFI/ SPDIFO Connector (Reserved)..................................................... 20
J3, J5: ISA Slots ............................................................................................... 20
J4: SPI Debug Tools Port (Factory use only) ................................................... 20
J6: COM2 Serial Port ....................................................................................... 21
J7: System Function Connector ........................................................................ 21
J8: IrDA Connector .......................................................................................... 23
J9: Digital I/O Connector (4 in, 4 out) .............................................................. 23
F_AUDIO1: Audio Front Header ..................................................................... 23
F_USB1: USB8/USB9 Connector .................................................................... 24
F_USB2: USB6/USB7 Connector .................................................................... 24
F_USB3: USB2/USB3 Connector .................................................................... 24
F_USB4: USB0/USB1 Connector .................................................................... 24
CPU_FAN1: CPU Fan Power Connector ........................................................ 24
SYS_FAN1: system Fan1 Power Connector ................................................... 24
SYS_FAN3: SYSTEM Fan2 Power Connector............................................... 24
FDD1: Floppy Drive Connector ....................................................................... 25
PCIE1: x16 PCI Express Slot ........................................................................... 25
PCIE2: x1 PCI Express Slots............................................................................ 25
PCI1, PCI2, PCI3, PCI4: PCI Slots .................................................................. 25
Connectors on MB945/MB945F
ATX1: 24-pin ATX Power Connector J2: SPDIFI/ SPDIFO Connector (Reserved)
ATX_12V_2X1: ATX 12V Power Connector J3, J5: ISA Slots
DDRIII1, DDRIII 3: Channel A DDR3 Socket J4: SPI Debug Tools Port (Factory use only)
DDRIII2, DDRIII 4: Channel B DDR3 Socket J6: COM2 Serial Port
CN1: VGA CRT Connector J7: System Function Connector
CN2: Parallel Port Connector J8: IrDA Connector
CN3: Serial Ports(COM1) J9: Digital I/O Connector (4 in, 4 out)
CN4: PS/2 Keyboard and PS/2 Mouse F_AUDIO1: Audio Front Header
CN5: HD Audio Connector F_USB1: USB8/USB9 Connector
CN8: Gigabit LAN (Intel 567LM) RJ-45&USB F_USB2: USB6/USB7 Connector
4/5 F_USB3: USB2/USB3 Connector
CN9: Gigabit LAN (Intel 574L) RJ-45 &USB F_USB4: USB0/USB1 Connector
10/11 Connector CPU_FAN1: CPU Fan Power Connector
CN10: Compact Flash Type II Socket SYS_FAN1: system Fan1 Power Connector
IDE1: Primary IDE Connectors SYS_FAN3: SYSTEM Fan2 Power Connector
SATA1~SATA6: SATAII Connectors FDD1: Floppy Drive Connector
CD_IN1: CD-In Audio Connector PCIE1: x16 PCI Express Slot
COM3,COM4: COM3, COM4 Serial Ports PCIE2: x1 PCI Express Slots
J1: Wake On LAN Connector PCI1, PCI2, PCI3, PCI4: PCI Slots
COM1 (DB-9)
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
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
1 Speaker out
2 No connect
3 Ground
4 +5V
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 ........................................................................................ 28
BIOS Setup .................................................................................................... 28
Standard CMOS Setup................................................................................. 30
Advanced BIOS Features ............................................................................ 33
Advanced Chipset Features......................................................................... 37
Power Management Setup........................................................................... 43
PNP/PCI Configurations ............................................................................. 46
PC Health Status ........................................................................................... 47
Frequency/Voltage Control......................................................................... 48
Load Fail-Safe Defaults ............................................................................... 49
Load Optimized Defaults ............................................................................ 49
Set Supervisor/User Password.................................................................... 49
Save & Exit Setup ........................................................................................ 49
Exit Without Saving ..................................................................................... 49
BIOS Introduction
The Award 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 Award BIOS provides a Setup utility program for specifying the
system configurations and settings. The BIOS ROM of the system stores
the Setup utility. When you turn on the computer, the Award BIOS is
immediately 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 restart by
turning the system Off and back On again. The following message will
appear on the screen:
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.
The section below the setup items of the Main Menu displays the control
keys for this menu. At the bottom of the Main Menu just below the
control keys section, there is another section, which displays information
on the currently highlighted item in the list.
Note: If the system cannot boot after making and saving system
changes with Setup, the Award BIOS supports an override to
the CMOS settings that resets your system to its default.
Video EGA/VGA
Halt On All, but keyboard
At the bottom of the menu are the control keys for use on this menu. If
you need any help in each item field, you can press the <F1> key. It will
display the relevant information to help you. The memory display at the
lower right-hand side of the menu is read-only. It will adjust
automatically according to the memory changed. The following
describes each item of this menu.
Date
The date format is:
Day : Sun to Sat
Month : 1 to 12
Date : 1 to 31
Year : 1999 to 2099
To set the date, highlight the “Date” field and use the PageUp/
PageDown or +/- keys to set the current time.
Time
The time format is: Hour : 00 to 23
Minute : 00 to 59
Second : 00 to 59
To set the time, highlight the “Time” field and use the <PgUp>/ <PgDn>
or +/- keys to set the current time.
Press <Enter> to configure the hard disk. The selections include Auto,
Manual, and None. Select ‘Manual’ to define the drive information
manually. You will be asked to enter the following items.
Capacity : Capacity/size of the hard disk drive
Cylinder : Number of cylinders
Head : Number of read/write heads
Precomp : Write precompensation
Landing Zone : Landing zone
Sector : Number of sectors
Drive A / Drive B
These fields identify the types of floppy disk drive A or drive B that has
been installed in the computer. The available specifications are:
360KB 1.2MB 720KB 1.44MB 2.88MB
5.25 in. 5.25 in. 3.5 in. 3.5 in. 3.5 in.
Video
This field selects the type of video display card installed in your system.
You can choose the following video display cards:
EGA/VGA For EGA, VGA, SEGA, SVGA
or PGA monitor adapters. (default)
CGA 40 Power up in 40 column mode.
CGA 80 Power up in 80 column mode.
MONO For Hercules or MDA adapters.
Halt On
This field determines whether or not the system will halt if an error is
detected during power up.
No errors The system boot will not be halted for any error
that may be detected.
All errors Whenever the BIOS detects a non-fatal error,
the system will stop and you will be prompted.
All, But Keyboard The system boot will not be halted for a
keyboard error; it will stop for all other errors
All, But Diskette The system boot will not be halted for a disk
error; it will stop for all other errors.
All, But Disk/Key The system boot will not be halted for a key-
board or disk error; it will stop for all others.
CPU Feature
Press Enter to configure the settings relevant to CPU Feature.
CPU L3 Cache
This feature is enabled.
Virus Warning
If this option is enabled, an alarm message will be displayed when trying to write
on the boot sector or on the partition table on the disk, which is typical of the
virus.
Security Option
This field allows you to limit access to the System and Setup. The default
value is Setup. When you select System, the system prompts for the User
Password every time you boot up. When you select Setup, the system
always boots up and prompts for the Supervisor Password only when the
Setup utility is called up.
APIC Mode
APIC stands for Advanced Programmable Interrupt Controller. The
default setting is Enabled.
Console Redirection
This configuration is supported only with MB945AF (with iAMT
function). The default setting is Disabled.
Baud Rate
This configuration is supported only with MB945AF (with iAMT
function). The default setting is 19200.
** VGA Setting **
PEG/On Chip VGA Control Auto
On-Chip Frame Buffer Size 32MB
DVMT Mode Enabled
DVMT/FIXED memory Size 256MB
PAVP Mode Lite
SDVO Device Setting None
SDVO LVDS Protocol 1 Ch 18bit
SDVO Panel Number 640 x 480
Boot Display CRT
VT-d
By default, this feature is disabled.
VGA Setting
The fields under the On-Chip VGA Setting and their default settings are:
PEG/On Chip VGA Control: Auto
On-Chip Frame Buffer Size: 32MB
DVMT Mode: Enabled
DVMT/FIXED memory Size: 256MB
PAVP Mode: Lite
SDVO Device Setting: None
SDVO LVDS Protocol: 1 Ch 18bit
SDVO Panel Number: 640 x 480
Boot Display: CRT
Integrated Peripherals
This section sets configurations for your hard disk and other integrated
peripherals. The first screen shows three main items for user to select.
Once an item selected, a submenu appears. Details follow.
Phoenix - AwardBIOS CMOS Setup Utility
Integrated Peripherals
SATA Mode
The setting choices for the SATA Mode are IDE, RAID and AHCI
Mode. Select [IDE] if you want to have SATA function as IDE.
Select [AHCI] for Advanced Host Controller Interface (AHCI) feature,
with improved SATA performance with native command queuing &
native hot plug. Select [RAID] to use SATA as RAID function. RAID
function is supported on the board if it uses ICH10DO. (MB945
supports 6 x SATA with RAID.)
ACPI Function
Enable this function to support ACPI (Advance Configuration and
Power Interface).
ACPI Suspend
The default setting of the ACPI Suspend mode is S1(POS).
Power Management
This field allows you to select the type of power saving management
modes. There are four selections for Power Management.
Min. Power Saving Minimum power management
Max. Power Saving Maximum power management.
User Define Each of the ranges is from 1 min. to
1hr. Except for HDD Power Down
which ranges from 1 min. to 15 min.
Suspend Type
The default setting for the Suspend Type field is Stop Grant.
Suspend Mode
When enabled, and after the set time of system inactivity, all devices
except the CPU will be shut off.
Soft-Off by PWRBTN
This field defines the power-off mode when using an ATX power
supply. The Instant Off mode allows powering off immediately upon
pressing the power button. In the Delay 4 Sec mode, the system powers
off when the power button is pressed for more than four seconds or
enters the suspend mode when pressed for less than 4 seconds.
CPU THRM-Throttling
When the system enters Doze mode, the CPU clock runs only part of the
time. You may select the percent of time that the clock runs.
Power On by Ring
This field enables or disables the power on of the system through the
modem connected to the serial port or LAN.
Resume by Alarm
This field enables or disables the resumption of the system operation.
When enabled, the user is allowed to set the Date and Time.
HPET Support
HPET stands for High Precision Event Timer. HPET can produce
periodic interrupts at a much higher resolution than the RTC and is used
to synchronize multimedia streams, providing smooth playback and
reducing the need to use other timestamp calculations such as an
x86 CPU's RDTSC instruction. HPET is not supported in Windows XP,
Windows Server 2003, or earlier Windows versions. HPET is supported
under Linux and Windows Vista. By default, this field is enabled.
HPET Mode
By default, this field is set to 32-bit mode.
PNP/PCI Configurations
This option configures the PCI bus system. All PCI bus systems on the
system use INT#, thus all installed PCI cards must be set to this value.
Phoenix - AwardBIOS CMOS Setup Utility
PnP/PCI Configurations
PNP OS Install
Enable the PNP OS Install option if it is supported by the
operating system installed. The default value is No.
Resources Controlled by
This PnP BIOS can configure all of the boot and compatible devices
with the use of a PnP operating system such as Windows 95.
PC Health Status
Phoenix - AwardBIOS CMOS Setup Utility
PC Health Status
Shutdown Temperature
This field allows the user to set the temperature by which the system
automatically shuts down once the threshold temperature is reached.
This function can help prevent damage to the system that is caused by
overheating.
Temperatures/Fan Speeds/Voltages
These fields are the parameters of the hardware monitoring function
feature of the board. The values are read-only values as monitored by the
system and show the PC health status.
Frequency/Voltage Control
Phoenix - AwardBIOS CMOS Setup Utility
Frequency/Voltage Control
Spread Spectrum
This field sets the value of the spread spectrum. The default setting is
Disabled. This field is for CE testing use only.
Drivers Installation
This section describes the installation procedures for software and
drivers under the Windows 2000, Windows XP and Windows Vista. The
software and drivers are included with the board. If you find the items
missing, please contact the vendor where you made the purchase. The
contents of this section include the following:
IMPORTANT NOTE:
After installing your Windows operating system (Windows
2000/XP/Vista), you must install first the Intel Chipset Software
Installation Utility before proceeding with the drivers installation.
2. When the Welcome screen appears, click Next to continue. Click Yes
to accept the software license agreement and proceed with the
installation process.
1. Insert the drivers DVD into the DVD drive. Click Intel and then
Intel(R) Q45 Chipset Drivers. Click Intel(R) Q45 Chipset Family
Graphics Driver.
2. When the Welcome screen appears, click Next to continue. Click Yes
to accept the software license agreement and proceed with the
installation process.
1. Insert the drivers DVD into the DVD drive. Click Intel and then
Intel(R) Q45 Chipset Drivers. Click Realtek High Definition Codec
Audio Driver.
2. When the Welcome screen appears, click Next to continue. Click Yes
to accept the software license agreement and proceed with the process.
2. In the welcome screen to the Setup Program, click Next. In the next
“warning” page as below, click Next.
4. In the Setup Progress page, click Next, and restart the computer when
prompted.
1. Insert the drivers DVD into the DVD drive. Click Intel and then
Intel(R) Q45 Chipset Drivers. Click Intel(R) IAMT.
3. In the welcome screen to the Setup Program, click Next. In the next
License Agreement page, click Yes to accept to all the terms with the
agreement and continue the setup program.
4. Click Yes in the Readme File Information page and continue the setup
program. Setup is now in progress. Click Next.
1. Insert the drivers DVD into the DVD drive. Click Intel and then
Intel(R) Q45 Chipset Drivers. Click Intel(R) IAMT, then Intel(R)
SOL/LSM Driver.
4. The next screen is for the Software Update Installation Wizard. It will
install the update for “Hotfix for Windows XP (KB942288-v3). Click
Next to continue.
7. The next screen will show the setup welcome screen to the
Microsoft .NET Frame 3.5 SP1 Setup. Follow the instructions
accordingly to finish the setup process. In this screen, check the
checkbox for “I have read and ACCEPT the terms of the License
Agreement”, and then click Install.
9. Once the Microsoft .NET Frame 3.5 SP1 Setup is complete, the next
screen shows the Intel Active Management Technology Setup Progress.
Click Next to continue.
Appendix
A. I/O Port Address Map
Each peripheral device in the system is assigned a set of I/O port
addresses that also becomes the identity of the device. The following
table lists the I/O port addresses used.
Address Device Description
000h - 01Fh DMA Controller #1
020h - 03Fh Interrupt Controller #1
040h - 05Fh Timer
060h - 06Fh Keyboard Controller
070h - 07Fh Real Time Clock, NMI
080h - 09Fh DMA Page Register
0A0h - 0BFh Interrupt Controller #2
0C0h - 0DFh DMA Controller #2
0F0h Clear Math Coprocessor 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
3B0h - 3BFh Monochrome & Printer adapter
3C0h - 3CFh EGA adapter
3D0h - 3DFh CGA adapter
3F0h - 3F7h Floppy Disk Controller
3F8h - 3FFh Serial Port #1(COM1)
Level Function
IRQ0 System Timer Output
IRQ1 Keyboard
IRQ2 Interrupt Cascade
IRQ3 Serial Port #2
IRQ4 Serial Port #1
IRQ5 Reserved
IRQ6 Floppy Disk Controller
IRQ7 Parallel Port #1
IRQ8 Real Time Clock
IRQ9 Reserved
IRQ10 Reserved
IRQ11 Reserved
IRQ12 PS/2 Mouse
IRQ13 80287
IRQ14 Primary IDE
IRQ15 Secondary IDE
SAMPLE CODE:
//---------------------------------------------------------------------------
//
// 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 <dos.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include "W627DHG.H"
//---------------------------------------------------------------------------
int main (void);
void WDTInitial(void);
void WDTEnable(unsigned char);
void WDTDisable(void);
//---------------------------------------------------------------------------
int main (void)
{
char SIO;
SIO = Init_W627DHG();
if (SIO == 0)
{
printf("Can not detect Winbond 83627DHG, program
abort.\n");
return(1);
}
WDTInitial();
WDTEnable(10);
WDTDisable();
return 0;
}
//---------------------------------------------------------------------------
void WDTInitial(void)
{
unsigned char bBuf;
bBuf = Get_W627DHG_Reg(0x2D);
bBuf &= (~0x01);
Set_W627DHG_Reg(0x2D, bBuf); //Enable WDTO
}
//---------------------------------------------------------------------------
void WDTEnable(unsigned char NewInterval)
{
unsigned char bBuf;
Set_W627DHG_LD(0x08);
Set_W627DHG_Reg(0x30, 0x01); //enable timer
bBuf = Get_W627DHG_Reg(0xF5);
bBuf &= (~0x08);
Set_W627DHG_Reg(0xF5, bBuf); //count mode is second
Set_W627DHG_Reg(0xF6, NewInterval);
//set timer
}
//---------------------------------------------------------------------------
void WDTDisable(void)
{
Set_W627DHG_LD(0x08);
Set_W627DHG_Reg(0xF6, 0x00); //clear
watchdog timer
Set_W627DHG_Reg(0x30, 0x00); //watchdog
disabled
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
//---------------------------------------------------------------------------
#ifndef __W627DHG_H
#define __W627DHG_H 1
//---------------------------------------------------------------------------
#define W627DHG_INDEX_PORT (W627DHG_BASE)
#define W627DHG_DATA_PORT (W627DHG_BASE+1)
//---------------------------------------------------------------------------
#define W627DHG_REG_LD 0x07
//---------------------------------------------------------------------------
#define W627DHG_UNLOCK 0x87
#define W627DHG_LOCK 0xAA
//---------------------------------------------------------------------------
unsigned int Init_W627DHG(void);
void Set_W627DHG_LD( unsigned char);
void Set_W627DHG_Reg( unsigned char, unsigned char);
unsigned char Get_W627DHG_Reg( unsigned char);
//---------------------------------------------------------------------------
#endif //__W627DHG_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.
//
//---------------------------------------------------------------------------
#include "W627DHG.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int W627DHG_BASE;
void Unlock_W627DHG (void);
void Lock_W627DHG (void);
//---------------------------------------------------------------------------
unsigned int Init_W627DHG(void)
{
unsigned int result;
unsigned char ucDid;
W627DHG_BASE = 0x4E;
result = W627DHG_BASE;
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0xA0)
{ goto Init_Finish; }
else if (ucDid == 0xB0) //W83627DHG-P??
{ goto Init_Finish; }
W627DHG_BASE = 0x2E;
result = W627DHG_BASE;
ucDid = Get_W627DHG_Reg(0x20);
if (ucDid == 0xA0)
{ goto Init_Finish; }
else if (ucDid == 0xB0) //W83627DHG-P??
{ goto Init_Finish; }
W627DHG_BASE = 0x00;
result = W627DHG_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_W627DHG (void)
{
outportb(W627DHG_INDEX_PORT, W627DHG_UNLOCK);
outportb(W627DHG_INDEX_PORT, W627DHG_UNLOCK);
}
//---------------------------------------------------------------------------
void Lock_W627DHG (void)
{
outportb(W627DHG_INDEX_PORT, W627DHG_LOCK);
}
//---------------------------------------------------------------------------
void Set_W627DHG_LD( unsigned char LD)
{
Unlock_W627DHG();
outportb(W627DHG_INDEX_PORT, W627DHG_REG_LD);
outportb(W627DHG_DATA_PORT, LD);
Lock_W627DHG();
}
//---------------------------------------------------------------------------
void Set_W627DHG_Reg( unsigned char REG, unsigned char DATA)
{
Unlock_W627DHG();
outportb(W627DHG_INDEX_PORT, REG);
outportb(W627DHG_DATA_PORT, DATA);
Lock_W627DHG();
}
//---------------------------------------------------------------------------
unsigned char Get_W627DHG_Reg(unsigned char REG)
{
unsigned char Result;
Unlock_W627DHG();
outportb(W627DHG_INDEX_PORT, REG);
Result = inportb(W627DHG_DATA_PORT);
Lock_W627DHG();
return Result;
}
//---------------------------------------------------------------------------