SlideShare a Scribd company logo
Microcontroller serial communication
transfer of data between two entities. 
Classification: 
-Parallel 
-serial
Serial versus parallel data transfer
Microcontroller serial communication
Two basic transmission modes: 
-Asynchronous: transmitter and receiver 
clocks are independent. 
-Synchronous: transmitter and receiver 
modes are synchronized.
 Framing: 
-Data word(octet) is encapsulated between 
start bit 
stop bit c 
-receiver resynchronizes again at a start of each new word 
or character received.
Microcontroller serial communication
 Its an industry acronym which stands for 
Universal Asynchronous Receiver 
Transmitter. 
 It is the interface circuitry between the 
microprocessor and the serial port. 
 It is responsible for breaking apart bytes of 
data. 
And transmitting it one bit at a time(i.e. 
Serially)
It was designed by EIA(Electronics 
Industries Association). 
Voltage specifications: 
-3V to -25V -- logic 1 
+3V to +25V -- logic 2 
Some specific signals
Microcontroller serial communication
SBUF: Serial Buffer Register 
-data moved to SBUF is transmitted 
serially. 
-serial data Rx-ed is stored by 8051 in 
SBUF. 
Example: 
SBUF=‘char’; 
variable=SBUF; 
SFR: special function register
Microcontroller serial communication
Microcontroller serial communication
Microcontroller serial communication
Microcontroller serial communication
 This only applies to Serial Port modes 1 and 3. 
 The Baud Rate is determined based on the 
oscillators frequency when in mode 0 and 2. 
 In mode 0, the baud rate is always the oscillator 
frequency divided by 12. 
 This means if your crystal is 11.059Mhz, mode 0 
baud rate will always be 921,583 baud. 
 In mode 2 the baud rate is always the oscillator 
frequency divided by 64, so a 11.059Mhz crystal 
speed will yield a baud rate of 172,797.
PC Baud rates 
110 
150 
300 
600 
1200 
2400 
4800 
9600 
19200
 The basic equation for a timer reload value 
can be stated as: 
TH1 = 256 – Crystal Frequency/384 (or 192 if SMOD = 1) 
Baud Rate 
Example: 
To obtain a timer reload value for a 9600 baud 
serial data rate with an 11.0592 MHz crystal: 
=256 – 11.0592/384 
9600 
= 256 – 3 
= 253 or FD (hexadecimal)
The equation can also be solved to derive 
the baud rate or the crystal frequency from 
the other information as follows: 
Baud Rate = Crystal Frequency/384 (or 192 if SMOD = 1) 
256 – TH1
Microcontroller serial communication
Microcontroller serial communication
Ad

More Related Content

What's hot (20)

Uart
UartUart
Uart
Ankit Singh
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
Techvilla
 
UART
UARTUART
UART
Naveen Kumar
 
USART
USARTUSART
USART
Islam Samir
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Tejas Shetye
 
Serial communication
Serial communicationSerial communication
Serial communication
Vikas Dongre
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvm
eSAT Publishing House
 
Serial communication in LPC2148
Serial communication in LPC2148Serial communication in LPC2148
Serial communication in LPC2148
sravannunna24
 
Imx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOKImx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOK
Shahrukh Javed
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
Pallav Shukla
 
Uart
UartUart
Uart
Aditee Apurvaa
 
Fun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol WorksFun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol Works
Ritesh Kanjee
 
8251 08 Serial
8251 08 Serial8251 08 Serial
8251 08 Serial
Aisu
 
Uart
UartUart
Uart
Indra Shukla
 
Serial1
Serial1Serial1
Serial1
anishgoel
 
Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul Verma
 
Design and implementation of uart on soc
Design and implementation of uart on socDesign and implementation of uart on soc
Design and implementation of uart on soc
Ijrdt Journal
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
Naveen Chinnasamy
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
Varun Kambrath
 
Uart driver nov13
Uart driver nov13Uart driver nov13
Uart driver nov13
abinaya m
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
Techvilla
 
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD CoverterUniversal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Universal synchronous asynchronous receiver transmitter(usart) and AtoD Coverter
Tejas Shetye
 
Serial communication
Serial communicationSerial communication
Serial communication
Vikas Dongre
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvm
eSAT Publishing House
 
Serial communication in LPC2148
Serial communication in LPC2148Serial communication in LPC2148
Serial communication in LPC2148
sravannunna24
 
Imx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOKImx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOK
Shahrukh Javed
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
Pallav Shukla
 
Fun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol WorksFun and Easy UART - How the UART Protocol Works
Fun and Easy UART - How the UART Protocol Works
Ritesh Kanjee
 
8251 08 Serial
8251 08 Serial8251 08 Serial
8251 08 Serial
Aisu
 
Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul Verma
 
Design and implementation of uart on soc
Design and implementation of uart on socDesign and implementation of uart on soc
Design and implementation of uart on soc
Ijrdt Journal
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
Varun Kambrath
 
Uart driver nov13
Uart driver nov13Uart driver nov13
Uart driver nov13
abinaya m
 

Similar to Microcontroller serial communication (20)

Sereial com. ppt
Sereial com. pptSereial com. ppt
Sereial com. ppt
gaurav5345
 
Datasheet RTC DS1307 untuk waktu yang tepat pada mikrokontroler
Datasheet RTC DS1307 untuk waktu yang tepat pada mikrokontrolerDatasheet RTC DS1307 untuk waktu yang tepat pada mikrokontroler
Datasheet RTC DS1307 untuk waktu yang tepat pada mikrokontroler
Muhammad Kennedy Ginting
 
Swra237b
Swra237bSwra237b
Swra237b
Camaro1977
 
64 bit sram memory: design paper
64 bit sram memory: design paper64 bit sram memory: design paper
64 bit sram memory: design paper
Mamoon Ismail Khalid
 
8051 serial communication1
8051 serial communication1 8051 serial communication1
8051 serial communication1
vijaydeepakg
 
7 serial port
7 serial port7 serial port
7 serial port
Samarth Patel
 
Data communication lab manual
Data communication lab manualData communication lab manual
Data communication lab manual
Nafe Singh Yadav
 
Dalls02950 1
Dalls02950 1Dalls02950 1
Dalls02950 1
S BW
 
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPUPA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
piyushsborse7
 
Mast content
Mast contentMast content
Mast content
Shakirkhan84568
 
Ofdm.pptx
Ofdm.pptxOfdm.pptx
Ofdm.pptx
Akbarali206563
 
Design of Two CMOS Differential Amplifiers
Design of Two CMOS Differential AmplifiersDesign of Two CMOS Differential Amplifiers
Design of Two CMOS Differential Amplifiers
bastrikov
 
Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....
ANKUSH445845
 
Av02 2315en datasheet
Av02 2315en datasheetAv02 2315en datasheet
Av02 2315en datasheet
Edwin Aguilar
 
10 g sfp+_dwdm_100km_hifibercom
10 g sfp+_dwdm_100km_hifibercom10 g sfp+_dwdm_100km_hifibercom
10 g sfp+_dwdm_100km_hifibercom
WendyXia8
 
0.pptx
0.pptx0.pptx
0.pptx
DebanjanMaity13
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
canh phan
 
DATA TRANSFER SCHEMES OF 8085
DATA TRANSFER SCHEMES OF 8085DATA TRANSFER SCHEMES OF 8085
DATA TRANSFER SCHEMES OF 8085
saravanamanikandan02
 
ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15
Aritra Sarkar
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communication
sinaankhalil
 
Sereial com. ppt
Sereial com. pptSereial com. ppt
Sereial com. ppt
gaurav5345
 
Datasheet RTC DS1307 untuk waktu yang tepat pada mikrokontroler
Datasheet RTC DS1307 untuk waktu yang tepat pada mikrokontrolerDatasheet RTC DS1307 untuk waktu yang tepat pada mikrokontroler
Datasheet RTC DS1307 untuk waktu yang tepat pada mikrokontroler
Muhammad Kennedy Ginting
 
8051 serial communication1
8051 serial communication1 8051 serial communication1
8051 serial communication1
vijaydeepakg
 
Data communication lab manual
Data communication lab manualData communication lab manual
Data communication lab manual
Nafe Singh Yadav
 
Dalls02950 1
Dalls02950 1Dalls02950 1
Dalls02950 1
S BW
 
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPUPA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
piyushsborse7
 
Design of Two CMOS Differential Amplifiers
Design of Two CMOS Differential AmplifiersDesign of Two CMOS Differential Amplifiers
Design of Two CMOS Differential Amplifiers
bastrikov
 
Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....Microcontrollers and microprocessors in electrical communication engineering....
Microcontrollers and microprocessors in electrical communication engineering....
ANKUSH445845
 
Av02 2315en datasheet
Av02 2315en datasheetAv02 2315en datasheet
Av02 2315en datasheet
Edwin Aguilar
 
10 g sfp+_dwdm_100km_hifibercom
10 g sfp+_dwdm_100km_hifibercom10 g sfp+_dwdm_100km_hifibercom
10 g sfp+_dwdm_100km_hifibercom
WendyXia8
 
8051 serial communication
8051 serial communication8051 serial communication
8051 serial communication
canh phan
 
ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15ASTROSAT SSR - 2015-05-15
ASTROSAT SSR - 2015-05-15
Aritra Sarkar
 
The presentation is about USART and serial communication
The presentation is about USART and serial communicationThe presentation is about USART and serial communication
The presentation is about USART and serial communication
sinaankhalil
 
Ad

Recently uploaded (20)

Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
GENERAL QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 4 MARCH 2025 .pdf
GENERAL QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 4 MARCH 2025 .pdfGENERAL QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 4 MARCH 2025 .pdf
GENERAL QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 4 MARCH 2025 .pdf
Quiz Club of PSG College of Arts & Science
 
Conditions for Boltzmann Law – Biophysics Lecture Slide
Conditions for Boltzmann Law – Biophysics Lecture SlideConditions for Boltzmann Law – Biophysics Lecture Slide
Conditions for Boltzmann Law – Biophysics Lecture Slide
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............
19lburrell
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptxU3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
Mayuri Chavan
 
PUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for HealthPUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for Health
JonathanHallett4
 
How to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 SalesHow to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 Sales
Celine George
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdfAntepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Dr H.K. Cheema
 
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptxUnit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Mayuri Chavan
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdfIPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
IPL QUIZ | THE QUIZ CLUB OF PSGCAS | 2025.pdf
Quiz Club of PSG College of Arts & Science
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
Mental Health Assessment in 5th semester bsc. nursing and also used in 2nd ye...
parmarjuli1412
 
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docxPeer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
Peer Assessment_ Unit 2 Skills Development for Live Performance - for Libby.docx
19lburrell
 
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
MCQ PHYSIOLOGY II (DR. NASIR MUSTAFA) MCQS)
Dr. Nasir Mustafa
 
Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............Peer Assesment- Libby.docx..............
Peer Assesment- Libby.docx..............
19lburrell
 
How to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 PurchaseHow to Manage Amounts in Local Currency in Odoo 18 Purchase
How to Manage Amounts in Local Currency in Odoo 18 Purchase
Celine George
 
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptxU3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
U3 ANTITUBERCULAR DRUGS Pharmacology 3.pptx
Mayuri Chavan
 
PUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for HealthPUBH1000 Slides - Module 12: Advocacy for Health
PUBH1000 Slides - Module 12: Advocacy for Health
JonathanHallett4
 
How to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 SalesHow to Manage Cross Selling in Odoo 18 Sales
How to Manage Cross Selling in Odoo 18 Sales
Celine George
 
Module 1: Foundations of Research
Module 1: Foundations of ResearchModule 1: Foundations of Research
Module 1: Foundations of Research
drroxannekemp
 
Final Evaluation.docx...........................
Final Evaluation.docx...........................Final Evaluation.docx...........................
Final Evaluation.docx...........................
l1bbyburrell
 
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdfAntepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Antepartum fetal surveillance---Dr. H.K.Cheema pdf.pdf
Dr H.K. Cheema
 
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptxUnit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Unit 5 ACUTE, SUBACUTE,CHRONIC TOXICITY.pptx
Mayuri Chavan
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
BÀI TẬP BỔ TRỢ TIẾNG ANH 9 THEO ĐƠN VỊ BÀI HỌC - GLOBAL SUCCESS - CẢ NĂM (TỪ...
Nguyen Thanh Tu Collection
 
Chemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptxChemotherapy of Malignancy -Anticancer.pptx
Chemotherapy of Malignancy -Anticancer.pptx
Mayuri Chavan
 
How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18How to Share Accounts Between Companies in Odoo 18
How to Share Accounts Between Companies in Odoo 18
Celine George
 
PUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for HealthPUBH1000 Slides - Module 11: Governance for Health
PUBH1000 Slides - Module 11: Governance for Health
JonathanHallett4
 
Rebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter worldRebuilding the library community in a post-Twitter world
Rebuilding the library community in a post-Twitter world
Ned Potter
 
Ad

Microcontroller serial communication

  • 2. transfer of data between two entities. Classification: -Parallel -serial
  • 3. Serial versus parallel data transfer
  • 5. Two basic transmission modes: -Asynchronous: transmitter and receiver clocks are independent. -Synchronous: transmitter and receiver modes are synchronized.
  • 6.  Framing: -Data word(octet) is encapsulated between start bit stop bit c -receiver resynchronizes again at a start of each new word or character received.
  • 8.  Its an industry acronym which stands for Universal Asynchronous Receiver Transmitter.  It is the interface circuitry between the microprocessor and the serial port.  It is responsible for breaking apart bytes of data. And transmitting it one bit at a time(i.e. Serially)
  • 9. It was designed by EIA(Electronics Industries Association). Voltage specifications: -3V to -25V -- logic 1 +3V to +25V -- logic 2 Some specific signals
  • 11. SBUF: Serial Buffer Register -data moved to SBUF is transmitted serially. -serial data Rx-ed is stored by 8051 in SBUF. Example: SBUF=‘char’; variable=SBUF; SFR: special function register
  • 16.  This only applies to Serial Port modes 1 and 3.  The Baud Rate is determined based on the oscillators frequency when in mode 0 and 2.  In mode 0, the baud rate is always the oscillator frequency divided by 12.  This means if your crystal is 11.059Mhz, mode 0 baud rate will always be 921,583 baud.  In mode 2 the baud rate is always the oscillator frequency divided by 64, so a 11.059Mhz crystal speed will yield a baud rate of 172,797.
  • 17. PC Baud rates 110 150 300 600 1200 2400 4800 9600 19200
  • 18.  The basic equation for a timer reload value can be stated as: TH1 = 256 – Crystal Frequency/384 (or 192 if SMOD = 1) Baud Rate Example: To obtain a timer reload value for a 9600 baud serial data rate with an 11.0592 MHz crystal: =256 – 11.0592/384 9600 = 256 – 3 = 253 or FD (hexadecimal)
  • 19. The equation can also be solved to derive the baud rate or the crystal frequency from the other information as follows: Baud Rate = Crystal Frequency/384 (or 192 if SMOD = 1) 256 – TH1
  翻译: