ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.

Slides:



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

INPUT-OUTPUT ORGANIZATION
Anurag Dwivedi Rudra Pratap Suman. Scope of Communica tion Telephones and Cell Phones.
11-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL I/O System Design.
ECT 357 Ch 18 UART. Today’s Quote: Be careful that your marriage doesn’t become a duel instead of a duet. Be careful that your marriage doesn’t become.
The 8051 Microcontroller Chapter 5 SERIAL PORT OPERATION.
ECE 371 Unit 13 - Part 1 Serial Peripheral Interface (SPI)
Serial Buses. Serial Bus Features Allows several devices to be connected to a set of common signal wires Reduces inter-connections and complexity Asynchronous.
Serial I/O - Programmable Communication Interface
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
Hierarchy of I/O Control Devices
Starting with serial Chapter Ten 10.1, 10.2,
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
Input/Output and Communication
Interface circuits I/O interface consists of the circuitry required to connect an I/O device to a computer bus. Side of the interface which connects to.
1 SCI Serial Communication Interface Gerrit Becker James McClearen Charlie Hagadorn October 21, 2004.
Chapter 10 Input/Output Interface Circuits and LSI Peripheral Devices
INPUT-OUTPUT ORGANIZATION
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Computer Architecture Lecture 08 Fasih ur Rehman.
USART Communication using the RS standard ETEC6416.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
ECE 265 – LECTURE 12 The Hardware Interface 8/22/ ECE265.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
4.0 rtos implementation part II
Input/Output mechanisms
7/23 Inter-chip Serial Communication: SPI and I 2 C Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 7.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
1 Microprocessor-based Systems Course 9 Design of the input/output interfaces (continue)
Universal Asynchronous Receiver/Transmitter (UART)
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
Microprocessors 2 lesson Subjects lesson 7 Planning Interrupts Serial communication /USART Questions.
Chapter 8 Serial and Parallel Port Interfacing Valvano’s Intro. To Embedded Systems.
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
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.
Universal Asynchronous Receiver/Transmitter (UART)
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Module #7 Assessment Quiz.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
ECE 353 Introduction to Microprocessor Systems Michael J. Schulte Week 9.
Ch.12 Communication Systems Valvano’s text Introduction SCI can be used to create a network. Figure 12.1 gives a general visualization. –At lowest.
Communicating. The ATmega16 communicates through one of the following ways: Serial Peripheral Interface (SPI) Universal Synchronous and Asynchronous serial.
Embedded Communication Protocols Don Heer 10/18/10 1.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 9 Serial Buses – SPI, I2C.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
8251 USART.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
Lab 9 Multiprocessor, Buses, SPI, I2C. Multiprocessors Why multiprocessors? The structure of multiprocessors. Elements of multiprocessors: – Processing.
Digital Logic Design Alex Bronstein
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Chapter 6 Input/Output Organization
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Input/Output and Communication
SERIAL PORT PROGRAMMING
E3165 DIGITAL ELECTRONIC SYSTEM
Computer Organization and Design
Serial Communication Interface: Using 8251
UART Protocol Chapter 11 Sepehr Naimi
Programmable Data Communication Blocks
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Serial Communication 19th Han Seung Uk.
Introduction Communication Modes Transmission Modes
Presentation transcript:

ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13

Topics Serial I/O Serial data transfer concepts Asynchronous and synchronous transfers UARTs  UART Interrupts Circular buffering RS-232 and flow control ADuC7026 Serial Peripherals UART SPI I 2 C

Serial I/O Concepts Serial communication transmits data one bit at a time. Why? Data transfers over long distances Reduced pin and interconnection count Easier to route with switches Eliminates parallel bus skew issues Terminology Communications channel Simplex vs. duplex Transmission rates Information codes Data Frames

Serial Communications Concepts - Morse Code A.- N B -... O , C -.-. P ? D -.. Q ( E. R ) F..-. S G --. T " H.... U _ I.. V ' J.--- W : K -.- X -..- / ; L.-.. Y $ M -- Z --.. = -...-

Asynchronous vs. Synchronous Asynchronous Communication No common clock signal between transmitter and receiver Synchronization must be established on a per frame basis Example – RS232 Synchronous Communication Clock is transmitted in addition to data, or is recovered from data signalrecovered from data signal Often includes a framing signal as well Example – I 2 S Example – I 2 S

Asynchronous Data Transfer RS-232 signal phases Idle Start bit Data Parity Stop bit – channel returns to idle condition Idle or Start next frame

UARTs Universal Asynchronous Receiver- Transmitter Basic UART construction Practical UARTs  Complex I/O device functionality encapsulated behind a register interfaceregister interface Control Status Data  class UART Organization class UART Organization FIFOs MODEM control signals

UART Interrupts UARTs often can generate interrupts for a number of conditions Receive data ready Receive data error  Framing, parity, overrun Modem signal status changes Transmitter buffer and/or shifter empty  Issues using the transmit interrupt Edge versus level interrupts Loading the transmitter queue

Circular Buffering Implement simple FIFO queueing in software to minimize data movement. Some CPUs (especially DSPs) implement circular addressing modes in hardware for speed.

RS-232 RS-232 is one of many physical-level standards for serial communications. Selected serial communications standards RS-232 defines many aspects of the serial data channel Equipment definitions Connector construction and pin-outspin-outs Modem control signals Signal levels RS-232 line drivers and receiversline drivers and receivers

Flow Control A serial channel may deliver data faster than the receiving device can process. Flow control gives the receiver a way to signal the transmitter to stop transmission. Flow control can be implemented as Software  XON/XOFF flow control protocol Hardware  RTS/CTS

ADuC7026 Serial Peripherals There are 4 serial peripherals on the ADuC7026; a UART and 3 synchronous ports (SPI and I 2 C) There are ten pins that are used by the serial peripherals in two modes

ADuC7026 UART COMCON0 Basic frame configuration Baud rate Basic baud rate divider Fractional baud rate divider

ADuC7026 SPI Port The Serial Peripheral Interface (SPI) port can be configured as a master or slave (shown below) SPI consists of 2 unidirectional data lines, a clock line, and a chip select line The master generates the clock and select signals, so it controls when/if transfers occur

ADuC7026 I 2 C Ports The Inter-Integrated Circuit (I 2 C) ports can operate as master or slave I 2 C supports multi-master buses using just 2 bidirectional lines (clock and data)  Both use open-drain drivers and pull-up resistors  Collisions can occur without damage – recognized when a line will not return high after it is released

Wrapping Up Quiz #3 on Thursday, May 3 rd at 7:15pm in 2255EH Homework #7 is due Friday, May 11 th Final Exam on Wednesday, May 16 th, at 12:25pm in room 2255EH. Coverage is over all course material.

Asynchronous Communications - RS232 Framing Back What do you need to know in order to figure out what the data is?

Synchronous Communications Back frame

Clock Recovery Back

Serial Communications Standards Back

RS-232 Connectors Back

RS-232 Signal Levels Back Data signals are shown. Control signals have opposite polarity.

MAX221 Back

16550-Class UART

16550-Class UART Registers Back

Basic UART Construction Back