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.

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.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Electronic Instrumentation and Measurements AC Power CHAPTER 15.
RS-232 Communications. Why Serial Communications? Serial communication is the most simplistic form of communication between two devices. It’s pretty intuitive.
Chapter 2 Data Communication Concepts Code Transmission Signal Modulation Service.
Eng. Husam Alzaq The Islamic Uni. Of Gaza
Chapter 9 Serial Communication Interface  SCI. Why Serial Communication? Parallel data transfer requires many I/O pins. This requirement prevents 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.
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)
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
Local Asynchronous Communication
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.
EEE305 Microcontroller Systems Lecture 7: Embedded C using PIC microcontrollers Serial i/o with the XC8 Teaching resources are at
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),
UART and UART Driver B. Ramamurthy.
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.
Serial Interfaces Oct 3, Announcement We will discuss the test at the end of tonight’s lecture. No homework Chap. 9 is not required to be read.
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.
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.
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
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
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.
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
Serial Communications
RS-232 Communications.
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
Chapter 6: INTERFACES Visit for more Learning Resources.
Presentation transcript:

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 STOP BIT(S)) WITH EACH CHARACTER

idle Start bit lsb msb Parity bit Stop bit(s) Data value transmitted is Parity bit shown represents even parity option Asynchronous Serial Data Format

SYNCHRONOUS SERIAL I/O - USES SINGLE “SYNCH” CHARACTER AT BEGINNNG OF DATA STREAM OR - USES SPECIAL CLOCK SIGNAL TO DEFINE BEGINNING OF EACH NEW CHARACTER

Synch charData char Header information Data char etc Synchronous Serial Data Transmission Format OR Data char

CLASSES OF SERIAL DATA APPLICATION COMPUTER TO PERIPHERAL DEVICE COMPUTER TO COMPUTER

Computer System Peripheral Device Serial data Handshaking Signals Ground Half-duplex Serial Data Interface Between Computer and Peripheral Device

Computer System Peripheral Device Serial data Handshaking Signals Ground Full-duplex Serial Data Interface Between Computer and Peripheral Device

Computer (DTE) Modem Telephone System Modem Computer (DTE) Serial Data Communication Between Computers, Using Modems RS-232 Standard Interface RS-232 Standard Interface DCE Data Communication Equipment DTE = Data Terminal Equipment RS-232 is a Standard Interface between DTE and DCE

Laptop COM1 Port CPU Asynchronous Serial Interface Modem Telephone Line Inside PC

RS-232 Standard Interface Defines a 25-bit Connector Defines the function of each pin Defines EIA RS-232 Logic Levels –Serial Data Physical Representation Logic “1”:-25 volts ≤ V 1 ≤ -5 volts Logic “0”: +5 volts ≤ V 0 ≤ +25 volts

TXD RXD GND RTS CTS DCD DSR DTR RI DCE EIA RS-232 Signals of Interest DTE

Primary RS-232 Signals RxD -- Received Data TxD --Transmitted Data RTS – Request to Send CTS – Clear to Send DTR – Data Terminal Ready - DTE Ready DSR – Data Set Ready – DCE Ready RI – Ring Indicator DCD – Data Carrier Detect GND -- Ground

EIA RS-232 Interface

COM Connector on PC

SERIAL COMMUNICATION INTERFACE (SCI) ON THE MC9S12DP256B MICROCONTROLLER ASYNCHRONOUS SERIAL I/O COMPATIBLE WITH RS232 STANDARD

SCI Data Formats See p. 211, text, for def.

Serial Data Format Idle (no data being transmitted) = “1” Start = “0” Stop =“1” Each data bit is T seconds in length Baud = 1/T Least Significant Bit Sent First Most Significant Bit Sent Last

ASCII Code for Letter A = 0b = 0x41 ASCII Code for Letter B = 0b = 0x42 ASCII Code for Digit 1 = 0b = 0x31 Idle Start LSB MSB Stop A = B = =

ASCII Character Set 7-bit Characters d6 d5 d4 d3 d2 d1 d0 0 0 x x x x x Control Characters 0 1 x x x x x Numbers and Punctuation 1 0 x x x x x Upper Case Characters 1 1 x x x x x Lower Case Characters Ctrl J = Line Feed Ctrl M = Carriage Return Ctrl Q = XON Ctrl S = XOFF Ctrl Z = End of File

2 Asynchronous Serial Ports SCI0 and SCI1 SCI0 – Uses Port S[1:0] SCI1 – Uses Port S[3:2]

RS-232 TTL Level Converters

TTL – RS-232 Conversion Channel 0 RTS = CTS DCD = DTR = DSR RI – No Connection Channel 1 Data Lines Only TTL – RS-232 Conversion DC to DC Power Supply