![background image](http://html1.mh-extra.com/html/ibase-technology/mb997/mb997_user-manual_3298449080.webp)
72
MB997
User’s Manual
{
printf(" Parameter incorrect!!\n");
return (1);
}
bTime = strtol (argv[1], endptr, 10);
printf("System will reset after %d seconds\n", bTime);
if (bTime)
{
EnableWDT(bTime);
}
else
{
DisableWDT(); }
return 0;
}
//---------------------------------------------------------------------------
void EnableWDT(int interval)
{
unsigned char bBuf;
unsigned char OutPage, OutIndex, OutValue;
NCT6686EnterPageConfig();
OutPage = 0x02; //Page2
OutIndex = 0x40; //Index 0x40 WDT Timer Configuration
OutValue = 0x01; //Bit1:Select 0:Second Mode 1:Minute Mode
//Bit0:WDT_En 1:Enable 0:Disable
NCT6686SetPageValue(OutPage, OutIndex, OutValue);
NCT6686ExitConfig();
Delay_Loop();
OutPage = 0x02; //Page2
OutIndex = 0x41; //Index 0x41 WDT Timer Count
OutValue = interval; //Count Value
NCT6686SetPageValue(OutPage, OutIndex, OutValue);
NCT6686ExitConfig();
Delay_Loop();
}
//---------------------------------------------------------------------------
void DisableWDT(void)
{
unsigned char bBuf;
unsigned char OutPage, OutIndex, OutValue;
NCT6686EnterPageConfig();
OutPage = 0x02; //Page2
OutIndex = 0x40; //Index 0x40 WDT Timer Configuration
OutValue = 0x00; //Bit1:Select 0:Second Mode 1:Minute Mode
//Bit0:WDT_En 1:Enable 0:Disable
NCT6686SetPageValue(OutPage, OutIndex, OutValue);
NCT6686ExitConfig();
Delay_Loop();
}
//---------------------------------------------------------------------------
void NCT6686EnterPageConfig(void){
Summary of Contents for MB997
Page 8: ...viii MB997 User s Manual This page is intentionally left blank ...
Page 14: ...6 MB997 User s Manual 1 6 Block Diagram ...
Page 17: ...General Information MB997 User s Manual 9 1 1 8 Dimensions ...
Page 18: ...10 MB997 User s Manual This page is intentionally left blank ...
Page 22: ...14 MB997 User s Manual 2 3 Jumper Connector Locations on MB997 ...
Page 64: ...56 MB997 User s Manual CDROM Drives with no media will be emulated according to a drive type ...
Page 72: ...64 MB997 User s Manual ...