SPISPI Term - 062 Dr Abdelhafid Bouhraoua Term - 062 Dr Abdelhafid Bouhraoua.

Slides:



Advertisements
Similar presentations
IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
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
Serial Communication Buses: I 2 C and SPI By Brody Dunn.
STUDY OF THE ARIZONA MICROCHIP MICRO CONTROLLERS MOSTEFA GHASSOUL DAMMAM TECHNICAL COLLEGE
Guitar Effects Processor Critical Design Review October, 07, 2003 Groups Members: Adam Bernstein Hosam Ghaith Jasenko Alagic Matthew Iyer Yousef Alyousef.
Serial Peripheral Interface (SPI)
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
Programming 8-bit PIC Microcontrollers in C Martin Bates Elsevier 2008.
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.
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,
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,
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.
 Project Description & Goals  Hardware Used  Circuitry & Connections  Communication  Software & Programming  End Result.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Embedded System Design Laboratory October 4, 2002Stanford University - EE281 Lecture #3#1 Lecture #3 Outline Announcements AVR Processor Resources –UART.
University of Calcutta CBM 1 ROC Design Issues Dr. Amlan Chakrabarti, Dr. Sanatan Chattopadhyay & Mr. Suman Sau.
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
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.
Real-time Systems Lab, Computer Science and Engineering, ASU Quark SPI Interface (ESP – Fall 2014) Computer Science & Engineering Department Arizona State.
Network and Systems Laboratory nslab.ee.ntu.edu.tw se.
OCRP RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
OCRP RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
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)
ULTRA LOW CURRENT MEASUREMENT SYSTEM. A full diagram of a mass spectrometer.
SHIFT REGISTERS: CONVERTING BETWEEN SERIAL AND PARALLEL DATA Mark Neil - Microprocessor Course 1 Serial versus Parallel Data Transfers.
Communicating. The ATmega16 communicates through one of the following ways: Serial Peripheral Interface (SPI) Universal Synchronous and Asynchronous serial.
Synchronous vs asynchornous communication. What is a USART A USART (Universal Synchronous/Asynchronous Receiver/Transmitter) is a microchip that facilitates.
Embedded Communication Protocols Don Heer 10/18/10 1.
PlayStation 2 DualShock 2 Controller Ryan O’Keefe, Kabir Singh and Adrian Padin 1.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 9 Serial Buses – SPI, I2C.
BIRLA VISHVAKARMA MAHAVIDYALAY SUBJECT: SPI PROTOCOL & MAX7221 DISPLAY INTERFACING SUBMITTED BY: KISHAN AVASTHI( ) MANSI CHANDEGARA( )
میکرو کنترلرهای 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.
Serial Communication Originally created by Anurag Dwidedi and Rudra Pratap Suman.
Serial Communication Buses: I2C and SPI
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
ECE 3430 – Intro to Microcomputer Systems
Atmega32 Serial Programming Basics
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
EEPROM Comparison – Parallel or Serial
Pulse Width Modulation (PWM)
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Преглед Начин функционисања Имплементације
SPI Protocol Sepehr Naimi
HD44780 LCD programming From the Hardware Side
HD44780 LCD programming From the Hardware Side
Serial Peripheral Interface Bus
Presentation transcript:

SPISPI Term Dr Abdelhafid Bouhraoua Term Dr Abdelhafid Bouhraoua

SPI Overview SPI stands for Serial Peripheral Interface Used for moving data simply and quickly from one device to another Serial Interface Synchronous Master-Slave Data Exchange SPI stands for Serial Peripheral Interface Used for moving data simply and quickly from one device to another Serial Interface Synchronous Master-Slave Data Exchange

SPI – Synchronous Protocol SPI is a Synchronous protocol The data is clocked along with a clock signal (SCK) The clock signal controls when data is changed and when it should be read (sampled or clocked) Since SPI is synchronous, the clock rate can vary, unlike RS-232 style communications SPI is a Synchronous protocol The data is clocked along with a clock signal (SCK) The clock signal controls when data is changed and when it should be read (sampled or clocked) Since SPI is synchronous, the clock rate can vary, unlike RS-232 style communications

SPI – Master-Slave SPI is a Master-Slave protocol The Master device controls the clock (SCLK) No data is transferred unless a clock signal is present All slaves are controlled by the master clock The slave devices may not manipulate the SPI is a Master-Slave protocol SPI is a Master-Slave protocol The Master device controls the clock (SCLK) No data is transferred unless a clock signal is present All slaves are controlled by the master clock The slave devices may not manipulate the SPI is a Master-Slave protocol

SPI – Data Exchange SPI is a Data Exchange protocol As data is being clocked out, new data is clocked in Data is exchanged - no device can just be a transmitter only or receiver only (with exceptions) The master controls the exchange by manipulating the clock line (SCK) SPI is a Data Exchange protocol As data is being clocked out, new data is clocked in Data is exchanged - no device can just be a transmitter only or receiver only (with exceptions) The master controls the exchange by manipulating the clock line (SCK)

SPI – Data Exchange (cont.) Often a signal controls when a device is accessed - this is the CS or SS signal CS or SS signal is known as “Chip Select” or “Slave Select” Often a signal controls when a device is accessed - this is the CS or SS signal CS or SS signal is known as “Chip Select” or “Slave Select”

SPI - Signals SCLK or MCLK: SPI Clock or Master Clock MOSI: Master Out Slave In; also sometimes called SDO: Serial Data Out MISO: Master In Slave Out; also sometimes called SDI: Serial Data In SS or CS: Multiple instances to individually select each slave individually SCLK or MCLK: SPI Clock or Master Clock MOSI: Master Out Slave In; also sometimes called SDO: Serial Data Out MISO: Master In Slave Out; also sometimes called SDI: Serial Data In SS or CS: Multiple instances to individually select each slave individually

SPI - Architecture Master SS0SS1SS2SCLKMOSIMISO Slave 0 SSSCLKMOSIMISO Slave 1 SSSCLKMOSIMISO Slave 2 SSSCLKMOSIMISO

SPI – Data Clocking Data is only output during the rising or falling edge of SCK Data is latched during the opposite edge of SCLK The opposite edge is used to ensure data is valid at the time of reading Data is only output during the rising or falling edge of SCK Data is latched during the opposite edge of SCLK The opposite edge is used to ensure data is valid at the time of reading

Typical Transfer In This example : Number of bits transferred are device-specific and NOT part of the protocol –6 bits are sent from Master to Slave –5 bits are sent from Slave to Master Data changes on falling edge and is sampled on rising edge of the clock In This example : Number of bits transferred are device-specific and NOT part of the protocol –6 bits are sent from Master to Slave –5 bits are sent from Slave to Master Data changes on falling edge and is sampled on rising edge of the clock SSSS ____ SCLKSCLK MOSIMOSI MISOMISO

Examples Of SPI Slaves Microchip 25LC256; a 256K-bits EEPROM with SPI interface Microchip MCP3204; A 12-bits ADC with SPI interface VLSI VS1002; A MP3 player chip with SPI interfaces (control and data) Microchip 25LC256; a 256K-bits EEPROM with SPI interface Microchip MCP3204; A 12-bits ADC with SPI interface VLSI VS1002; A MP3 player chip with SPI interfaces (control and data)

Microchip 25LC256 Interface Byte Read Sequence

Microchip 25LC256 Byte Write Sequence

Microchip 25LC256 Page Write Sequence

Microchip 25LC256 Read Status Register Sequence

Microchip MCP3204 Interface Conversion

VLSI VS1002 Interface

VS1002 Control Only Interface

VS1002 Combined Control And Data Interfaces Writing Control Bytes … and Data Bytes