Solid State Logic AR-B7041 Computer Hardware User Manual


 
AR-B7041 User¡¦s Guide
2-7
2.4.4 Watchdog Timer Trigger
After you enable the watchdog timer, your program must write the same factor as enabling to the watchdog register
at least once every time-out period to its previous setting. You can change the time-out period by writing another
timer factor to the watchdog register at any time, and you must trigger the watchdog before the new time-out period
in next trigger. Below is a BASICA program which demonstrates how to trigger the watchdog timer:
2000 REM Points to command register
2010 WD_REG% = BASE_PORT% + 3
2020 REM Timer factor = 84H
2030 TIMER_FACTOR% = &H84
2040 REM Output factor to watchdog register
2050 OUT WD_REG%, TIMER_FACTOR%
.,etc.
2.4.5 Watchdog Timer Disabled
To disable the watchdog timer, simply write a 00H to the watchdog register.
3000 REM Points to command register
3010 WD_REG% = BASE_PORT% + 3
3020 REM Timer factor = 0
3030 TIMER_FACTOR% = 0
3040 REM Output factor to watchdog register
3050 OUT WD_REG%, TIMER_FACTOR%
., etc.