Appendix
MPT-1000V User’s Manual
79
}
//---------------------------------------------------------------------------
void EnableWDT(int interval)
{
unsigned char bBuf;
bBuf = Get_F81866_Reg(0x2B); bBuf &= (~0x20);
Set_F81866_Reg(0x2B, bBuf); //Enable WDTO
Set_F81866_LD(0x07);
//switch to logic device 7
Set_F81866_Reg(0x30, 0x01); //enable timer
bBuf = Get_F81866_Reg(0xF5); bBuf &= (~0x0F);
bBuf |= 0x52;
Set_F81866_Reg(0xF5, bBuf);
//count mode is second Set_F81866_Reg(0xF6, interval);
//set timer
bBuf = Get_F81866_Reg(0xFA); bBuf |= 0x01;
Set_F81866_Reg(0xFA, bBuf); //enable WDTO output
bBuf = Get_F81866_Reg(0xF5); bBuf |= 0x20;
Set_F81866_Reg(0xF5, bBuf); //start counting
}
//---------------------------------------------------------------------------
void DisableWDT(void)
{
unsigned char bBuf;
Set_F81866_LD(0x07);
//switch to logic device 7 bBuf = Get_F81866_Reg(0xFA);
bBuf &= ~0x01;
Set_F81866_Reg(0xFA, bBuf); //disable WDTO output
bBuf = Get_F81866_Reg(0xF5); bBuf &= ~0x20;
bBuf |= 0x40;
Set_F81866_Reg(0xF5, bBuf); //disable WDT
}
//---------------------------------------------------------------------------
Summary of Contents for MPT-1000V
Page 1: ...MPT 1000V Multi Purpose In Vehicle System User s Manual Version 1 0 August 2021...
Page 8: ......
Page 16: ...8 MPT 2000V User s Manual Oblique View...
Page 28: ...20 MPT 1000V User s Manual MBT 1002 bottom view...
Page 34: ...26 MPT 1000V User s Manual 2 4 10 SW6 System Reset Button...
Page 36: ...28 MPT 1000V User s Manual 2 5 1 CN1 USB 3 0 Port 2 5 2 CN2 Audio Line Out...
Page 75: ...BIOS Setup MPT 1000V User s Manual 67 4 4 4 6 CSM Configuration 4 4 7 Power Configuration...