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)

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 Homework Reading –Tokheim, Section 13-6 Continue mp1 –Questions? Labs –Continue labs with your assigned section.
Interfacing The Serial/RS-232 Port Hardware Serial Port Registers Programming.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
1 Pertemuan 12 Layer Physical Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Chapter 2 Data Communication Concepts Code Transmission Signal Modulation Service.
COE 342: Data & Computer Communications (T042) Dr. Marwan Abu-Amara Chapter 6: Digital Data Communications Techniques.
PC Modem Control The 8250 UART supplied with the PC supports a limited number of RS-232-C modem functions: The UART can be programmed to interrupt the.
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.
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.
Chapter 8 Data Communication. 2 Objectives Explain various ways to connect Data Terminal Equipment (DTE) to Data Communication Equipment (DCE). Describe.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
The University of Iowa. Copyright© 2005 A. Kruger 1 Introduction to Wireless Sensor Networks Engineering Issues I 31 March 2005.
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
Student: Blidaru Catalina Elena
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),
Lecture 7 Universal Asynchronous Receiver/Transmitter (UART) NCHUEE 720A Lab Prof. Jichiang Tsai.
Modems Chapter 17. Basic Knowledge  Modems are little devices to use the telephone to talk to other computers.  Modem is an abbreviation for Modulator/
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.
CSE466 Autumn ‘00- 1 Music Format if amp = 0, note is a command switch(note) 0: turn off specified channel 1: continue for specified tne w/ no change else.
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.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
AS Computing Data Transmission and Networks. Transmission error Detecting errors in data transmission is very important for data integrity. There are.
CSE466 Autumn ‘00- 1 What’s Coming  Hardware  Basic Filters and Noise Management  Serial Communications  Design Meeting  Move the quiz up to Monday.
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.
2/26: Wide World of Modems Roll call. Video: modem Lecture: step- by-step
1 Asynchronous voice band modem for IP data protocols overview features.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
1 מעבדה במבוא לתקשורת מועבר ע ” י אליעזר גנסבורגר ( מעובד מחומר שנלקט ע " י דניאל סיטרון ) כל החומר על הקורס ( החומר שיילמד, תרגילים, ציונים, שעות קבלה.
ANALOG AND DIGITAL PHYSICAL INTERFACES
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
NARNARAYAN SHASTRI INSTITUTE OF TECHNOLOGY Prepared by: Wasu Ichcha kaur H Bhalani Nidhi M Dhakate Megha D MICROCONTROLLER.
Lecture # 14. RS – 232C Standard Standard for physical dimensions of the connectors. PC (DTE) Modem RS – 232C Cable Connected via serial port (DCE)
Serial mode of data transfer
UART Serial Port Programming
RS-232 Communications.
Homework Reading Continue mp1 Labs Tokheim, Section 13-6 Questions?
CS-401 Computer Architecture & Assembly Language Programming
Lecture # 13.
SERIAL PORT PROGRAMMING
RS-232 Communications.
Serial Communication: RS-232 (IEEE Standard)
UART Serial Port Programming
Asynchronous Serial Communications
UART Serial Port Programming
Serial Communication Interface: Using 8251
Serial Communication Interface
Преглед Начин функционисања Имплементације
UART PC16550 (Universal Asynchronous Receiver/Transmitter) By Derwyn Hollobaugh
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
ANALOG AND DIGITAL PHYSICAL INTERFACES
8051SERIAL PORT PROGRAMMING
Presentation transcript:

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) (7) 6. DSR (6) 7. RTS (4) 8. CTS (5) 9. RI (22)

2 Connecting Via Modems The serial interface is between the computer and the modem. Public Switched Telephone Network

3 The Control Lines DTR (Data Terminal Ready) - Indicates to the modem that the UART is ready to communicate. DSR (Data Set Ready) - Indicates to the UART that modem is ready to communicate. RTS (Request To Send) - This line informs the modem that the UART has data to be sent. CTS (Clear To Send) - Indicates that the modem is ready to exchange data.

4 Full Handshake NULL Modem The RTS and CTS are cross-connected. Setting the RTS on one side sets the CTS on the other side. The DTR and DSR are likewise cross-connected. As are the TD and RD.

5 The Modem Control Register (MCR) The MCR is a read-write 8-bit register that controls the flow control lines (offset +4). Its bits are: Bit 0: Controls the DTR (Data Transmit Ready) signal –0: Set DTR to 0 –1: Set DTR to 1 Bit 1: Controls the RTS (Request To Send) signal –0: Set RTS to 0 –1: Set RTS to 1 Bits 2,3: Auxiliary outputs (not used by us). Bit 4: Loopback mode (should be 0). Bits 5,6,7: Reserved.

6 The Modem Status Register (MSR) The MSR is a read-only register that shows the current status of the control lines (offset +6). Bit 0: Delta Clear to Send (DCTS) indicator. Is set if there was a change in the CTS since the last time the MSR was read. Is reset when the MSR is read. Bit 1: Delta Data Set Ready (DDSR) indicator. Is set if there was a change in the DSR since the last time the MSR was read. Is reset when the MSR is read. Bit 2: Trailing Edge Ring Indicator (TERI) indicator. The same as the DCTS and DDSR, not used by us. Bit 3: Delta RD Line Signal Detect (DRLSD) indicator. The same as the DCTS and DDSR, not used by us.

7 The MSR (cont.) Bit 4: Shows the status of the CTS line. Bit 5: Shows the status of the DSR line. Bit 6: Shows the status of the RI line (not used by us). Bit 7: Shows the status of the CD line (not used by us). The above bits aren’t affected by reading the MSR.

8 Connecting Between PC and Modem When communicating between 2 PCs, through analog (phone) lines, there are 3 phases of communication: –DTE to DCE: The processor transfers data to the modem. –DCE to DCE: The modems transfer data between themselves. –DCE to DTE: The modem transfers data to the processor. We will concentrate on the DTE to DCE phase and simulate this in software. The sender will be the DTE and the receiver will be the DCE. The DCE will have a buffer of limited size, once it is full it must signal the DTE to stop sending data until the buffer is emptied. The next slides show the complete protocol.

9 Modem Communication Protocol This protocol is sender-oriented. The DTE must perform a “handshake” with the DCE in order to start sending. The DCE can send data to the DTE as soon as it (the DTE) sets the DTR line. The stages are: 1. The DTE starts communication by setting the DTR to The DCE detects this and sets the DSR to 1. A connection has been established between DTE to DCE. Both lines will remain set (1) until the end of communication. If the DTR is reset (if the computer is shut off, for example) the DSR will be reset as well. 3. The DTE sets the RTS and waits for the DCE to set the CTS. 4. While CTS is set the DTE can send data. When the DCE can no longer accept data (full buffer, no connection to the remote DCE etc.) it resets the CTS until it can accept more data. When it can accept more data it sets the RTS again.

10 Modem Communication Protocol (2) 5. If the DTE wants to stop the transfer, it resets the RTS causing the DCE to reset the CTS. 6. Connection is severed (cut) by having the DTR reset. 7. When a remote DCE initializes the connection, the local DCE will set the RI (Ring Indicator). The DTE will then instruct the local DCE to “answer”. The local DCE will set the CD (Carrier Detect) line to indicate that connection has been established with the remote DCE (you don’t have to implement this part of the protocol). 8. Only when all 4 control lines are set can data be transferred from the DTE to the DCE.

11 Cyclic Redundancy Check (CRC) Error detection using parity is simple but has it’s flaws. A 2 bit error can’t be detected using 1 bit of parity. In order to complement the parity check a CRC check is used. The Cyclic Redundancy Check takes a block of data and computes a signature. This signature is sent after the data. The receiver computes its own signature and compares it to the signature sent. If they don’t match an error has occurred. The simplest CRC technique is to XOR the values of the block together. This creates a signature of 1 byte.