BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH 130080112001 AMANDEEP.

Slides:



Advertisements
Similar presentations
Serial Interface Dr. Esam Al_Qaralleh CE Department
Advertisements

DATA COMMUNICATIONS Some organisations concerned with standards: EIA - Electroonic Industries Association (RS standards including RS-232) IEEE - Institute.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Transmission of Digital Data: Interfaces and Modems NETE 0510 Dr.Apichan Kanjanavapastit.
Chapter 2 Data Communication Concepts Code Transmission Signal Modulation Service.
Spring EE 316 Computer Engineering Junior Lab Serial Ports.
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 6: Digital Data Communications Techniques.
Eng. Husam Alzaq The Islamic Uni. Of Gaza
Electronics and Networks: Dumb things with Wires Week 2: Serial Overview Jonah Brucker-Cohen Matthew Karau Monday 10am - 12pm Trinity College Dublin MSc.
COMP3221: Microprocessors and Embedded Systems
EET Advanced Digital Chapter 21 Serial Ports.
1 The 9-Pin Connector Pin abbreviations (numbers in parentheses are the 25D pin numbers): 1. CD (8) 2. RD (Rx) (3) 3. TD (Tx) (2) 4. DTR (20) 5. SG (Ground)
Chapter 6 Serial Communications Objectives Introduce the RS232 standard and position it within the crowded field of serial communications standards. Configure.
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
12 - Winter 2006 ECE ECE 766 Computer Interfacing and Protocols 1 Interfaces Transmission of data from the source to a device or from a device to the destination.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
Chapter 6 Serial Communications Objectives Introduce the RS232 standard and position it within the crowded field of serial communications standards. Configure.
Embedded Systems Design
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
3.1 Basic concepts of data communications and networking
The 8051 Microcontroller and Embedded Systems
Serial Port I/O Serial port sends and receives data one bit at a time. Serial communication devices are divided into: Data Communications Equipment (DCE),
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
Line Coding, Modem, RS232 interfacing sequences.
“Describe the overview of hardware interfacing and the serial communication interface. Describe the PIC18 connections to RS232. Explain the serial port.
Universal Asynchronous Receiver/Transmitter (UART)
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire conductors)
Serial Communications
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
1 Basics of Data Communications Discrete-time Communication vs Continuous-time Communication Is human communication continuous-time or discrete-time ?
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Universal Asynchronous Receiver/Transmitter (UART)
Interfaces and Synchronization Martin Weiss. EIA 232D Interface Standard u Synonymous with ITU V.24 u Asynchronous interface u Up to 19.2kbps u 50 foot.
1 Transmission of Digital Data : Interface and Modems.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
Ch. 6 Digital Data Communication Techniques
CSC 335 Data Communications and Networking Lecture 4b: Communication and Multiplexing Dr. Cheer-Sun Yang.
1 Chapter Overview Modems The Internet and Web Browsers.
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
8051SERIAL PORT PROGRAMMING
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
Ch. 6 Digital Data Communication Techniques. 6.1Asynchronous & Synchronous Transmission Asynchronous Transmission: transmission in which each information.
8251 USART.
NARNARAYAN SHASTRI INSTITUTE OF TECHNOLOGY Prepared by: Wasu Ichcha kaur H Bhalani Nidhi M Dhakate Megha D MICROCONTROLLER.
Chapter 6 Serial Communications
Serial mode of data transfer
UART Serial Port Programming
RS-232 Communications.
CS-401 Computer Architecture & Assembly Language Programming
SERIAL PORT PROGRAMMING
Serial Communications
ATMEGA 32 CONNECTIONS TO RS232; UDR AND UCSR REGISTERS
DATA COMMUNICATION Lecture-21.
Serial Communication: RS-232 (IEEE Standard)
UART Serial Port Programming
UART Serial Port Programming
Serial Communication Interface: Using 8251
Serial Communication Interface
Преглед Начин функционисања Имплементације
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Chapter 6 Transmission of Digital Data Interfaces and Modems
PIC Serial Port Interfacing
8051SERIAL PORT PROGRAMMING
PIC Serial Port Interfacing
Presentation transcript:

BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP JANGRA ANJARIYA SHREY ANKUR BUSA GUIDED BY : PROF. HIREN PATEL

CONTENT SERIAL AND PARALLEL DATA TRANSFER HALF, FULL-DUPLEX TRANSMISSION. SYNCHRONOUS & ASYNCHRONOUS COMMUNICATION START AND STOP BITS DATA TRASFER RATE RS232 STANDARDS RS232 PINS DATA COMMUNICATION CLASSIFICATON EXAMINING OF RS232 HANDSHAKING SIGNALS x86 PC COM PORTS

BASIC OF SERIAL COMMUNICATION Serial versus Parallel Data Transfer

HALF AND FULL-DUPLEX TRANSMISSION

SYNCHRONOUS & ASYNCHRONOUS COMMUNICATION SYNCHRONOUS METHOD SYNCHRONOUS METHOD TRANSFER A BLOCK OF DATA AT A TIME. ASYNCHRONOUS METHOD ASYNCHRONOUS METHOD TRANSFERS A SINGLE BYTE AT A TIME.

ASYNCHRONOUS SERIAL COMMUNICATION  WITH ASYNCHRONOUS COMMUNICATION, THE TRANSMITTER AND RECEIVER DO NOT SHARE A COMMON CLOCK Transmitter Receiver + 1 byte-wide Data Data – 1 byte-wide Data The Receiver  Extracts the data using its own clock  Converts the serial data back to the parallel form after stripping off the start, stop and parity bits THE TRANSMITTER  SHIFTS THE PARALLEL DATA ONTO THE SERIAL LINE USING ITS OWN CLOCK  ALSO ADDS THE START, STOP AND PARITY CHECK BITS Add: Start, Stop, Parity Bits Remove: Start, Stop, Parity Bits

ASYNCHRONOUS SERIAL COMMUNICATION  ASYNCHRONOUS TRANSMISSION IS EASY TO IMPLEMENT BUT LESS EFFICIENT AS IT REQUIRES AN EXTRA 2-3 CONTROL BITS FOR EVERY 8 DATA BITS  THIS METHOD IS USUALLY USED FOR LOW VOLUME TRANSMISSION

SYNCHRONOUS SERIAL COMMUNICATION IN THE SYNCHRONOUS MODE, THE TRANSMITTER AND RECEIVER SHARE A COMMON CLOCK THE TRANSMITTER TYPICALLY PROVIDES THE CLOCK AS A SEPARATE SIGNAL IN ADDITION TO THE SERIAL DATA Transmitter Receiver Data Clock THE RECEIVER  EXTRACTS THE DATA USING THE CLOCK PROVIDED BY THE TRANSMITTER  CONVERTS THE SERIAL DATA BACK TO THE PARALLEL FORM THE TRANSMITTER  SHIFTS THE DATA ONTO THE SERIAL LINE USING ITS OWN CLOCK  PROVIDES THE CLOCK AS A SEPARATE SIGNAL  NO START, STOP, OR PARITY BITS ADDED TO DATA 1 byte-wide Data

START AND STOP BITS IN THE ASYNCHRONOUS METHOD, EACH CHARACTER IS PLACED BETWEEN START AND STOP BITS. THIS IS CALLED FRAMING. IN DATA FRAMING FOR ASYNCHRONOUS COMMUNICATIONS THE DATA SUCH AS ASCII CHARACTERS ARE PACKED BETWEEN START AND STOP BIT. THE START BIT IS ALWAYS ONE BIT, BUT THE STOP BIT CAN BE ONE OR TWO BITS.

DATA TRASFER RATE  THE RATE OF DATA TRANSFER IN SERIAL DATA COMMUNICATION IS STATED IN bps. ANOTHER WIDELY TECHNOLOGY FOR bps IS BAUD RATE.  THE DATA TRANSFER RATE OF A GIVEN COMPUTER SYSTEM DEPENDS ON COMMUNICATION PORTS INCORPORATED INTO THAT SYSTEM.  FOR E.G. THE EARLY IBM PC COULD TRANSFER bps. WHERE AS IN PRESENT PC

RS232 STANDARDS  TO ALLOW COMPATIBILITY AMONG DATA COMMUNICATIONS EQUIPMENT MADE BY VARIOUS MANUFACTURES, AN INTERFACING STANDARD CALLED RS232 WAS SET BY THE ELECTRONICS INDUSTRIES ASSOCIATIONS (EIA) IN  RS232 IS ONE OF THE MOST WIDELY USED I/O INTERFACING STANDARDS.  STANDARD WAS SET LONG BEFORE THE ADVENT OF TTL LOGIC FAMILY HOWEVER ITS I/O LEVELS ARE NOT TTL COMPATIBLE.  IN RS232 A 1 IS REPRESENTED BY -3V TO -25V WHILE 0 BIT IS +3V TO +25V.  MAX232 IS USED FOR CONVERT THE TTL LOGIC LEVEL TO THE RS232 VOLTAGE LEVEL.

RS232 PINS  DB25 REFERS TO THE PLUG CONNECTOR (MALE) DB25S FOR THE SOCKET CONNECTOR (FEMALE).  BECAUSE NOT ALL THE PINS WERE USED IN PC CABLES IBM INTERDUCE DB-9 VERSON OF THE SERIAL I/O STANDARD WHICH USES ONLY 9 PINS.

IT SHOWS PINS FOR RS232 FOR DB25 CONNECTOR

TYPICALLY, THE CONNECTOR IS “MALE” FOR DTE EQUIPMENT AND “FEMALE” FOR DCE EQUIPMENT.

DATA COMMUNICATION CLASSIFICATON  CURRENT TERMINOLOGY CLASSIFIES DATA COMMUNICATION EQUIPMENT AS DTE (DATA TERMINAL EQUIPMENT) OR DCE (DATA COMMUNICATION QUIPMENT). DTE REFERS TO THE TERMINAL AND COMPUTERS THAT SENDS AND RECEVIE DATA WHILE DCE REFERS TO COMMUNICATION EQUIPMENTS SUCH AS MODEMS DATA RESPONSIBLE FOR TRANSFERRING THE DATA.  THE SIMPLEST CONNECTION BETWEEN PC AND MICROCONTROLLER REQUIRES MINIUM OF 3 PINS, TX, RX AND GRND

EXAMINING OF RS232 HANDSHAKING SIGNALS  TO ENSURE FAST AND REALIABLE DATA TRANSMISSION BETWEEN TWO DEVICES THE DATA TRANSFER MUST BE COORDINATED.  RS232 CONNECTOR ARE USED FOR HANDSHAKING SIGNALS  THEY CAN BE BYPASSED BECAUSE THEY ARE NOT SUPPORTED BY THE AVR UART CHIP. DTR (DATA TERMINAL READY). DSR (DATA SET READY). RTS (REQUEST TO SEND). CTS (CLEAR TO SEND). DCD (DATA CARRIER DETECT). RI (RING INDICATOR).

DTR AND DSR ARE USED BY PC AND MODEM INDICATE THAT THEY ARE ALIVE AND WELL, IT IS RTS AND CTS THAT ACTUALLY CONTROLS THE FLOW OF DATA. WHEN THE PC WANTS TO SENDS DATA IT ASSERT RTS, AND INRESPONSE THE MODEM IF IT IS READY TO ACCEPT THE DATA, SENDS BACK CTS.

x86 PC COM PORTS  THE x86 PCs USED TO HAVE TWO COM PORTS.  BOTH COM PORTS WERE RS232 TYPE CONNECTORS.  COM PORTS WERE DESIGNED AS COM 1 AND COM 2.  RECENTLY ONE OF THESE HAS BEEN REPLACE WITH THE USB PORT, AND COM 1 IS THE ONLY SERIAL PORT AVAILABLE.  IN ABSENCE OF COM PORT, WE CAN USE COM TO USB CONVERTER MODULE.