Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.

Slides:



Advertisements
Similar presentations
Chapter 14 Communications Introduction
Advertisements

I2C bus Inter Integrated Circuits bus by Philips Semiconductors
INPUT-OUTPUT ORGANIZATION
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Guest Lecturer Pat Pannuto Lecture 10: Serial buses Oct 6, 2011.
Serial Interfaces, Part Deux -I 2 C and SPI December 4, 2002 Presented by Eugene Ho.
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
Lecture 8: Serial Interfaces
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
Serial Communication Buses: I 2 C and SPI By Brody Dunn.
Spring EE 316 Computer Engineering Junior Lab Serial Ports.
Transmission Characteristics 1. Introduction (Information Interchange codes) 2. Asynchronous and Synchronous Transmissions 3. Error detection (bit errors)
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
I2CI2C CS-423 Dick Steflik. Inter-Integrated Circuit Developed and patented by Philips for connecting low speed peripherals to a motherboard, embedded.
Input/Output and Communication
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
Lecture 27: LM3S9B96 Microcontroller – Inter- Integrated Circuit (I 2 C) Interface.
INPUT-OUTPUT ORGANIZATION
Interfaces A practical approach. Lesson 2 I2C and SPI
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
SERIAL BUS COMMUNICATION PROTOCOLS
Serial Peripheral Interface (SPI) Bus. SPI Bus There is no official specification for the SPI bus. It is necessary to consult the data sheets of the devices.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 11/06/20141Input/Output.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
VERIFICATION OF I2C INTERFACE USING SPECMAN ELITE By H. Mugil Vannan Experts Mr. Rahul Hakhoo, Section Manager, CMG-MCD Mr. Umesh Srivastva, Project Leader.
4.0 rtos implementation part II
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),
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK–
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces: I2C & USB Rajesh K. Gupta Computer Science and Engineering University of California, San.
Universal Asynchronous Receiver/Transmitter (UART)
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
Embedded System Design Laboratory October 4, 2002Stanford University - EE281 Lecture #3#1 Lecture #3 Outline Announcements AVR Processor Resources –UART.
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
University of Calcutta CBM 1 ROC Design Issues Dr. Amlan Chakrabarti, Dr. Sanatan Chattopadhyay & Mr. Suman Sau.
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
Autonomous Helicopter James LydenEE 496Harris Okazaki.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Universal Asynchronous Receiver/Transmitter (UART)
1 Synchronous Serial IO Send a separate clock line with data –SPI (serial peripheral interface) protocol –I 2 C (or I2C) protocol Encode a clock with data.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
The Principle of Electronic Data Serial and Parallel Data Communication Transmission Rate Bandwidth Bit Rate Parity bits.
©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.
Unit 1 Lecture 4.
Communicating. The ATmega16 communicates through one of the following ways: Serial Peripheral Interface (SPI) Universal Synchronous and Asynchronous serial.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
Embedded Communication Protocols Don Heer 10/18/10 1.
UBI >> Contents Lecture 11 Communications Introduction & USI Module MSP430 Teaching Materials Texas Instruments Incorporated University of Beira Interior.
Microcontroller basics Embedded systems for mortals.
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.
میکرو کنترلرهای AVR Serial Interfaces, I2C and SPI
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
B1011 Processor to Processor ENGR xD52 Eric VanWyk Fall 2014.
Lab 9 Multiprocessor, Buses, SPI, I2C. Multiprocessors Why multiprocessors? The structure of multiprocessors. Elements of multiprocessors: – Processing.
Serial Communication Originally created by Anurag Dwidedi and Rudra Pratap Suman.
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Diagram of microprocessor interface with IO devices
Serial I/O and Data Communication.
Atmega32 Serial Programming Basics
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
EEPROM Comparison – Parallel or Serial
Computer Organization and Design
Serial Communication 19th Han Seung Uk.
Presentation transcript:

Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross

Overview Communications overview Overview: UART (RS-232) Brief overview: –I2C –SPI –1-Wire 2

Digital Communications Different types of communication: –Serial – data only transmitted one bit at a time on one lane (per direction) (differential pairs of signals are referred to as a lane) –Parallel – data transmitted typically words at a time (on different lines) with additional lines for parity and control (Typically doesn’t use lanes) Different types of signals: –Data – The message which is to be sent –Control – Signals used to ensure to control the flow of data, eg. Clock, start of frame, end of frame 3

Universal Asynchronous Receiver/Transmitter UART Common standard: RS-232 Three wires used: –Transmit –Receive –Ground Data encapsulated as 7 or 8 bit chunks Optional Parity – monitor data integrity Allow serial communication between devices 4

Asynchronous Signals are self clocking – no separate clock is transmitted with data Receiver must lock onto data and decode individual bits without using a specific receive clock 5

Operation UARTs have two sectors: –Receive (RX): read the incoming serial bit- stream, converts to parallel data (Serial to Parallel Conversion) –Transmit (TX): converts parallel data from the microprocessor registers into a serial bit- stream to transmit (Parallel to Serial Conversion) Receiver has to detect phase of incoming data and phase lock it’s local clock to the data pattern 6

Parity Bit Parity is a simple check to verify data integrity An extra bit is added to each byte (or a defined chunk of data) called a parity bit 4 different cases: –Even Parity: Even number of bits in total –Odd Parity: Odd number of bits in total –Mark Parity: Parity bit is always ‘1’ –Space Parity: Parity bit is always ‘0’ 7

Parity Bit For each byte the number of ‘1’s is summed In even parity this sum should be even (parity bit is set to make it even) In odd parity this sum should be odd (parity bit is set to make it odd) Example: – (5 ‘1’s present) If even parity: parity bit should be ‘1’ If odd parity: parity bit should be ‘0’ 8

Parity Bit Receiver performs same parity count – if it doesn’t match the receiver knows that the data wasn’t received correctly What is a problem with Parity? –Only detects odd numbers of bit errors effectively 9

UART interfacing Microprocessor UART device Examples: GPS Receiver Bluetooth Transceiver TX RX TX 10

UART RS-232 interfacing RS-232 is the serial standard used on PC serial ports The voltage levels are inverted and have a larger swing than most microprocessors provide Use a specialised IC to convert: eg. MAX232 Microprocessor PC TX RX TX MAX232 11

I2CI2C Inter-Integrated Circuit Developed by Philips Multi-master serial computer bus Two wires – configured as open drain lines, pulled up with resistors –SDA: Serial Data –SCL: Serial Clock 12

I2CI2C Master sends Start bit, followed by address of desired slave followed by read/write bit Slave sends acknowledgement Master continues in requested mode (read or write), slave continues in complementary mode (write or read) until stop bit is sent Communications are in Big Endian bit format – most significant bit first Start bit: high->low transition of SDA with SCL high Stop bit: low->high transition of SDA with SCL high 13

SPI Serial Peripheral Interface Bus Developed by Motorola 4 signals used: –SCLK: Serial Clock (from master) –MOSI: (Master Output, Slave Input) –MISO: (Master Input, Slave Output) –SS: (Slave Select) (one pin for each slave device) – nterface_Bus 14

SPI Allows full duplex (bi-directional at the same time) communication Higher throughput than I 2 C No flow control Short distance communication Applications: –SD Memory cards –Sensors –Memory –IC communications 15

Summary Digital communications is the process where digital devices exchange data encoded in a bit format Communications can occur in two forms (with various adaptations of each) – serial or parallel UART, I 2 C and SPI are common methods used for serial communications 16