Aaeon SBC-357 Manual page 73

Table of Contents

Advertisement

Read_From_Chip
;;Input: al - Index#
;;Output al - Data
cli
Open_Chip
out
IO_Delay
in
IO_Delay
Close_chip
sti
ret
ENDP
Watchdog_Timer_Program:
Open_Chip
mov
call
mov
and
mov
mov
call
mov
mov
call
mov
call
mov
call
mov
mov
call
and
or
mov
mov
call
mov
or
mov
mov
call
PROC
22h,al
al,23h
al,37h
Read_From_Chip
bl,al
al,10111111b
ah,al
al,37h
Write_To_Chip
ah,33
al,39h
Write_To_Chip
ax,003ah
Write_To_Chip
ax,003bh
Write_To_Chip
al,bl
al,38h
Read_From_Chip
al,00001111B
al,11010000b
ah,al
al,38h
Write_to_Chip
al,bl
al,01000000b
ah,al
al,37h
Write_To_Chip
Appendix A Watchdog Timer Demo Program
;;save register data
;;set bit6=0 to disable
timer
;;1 msec=33x30.5u sec
;;set time-out event aas
system reset
;;set bit6 = 1 to enable
timer
65

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents