![background image](http://html1.mh-extra.com/html/ibase-technology/ib895/ib895_user-manual_3247899060.webp)
APPENDIX
56
IB895 User’s Manual
{
unsigned char bBuf;
Set_W627UHG_LD(0x08);.................................................................. //switch to logic device 8
Set_W627UHG_Reg(0x30, 0x01); ........................................................................ //enable timer
bBuf = Get_W627UHG_Reg(0xF5);
bBuf &= (~0x08);
Set_W627UHG_Reg(0xF5, bBuf); ......................................................... //count mode is second
Set_W627UHG_Reg(0xF6, NewInterval); .................................................................. //set timer
}
//---------------------------------------------------------------------------
void WDTDisable(void)
{
Set_W627UHG_LD(0x08);...........................................................................................................
Set_W627UHG_Reg(0xF6, 0x00); .......................................................... //clear watchdog timer
Set_W627UHG_Reg(0x30, 0x00); .............................................................. //watchdog disabled
}
//---------------------------------------------------------------------------