65 ARK-5420 User ManualAppendix A Programming the Watchdog TimerA.1.3 Example Program;-----------------------------------------------------------1. Enable watchdog timer and set 10 sec. as timeout interval.;------------------------------------------------------------Mov dx,A65h ; Select register 65h, watchdog timer I/O portaddress 680h+ register shifts 65hMov al,80h ; Set second as counting unitOut dx,alMov dx,A66h ; Select register 66h, watchdog timer I/O portaddress 680h+ register shift 66hMov al,10 ; Set timeout interval as 10 seconds and start count-ingOut dx,al;-----------------------------------------------------------2. Enable watchdog timer and set 5 min. as timeout interval.;-----------------------------------------------------------Mov dx,A65h ; Select register 65h, watchdog timer I/O portaddress 680h+ register shifts 65hMov al,00h ; Set minute as counting unitOut dx,al680hMov dx,A66h ; Select register 66h, watchdog timer I/O portaddress 680h+ register shifts 66hMov al,5 ;Set timeout interval as 5 minutes and start countingOut dx,al;-----------------------------------------------------------3. Enable watchdog timer to be reset by mouse.;-----------------------------------------------------------Mov dx,A67h ; Select register 67h, watchdog timer I/O portaddress 680h+ register shifts 67hIn al,dxOr al,4h ; Enable watchdog timer to be reset by mouseOut dx,al;-----------------------------------------------------------4. Enable watchdog timer to be reset by keyboard.;-----------------------------------------------------------Mov dx,A67h ; Select register 67h, watchdog timer I/O portaddress 680h+ register shifts 67hIn al,dxOr al,2h ; Enable watchdog timer to be reset by keyboardOut dx,al;-----------------------------------------------------------5. Generate a time-out signal without timer counting.;-----------------------------------------------------------