17-15
WATCHDOG TIMER UNIT
WDT_BusMonitor(Enable);
Real/Protected Mode:
No changes required.
******************************************************************************/
void WDT_BusMonitor(BYTE EnableDisable)
{
BYTE Status;
Status = _GetEXRegByte(WDTSTATUS);
if(EnableDisable) /* If true, Enable */
_SetEXRegByte(WDTSTATUS, Status | BIT1MSK); /* Set Bit */
else /* else, Disable */
_SetEXRegByte(WDTSTATUS, Status & ~BIT1MSK); /* Clear Bit */
}/* WDT_BusMonitor */
/*****************************************************************************
EnableWDTInterrupt:
Description:
Enables a maskable interrupt on the assertion of WDTOUT
Parameters:
None
Returns:
None
Assumptions:
None
Syntax:
EnableWDTInterrupt();
Real/Protected Mode:
No changes required
******************************************************************************/
extern void EnableWDTInterrupt(void)
{
InitICUSlave(ICU_TRIGGER_EDGE, 0x30, 0); /* Initialize Slave ICU */
SetIRQVector(wdtISR, 15, INTERRUPT_ISR); /* Puts address of interrupt
service