
R U G G E D S I B
E m b e d d e d C o n t r o l l e r
A E C - 6 8 4 0
AEC-6840 User Manual
61
A.2 W83697UF Watchdog Timer Initial Program
------Enter W83697UF configuration mode
mov al,87h ;Unlock 83697UF register
out 4eh,al
out 4eh,al
------Select Logic device 8(Watch dog device)
mov al,07 ;logic device register
out 4eh,al
mov al,8 ;logic device 8
out 4fh,al
------Select CRF3 (Set unit to minute or second)
mov al,0f3h
out 4eh,al
in al,4fh
or al,11111011b ;bit 2 :0-> second
; :1-> minute
;Select second in this example
------Select CRF4 (Set timeout value)
mov al,0f4h
out 4eh,al
mov al,0ah ;10 seconds in this example
;Set this value to 0 disable timeout
out 4fh,al