Kyros Engineering Engineering Tools
Home › Tools › Timing Diagram Editor
// Documentation tools Proto v0.1SPI modes 0–3I2CUARTSVG / PNG

Timing Diagram Editor

Generate an SPI, I2C or UART waveform from the actual protocol, then edit it with the mouse: toggle levels, add clocks, buses and markers, and export clean SVG or PNG for a datasheet, a spec or a design review.

Runs entirely in your browser. Nothing is uploaded.
Preset
Time Dur Res
Export as

Signals0

Drag to reorder. Click a row to select it.

Properties

How to draw

Digital: click to toggle low / high. Shift+click for high-Z, then X.
Bus: click to place a region, double-click to label it.
Analog: choose the waveform here.
Marker: press Marker, then click two time positions.
Zoom: Ctrl + wheel, or the buttons.
Pan: middle-drag or Shift+drag.
Undo / redo: Ctrl+Z / Ctrl+Y.

Cursor 0 µsZoom 100%Signals 0Markers 0

Protocol generator

Builds the diagram from the protocol rules, so the edges are right before you start editing. Replaces the current diagram; Undo brings it back.

hex
Bd

Edge list of the selected signal

Exact times and levels, for a testbench or a spec table. “Edge CSV” in the toolbar exports every signal.

TimeLevel
// How it works

Where the generated edges come from

The generator turns a protocol into a list of edges (time and level), then draws that list. The editor draws the same SVG it exports, so the file matches the screen. Click a level to toggle it; the grid step (Res) sets how coarse your edits can be.

UART

idle = high; start bit = low; data LSB first; [parity]; stop bit(s) = high even parity: parity bit makes the number of ones (data + parity) even bit time = 1 / baud 9600 Bd → 104.17 µs 115200 Bd → 8.68 µs

0x55 sent as 8N1 is low for the start bit, then 1,0,1,0,1,0,1,0, then high: the line toggles at every bit boundary.

SPI

mode CPOL CPHA idle clock sample edge data changes 0 0 0 low rising falling 1 0 1 low falling rising 2 1 0 high falling rising 3 1 1 high rising falling

CPOL is the idle clock level. CPHA = 0 samples on the first (leading) edge, CPHA = 1 on the second (trailing) edge. The generator moves each data line a quarter clock period after its shift edge, so the sample edge always sees stable data. MISO is high-Z while /CS is high.

I2C

START SDA falls while SCL is high STOP SDA rises while SCL is high data SDA changes only while SCL is low; read while SCL is high byte 8 bits MSB first + 9th clock = ACK (SDA low) or NACK (SDA high) first byte = 7-bit address, then R/W (0 = write, 1 = read)

The generator decodes its own output the way a receiver would (sampling SDA on SCL rising edges) and shows the result under the Generate button, so an edited diagram can be checked against what you meant to draw.

Limits

References

  1. NXP Semiconductors, UM10204, I2C-bus specification and user manual, Rev. 7.0, 2021: Sec. 3.1 (data validity, START and STOP, byte format, acknowledge).
  2. Motorola, SPI Block Guide (S12SPIV3), and the common four-mode CPOL/CPHA table.
  3. Asynchronous serial framing as in any 16550-class UART datasheet (for example TI TL16C550C).

Documenting an interface that has to work the first time?

Kyros writes and reviews interface timing for firmware and hardware teams: bus specs, bring-up plans and the scope captures that prove them.

Talk about your project →