Author :
Craig
Steiner
Source :
8052.com
Book :
The
8051/8052
Microcontroller:
Architecture,
Assembly
Language,
And
Hardware
Interfacing
(Paperback)
Writing
to the
Serial
Port
Once the
Serial
Port has
been
properly
configured
as
explained
above,
the
serial
port is
ready to
be used
to send
data and
receive
data. If
you
thought
that
configuring
the
serial
port was
simple,
using
the
serial
port
will be
a
breeze.
To write
a byte
to the
serial
port one
must
simply
write
the
value to
the
SBUF
(99h)
SFR. For
example,
if you
wanted
to send
the
letter
"A" to
the
serial
port, it
could be
accomplished
as
easily
as:
MOV
SBUF,#’A’
>>>
Enter
here for
detail
on
"Writing
to the
Serial
Port" <<<