timing·WaveDrom / IEEE 1497·industrial, education·complexity 2/3
SPI transaction timing diagram
timing·§ WaveJSON
↘ preview
100%
UTF-8 · LF · 5 lines · 202 chars✓ parsed·2.7 ms·5.9 KB SVG
Scenario
A firmware engineer or hardware designer documents an 8-byte SPI master-to-slave transaction for a device driver review or datasheet. The WaveDrom-compatible syntax means the same DSL can be pasted directly into WaveDrom's online editor or embedded in documentation pipelines.
Annotation key
p— clock pulse (high period followed by low); eachpis one clock cycle1/0— logic high / logic low=— data bus: stable data (value unchanged from previous cycle)x— don't-care or undefined state (transition state)z— high-impedance (floating / tri-state)data: [...]— optional data labels for each stable segment, rendered inside the bus barCS_N— active-low chip select;1= deselected,0= selected
How to read
The clock runs for 8 cycles. CS_N goes low at cycle 1 and returns high at cycle 8, framing the transaction. MOSI (master out) sends 8 bytes starting at cycle 1. MISO (slave in) is high-Z for the first 4 cycles (slave preparing the response) then transitions to stable data bytes 5–8. The transaction completes when CS_N de-asserts.