Advanced Embedded Systems Design Lecture 8 Serial I/O BAE 5030 - 003 Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.

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.
Chapter 4 Making Connections. 2 Introduction  Examine the interface between a computer and a device. This interface occurs at the physical layer.  Connecting.
Local Asynchronous Communication and RS-232. Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism.
1 Pertemuan 12 Layer Physical Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
1 Rick Graziani Local Asynchronous Communications (RS-232)
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.
CSCI 4550/8556 Computer Networks Comer, Chapter 5: Local Asynchronous Communication (RS-232)
COMP3221: Microprocessors and Embedded Systems
EET Advanced Digital Chapter 21 Serial Ports.
Data Communications Chapter 6 The Data Communications Interface.
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.
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.
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.
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.
ELECTRONIC COMMUNICATIONS A SYSTEMS APPROACH CHAPTER Copyright © 2014 by Pearson Education, Inc. All Rights Reserved Electronic Communications: A Systems.
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),
1 Ch 5 Local Asynchronous Communication (RS-232).
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.
Universal Asynchronous Receiver/Transmitter (UART)
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
Serial Communications
Chapter 5: Local Asynchronous Communication 1. Bit-wise data transmission 2. Asynchronous communication 3. Sending bits with electric current 4. Standard.
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
1 Basics of Data Communications Discrete-time Communication vs Continuous-time Communication Is human communication continuous-time or discrete-time ?
Universal Asynchronous Receiver/Transmitter (UART)
The Principle of Electronic Data Serial and Parallel Data Communication Transmission Rate Bandwidth Bit Rate Parity bits.
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.
AS Computing Data transmission. Basic data transmission Baud The rate that the voltage changes is called the Baud. If the voltage changes 10 times every.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
Unit 1 Lecture 4.
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.
1 Business Telecommunications Data and Computer Communications Chapter 6 The Data Communications Interface.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
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.
William Stallings Data and Computer Communications
Serial mode of data transfer
UART Serial Port Programming
RS-232 Communications.
Serial Communications
RS-232 Communications.
Pemrosesan Data Tersebar
Serial Communication: RS-232 (IEEE Standard)
Local Asynchronous Communication (RS-232)
Asynchronous Serial Communications
UART Serial Port Programming
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
Serial Communications
William Stallings Data and Computer Communications
Presentation transcript:

Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma State University

Goals for Class Today Questions over reading (Chapter 18, PC-Link) Student presentation?? Serial I/O Demo Keil Compiler –Watch windows –Breakpoints –Code browser Review Target Hardware –Circuitry / cabling –Demo Set assignment

Serial I/O (RS 232) - Pont History –Serial communications needed as an efficient low speed data exchange between data terminal devices (teletype) and data communications equipment (modems) –EIA (telephone industries) standardized the interface in the early 1960s (RS-232-C in 1969) and the CCITT (Comite Consultatif Internatinale de Telegraphie et Telephonie) later standardized V.24 (functional description) and V.28 (electrical specifications). Application –Effective for low data rate communications (<10 kbaud) over short distances (<15 m) –Higher data rates may be used over short distances –Limited to Point-to-point applications –Few number of conductors required (minimum=3 for no handshaking duplex) –

Characteristics Point to point –Single receiver and single transmitter Direction –Simplex – single direction –Duplex – two directions Half duplex – one direction at a time Full duplex – both directions simultaneously Synchronous vs asynchronous –Synchronous – bit stream is transmitted with a clock synchronised at both ends of communication –Asychronous – Frames (characters) are sent as necessary without synchronization, bits are sent with an understood clock rate –DCE = Data Communications Equipment eg. Modem –DTE = Data Terminal Equipment eg. Computer

Packet structure amd baud rate Packet consists of: –Start bit (=1) –Data, 7 or 8, LSB first –May have a parity bit (Even, Odd, Mark or Space) –Stop bits, 1 or 2 (=0) Baud rate –Baud – State changes per second –Common baud rates: 300, 1200, 2400, 9600, 19,200, 38400, and 57,600 baud

Flow control Hardware –RTS/CTS Sender asserts Request to Send (RTS), Receiver asserts Clear to Send (CTS), Sender receives CTS and sends unless CTS is dropped. Software –Xon/Xoff Receiver signaled flow control through the data stream (needs full-duplex) The Xon character [0x11 (decimal 17)] is sent by the receiver to signal the sender to send The Xoff character [0x13 (decimal 19)] is send by the receiver to signal the sender to stop sending

RS 232 pin definitions DTE (computer) device has a male connector (socket with pins) Pin NumberSignal DescriptionDirection 1Carrier Detect (CD)In 2Received Data (RD)In 3Transmitted Data (TD)Out 4Data Terminal Ready (DTR) handshaking signalOut 5Signal Ground Common reference voltage 6Data Set Ready (DSR) handshaking signalIn 7Request To Send (RTS) flow control signalOut 8Clear To Send (CTS) flow control signalIn 9Ring Indicator (RI)In 9-Pin DB9-M male Connector on a DTE device (Looking into the connector)

RS 232 Voltage Levels Signal logic –> +3v = 0 = space –< -3v = 1 = mark

USB – Universal serial bus Next generation of serial I/O for PC to device Bus oriented (127 devices) Connector provides power Uses enumeration to ID devices High data rates –USB Mb/s or 1.5Mb/s –USB Mb/s Isocronous communications capability – “music” Excellent material on web – Development effort –Very significant effort to provide interface on embedded device. –Serial to USB devices attractive – use built in driver on host

Assignment Assemble target hardware / cabling Demo “Hello World” Read Pont, Chapter 19,20,21,22 Tutorial – 30 min –Review USB from a developers perspective