|
Software
Installation
53
‐‐‐‐‐‐‐‐
Mov
al,07h
Out
dx,al
Mov
dx,2fh
Mov
al,08h
;
Select
Logical
Device
8
of
watchdog
timer
Out
dx,al
Mov
dX,2eh
Mov
al,0f5h
;Set
second
as
counting
unit
Out
dx,al
Mov
dx,2fh
In
al,dx
And
al,not
c8h
;Set
Second
or
Minute.
Out
dx,al
Mov
dx,2eh
Mov
al,0f6h
Out
dx,al
Mov
dx,2fh
Mov
al,00h
;
Set
Watchdog
Timer
Disabled
Out
dx,al
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
;
Exit
extended
function
mode
;
‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
Mov
dx,2eh
;Exit
the
extended
function
mode
Mov
al,0aah
Out
dx,al
5
6
Programming
RS
485
The
majority
communicative
operation
of
the
RS
‐
485
is
in
the
same
of
the
RS
‐
232.
When
the
RS
‐
485
precedes
the
transmission,
which
needs
control
the
TXC
signal,
and
the
installing,
steps
are
as
follows:
Step
1:
Enabled
TXC
Step
2:
Send
out
data