December 2015
Beginner to intermediate
650 pages
18h 28m
English
This chapter covers the popular Serial Peripheral Interface (SPI) for microcontroller communication. One master device controls bidirectional communication with one or more slave devices on the SPI bus, with a chip select line for each device to choose the device. This chapter explains how SPI works, describes the special function registers (SFRs) that control the SPI peripherals, and provides sample code for interfacing with a static RAM chip and an accelerometer/magnetometer at speeds of 10 Mbit/s.
Keywords
Serial Peripheral Interface (SPI)
SPI bus
Accelerometer
Magnetometer
The Serial Peripheral Interface (SPI) allows the PIC32 to communicate with other devices at high speeds. Numerous devices use ...
Read now
Unlock full access