APPENDIX
56
MI945X User’s Manual
Set_W627DHG_LD(0x08);
//switch to logic device 8
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);
//switch to logic device 8
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 MI945X
Page 1: ...MI945X Intel CoreTM 2 Duo GM45 Mini ITX Motherboard USER S MANUAL Version 1 0B ...
Page 8: ...INTRODUCTION 4 MI945X User s Manual Board Dimensions ...
Page 9: ...INTRODUCTION MI945X User s Manual 5 ...
Page 10: ...INTRODUCTION 6 MI945X User s Manual This page is intentionally left blank ...
Page 62: ...APPENDIX 58 MI945X User s Manual This page is intentionally left blank ...