LEC-13 - 13 Serial Peripheral Interface Serial Peripheral...

Info icon This preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
13 Serial Peripheral Interface 4/5/2010 © Copyright Kenneth Short 2010 1 4/5/2010 © Copyright Kenneth Short 2010 1 Serial Peripheral Interface (SPI) Prof. Ken Short 4/5/2010 © Copyright Kenneth Short 2010 2 Overview SPI The Serial Peripheral Interface (SPI) is a popular synchronous serial communications protocol SPI is typically used to allow ICs on the same printed circuit board to communicate The project for the remaining laboratories will involve the design of an SPI system It will allow you to put into practice the concepts you have learned so far this semester as well as the concepts you will learn during the remainder of the semester
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
13 Serial Peripheral Interface 4/5/2010 © Copyright Kenneth Short 2010 2 4/5/2010 © Copyright Kenneth Short 2010 3 Project: SPI Test System You will design a configurable SPI master/slave system that can be used to test the SPI capabilities of other ICs The system will be implemented using a single FPGA The system will allow an operator to easily configure the SPI Test System to communicate with some target IC The system can then be used to test the operation of the target ICs SPI Since the system will provide functionality similar to an SPI in a microcontroller, we will start by developing an understanding of that functionality 4/5/2010 © Copyright Kenneth Short 2010 4 Microcontroller SPI Functionality In many applications serial bus systems have gained in popularity over parallel because they use fewer connections This is particularly true with microcontrollers where the number of pins is limited Serial buses allow a microcontroller to communicate with external peripheral devices Serial buses also allow inter-processor communication in multi-microcontroller systems (multi-master systems)
Image of page 2
13 Serial Peripheral Interface 4/5/2010 © Copyright Kenneth Short 2010 3 4/5/2010 © Copyright Kenneth Short 2010 5 Connecting Systems or Peripherals Using Buses Information (data) is transferred from one system (or subsystem) to another using buses Two categories of buses exist: parallel buses and serial buses A parallel bus transfers an one n-bit word of data in a single bus cycle A serial bus transfers an n-bit word of data in n bus cycles As a first approximation, we can say that a parallel bus is n times faster in transferring data as a serial bus 4/5/2010 © Copyright Kenneth Short 2010 6 Parallel Bus Microcontroller address data control Peripheral Peripheral Peripheral n
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
13 Serial Peripheral Interface 4/5/2010 © Copyright Kenneth Short 2010 4 4/5/2010 © Copyright Kenneth Short 2010 7 Serial Bus Microcontroller select data clock Peripheral Peripheral Peripheral 1 4/5/2010 © Copyright Kenneth Short 2010 8 Serial Bus Cascade Microcontroller data clock Peripheral Peripheral Peripheral 1
Image of page 4
13 Serial Peripheral Interface 4/5/2010 © Copyright Kenneth Short 2010 5 4/5/2010 © Copyright Kenneth Short 2010 9 Serial Buses There are a large number of different serial buses Some of these buses are standards and others are de facto standards These buses differ in the number of signal lines, network
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern