I²C and SPI masters

Drive an I²C or SPI bus from a bench instrument and read the replies.

Both are under Digital in the Instruments navigator. Wire them to the bus and double-click them. They drive their lines at the chosen Logic Level (1.8, 3.3 or 5 V) once per run, and list the decoded frames.

I²C master#

  • Clock: 100 kHz (to start), 400 kHz or 1 MHz.
  • Transfers: a hex address, W or R, then bytes. Separate transfers with semicolons, for example 50 W 01 A5; 50 R ?? ??. Press Return to apply.
  • Simulated Target: an address and its registers, such as 50: 12 34 56, answering at 0x50 with registers 0, 1 and 2. A write’s first byte sets the register and the rest fill it; a read returns registers from there. The target acknowledges its own address and every byte written; other addresses aren’t acknowledged, and the master refuses the last byte it reads, as real masters do.

SPI master#

  • Clock: 100 kHz, 1 MHz (to start) or 10 MHz. Mode: 0 to 3.
  • MOSI Bytes, for example 9F 00 00, sent most significant bit first while CS is low. MISO is read back from the circuit.
  • Answer on MISO: turn it on and type a response buffer. Each byte the master sends is answered with the next byte from the buffer, then 0xFF, in whichever mode the master uses.

Applies to Coppa 0.1 Preview 14. Last updated 22 November 2026.