![background image](http://html1.mh-extra.com/html/ibase-technology/mbd301/mbd301_user-manual_605016064.webp)
56
MBD301
User’s Manual
bBuf = Get_F81846_Reg(0xFA);
bBuf &= ~0x01;
Set_F81846_Reg(0xFA, bBuf);
//disable WDTO output
bBuf = Get_F81846_Reg(0xF5);
bBuf &= ~0x20;
bBuf |= 0x40;
Set_F81846_Reg(0xF5, bBuf);
//disable WDT
}
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//
// 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 "F81846.H"
#include <dos.h>
//---------------------------------------------------------------------------
unsigned int F81846_BASE;
void Unlock_F81846 (void);
void Lock_F81846 (void);
//---------------------------------------------------------------------------
unsigned int Init_F81846(void)
{
unsigned int result;
unsigned char ucDid;
F81846_BASE = 0x4E;
result = F81846_BASE;
ucDid = Get_F81846_Reg(0x20);
if (ucDid == 0x07)
//Fintek 81846
{
goto Init_Finish;
}
F81846_BASE = 0x2E;
result = F81846_BASE;
ucDid = Get_F81846_Reg(0x20);
if (ucDid == 0x07)
//Fintek 81846
{
goto Init_Finish;
}
F81846_BASE = 0x00;
result = F81846_BASE;
Init_Finish:
return (result);
}
//---------------------------------------------------------------------------
void Unlock_F81846 (void)
{
outportb(F81846_INDEX_PORT, F81846_UNLOCK);
outportb(F81846_INDEX_PORT, F81846_UNLOCK);
}
Summary of Contents for MBD301
Page 8: ...viii MBD301 User s Manual This page is intentionally left blank ...
Page 13: ...General Information MBD301 User s Manual 5 1 1 6 Block Diagram ...
Page 16: ...8 MBD301 User s Manual This page is intentionally left blank ...
Page 42: ...34 MBD301 User s Manual ...
Page 49: ...BIOS Setup MBD301 User s Manual 41 4 4 4 6 CPU Configuration 4 4 7 USB Configuration ...