Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Course
  • Protocol Metrics Reference
  • Protocols Glossary
  • Reading Path
  • Protocol Fundamentals61
  • AMBA Family (APB / AHB / AXI)61
  • Coherence Fabrics (ACE / CHI)61
  • Memory Interfaces (DDR / LPDDR / HBM)61
  • PCIe & CXL61
  • Embedded Peripherals (I2C / SPI / UART)61
    • I2C Timing & Arbitration
    • SPI Modes & Chip-Select Rules
    • UART Flow Control
    • Peripheral Integration Debug
    • Embedded Peripherals (I2C / SPI / UART): Tricky Q&A
  • High-Speed I/O (USB / Ethernet / MIPI)61
  • Protocol Verification & Compliance61
  • Protocols Interview Prep5
  • Interface Protocols Cheatsheet
Loading lesson

‹Bus Protocols
  1. Topics
  2. Bus Protocols
  3. Embedded Peripherals (I2C / SPI / UART)

Interface Protocols · All levels

Embedded Peripherals (I2C / SPI / UART)

Low-speed serial protocol timing, arbitration, chip-select behavior, FIFOs, DMA hooks, interrupts, and driver-visible contracts.

  • 5topics
  • 61lessons

Topics in this section

  1. 1I2C Timing & Arbitration15 lessons
    • I2C Timing & Arbitration: Mechanism
    • I2C Timing & Arbitration: Inputs & Outputs
    • I2C Timing & Arbitration: Reports & Metrics
    • I2C Timing & Arbitration: Debug Playbook
    • I2C Timing & Arbitration: Worked Example
    • I2C Timing & Arbitration: Pitfalls & Red Flags
    • I2C Timing & Arbitration: Interview Drills
    • I2C Timing & Arbitration: Review Checklist
    • I2C Timing & Arbitration: Theory Deep Dive
    • I2C Timing & Arbitration: Design Space
    • I2C Timing & Arbitration: Expanded Case Study
    • I2C Timing & Arbitration: Step-by-Step Walkthrough
    • I2C Timing & Arbitration: Comparison Matrix
    • I2C Timing & Arbitration: Software / Programmer View
    • I2C Timing & Arbitration: Silicon PPA Impact
  2. 2SPI Modes & Chip-Select Rules15 lessons
    • SPI Modes & Chip-Select Rules: Mechanism
    • SPI Modes & Chip-Select Rules: Inputs & Outputs
    • SPI Modes & Chip-Select Rules: Reports & Metrics
    • SPI Modes & Chip-Select Rules: Debug Playbook
    • SPI Modes & Chip-Select Rules: Worked Example
    • SPI Modes & Chip-Select Rules: Pitfalls & Red Flags
    • SPI Modes & Chip-Select Rules: Interview Drills
    • SPI Modes & Chip-Select Rules: Review Checklist
    • SPI Modes & Chip-Select Rules: Theory Deep Dive
    • SPI Modes & Chip-Select Rules: Design Space
    • SPI Modes & Chip-Select Rules: Expanded Case Study
    • SPI Modes & Chip-Select Rules: Step-by-Step Walkthrough
    • SPI Modes & Chip-Select Rules: Comparison Matrix
    • SPI Modes & Chip-Select Rules: Software / Programmer View
    • SPI Modes & Chip-Select Rules: Silicon PPA Impact
  3. 3UART Flow Control15 lessons
    • UART Flow Control: Mechanism
    • UART Flow Control: Inputs & Outputs
    • UART Flow Control: Reports & Metrics
    • UART Flow Control: Debug Playbook
    • UART Flow Control: Worked Example
    • UART Flow Control: Pitfalls & Red Flags
    • UART Flow Control: Interview Drills
    • UART Flow Control: Review Checklist
    • UART Flow Control: Theory Deep Dive
    • UART Flow Control: Design Space
    • UART Flow Control: Expanded Case Study
    • UART Flow Control: Step-by-Step Walkthrough
    • UART Flow Control: Comparison Matrix
    • UART Flow Control: Software / Programmer View
    • UART Flow Control: Silicon PPA Impact
  4. 4Peripheral Integration Debug15 lessons
    • Peripheral Integration Debug: Mechanism
    • Peripheral Integration Debug: Inputs & Outputs
    • Peripheral Integration Debug: Reports & Metrics
    • Peripheral Integration Debug: Debug Playbook
    • Peripheral Integration Debug: Worked Example
    • Peripheral Integration Debug: Pitfalls & Red Flags
    • Peripheral Integration Debug: Interview Drills
    • Peripheral Integration Debug: Review Checklist
    • Peripheral Integration Debug: Theory Deep Dive
    • Peripheral Integration Debug: Design Space
    • Peripheral Integration Debug: Expanded Case Study
    • Peripheral Integration Debug: Step-by-Step Walkthrough
    • Peripheral Integration Debug: Comparison Matrix
    • Peripheral Integration Debug: Software / Programmer View
    • Peripheral Integration Debug: Silicon PPA Impact
  5. 5Embedded Peripherals (I2C / SPI / UART): Tricky Q&A1 lesson
On this page

    Section goal

    Low-speed serial protocol timing, arbitration, chip-select behavior, FIFOs, DMA hooks, interrupts, and driver-visible contracts.

    How to study this section

    1. Start with the topic hub to learn the contract.

    2. Use mechanism and reports pages to connect rules to metrics.

    3. Use debug and worked-example pages for interview and on-call practice.

    4. Close with checklist and PPA impact before signing any change.

    Topics

    1. i2c-timing-and-arbitration/ — I2C Timing & Arbitration

    2. spi-modes-and-cs-rules/ — SPI Modes & Chip-Select Rules

    3. uart-flow-control/ — UART Flow Control

    4. peripheral-integration-debug/ — Peripheral Integration Debug

    Related topics

    • Protocols course hub

    Protocol deep dive

    I2C/SPI/UART bugs are contract bugs: timing, reset value, IRQ type, and DMA watermark.

    Concept diagram

    Diagram
    PERIPHERAL CONTRACT
    
    firmware writes regs -> RTL state machine -> pins -> board -> device
            ^                    |
            +------- IRQ/DMA ----+
    
    If IRQ is level but driver assumes edge, you get lost events.

    Metric graph

    Diagram
    FIFO WATERMARK vs DMA
    
    FIFO fill
     100%|        *** overrun risk
      75%|     ***
      50%|  ***     <- ideal DMA trigger band
      25%| *
       0%+----------------> time

    Metrics and artifacts to collect

    • NACK rate

    • overrun count

    • CS setup/hold violations

    • IRQ miss rate

    Mini case study

    SPI flash worked in loopback but failed in system: CS deasserted one cycle early relative to device hold time. Board + RTL + mode bits together formed the contract.

    Debug branches

    • If overrun, FIFO depth vs ISR latency vs DMA burst.

    • If NACK on I2C, pull-ups, speed, and clock stretch.

    • If garbage data, CPOL/CPHA and MSB/LSB first.

    Senior review question

    Ask: what is the first transaction that deviates, and which spec rule does it test?

    PreviousNext: I2C Timing & Arbitration

    Up next

    Up nextI2C Timing & Arbitration

    Sign in to save progress

    Practice this lessonReport an error

    See also

    • How to Use This Course
    • Protocol Metrics Reference
    • Protocols Glossary