IBASE Technology ASB200-918 Series User Manual page 71

Fanless system with 3.5" disk-size sbc system
Table of Contents

Advertisement

Set_NCT6116D_LD(0x08);
8
bBuf = Get_NCT6116D_Reg(0x30);
bBuf &= (~0x01);
Set_NCT6116D_Reg(0x30, bBuf);
}
//---------------------------------------------------------------------------
void WDTEnable(unsigned char NewInterval)
{
unsigned char bBuf;
Set_NCT6116D_LD(0x08);
8
Set_NCT6116D_Reg(0x30, 0x01);
bBuf = Get_NCT6116D_Reg(0xF0);
bBuf &= (~0x08);
Set_NCT6116D_Reg(0xF0, bBuf);
Set_NCT6116D_Reg(0xF1, NewInterval);
}
//---------------------------------------------------------------------------
void WDTDisable(void)
{
Set_NCT6116D_LD(0x08);
8
Set_NCT6116D_Reg(0xF1, 0x00);
Set_NCT6116D_Reg(0x30, 0x00);
}
//---------------------------------------------------------------------------
ASB200-918 User Manual
Appendix
//switch to logic device
//Enable WDTO
//switch to logic device
//enable timer
//count mode is second
//set timer
//switch to logic device
//clear watchdog timer
//watchdog disabled
63

Advertisement

Table of Contents
loading

Table of Contents