User`s manual

Watchdog Timer 61
MI-965
Appendix A - Watchdog Timer
The following is a sample program for configuring the MI-965’s
watchdog timer.
A.1 Sample Code
SIO_IDX equ 2EH
SIO_DTA equ 2FH
Timer equ 10; reset after 10 seconds
; Enter configuration mode
mov dx,SIO_IDX
mov al,87h
out dx,al
out dx,al
; Set to LDN 08
mov dx,SIO_IDX
mov al,07h
out dx,al
mov dx,SIO_DTA
mov al,08h
out dx,al
; Set WatchDog Timer
mov dx,SIO_IDX
mov al,0f6h
out dx,al
mov dx,SIO_DTA
mov al,Timer
out dx,al
; Exit configuration mode
mov dx,SIO_IDX
mov al,0AAh
out dx,al