📡

Protocol Decoder Logic Analyzer

Real-time serial bus protocol simulator and physical layer fault injector for UART, I2C, and SPI. Inspect square-wave voltage transitions, calibrate receiver clock drift, inject EMI line glitches, and inspect decoded protocol packets on the fly.

Physical Layer Logic Analyzer
Bus Integrity:ALL FRAMES HEALTHY
Payload Stream Generator
Quick Presets:
UART Physical Layer Configuration
Physical Fault & Noise Sandbox
Receiver Clock Drift (Skew)0.0%
CRYSTAL ACCURATE (<3%)
EMI Line Noise Glitches0 Pulses
0 = Clean trace
Preset Hardware Failures:
🔬

Raw Physical Voltage Transitions & Logic Analyzer Trace

1 Bit Period (T_bit): 8.68 µs
Simulated Logic Analyzer TimelineUART • 1 Ch
100%
Signal Edge (3.3V) Receiver Strobe Tick Glitch / Framing Collision Decoded Bubble
Tip: Drag horizontally to pan • Ctrl + Scroll to zoom
360.2 µs
Total Transaction Time
3 Frames
Decoded Bytes Received
100% CLEAN
Channel Integrity
33 Strobes
Receiver Strobe Points

Decoded Protocol Stream & Packet Inspector

Protocol: UART
#Timestamp (µs)Raw Bits SampledDecoded HexASCII CharParity CheckStop Bit CheckFrame StatusDiagnostic Details
017.4 µs010100110x53SSampled: 0 (Exp: 0)HIGH (1)OKByte #0 verified clean
1125.9 µs010110010x59YSampled: 0 (Exp: 0)HIGH (1)OKByte #1 verified clean
2234.4 µs010011100x4ENSampled: 0 (Exp: 0)HIGH (1)OKByte #2 verified clean
⏱️Clock Drift & Sampling Margins

UART Asynchronous Serialization

Asynchronous serial lacks a distributed clock line. Receiver oscillators synchronize on the falling edge of the Start bit and sample bits at (1.5 + i) * T_rx. Because timing errors accumulate linearly over 10 bit periods, an oscillator discrepancy exceeding ~4.5% causes the Stop bit sample to drift into the transition edge, raising a hardware Framing Error.

⚡Open-Drain & Pull-Ups

I2C Wired-AND Bus Physics

I2C devices cannot actively drive lines HIGH. Bus lines (SDA and SCL) are pulled to 3.3V via 4.7kΩ resistors, and transceivers only pull lines to Ground (LOW). This prevents bus shorts during multi-master arbitration and enables clock stretching, where slow peripheral slaves hold SCL LOW to throttle the master.

🔄CPOL/CPHA Quad Modes

SPI Synchronous Shift Registers

SPI distributes a dedicated clock (SCK), eliminating baud rate oscillator drift entirely. However, the receiver shift register must strictly match the peripheral's Clock Polarity (CPOL) and Clock Phase (CPHA). Mismatching CPHA causes data to be sampled during signal transition slew rather than the steady state, shifting all incoming bytes by 1 bit.