2-12 AR-B9612 User’s Guide
2.8.2 Trigger Watchdog Timer
After you enable the watchdog timer, your program must trigger
the watchdog at least once every time-out period. The factor of
the watchdog timer time-out constant is approximately 1.6
seconds, the trigger way just is the activity of read I/O, and not
care the reading number. Below is a BASICA program
which demonstrates how to trigger the watchdog timer:
2000 REM Points to I/O port address
2010 WD_REG% = I/O_PORT
2020 REM Input factor to watchdog
2030 WD=INP(WD_REG%)
,etc.
2.8.3 Disabled the Watchdog Timer
To disable the watchdog timer, simply write a 00H to the watchdog.
1000 REM Points to I/O port address
1010 WD_REG% = I/O_PORT
1020 REM Timer factor = 0
1030 TIMER_FACTOR% = 0
1040 REM Output factor to watchdog
1050 OUT WD_REG%, TIMER_FACTOR%
,etc.
Commentaires sur ces manuels