4.2 Serial communication
UART, SPI and I2C on the wire and in the driver, turning byte streams into reliable messages with framing and checksums, then CAN and USB.
Lessons
- UART · Baud rate, framing, errors, flow control and DMA reception.
- SPI · Clock modes, chip select, multiple devices and throughput.
- I2C · Addressing, repeated start, clock stretching and bus recovery.
- Protocols, framing and checksums · Checksums, CRCs, byte order, framing and parsing a byte stream.
- CAN · Arbitration, bit timing, frames, CAN FD and error handling.
- USB · Enumeration, descriptors, endpoints, transfer types and device classes.
Project: E-scooter tracker box
The box a scooter-sharing fleet bolts under every deck: a service console, fall detection, settings that survive a flat battery, trustworthy telemetry and live battery data. One lab per lesson, each a working part, checked on simulated hardware in the page.