Leanpub Header

Skip to main content

Wired Protocols in Embedded Systems

A Comprehensive Guide to Wired Embedded Protocols

"Wired Protocols in Embedded Systems" is your essential guide to understanding how wired communication works in embedded systems. From UART and SPI to I²C and CAN, this book explains the core principles, advantages, and limitations of each protocol. Whether you're an embedded engineer, firmware developer, or Arduino enthusiast, you'll gain the knowledge needed to choose and implement the right protocol for your project.

Minimum price

$19.00

$29.00

You pay

$29.00

Author earns

$23.20
$

...Or Buy With Credits!

You can get credits with a paid monthly or annual Reader Membership, or you can buy them here.
PDF
EPUB
277
Pages
About

About

About the Book

"Wired Protocols in Embedded Systems" is a comprehensive guide to the fundamental principles and implementations of wired communication protocols in embedded systems. It covers the essential concepts of data transmission and protocol structures, providing a deep understanding of how different communication standards operate.

What’s Inside:

  • Fundamentals of Wired Communication – Voltage levels, pull-up/pull-down resistors, output stages, and their impact on signal transmission.
  • Intra-Board Protocols – In-depth coverage of 1-Wire, UART, SPI, I²C, and I³C, including their physical layers, timing, and data transfer mechanisms.
  • External Communication Protocols – Insights into RS-485, CAN, USB, and Ethernet, explaining their key characteristics and use cases.

This book is designed for embedded engineers, firmware developers, and anyone interested in understanding the details of wired communication protocols. It will also be valuable for Arduino enthusiasts and hobbyists working with microcontrollers, sensors, and electronic modules that require reliable wired communication. Whether you are designing new embedded systems, integrating existing communication interfaces, or experimenting with hardware projects, Wired Protocols in Embedded Systems provides a solid foundation for making informed decisions.

This book is structured to guide you through the principles, implementations, and best practices of wired communication in embedded systems. By the end of this book, you will not only understand the technical details but also gain the confidence to apply this knowledge in your projects and professional work.

Author

About the Author

Contents

Table of Contents

  • Wired Protocols in Embedded Systems
  • Intro
    • Who Is This Book For?
    • Feedback
    • Support
  • PART 1. Introduction
  • Introduction into Communication Protocols
    • Classification of Communication Protocols
      • By Data Transmission Medium
      • By Ability for Simultaneous Transmission and Reception
      • By Synchronization
      • By the Number of Bits Transmitted Simultaneously
    • Importance of Communication Protocols
  • Basics
    • Voltage Levels
      • TTL (Transistor-Transistor Logic)
      • CMOS (Complementary Metal-Oxide-Semiconductor)
    • Pull-Up and Pull-Down Resistors
      • Pull-Up Resistors
      • Pull-Down Resistors
    • Selecting the Resistor Value
      • The Impact of Power Consumption on Resistor Selection
      • The Effect of Signal Speed on Resistor Value Selection
    • Types of Output Stages
      • Push-Pull Output Stage
      • Open-Drain Output Stage
    • Wired AND Connection
    • Conclusion
  • PART 2. Intra-board Communication Protocols
  • 1-Wire
    • Overview
    • Bus Connection
    • High-Level Data Transfer
      • Frame Format
        • Commands
          • Standard Mandatory Commands
          • Standard Optional Commands
          • Functional commands
        • Addressing
      • Examples of Command Sequences
        • Match ROM Command Example
        • Skip ROM Command Example
          • Skip ROM Example (Single Slave on the Bus)
          • Skip ROM Example (Multiple Slaves)
        • Read ROM Command Example
        • Overdrive Match ROM Command Example
        • Overdrive Skip ROM Command Example
          • Overdrive Skip ROM Example (Single Slave on the Bus)
          • Overdrive Skip ROM Example (Multiple Slaves)
        • Resume Command Example
    • Low-Level Data Transfer
      • Time Slots
        • Reset Sequence
        • Bit Timeslots
          • Master Write Time Slots
            • Write-1 Time Slot
            • Write-0 Time Slot
          • Master Read Time Slots
            • Read-1 Time Slot
            • Read-0 Time Slot
    • Physical Layer
      • Data Exchange Mechanism
      • Parasitic Power
        • Recovery Time
          • Recalculating recovery time for a Bus With One Slave
          • Recalculating recovery time for a Bus With Multiple Slaves
        • Strong Pullup
    • Devices Search Algorithm (ROM)
      • Search ROM Command Example
    • Device Search Algorithm (Alarm)
    • Conclusion
    UART
    • Overview
    • Device Connection
    • UART Frame Format
      • Start Bit
      • Data Bits
      • Parity Bit
      • Stop Bit
      • Frame Example
    • Data Transmission Parameters
      • Baud Rate
      • Number of Data Bits
      • Parity Bit
      • Number of Stop Bits
    • Flow Control in UART
      • Hardware Flow Control
      • Software Flow Control
    • Physical Layer
      • Data Transmission
      • Data Reception
        • Problems in Data Reception
          • Line Noise and Interference
          • Receiver Sampling Frequency Drift
          • Clock Jitter
        • Techniques for Improving Reception
          • Oversampling
          • Majority Vote
    • 1-Wire Simulation
      • Connection Schematics
        • Discrete Component Driver
        • Driver Using a Specialized IC
    • Time Slot Simulation
      • RESET Time Slot Simulation
      • Write Time Slots Simulation
      • Read Time Slots Simulation
    • Conclusion
    SPI
    • Overview
    • Connection
      • Simplex
      • Half-duplex
      • Full-duplex
    • Data Exchange Principle
      • Shift Register
      • SPI Data Exchange Principle
      • Clock Polarity (CPOL)
      • Clock Phase (CPHA)
    • Operating Modes
      • Mode 0
      • Mode 1
      • Mode 2
      • Mode 3
    • Multi-slave Configurations
      • Multi-independent subnode configuration
      • Daisy-Chain Configuration
    • Physical Layer
    • SPI Extensions
      • Dual-SPI
      • Quad-SPI
    • Conclusion
  • I²C
    • Overview
    • Connection
    • Data Transfer. High Level
      • Frame format
      • Exchange Procedure
      • Exchange Examples
        • Write Data
        • Read Data
    • Repeated Start Condition
    • Addressing
      • Addressing Modes
        • 7-bit Addressing
        • 10-bit Addressing
      • Reserved Addresses
        • General Call Address
        • START Byte
        • Compatibility with CBUS
        • High Speed Master Code
    • Data Transfer. Low Level
      • START Condition
      • STOP Condition
      • Data Exchange
      • Acknowledge (ACK/NACK)
      • Exchange Examples
        • Write Data
        • Read Data
    • Clock Stretching
    • Multi-Master
      • Clock Synchronization
      • Arbitration
    • Physical Layer
      • Standard and Fast Modes
      • High Speed Mode
        • Hardware Implementation
        • Duty Cycle Modification
        • Protocol Changes
        • Exchange Example
    • Conclusion
  • I³C
  • PART 3. External Communication Protocols
  • RS-422/485
  • CAN
  • USB
  • Ethernet

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub