SPI By Alexander Maroudis. Outline What is SPI? SPI Configuration SPI Operation Master Slave Setup SPI Transactions SPI Digital Potentiometer Example.

Slides:



Advertisements
Similar presentations
ELECTRONIC SYSTEMS NESI NanoRacks Embedded System Integration Board HARDWARE Functional Design.
Advertisements

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
Author George Peck EVLA Hardware Monitor and Control PDR March 13, APPLICATIONS AND DEVICE INTERFACE ISSUES.
Serial Communication Buses: I 2 C and SPI By Brody Dunn.
STUDY OF THE ARIZONA MICROCHIP MICRO CONTROLLERS MOSTEFA GHASSOUL DAMMAM TECHNICAL COLLEGE
1-1 Microprocessor Engineering Microprocessor Systems Microcontrollers Infineon 16-bit Processor Family  specifically 167CS microcontroller C Programming.
Travis Reed Todd Hummel Kwan-Truc. Concept USB 1.1 SPI b.
SPISPI Term Dr Abdelhafid Bouhraoua Term Dr Abdelhafid Bouhraoua.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
Team Members Jordan Bennett Kyle Schultz Min Jae Lee Kevin Yeh.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Programming 8-bit PIC Microcontrollers in C Martin Bates Elsevier 2008.
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
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.
LSU 06/04/2007Expanding the BASIC Stamp1 Expanding the BASIC Stamp: Useful peripherals Programming Unit, Lecture 6.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
CRKit RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
CRKit RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
4.0 rtos implementation part II
Embedded Systems Design. General Purpose Processors: Software BASIC ARCHITECTURE - Datapath BASIC ARCHITECTURE - Datapath 2.
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,
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
(More) Interfacing concepts. Introduction Overview of I/O operations Programmed I/O – Standard I/O – Memory Mapped I/O Device synchronization Readings:
11/16/2006 WSN Mote- MCU & Sensor Hardware 1 ECET 581 Wireless Sensor Networks Mote – MCU & Sensor Hardware 2 of 3 Fall 2006
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.
Network and Systems Laboratory nslab.ee.ntu.edu.tw se.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
Serial Peripheral Interface SPI I2C (i-squared cee)
ULTRA LOW CURRENT MEASUREMENT SYSTEM. A full diagram of a mass spectrometer.
Embedded Systems February 10, Serial Interface - SPI  Serial Peripheral Interface  Synchronous communications  Clock supplied by the Master.
Embedded Communication Protocols Don Heer 10/18/10 1.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
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( )
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
Memory Mapped IO (and the CerfBoard). The problem How many IO pins are available on the 8051? What if you are using interrupts, serial, etc…? We want.
میکرو کنترلرهای AVR Serial Interfaces, I2C and SPI
Digital Signal Processor HANYANG UNIVERSITY 학기 Digital Signal Processor 조 성 호 교수님 담당조교 : 임대현
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
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.
Scrolling LCD using Arduino.
Serial Sinkron SPI & I2C Interface
Chapter 6 Input/Output Organization
Serial Communication Buses: I2C and SPI
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Voice Over IP By: Jon Peterson.
‘SONAR’ using Arduino & ultrasonic distance sensor
Remote Controlled Smart Socket
I2C PROTOCOL SPECIFICATION
SPI Compatible Devices
Pulse Width Modulation (PWM)
Introduction to Microprocessors and Microcontrollers
SPI Compatible Devices
Преглед Начин функционисања Имплементације
SPI Compatible Devices
Introduction to Arduino
Serial Peripheral Interface Bus
Presentation transcript:

SPI By Alexander Maroudis

Outline What is SPI? SPI Configuration SPI Operation Master Slave Setup SPI Transactions SPI Digital Potentiometer Example (EE 583) SPI Peripheral Types SPI and Microcontrollers ESBUS

SPI (Serial Peripheral Interface) Developed by Motorola Developed by Motorola Also known as MicroWire (National Semiconductor), QSPI (Queued),MicrowirePlus Semiconductor), QSPI (Queued),MicrowirePlus Synchronous Serial Communication

SPI Configuration Primarily used for serial communication between a host processor and peripherals. Can also connect 2 processors via SPI SPI works in a master slave configuration with the master being the host microcontroller for example and the slave being the peripheral

SPI Operation For SPI, there are Serial Clocks (SCLK), Chip Select lines (CS), Serial Data In (SDI) and Serial Data Out( SDO) There is only one master, there number of slaves depends on the number of chip select lines of the master. Synchronous operation, latch on rising or falling edge of clock, SDI on rising edge, SDO on falling edge Operates in 1 to 2 MHz range Master sends out clocks and chip selects. Activates the slaves it wants to communicate with

Master Slave Setup In this setup, there are 3 slave devices. The SDO lines are tied together to the SDI line of the master. The master determines which chip it is talking to by the CS lines. For the slaves that are not being talked to, the data output goes to a Hi Z state Multiple Independent Slave Configuration

Master Slave Setup Multiple slave cascaded In this example, each slave is cascaded so that the output of one slave is the input of another. When cascading, they are treated as one slave and connecting to the same chip select

SPI Timing Diagram EEPROM Read

SPI Digital POT (EE 583) We used a Microchip digital POT in EE 583 with SPI interface. Motorola 68HC12 had SPI built in hardware, very easy to use. Data we sent to POT via SPI consisted of 2 bytes. Command Byte- XXC1C0XXP1P0 C1C0 determines type of command, eg. 01 = Write Data 10 =Shutdown P1P0 Determines which potentiometer is affected by the command 00 = Nothing affected 01 = Command executed on POT 0 10 = Command executed on POT 1 11 = Command executed on both POT’s Data byte indicates value of the wiper

SPI Potentiometer Transaction

SPI Peripheral Types Converters (ADC, DAC) Memories (EEPROM, RAM’s,Flash) Sensors (Temperature, Humidity, Pressure) Real Time Clocks Misc- Potentiometers, LCD controllers, UART’s, USB controller, CAN controller,amplifiers

Peripherals Vendors that make these peripherals : Atmel –EEPROM, Dig. POT’s Infineon- Pressure Sensors, Humidity Sensors Maxim- ADC, DAC, UART, TI- DSP’s, ADC, DAC National Semiconductor- Temperature Sensors, LCD/USB controllers

SPI and Microcontrollers Motorola 68HC12 Has SPI built in hardware. Easy to integrate. See EE583 Intel 8051 Depending on Models, Most Cygnal products have I 2 C and some have SPI also built in hardware for easy integration.

Esbus Sensors bus Being developed by Esensors Inc, (see for more info) 6 wire sensor bus with modular connector based on modified SPI Byte of data is exchanged between the master and slave Optical isolators provide ground isolation for safety and noise reduction Data is transmitted from master along EDI lines The signal is connected to the data input to SPI serial bus on microcontroller Sensor information from slave are transmitted on EDO line to output of remote sensor Data line is connected to SDO in sensor end. Isolated DC to DC supply is used to retain ground isolation (optional)