AR-B1665 User’s Guide
4. WATCHDOG TIMER
This section describes the use of Watchdog Timer. AR-B1665 is equipped with a programmable time-out period
watchdog timer that enable user to reset the system after a time out occur. Users can use simple program to enable
the watchdog timer, and program the timer in range of seconds or minutes, with maximum 255 seconds/minutes.
Once you enable the watchdog timer, the program will start the count down and when counting down to zero the
system will generate a reset signal to reset the system.
4.1 WATCHDOG TIMER SETTING
The watchdog timer is a circuit that maybe be used from your program software to detect crash or hang up.
The Watchdog timer is automatically disabled after reset. Once you enabled the watchdog timer, your program
should trigger the watchdog timer every time before it times out. After you trigger the watchdog timer, the timer will
be set to zero and start to count again. If your program fails to trigger the watchdog timer before times out, it will
generate a reset pulse to reset the system .
Please refer to the following table in order to properly program Watchdog function
Users could test watchdog function under ‘Debug’ program as follows:
C:>debug
o 4e 87
;Extended Functions Enable Register
o 4e 87
;Extended Functions Enable Register
o 4e 07
;EFIR=EFER (Extended Functions Index Register)
point to Logical Device Number Reg.
o 4f 08
;EFDR=EFIR+1 (select logical device 8, Watchdog )
o 4e f3
;select register F3(to select Watchdog count mode ;seconds or
minutes)
o 4f 05
;write 05 to CRF3(for minutes) ,default is 01(second)
o 4e f4
;select CRF4 (to set Watchdog Timer Value)
o 4f
02
;set the Watchdog timer to 2 minutes. (00 to disable, max FF)
o 4e aa
;exit EFER
q
;Quit debug
18