E m b e d d e d B o x P C
B O X E R - 6 4 0 4
}
*******************************************************************************
*******************************************************************************
// Procedure : AaeonWDTEnable
VOID
AaeonWDTEnable ()
{
WDTEnableDisable(1);
}
// Procedure : AaeonWDTConfig
VOID
AaeonWDTConfig (byte Counter, BOOLEAN Unit)
{
// Disable WDT counting
WDTEnableDisable(0);
// Clear Watchdog Timeout Status
WDTClearTimeoutStatus();
// WDT relative parameter setting
WDTParameterSetting(Timer, Unit);
}
VOID
WDTEnableDisable(byte Value)
{
If (Value == 1)
WDTSetBit(
TimerReg
,
EnableBit
, 1);
else
WDTSetBit(
TimerReg
,
EnableBit
, 0);
}
VOID
WDTParameterSetting(byte Counter, BOOLEAN Unit)
{
// Watchdog Timer counter setting
WDTWriteByte(
CounterReg
,
Counter
);
// WDT counting unit setting
WDTSetBit(
TimerReg
,
UnitBit, Unit
);
// WDT output mode set to pulse
WDTSetBit(
TimerReg
,
ModeBit
,
ModeVal
);
// WDT output mode set to active low
WDTSetBit(
TimerReg
,
PolarityBit
,
PolarityVal
);
// WDT output pulse width is 25ms
WDTSetBit(
TimerReg
,
PSWidthBit
,
PSWidthVal
);
Appendix A Programming the Watchdog Timer
A-4
DISTRIBUTED BY TEXIM EUROPE
Summary of Contents for BOXER-6404
Page 75: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 3 DISTRIBUTED BY TEXIM EUROPE ...
Page 78: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 6 DISTRIBUTED BY TEXIM EUROPE ...
Page 79: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 7 DISTRIBUTED BY TEXIM EUROPE ...
Page 80: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 8 DISTRIBUTED BY TEXIM EUROPE ...
Page 81: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 9 DISTRIBUTED BY TEXIM EUROPE ...
Page 82: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 10 DISTRIBUTED BY TEXIM EUROPE ...
Page 83: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 11 DISTRIBUTED BY TEXIM EUROPE ...
Page 84: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 12 DISTRIBUTED BY TEXIM EUROPE ...
Page 85: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 13 DISTRIBUTED BY TEXIM EUROPE ...
Page 86: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 14 DISTRIBUTED BY TEXIM EUROPE ...
Page 87: ...Embedded Box PC B O X E R 6 4 0 4 Appendix B I O Information B 15 DISTRIBUTED BY TEXIM EUROPE ...