Skip to main content

Two-Way Communications with Your Raspberry Pi: SPI

  • Chapter
  • First Online:
Beginning FPGA: Programming Metal
  • 4729 Accesses

Abstract

We are going to use the Raspberry PI SPI (Serial Peripheral Interface) master to control the BeMicro MAX10 LEDs (light-emitting diodes). We need to design an SPI slave interface in the FPGA (field-programmable gate array) to let the Raspberry PI control the LEDs on the board. In the following section, we will show you how to connect a Raspberry Pi to BeMicro MAX10 board, design an SPI slave for the FPGA, and write a simple Python script to run on the Raspberry Pi that will do two-way communication on the SPI.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Aiken Pang and Peter Membrey

About this chapter

Cite this chapter

Pang, A., Membrey, P. (2017). Two-Way Communications with Your Raspberry Pi: SPI. In: Beginning FPGA: Programming Metal. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6248-0_15

Download citation

Publish with us

Policies and ethics