64 SBC-357 User Manual
Example
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
jcxz
$+2
jcxz
$+2
ENDM
Open_Chip MACRO
push
ax
mov
al,013h
out
22h,al
IO_Delay
mov
al,0c5h
out
23h,al
IO_Delay
pop
ax
ENDM
Close_Chip MACRO
push
ax
mov
al,13h
out
22h,al
IO_Dealy
mov
al,0
out
23h,al
IO_Delay
pop
ax
ENDM
Write_To_Chip PROC
;;Input: ah - Data
;;
al - Index#
cli
Open_Chip
out
22h,al
IO_Delay
xchg
ah,al
out
23H,AL
IO_Delay
Close_Chip
sti
ret
ENDP
Summary of Contents for SBC-357
Page 1: ...SBC 357 Half size All in one 386SX 40 CPU card...
Page 8: ......
Page 14: ...6 SBC 357 User Manual Card dimensions 19 00 80 645 121 00 98 50 73 66 28 80 185 00 19 60...
Page 39: ...C H A P T E R 3 AMIBIOS Setup This chapter describes how to set the BIOS configuration data...
Page 74: ...66 SBC 357 User Manual...