SlideShare a Scribd company logo
1 of 29
SERIAL DATA COMMUNICATION
INTRODUCTION
• Definition
• Component
All data communications systems have the following components:
• The source of the data (e.g. a computer). Also required is circuitry that
converts the signal into one that is compatible with the communications link,
called a transmitter or line driver
 • The communications link (twisted-pair cable, coaxial cable, radio, telephone
network etc), which transfers the message to the receiver at the other end
• The receiver of the data where the signal is converted back into a form that
can be used by the local electronics circuitry
• Transmission modes
1. Simplex
2. Duplex
- Half duplex




- Full duplex
BASIC PRINCIPLE
a. Coding
        Encoding is the process of converting the message data
into a standard binary code for transfer over the data
communications link. This code assigns a binary field of 7-bits to
represent each character, giving 128 (27) unique characters
made up of:
• Upper and lower case letters, and numerals 1 to 9
• Various punctuation marks and symbols
• A set of control codes (the first 32 characters) that are used by
the communications link itself and are not printable
ASCII tables
• Format of data communication




   Format of a typical serial asynchronous data message
In summary, the optional settings for asynchronous
transmission of characters are:
• Start bits 1
• Data bits 5, 6, 7, 8
• Parity bits even, odd, mark, space or none
• Stop bits 1, l½ or 2
As there cannot be half a bit, 1½-stop bits means that
the mark length is 50% longer than for one stop bit.
• Data transmission speed
       Factor:
       • Type and complexity of the circuitry at each
end (interface)
       • Communication link (twisted-pair, coaxial cable,
radio etc)
       • Distance between the sender and receiver
       • Amount of data being transferred
       • The overhead associated with the data transfer
       • The acceptable rate of error
RS-232-C
• Characteristics
1. Electrical
        The RS-232 standard is designed for the connection of
two devices: data terminal equipment (DTE), such as a computer
or printer, and data communications equipment (DCE), such as a
modem.
Connection between DTE and DCE
The electrical connections are divided into the
four groups shown below:
• Data lines
• Control lines
• Timing lines
• Special secondary functions
2. Mechanical
• Function
• Pin 1: Protective ground (shield)
• Pin 2: Transmitted data (TXD)
• Pin 3: Received data (RXD)
• Pin 4: Request to send (RTS)
• Pin 5: Clear to send (CTS)
• Pin 6: Data set ready (DSR)
• Pin 7: Signal ground (common)
• Pin 8: Data carrier detect (DCD)
• Pin 20: DTE ready (or data terminal ready)
• Pin 22: Ring indicator
• Pin 23: Data signal rate selector (DSRS)
Sequence of Operation
RS-485
• Application

   The RS-485 standard was designed for two-wire, half
duplex, balanced multidrop communications, and allows up to
32 line drivers and 32 line receivers on the same line. It
incorporates the advantages of balanced lines with the need
for only two wires (plus signal common) cabling.
    RS-485 provides reliable serial communications for:
• Distances of up to 1200 m
• Data rates of up to 10 Mbps
• Up to 32 line drivers permitted on the same line
• Up to 32 line receivers permitted on the same line
• Range
The line voltages range between –1.5 V to –6 V
for logic ‘1’ and +1.5 V to +6 V for logic ‘0’. The
line driver for the RS-485 interface produces a 5
V differential voltage on two wires. For full-
duplex systems, four wires are required. For a
half-duplex system, only two wires are required.
• Sequence of operation
Converter (RS-232 to RS-485)




Typical specifications for an RS-232/RS-485 converter are:
• Data transfer rate up to 1 Mbaud
• DCE/DTE switch selectable
• Converts all data and control signals
• LEDs for status of data and control signals
• Powered from AC source or self-powered from pins 9 & 10 of EIA-232 port
• Optically isolated (optional)
• DB-25 connector (male or female)
• DB-37 connector (male or female)
PROTOCOLS
    A protocol is essentially a common set of rules
governing the exchange of data between the transmitter
and receiver of a communications network, and is normally
associated with the packaging of data transmitted on the
communications interface.
    Important feature:
• Initialization
• Framing and frame synchronization
• Flow control
• Line control
• Error control
• Timeout control
FLOW CONTROL PROTOCOLS
1. Character flow protocols (XON/XOFF)
This is a popular flow control protocol that has two
characters assigned as XON (start) or XOFF (stop).
Typically, the ASCII characters DC3 (Ctrl-S) and DC1
(Ctrl-Q) are assigned to XOFF and XON respectively.

2. Whole line protocols (ETX/ACK)
The ETX/ACK protocol, designed by IBM, is based on
the transmitter appending an ETX character after
each line of data and waiting for the receiver’s ACK,
requesting the next line of data.
ASCII-based PROTOCOLS
- Protocols Structure
ERROR DETECTION
• Character redundancy checks
• Block redundancy checks
• Cyclic redundancy checkS
TROUBLESHOOTING
• Check the basic parameters
• Identify which is DTE or DCE
• Clarify the needs of the hardware
handshaking
• Check the actual protocol used
TESTING SERIAL DATA
        COMMUNICATION CIRCUITS
When a data communication link won’t work, the following five
very useful devices can be used to assist in analyzing the
problem:
• The breakout box
• Null modem
• Protocol analyzer
       A protocol analyzer is used to display the actual
bits on the data line, as well as the special control
codes, such as X-ON, X-OFF, LF, CR, etc.
       This helps to confirm that the transmitting
terminal is sending the correct data and that the
receiving device is receiving it. The protocol analyzer is
useful in identifying incorrect setting of baud rate,
parity, stop bit, noise or incorrect wiring and
connection.

More Related Content

What's hot (20)

Interfacing rs232
Interfacing rs232Interfacing rs232
Interfacing rs232
 
IEEE-488
IEEE-488IEEE-488
IEEE-488
 
Unit 5 ppt-idc
Unit 5 ppt-idcUnit 5 ppt-idc
Unit 5 ppt-idc
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
Embedded real time-systems communication
Embedded real time-systems communicationEmbedded real time-systems communication
Embedded real time-systems communication
 
Serial buses
Serial busesSerial buses
Serial buses
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
 
Communication protocols - Embedded Systems
Communication protocols - Embedded SystemsCommunication protocols - Embedded Systems
Communication protocols - Embedded Systems
 
Usb protocol
Usb protocol Usb protocol
Usb protocol
 
Batch 25(a)
Batch 25(a)Batch 25(a)
Batch 25(a)
 
Serial data transfer
Serial data transferSerial data transfer
Serial data transfer
 
Hybrid Communication Protocol- UART & SPI
Hybrid Communication Protocol- UART & SPIHybrid Communication Protocol- UART & SPI
Hybrid Communication Protocol- UART & SPI
 
RS 232
RS 232RS 232
RS 232
 
8251 08 Serial
8251 08 Serial8251 08 Serial
8251 08 Serial
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
 
45039336 rs232
45039336 rs23245039336 rs232
45039336 rs232
 
Seminar on serial communication
Seminar on serial communicationSeminar on serial communication
Seminar on serial communication
 
Internal & External of Routers
Internal & External of RoutersInternal & External of Routers
Internal & External of Routers
 
Computer Network 5. Modbus
Computer Network 5. ModbusComputer Network 5. Modbus
Computer Network 5. Modbus
 
Rs-232 by Foysal
Rs-232 by FoysalRs-232 by Foysal
Rs-232 by Foysal
 

Similar to Serial Data Communication

Similar to Serial Data Communication (20)

8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptx
 
Rs 232 & usb ieee1394 communication
Rs 232 & usb  ieee1394 communicationRs 232 & usb  ieee1394 communication
Rs 232 & usb ieee1394 communication
 
interfaces.pptx
interfaces.pptxinterfaces.pptx
interfaces.pptx
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
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
 
Computer Interfaces
Computer Interfaces Computer Interfaces
Computer Interfaces
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
 
COMPUTER NETWORKING
COMPUTER NETWORKINGCOMPUTER NETWORKING
COMPUTER NETWORKING
 
Practical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for IndustryPractical Radio Telemetry Systems for Industry
Practical Radio Telemetry Systems for Industry
 
TCP/IP model
TCP/IP modelTCP/IP model
TCP/IP model
 
Project_intership
Project_intershipProject_intership
Project_intership
 
Project_intership
Project_intershipProject_intership
Project_intership
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
ie55104.ppt
ie55104.pptie55104.ppt
ie55104.ppt
 
Computer Networks IEEE 802.3 standard-2021.pptx
Computer Networks IEEE 802.3 standard-2021.pptxComputer Networks IEEE 802.3 standard-2021.pptx
Computer Networks IEEE 802.3 standard-2021.pptx
 
unit2-210710110327.pptx
unit2-210710110327.pptxunit2-210710110327.pptx
unit2-210710110327.pptx
 
Microcontroller.pptx
Microcontroller.pptxMicrocontroller.pptx
Microcontroller.pptx
 
Presentation1
Presentation1Presentation1
Presentation1
 

Recently uploaded

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
 
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
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
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
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
“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
 

Recently uploaded (20)

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
 
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
 
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
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
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
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
“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...
 

Serial Data Communication

  • 3. • Component All data communications systems have the following components: • The source of the data (e.g. a computer). Also required is circuitry that converts the signal into one that is compatible with the communications link, called a transmitter or line driver • The communications link (twisted-pair cable, coaxial cable, radio, telephone network etc), which transfers the message to the receiver at the other end • The receiver of the data where the signal is converted back into a form that can be used by the local electronics circuitry
  • 5. 2. Duplex - Half duplex - Full duplex
  • 6. BASIC PRINCIPLE a. Coding Encoding is the process of converting the message data into a standard binary code for transfer over the data communications link. This code assigns a binary field of 7-bits to represent each character, giving 128 (27) unique characters made up of: • Upper and lower case letters, and numerals 1 to 9 • Various punctuation marks and symbols • A set of control codes (the first 32 characters) that are used by the communications link itself and are not printable
  • 8. • Format of data communication Format of a typical serial asynchronous data message
  • 9. In summary, the optional settings for asynchronous transmission of characters are: • Start bits 1 • Data bits 5, 6, 7, 8 • Parity bits even, odd, mark, space or none • Stop bits 1, l½ or 2 As there cannot be half a bit, 1½-stop bits means that the mark length is 50% longer than for one stop bit.
  • 10. • Data transmission speed Factor: • Type and complexity of the circuitry at each end (interface) • Communication link (twisted-pair, coaxial cable, radio etc) • Distance between the sender and receiver • Amount of data being transferred • The overhead associated with the data transfer • The acceptable rate of error
  • 11. RS-232-C • Characteristics 1. Electrical The RS-232 standard is designed for the connection of two devices: data terminal equipment (DTE), such as a computer or printer, and data communications equipment (DCE), such as a modem.
  • 13. The electrical connections are divided into the four groups shown below: • Data lines • Control lines • Timing lines • Special secondary functions
  • 15. • Function • Pin 1: Protective ground (shield) • Pin 2: Transmitted data (TXD) • Pin 3: Received data (RXD) • Pin 4: Request to send (RTS) • Pin 5: Clear to send (CTS) • Pin 6: Data set ready (DSR) • Pin 7: Signal ground (common) • Pin 8: Data carrier detect (DCD) • Pin 20: DTE ready (or data terminal ready) • Pin 22: Ring indicator • Pin 23: Data signal rate selector (DSRS)
  • 17. RS-485 • Application The RS-485 standard was designed for two-wire, half duplex, balanced multidrop communications, and allows up to 32 line drivers and 32 line receivers on the same line. It incorporates the advantages of balanced lines with the need for only two wires (plus signal common) cabling. RS-485 provides reliable serial communications for: • Distances of up to 1200 m • Data rates of up to 10 Mbps • Up to 32 line drivers permitted on the same line • Up to 32 line receivers permitted on the same line
  • 18. • Range The line voltages range between –1.5 V to –6 V for logic ‘1’ and +1.5 V to +6 V for logic ‘0’. The line driver for the RS-485 interface produces a 5 V differential voltage on two wires. For full- duplex systems, four wires are required. For a half-duplex system, only two wires are required.
  • 19. • Sequence of operation
  • 20.
  • 21. Converter (RS-232 to RS-485) Typical specifications for an RS-232/RS-485 converter are: • Data transfer rate up to 1 Mbaud • DCE/DTE switch selectable • Converts all data and control signals • LEDs for status of data and control signals • Powered from AC source or self-powered from pins 9 & 10 of EIA-232 port • Optically isolated (optional) • DB-25 connector (male or female) • DB-37 connector (male or female)
  • 22. PROTOCOLS A protocol is essentially a common set of rules governing the exchange of data between the transmitter and receiver of a communications network, and is normally associated with the packaging of data transmitted on the communications interface. Important feature: • Initialization • Framing and frame synchronization • Flow control • Line control • Error control • Timeout control
  • 23. FLOW CONTROL PROTOCOLS 1. Character flow protocols (XON/XOFF) This is a popular flow control protocol that has two characters assigned as XON (start) or XOFF (stop). Typically, the ASCII characters DC3 (Ctrl-S) and DC1 (Ctrl-Q) are assigned to XOFF and XON respectively. 2. Whole line protocols (ETX/ACK) The ETX/ACK protocol, designed by IBM, is based on the transmitter appending an ETX character after each line of data and waiting for the receiver’s ACK, requesting the next line of data.
  • 25. ERROR DETECTION • Character redundancy checks • Block redundancy checks • Cyclic redundancy checkS
  • 26. TROUBLESHOOTING • Check the basic parameters • Identify which is DTE or DCE • Clarify the needs of the hardware handshaking • Check the actual protocol used
  • 27. TESTING SERIAL DATA COMMUNICATION CIRCUITS When a data communication link won’t work, the following five very useful devices can be used to assist in analyzing the problem: • The breakout box
  • 29. • Protocol analyzer A protocol analyzer is used to display the actual bits on the data line, as well as the special control codes, such as X-ON, X-OFF, LF, CR, etc. This helps to confirm that the transmitting terminal is sending the correct data and that the receiving device is receiving it. The protocol analyzer is useful in identifying incorrect setting of baud rate, parity, stop bit, noise or incorrect wiring and connection.