Sensoray 421 User Manual
Page 27
Advertising

Sensoray Model 421 Instruction Manual
Page 25
Watchdog Timer Procedures
SUB WatchdogEnable (Value%)
‘****************************************************************************
‘ Enable or disable watchdog timer.
‘
‘ Imports:
‘
Value% (boolean): TRUE = enable timer, FALSE = disable timer.
‘****************************************************************************
SELECT CASE Value%
CASE TRUE: chctrlImage% = chctrlImage% OR DOGBIT
CASE FALSE: chctrlImage% = chctrlImage% AND (DOGBIT XOR -1)
END SELECT
OUT CHCTRL, 8 OR chctrlImage%
END SUB
SUB WatchdogBump ()
‘****************************************************************************
‘ Refresh watchdog timer.
‘****************************************************************************
OUT HITDOG, 0
END SUB
Advertising