Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/09/01 00:10
Read: times


 
#13945 - RE: How to communicate with both serial port
You need to send it twice: once to each serial port.

When you write to SBUF0 it will write to serial port 0, when you write to SBUF1 it will write to serial port 1 (I believe those are the names of the SFRs, it's been awhile since I've worked with the 80C320).

In 'C' you'd code the following to write the letter "A" to both serial ports:

SBUF0 = 'A';
SBUF1 = 'A';

Be sure to include the appropriate header file for the 80C320 since SBUF0 and SBUF1 are not standard 8051 SFRs.

Craig Steiner


List of 3 messages in thread
TopicAuthorDate
How to communicate with both serial port            01/01/70 00:00      
RE: How to communicate with both serial port            01/01/70 00:00      
RE: How to communicate with both serial port            01/01/70 00:00      

Back to Subject List