This chapter deals with the short-range buses typically used to communicate between a processor and external peripherals.
The serial peripheral interface (SPI) bus is described in detail with diagrams, schematics, and C code. The SPI discussion includes all the variations of this bus being used by peripheral manufactures.
A complete explanation if the popular I2C bus is also provided with examples. Using the PIC® as both a master and a slave is covered for both protocols. This chapter also covers the multi-drop configuration with multiple devices on the same bus.
Examples and exercises are for the popular PIC® microcontroller manufactured by Microchip.