Copyright © 2013 IBASE Technology Inc. All Rights Reserved.
65
IBASE Technology Inc.
}
//---------------------------------------------------------------------------
void WDTInitial(void)
{
unsigned char bBuf;
Set_NCT5523D_LD(0x08);
//switch to logic device 8
bBuf = Get_NCT5523D_Reg(0x30);
bBuf &= (~0x01);
Set_NCT5523D_Reg(0x30, bBuf);
//Enable WDTO
}
//---------------------------------------------------------------------------
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
}
//---------------------------------------------------------------------------
Содержание BYTEM 1 PC Series
Страница 2: ...www ibase com tw IBASE Technology Inc BYTEM xx1 PC User Manual...
Страница 9: ......
Страница 12: ...Copyright 2013 IBASE Technology Inc All Rights Reserved 3 IBASE Technology Inc 1 2 2 Dimensions BYTEM W071 PC...
Страница 13: ...4 BYTEM xx1 PC User Manual BYTEM 101 PC...
Страница 14: ...Copyright 2013 IBASE Technology Inc All Rights Reserved 5 IBASE Technology Inc BYTEM 121 PC...
Страница 19: ...10 BYTEM xx1 PC User Manual Board Dimensions for IB897 I45 I27 I15...