Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Programming the BeagleBone

You're reading from  Programming the BeagleBone

Product type Book
Published in Jan 2016
Publisher
ISBN-13 9781784390013
Pages 180 pages
Edition 1st Edition
Languages

Table of Contents (21) Chapters

Programming the BeagleBone
Credits
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Cloud9 IDE Blinking Onboard LEDs Blinking External LEDs Controlling LED Using a Push Button Reading from Analog Sensors PWM – Writing Analog Information Internet of Things with BeagleBone Physical Computing in Python UART, I2C, and SPI Programming Internet of Things using Python GPIO Control in Bash BeagleBone Capes
Pinmux and the Device Tree Index

SPI protocol


The I2C bus interface is used for low-speed devices only. If you want to communicate with faster devices like LCD/LED display units, SD cards, Ethernet modules, then you need to use a faster bus on BeagleBone called the Serial Peripheral Interface (SPI). It provides high data rates in MB/s. Many sensors, DAC, Wi-Fi boards, and microcontroller boards support the SPI protocol. This protocol was developed by Motorola. It is popular in embedded systems.

SPI is a synchronous serial 4-wire protocol. Multiple devices can be connected to a single bus. So, it is a master-slave bus. One line is used to synchronize the clock signal (SCK/SCLK/CLK). The master provides the clock signal to all slaves. Two lines of MOSI and MISO are used to exchange data. MOSI carries data from the master to slave. MISO carries data from the slave to the master. So, SPI is a full duplex communication. MOSI and MISO lines are shared among all slave devices. One line is Chip Select (CS). It is also called Chip...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}