SlideShare a Scribd company logo
1 of 11
Download to read offline
Communication protocol 
iinn oorr bbeettwweeeenn 
CCoommppuuttiinngg ssyysstteemmss 
TTeelleeccoommmmuunniiccaattiioonnss 
FFoorrmmaattss ooff ddiiggiittaall mmeessssaaggeess 
Rules for exchanging 
those messages 
Capabilities Describes 
Signaling 
Authentication 
Error detection and correction 
Syntax 
Semantics 
Synchronization
Interface 
IInntteerraaccttiioonn bbeettwweeeenn 
Components 
Devices 
Systems 
Programs 
Computer vs user 
… 
AAtt 22 lleevveellss 
SSooffttwwaarree 
HHaarrddwwaarree 
Pieces of Software 
Pieces of Hardware 
II//OO SSyysstteemm 
Pieces of Software 
Pieces of Hardware 
PPrroottooccooll 
IInntteerrffaaccee
Example: RS-232 
MCUs + 
Voltage 
Level 
shifter 
TTXX TTXX 
RS-232 
cable 
PPCCss 
RRXX RRXX 
Interface: 3-wire: Rx & Tx wires + GND wire 
5-wire: Rx, Tx, RTS, DTS + GND 
Protocol: 
- Voltage level: Logic ‘1’ as -3  -15V 
Logic ‘0’ as +3  +15V 
- Frame: Start bit 
5  8 Data bit 
None/Odd/Even Parity bit 
1 or 2 Stop bit 
- Baudrate: 9600, 11200, …
communications system 
OSI model 
Open Systems Interconnection model
communications system 
OSI model 
Open Systems Interconnection model 
Layer 1: Physical Layer 
Defines the electrical and physical specifications for devices 
RRSS--223322 
RRSS--448855 
SSPPII 
II22CC 
Physical Layer
A serial I/O 
communications 
peripheral 
Serial 
Communications 
Interface (SCI) 
Full-duplex 
Asynchronous 
Clock generators 
Half-duplex 
Synchronous 
peripheral systems 
(CRT Terminals, 
personal computers) 
peripheral devices 
Shift registers 
Data buffers 
(A/D or D/A integrated 
circuits, serial EEPROMs, 
other microcontrollers) 
typically do not have 
internal clocks for 
baud rate generation 
and require the 
external clock signal 
provided by a master 
synchronous device 
both send and receive at 
the same time 
devices take turns 
transmitting and receiving
UART universal asynchronous receiver/transmitter 
DUART A dual UART combines two UARTs into a single chip 
USART universal synchronous/asynchronous receiver/transmitter
[1] http://www.freebsd.org/doc/en/articles/serial-uart/ 
[2] http://en.wikipedia.org/wiki/Universal_asynchronous_receiver/transmitter 
[3] Microchip, PIC16F887 datasheet, part 12.0 p[153-178] 
[4] http://en.wikipedia.org/wiki/Communications_protocol 
[5] http://en.wikipedia.org/wiki/OSI_model
Chuan giao tiep rs232

More Related Content

What's hot

UART Communication
UART CommunicationUART Communication
UART Communicationdattatraya1
 
Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)Utkarsh Tiwari
 
Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul Verma
 
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP TroubleshootingHands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP TroubleshootingLiving Online
 
Asi : Actuator Sensor Interface
Asi : Actuator Sensor InterfaceAsi : Actuator Sensor Interface
Asi : Actuator Sensor Interfaceprashob7
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandotascmandota
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems VijayKumar5738
 
Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3 Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3 Premier Farnell
 
Up and running with Arduino
Up and running with Arduino Up and running with Arduino
Up and running with Arduino KUET
 
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 uvmeSAT Publishing House
 
Imx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOKImx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOKShahrukh Javed
 
Datasheet stvc070 wt 03
Datasheet stvc070 wt 03Datasheet stvc070 wt 03
Datasheet stvc070 wt 03Display module
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart socSatyam Sharma
 

What's hot (19)

Uart
UartUart
Uart
 
UART Communication
UART CommunicationUART Communication
UART Communication
 
Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)Bhabha atomic research Centre (BARC)
Bhabha atomic research Centre (BARC)
 
Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UART
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
I2C
I2CI2C
I2C
 
self-test
self-testself-test
self-test
 
Hands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP TroubleshootingHands On Data Communications, Networking and TCP/IP Troubleshooting
Hands On Data Communications, Networking and TCP/IP Troubleshooting
 
Asi : Actuator Sensor Interface
Asi : Actuator Sensor InterfaceAsi : Actuator Sensor Interface
Asi : Actuator Sensor Interface
 
self-test - 2
self-test - 2self-test - 2
self-test - 2
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems Communication Interface of The Embedded Systems
Communication Interface of The Embedded Systems
 
Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3 Stellaris® 9000 Family of ARM® Cortex™-M3
Stellaris® 9000 Family of ARM® Cortex™-M3
 
Up and running with Arduino
Up and running with Arduino Up and running with Arduino
Up and running with Arduino
 
Uart
UartUart
Uart
 
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
 
Imx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOKImx53 uart- GUIDE BOOK
Imx53 uart- GUIDE BOOK
 
Datasheet stvc070 wt 03
Datasheet stvc070 wt 03Datasheet stvc070 wt 03
Datasheet stvc070 wt 03
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart soc
 

Similar to Chuan giao tiep rs232

RFID Based Toll Gate System
RFID Based Toll Gate SystemRFID Based Toll Gate System
RFID Based Toll Gate SystemAmeer Khan
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxNaveenK365392
 
Basic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth DevicesBasic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth DevicesPremier Farnell
 
Design and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitDesign and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitIOSR Journals
 
Course material msp430-for_automatic_control
Course material msp430-for_automatic_controlCourse material msp430-for_automatic_control
Course material msp430-for_automatic_controlBhukya Mangu
 
Glossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process WeighingGlossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process WeighingPower Specialties, Inc.
 
Gesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docuGesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docuVignan Munna
 
DCS ( Distributed Control System )
DCS ( Distributed Control System )DCS ( Distributed Control System )
DCS ( Distributed Control System )Automation123
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detectioniosrjce
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentationSurender Singh
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...researchinventy
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Scienceresearchinventy
 
MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED pH...
MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED  pH...MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED  pH...
MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED pH...Abhijeet Powar
 

Similar to Chuan giao tiep rs232 (20)

RFID Based Toll Gate System
RFID Based Toll Gate SystemRFID Based Toll Gate System
RFID Based Toll Gate System
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptx
 
6 STM32's USART.ppt
6 STM32's USART.ppt6 STM32's USART.ppt
6 STM32's USART.ppt
 
Basic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth DevicesBasic Study on the WT12 Family of Bluetooth Devices
Basic Study on the WT12 Family of Bluetooth Devices
 
Design and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal UnitDesign and Implementation of a Stand-Alone Remote Terminal Unit
Design and Implementation of a Stand-Alone Remote Terminal Unit
 
Course material msp430-for_automatic_control
Course material msp430-for_automatic_controlCourse material msp430-for_automatic_control
Course material msp430-for_automatic_control
 
Glossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process WeighingGlossary of Technical Terms for Process Weighing
Glossary of Technical Terms for Process Weighing
 
Scada
ScadaScada
Scada
 
Industrialtraining
IndustrialtrainingIndustrialtraining
Industrialtraining
 
Gesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docuGesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docu
 
Dcs write up
Dcs write upDcs write up
Dcs write up
 
DCS ( Distributed Control System )
DCS ( Distributed Control System )DCS ( Distributed Control System )
DCS ( Distributed Control System )
 
Serial Communication Interface with Error Detection
Serial Communication Interface with Error DetectionSerial Communication Interface with Error Detection
Serial Communication Interface with Error Detection
 
M010617376
M010617376M010617376
M010617376
 
Embedded systems presentation
Embedded systems presentationEmbedded systems presentation
Embedded systems presentation
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Science
 
Uart
UartUart
Uart
 
MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED pH...
MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED  pH...MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED  pH...
MIXED SIGNAL VLSI TECHNOLOGY BASED SoC DESIGN FOR TEMPERATURE COMPENSATED pH...
 
Jy3717961800
Jy3717961800Jy3717961800
Jy3717961800
 

More from Đức Hữu

Basic knowledge of ldo voltage regulators
Basic knowledge of ldo voltage regulatorsBasic knowledge of ldo voltage regulators
Basic knowledge of ldo voltage regulatorsĐức Hữu
 
Datasheet r7 m a10030_s1
Datasheet  r7 m a10030_s1Datasheet  r7 m a10030_s1
Datasheet r7 m a10030_s1Đức Hữu
 
Giao dien c# hien len maytinh
Giao dien c# hien len maytinhGiao dien c# hien len maytinh
Giao dien c# hien len maytinhĐức Hữu
 
Cac he dong luc hoc rat hay
Cac he dong luc hoc rat hayCac he dong luc hoc rat hay
Cac he dong luc hoc rat hayĐức Hữu
 
Bai giang dktd huynhthai hoang
Bai giang dktd huynhthai hoangBai giang dktd huynhthai hoang
Bai giang dktd huynhthai hoangĐức Hữu
 

More from Đức Hữu (11)

Ldo basic
Ldo basicLdo basic
Ldo basic
 
Basic knowledge of ldo voltage regulators
Basic knowledge of ldo voltage regulatorsBasic knowledge of ldo voltage regulators
Basic knowledge of ldo voltage regulators
 
Datasheet r7 m a10030_s1
Datasheet  r7 m a10030_s1Datasheet  r7 m a10030_s1
Datasheet r7 m a10030_s1
 
Giao dien c# hien len maytinh
Giao dien c# hien len maytinhGiao dien c# hien len maytinh
Giao dien c# hien len maytinh
 
Cac he dong luc hoc rat hay
Cac he dong luc hoc rat hayCac he dong luc hoc rat hay
Cac he dong luc hoc rat hay
 
Bai giang dktd huynhthai hoang
Bai giang dktd huynhthai hoangBai giang dktd huynhthai hoang
Bai giang dktd huynhthai hoang
 
Datasheet bq33200
Datasheet bq33200Datasheet bq33200
Datasheet bq33200
 
Chicken ânlog
Chicken ânlogChicken ânlog
Chicken ânlog
 
Ga dat cam bien
Ga dat cam bien Ga dat cam bien
Ga dat cam bien
 
Bien doi lapalce
Bien doi lapalceBien doi lapalce
Bien doi lapalce
 
Msptieuluan
MsptieuluanMsptieuluan
Msptieuluan
 

Recently uploaded

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 

Chuan giao tiep rs232

  • 1.
  • 2.
  • 3. Communication protocol iinn oorr bbeettwweeeenn CCoommppuuttiinngg ssyysstteemmss TTeelleeccoommmmuunniiccaattiioonnss FFoorrmmaattss ooff ddiiggiittaall mmeessssaaggeess Rules for exchanging those messages Capabilities Describes Signaling Authentication Error detection and correction Syntax Semantics Synchronization
  • 4. Interface IInntteerraaccttiioonn bbeettwweeeenn Components Devices Systems Programs Computer vs user … AAtt 22 lleevveellss SSooffttwwaarree HHaarrddwwaarree Pieces of Software Pieces of Hardware II//OO SSyysstteemm Pieces of Software Pieces of Hardware PPrroottooccooll IInntteerrffaaccee
  • 5. Example: RS-232 MCUs + Voltage Level shifter TTXX TTXX RS-232 cable PPCCss RRXX RRXX Interface: 3-wire: Rx & Tx wires + GND wire 5-wire: Rx, Tx, RTS, DTS + GND Protocol: - Voltage level: Logic ‘1’ as -3  -15V Logic ‘0’ as +3  +15V - Frame: Start bit 5  8 Data bit None/Odd/Even Parity bit 1 or 2 Stop bit - Baudrate: 9600, 11200, …
  • 6. communications system OSI model Open Systems Interconnection model
  • 7. communications system OSI model Open Systems Interconnection model Layer 1: Physical Layer Defines the electrical and physical specifications for devices RRSS--223322 RRSS--448855 SSPPII II22CC Physical Layer
  • 8. A serial I/O communications peripheral Serial Communications Interface (SCI) Full-duplex Asynchronous Clock generators Half-duplex Synchronous peripheral systems (CRT Terminals, personal computers) peripheral devices Shift registers Data buffers (A/D or D/A integrated circuits, serial EEPROMs, other microcontrollers) typically do not have internal clocks for baud rate generation and require the external clock signal provided by a master synchronous device both send and receive at the same time devices take turns transmitting and receiving
  • 9. UART universal asynchronous receiver/transmitter DUART A dual UART combines two UARTs into a single chip USART universal synchronous/asynchronous receiver/transmitter
  • 10. [1] http://www.freebsd.org/doc/en/articles/serial-uart/ [2] http://en.wikipedia.org/wiki/Universal_asynchronous_receiver/transmitter [3] Microchip, PIC16F887 datasheet, part 12.0 p[153-178] [4] http://en.wikipedia.org/wiki/Communications_protocol [5] http://en.wikipedia.org/wiki/OSI_model