O'Reilly logo

Embedded C Programming by Mark Siegesmund

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 21

Internal Serial Busses

Abstract

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.

Keywords

SPI

I2C

Master

Slave

Multi-drop ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required