Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 9 Serial Buses – SPI, I2C.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Anurag Dwivedi Rudra Pratap Suman. Scope of Communica tion Telephones and Cell Phones.
ECE 371 Unit 13 - Part 1 Serial Peripheral Interface (SPI)
SHIFT REGISTERS: CONVERTING BETWEEN SERIAL AND PARALLEL DATA Mark Neil - Microprocessor Course 1 Serial versus Parallel Data Transfers.
Serial Buses. Serial Bus Features Allows several devices to be connected to a set of common signal wires Reduces inter-connections and complexity Asynchronous.
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
1 EECS 373 Design of Microprocessor-Based Systems Mark Brehob University of Michigan Serial buses, digital design Material taken from Dutta, Le, Ramadas,
EECS 373 Design of Microprocessor-Based Systems Prabal Dutta
Serial Communication Buses: I 2 C and SPI By Brody Dunn.
I/O Channels I/O devices getting more sophisticated e.g. 3D graphics cards CPU instructs I/O controller to do transfer I/O controller does entire transfer.
Serial Peripheral Interface (SPI)
SPISPI Term Dr Abdelhafid Bouhraoua Term Dr Abdelhafid Bouhraoua.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
EECS 373 Design of Microprocessor-Based Systems Mark Brehob
Input/Output and Communication
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
Haptic Belt team Informational Presentation.  I 2 C is a form of control bus (multi-master) which allows communication between multiple integrated circuits.
INPUT-OUTPUT ORGANIZATION
Interfaces A practical approach. Lesson 2 I2C and SPI
SPI By Alexander Maroudis. Outline What is SPI? SPI Configuration SPI Operation Master Slave Setup SPI Transactions SPI Digital Potentiometer Example.
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Lecture 12 Today’s topics –CPU basics Registers ALU Control Unit –The bus –Clocks –Input/output subsystem 1.
Computer Architecture Lecture 08 Fasih ur Rehman.
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)
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
CRKit RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
4.0 rtos implementation part II
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK–
CRKit RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
7/23 Inter-chip Serial Communication: SPI and I 2 C Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
Core of the Embedded System
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
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.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
University of Calcutta CBM 1 ROC Design Issues Dr. Amlan Chakrabarti, Dr. Sanatan Chattopadhyay & Mr. Suman Sau.
Network and Systems Laboratory nslab.ee.ntu.edu.tw se.
EECS 373 Design of Microprocessor-Based Systems Prabal Dutta
©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.
Revised: Aug 1, ECE263 Embedded System Design Lessons 27, 28 Serial Peripheral Interface.
Department of Electronic & Electrical Engineering Serial interfaces Serial Interfaces allow communication between devices sending one bit at a time. In.
Serial Peripheral Interface SPI I2C (i-squared cee)
SHIFT REGISTERS: CONVERTING BETWEEN SERIAL AND PARALLEL DATA Mark Neil - Microprocessor Course 1 Serial versus Parallel Data Transfers.
1 EECS 373 Design of Microprocessor-Based Systems Mark Brehob University of Michigan Serial buses, digital design Material taken from Dutta, Le, Ramadas,
Embedded Communication Protocols Don Heer 10/18/10 1.
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.
1 Serial Peripheral Interface What is it? Basic SPI Capabilities Protocol Pros and Cons Uses Serial Peripheral Interface
©F.M. Rietti Communication Lines Fundamentals. ©F.M. Rietti LM-18 Computer Science SSI Embedded Systems I 2 Communication Lines Generally used to connect.
Lab 9 Multiprocessor, Buses, SPI, I2C. Multiprocessors Why multiprocessors? The structure of multiprocessors. Elements of multiprocessors: – Processing.
Serial Communication Buses: I2C and SPI
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
EE 107 Fall 2017 Lecture 7 Serial Buses – I2C Direct Memory Access
SERIAL PERIPHERAL INTERFACE
EEPROM Comparison – Parallel or Serial
EECS 373 Design of Microprocessor-Based Systems Mark Brehob
SPI Compatible Devices
Преглед Начин функционисања Имплементације
SPI Protocol Sepehr Naimi
SPI Compatible Devices
Serial Peripheral Interface Bus
Presentation transcript:

Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 9 Serial Buses – SPI, I2C

Why study or develop new ways to communicate between devices? Every square mm is a real estate in the chip world. Most large embedded system design needs careful thought plan I/O is largest power consumer in low power design CPU A/D Sensor D/A CPU Memory Actuators

Outline Introduction to Serial Buses UART SPI I2C 3

Introduction What is it? Basic Serial Peripheral Interface (SPI)‏ Capabilities Protocol Pro / Cons and Competitor Uses Conclusion Serial Peripheral Interface SPI_single_slave.svg/350px-SPI_single_slave.svg.png

Serial Bus protocol Fast, Easy to use, Simple Everyone supports it What is SPI?

SPI Basics A communication protocol using 4 wires Also known as a 4 wire bus Used to communicate across small distances Multiple Slaves, Single Master Synchronized

Capabilities of SPI Always Full Duplex Communicating in two directions at the same time Transmission need not be meaningful Multiple Mbps transmission speed Transfers data in 4 to 16 bit characters Multiple slaves Daisy-chaining possible

Protocol Wires: Master Out Slave In (MOSI)‏ Master In Slave Out (MISO)‏ System Clock (SCLK)‏ Slave Select 1…N Master Set Slave Select low Master Generates Clock Shift registers shift in and out data

Wires in Detail MOSI – Carries data out of Master to Slave MISO – Carries data from Slave to Master Both signals happen for every transmission SS_BAR – Unique line to select a slave SCLK – Master produced clock to synchronize data transfer

Shifting Protocol Master shifts out data to Slave, and shift in data from Slave

Diagram Master and multiple independent slaves ves.svg/350px-SPI_three_slaves.svg.png Master and multiple daisy- chained slaves Some wires have been renamed

Clock Phase (Advanced)‏ Two phases and two polarities of clock Four modes Master and selected slave must be in same mode Master must change polarity and phase to communicate with slaves of different numbers

Timing Diagram Timing Diagram – Showing Clock polarities and phases

Pros and Cons Pros: Fast and easy Fast for point-to-point connections Easily allows streaming/Constant data inflow No addressing/Simple to implement Everyone supports it Cons: SS makes multiple slaves very complicated No acknowledgement ability No inherent arbitration No flow control

Uses Some Serial Encoders/Decoders, Converters, Serial LCDs, Sensors, etc. Pre-SPI serial devices

SPI VS UART UART requires only data signal. In UART, data is transmitted 1 byte at a time. In UART, data transfer speed is set to specific values like 4800, 9600, bps,etc. UART speed is limited around bps. Asynchronous transmission UART cannot support multiple slaves

Summary SPI – 4 wire serial bus protocol MOSI MISO SS SCLK wires Full duplex Multiple slaves, One master Best for point-to-point streaming data Easily Supported