![background image](http://html1.mh-extra.com/html/ibase-technology/fwa5104-series/fwa5104-series_user-manual_3216470033.webp)
FWA5104 Series User
’s Manual
void WDTEnable(unsigned char NewInterval)
{
unsigned char bBuf;
Set_NCT5523D_LD(0x08); //switch to logic device 8
Set_NCT5523D_Reg(0x30, 0x01); //enable timer
bBuf = Get_NCT5523D_Reg(0xF0);
bBuf &= (~0x08);
Set_NCT5523D_Reg(0xF0, bBuf); //count mode is second
Set_NCT5523D_Reg(0xF1, NewInterval); //set timer
}
//---------------------------------------------------------------------------
void WDTDisable(void)
{
Set_NCT5523D_LD(0x08); //switch to logic device 8
Set_NCT5523D_Reg(0xF1, 0x00); //clear watchdog timer
Set_NCT5523D_Reg(0x30, 0x00); //watchdog disabled
}
//---------------------------------------------------------------------------