52
Software
Installation
|
Or
al,c0
;
Trigger
P/W
LED.
And
al,not
c8h
;Set
Second.
;And
al,c8h
;Set
Minute.
Out
dx,al
Mov
dx,2eh
Mov
al,0f6h
Out
dx,al
Mov
dx,2fh
Mov
al,28h
;
Set
timeout
interval
as
28seconds
and
start
counting
Out
dx,al
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
;
Exit
extended
function
mode
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Mov
dx,2eh
Mov
al,0aah
Out
dx,al
Watchdog
Timer
Trigger
After
you
enabled
the
watchdog
timer,
your
program
must
write
the
same
factor
as
enabling
to
the
watchdog
register
at
least
once
every
time
‐
out
period
to
its
previous
setting.
You
can
change
the
time
‐
out
period
by
writing
another
timer
factor
to
the
watchdog
register
at
any
time,
and
you
must
trigger
the
watchdog
before
the
new
time
‐
out
period
in
next
trigger.
Watchdog
Timer
Disabled
To
Disabled
the
watchdog
timer,
simply
write
a
00H
to
the
watchdog
register.
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
;
Enter
the
extended
function
mode,
interruptible
double
‐
write
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Mov
dx,2eh
;
Enter
to
extended
function
mode
Mov
al,87h
Out
dx,al
Out
dx,al
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
‐‐‐‐‐‐‐‐
;
Logical
device
8,
configuration
register
CRF5
Bit
3(Sec./Min.),
CRF6
Bit
0~7
(Count.)
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐