Create your first transfer
1
Open I2C
In digital mode, click Generators → I2C. Start with I2C 1.
2
Add a device
Click Add a device to the bus and pick a common device or enter an address such as
0x3C. You can also type @ in the message box and select a device. It joins the bus group.3
Choose an operation and bytes
Select Write to send data. In hexadecimal mode, enter
00 AF and press Enter or Add to the signal. The generator draws START, the address, ACK, both bytes, and STOP.4
Inspect both lines
Use Show in the signal to select the range on SDA and SCL. Sent messages appear on the right of the chat; reads appear on the left.
Devices and addresses
The group bar holds the bus’s devices. Add a common model or add one by address, give it a name and color, mention it with@, or remove it. Each address belongs to one device per bus; the panel prevents duplicates. The generator supports up to 128 devices per bus.
Some datasheets give an 8-bit address that includes the read or write bit. If you enter
0x78, for example, the panel suggests the 7-bit address 0x3C.
Not answering on a device simulates a disconnected device: the address gets a NACK in all its messages. You can also change the reply for an individual message with its ACK or NACK control.
Message controls
Example: read a register
1
Specify the register
Mention the device, choose Write, and enter a register number such as
00. Add the message.2
Read its value
Choose Read, enter the bytes the device returns, such as
19 2A, and turn on Repeated START before adding. The bus remains held between the two messages.Multiple buses and masters
The I2C 1 selector adds buses up to eight, provided each has two free channels. Each bus has its own SDA, SCL, devices, and timing. Add a message to the current bus before adding the next. Bus options let you show its channels, change its color, or delete it. Deletion also removes that bus’s messages, devices, and channels. Add up to eight masters per bus. The first is the usual microcontroller. Choose Who is talking to assign messages to them. If two different masters start In parallel on the same bus, the signal shows arbitration: one wins, and the other retries when the bus is free. If they send exactly the same thing, there is only one transfer on the wire. On separate buses, In parallel makes simultaneous transfers without arbitration.Repeated START and In parallel are alternative choices for one message. Repeated START works only when the preceding message is on the same bus and master and did not end with NACK.
Timing, pauses, and existing signals
In Settings, set Between messages (steps with SDA and SCL high between STOP and START) and timing per bus:
The step playback rate determines the bus’s real speed. If you have already drawn SDA and SCL, the panel can read the existing bus: choose which channel is data and which is clock, then click Read messages. Transfers found appear in the chat. A notice identifies details of a hand-drawn signal that the chat cannot represent; changing the generator rebuilds the bus from its messages, and you can undo that action.
For transfer fields and decoding errors, see the I2C interpreter guide.