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),

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.
Spring EE 316 Computer Engineering Junior Lab Serial Ports.
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.
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.
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.
1 מעבדה במבוא לתקשורת בהתאם לאמונה שלי שתלמיד שאינו שולט באנגלית לא יכול להתהדר בתואר אקדמי במדעי המחשב, אזי : זה השקף האחרון בעברית שתראו בקורס.
Chapter 6 Serial Communications Objectives Introduce the RS232 standard and position it within the crowded field of serial communications standards. Configure.
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
UART and UART Driver B. Ramamurthy.
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)
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.
“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.
Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization.
 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.
2/26: Wide World of Modems Roll call. Video: modem Lecture: step- by-step
1 Transmission of Digital Data : Interface and Modems.
1 Asynchronous voice band modem for IP data protocols overview features.
Transmission Media II (06.523) Types and properties of physical transmission media II.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
CSC 335 Data Communications and Networking Lecture 4b: Communication and Multiplexing Dr. Cheer-Sun Yang.
©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
8251 USART.
BASICS OF SERIAL COMMUNICATIONS BIRLA VISHWKARMA MAHAVIDYALAYA ELECTRONICS & TELECOMMUNICATION DEPARTMENT PRESENTING BY: ABHISHEK SINGH AMANDEEP.
Modem. Introduction: A modem [Modulator -Demodulator] is a device. Data communication means transmitting digital information form one computer to other.
Lecture 15. Modem Controller Register 4310 DTR 0 = Polling Operator 1 = Interrupts Enabled RTS 1 =Self Test 0 =Normal.
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
SERIAL PORT PROGRAMMING
RS-232 Communications.
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
8051SERIAL PORT PROGRAMMING
Chapter 6: INTERFACES Visit for more Learning Resources.
Presentation transcript:

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), e.g. a modem, Data Terminal Equipment (DTE), e.g. the computer. Serial Ports on newer PCs use the D-Type 9 pin male connector, while those on older PCs used the D-Type 25 pin male connector.

Serial Port I/O Addresses Typical settings of serial communication (COM) ports: COM Port AddressIRQ COM1 3F8 4 COM2 2F8 3 COM3 3E8 4 COM4 2E8 3 On most PCs, only 2 serial ports can be used at the same time. (Port 1=COM1 or COM3, Port 2=COM2 or COM4)

Serial Port pin-out (older)(newer) D25 Port D9 Port Signal Full Name Pin 2 Pin 3 TD Transmit Data Pin 3 Pin 2 RD Receive Data Pin 4 Pin 7 RTS Request To Send Pin 5 Pin 8 CTS Clear To Send Pin 6 Pin 6 DSR Data Set Ready Pin 7 Pin 5 SG Signal Ground Pin 8 Pin 1 CD Carrier Detect Pin 20 Pin 4 DTR Data Terminal Ready Pin 22 Pin 9 RI Ring Indicator

PC-to-PC Serial link When 2 PCs are connected by their serial ports, a Null Modem cable is required. It uses only 3 wires (TD, RD & SG) to link up the 2 PCs. TD is wired to RD, and RD is wired to TD from one PC to the other PC. On both sides, DTR, DSR and CD are wired together, so are RTS and CTS. Null Modem Cable

The RS232C serial port transmits a "Mark" (logic 1) as -3V to -25V and a "Space" (logic 0) as +3V to +25V. At the receiving end, these voltages are converted to TTL levels: 5V for logic 1 and 0V for logic 0. The serial line is at logic 1 when idle. A serial character begins with a Start bit (logic 0) followed by 7 or 8 Data bits. A Parity bit may optionally be appended. A Stop Bit (logic 1) is added at the end.

Typical serial format: 8 Data bits, No Parity, 1 Stop Bit. Serial Communication Speed in bits per second (bps): 1200, 2400, 9600, 19200, 38400, 57600, bps Serial port communication is handled by an IC chip called a UART (Universal Asynchronous Receiver / Transmitter). The serial port has many registers: Line Control Register, Line Status Register, Transmit Buffer, Receive Buffer, etc. The PC has built-in BIOS routines that help us to handle serial port communication using interrupt services.