Lab EquipmentIntermediate

Debugging with a Logic Analyzer

Learn how to capture and decode I2C, SPI, and UART protocols using an affordable logic analyzer.

10 May 202614 min read

Introduction

While an oscilloscope is great for looking at analog voltages, a Logic Analyzer is better for looking at digital data. It can decode entire "conversations" between chips.

When to Use

  • Debugging "No communication" errors.
  • Verifying SPI clock speeds.
  • Reverse engineering unknown digital signals.

Software

Most affordable analyzers use PulseView (sigrok) or Saleae Logic.

  1. Connect the analyzer probes to SDA/SCL.
  2. Set the sample rate (usually 24MHz).
  3. Click Capture and use the "I2C Decoder" to see the hex values.
Tags:LabLogic AnalyzerDebuggingProtocols