Aaeon SBC-357 Manual page 72

Table of Contents

Advertisement

Following is an example of programming 1 sec period for
watchdog timer in assembly language. When timer times out, is
will generate system reset.
IO_Delay MACRO
Open_Chip MACRO
Close_Chip MACRO
Write_To_Chip PROC
;;Input: ah - Data
;;
64 SBC-357 User Manual
jcxz
$+2
jcxz
$+2
ENDM
push
ax
mov
al,013h
out
22h,al
IO_Delay
mov
al,0c5h
out
23h,al
IO_Delay
pop
ax
ENDM
push
ax
mov
al,13h
out
22h,al
IO_Dealy
mov
al,0
out
23h,al
IO_Delay
pop
ax
ENDM
al - Index#
cli
Open_Chip
out
22h,al
IO_Delay
xchg
ah,al
out
23H,AL
IO_Delay
Close_Chip
sti
ret
ENDP

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents