beautypg.com

Appendix 46, Mi959 user’s manual – IBASE MI959 User Manual

Page 50

background image

APPENDIX

46

MI959 User’s Manual



return 0;

}
//---------------------------------------------------------------------------
void EnableWDT(int interval)
{

unsigned char bBuf;


Set_6106_LD(0x08);

//switch to logic device 8

Set_6106_Reg(0x30, 0x01);

//enable timer


Set_6106_Reg(0xF1, interval);

//set timer


}
//---------------------------------------------------------------------------
void DisableWDT(void)
{

unsigned char bBuf;


Set_6106_LD(0x08);

//switch to logic device 7

Set_6106_Reg(0x30, 0x00);

//enable timer


}
//---------------------------------------------------------------------------