APPENDIX
MB945 User’s Manual
71
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
(W627D1)
//---------------------------------------------------------------------------
#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;
Summary of Contents for MB945
Page 1: ...MB945 Socket LGA775 Intel Q45 Chipset Industrial Motherboard USER S MANUAL Version 1 0B...
Page 8: ...INTRODUCTION Board Dimensions 4 MB945 User s Manual...
Page 30: ...INSTALLATIONS 26 MB945 User s Manual This page is intentionally left blank...
Page 38: ...BIOS SETUP 34 MB945 User s Manual...
Page 69: ...DRIVERS INSTALLATION 8 After Setup is complete click Exit MB945 User s Manual 65...
Page 71: ...DRIVERS INSTALLATION MB945 User s Manual 67 This page is intentionally left blank...
Page 77: ...APPENDIX MB945 User s Manual 73 This page is intentionally left blank...