11: Serial communication systems

Abstract

This chapter looks at the basic serial communications that are found in real-time systems, including RS-232C, I2C, SPI, and CAN bus. It provides an overview of each protocol and the common sources of errors and how to find them.

Keywords

RS-232; USB; I2C; SPI; CAN; SCL; SDA; MOSI; MISO

Introduction

For many years, debugging serial communications issues in embedded systems generally boiled down to debugging the vagaries of the RS-232 protocol. Surprisingly, this is still true today because RS-232C is the most basic and fundamental of the serial communications protocols and is generally rather bulletproof. Debugging typically involved getting the baud rates to properly match or messing around with ...

Get Debugging Embedded and Real-Time Systems now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.