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.
Signals0
Drag to reorder. Click a row to select it.
Properties
Clock
Analog
Timing marker
Bus regions
Click an empty spot on the bus row to add a region. Double-click a region to edit or delete it.
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.
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.
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.
| Time | Level |
|---|
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
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
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
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
- Digital edges sit on the Res grid (default 1 time unit). Use a finer Res for sub-step timing. The generators choose a grid that fits their edges.
- Edges are drawn with a fixed 3 px slant. The diagram shows sequence and relative timing, not rise times or setup and hold margins; add markers for those.
- I2C clock stretching, repeated START, 10-bit addressing, multi-master arbitration and UART break or framing errors are not generated. Draw them by hand with the digital signals.
- Exported PNG is rasterised from the SVG with system fonts.
References
- NXP Semiconductors, UM10204, I2C-bus specification and user manual, Rev. 7.0, 2021: Sec. 3.1 (data validity, START and STOP, byte format, acknowledge).
- Motorola, SPI Block Guide (S12SPIV3), and the common four-mode CPOL/CPHA table.
- 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.
