61 ITA-3630 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 port address 680h+ registershifts 65hMov al,80h ; Set second as counting unitOut dx,alMov dx,A66h ; Select register 66h, watchdog timer I/O port address 680h+ registershift 66hMov al,10 ; Set timeout interval as 10 seconds and start countingOut dx,al;-----------------------------------------------------------2. Enable watchdog timer and set 5 min. as timeout interval;-----------------------------------------------------------Mov dx,A65h ; Select register 65h, watchdog timer I/O port address 680h+ registershifts 65hMov al,00h ; Set minute as counting unitOut dx,al680hMov dx,A66h ; Select register 66h, watchdog timer I/O port address 680h+ registershifts 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 port address 680h+ registershifts 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 port address 680h+ registershifts 67hIn al,dxOr al,2h ; Enable watchdog timer to be reset by keyboardOut dx,al;-----------------------------------------------------------5. Generate a time-out signal without timer counting;-----------------------------------------------------------Mov dx,A68h ; Select register 68h, watchdog timer I/O port address 680h+ registershifts 68hIn al,dxOr al,4h ; Generate a time-out signalOut dx,al;-----------------------------------------------------------