0% found this document useful (0 votes)
64 views14 pages

Serial Communication

The document discusses serial communication and transmitting data bit by bit. It explains how to configure the serial port control registers like TMOD, TH1, and SCON to set the baud rate and transmission mode. It also outlines the steps to transmit and receive data through the serial port by loading the TX buffer SBUF and monitoring the receive flag RI.

Uploaded by

Garry Manocha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views14 pages

Serial Communication

The document discusses serial communication and transmitting data bit by bit. It explains how to configure the serial port control registers like TMOD, TH1, and SCON to set the baud rate and transmission mode. It also outlines the steps to transmit and receive data through the serial port by loading the TX buffer SBUF and monitoring the receive flag RI.

Uploaded by

Garry Manocha
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

SERIAL COMMUNICATION

Putting It All Together

TRANSMITTING BIT BY BIT

SCON

SM0 SM1 SM2 RENTB8RB8 TI RI


7 6 5 4 3 2 1 0

PCON.7 (SMOD)

SM0 SM1

PCON.7 (SMOD) = DOUBLES THE BAUD RATE

BAUD RATE

19200 BAUD RATE

INTUITION

SPACE

STOP

START MARK

LAST

D7

D0

FIRST

STEPS
LOAD TMOD AND TH1

LOAD SCON

SET TR1 AND CLEAR TI

DATA IN SBUF

STEPS
LOAD TMOD AND TH1

LOAD SCON

SET TR1 AND CLEAR RI

DATA FROM SBUF

You might also like