Skip to content
Tactiverge

Learning Rooms/□ Level 4 · Systems Engineer/Electronics

Understanding I2C

Rohde & Schwarz · 10 min 57 s · captions on YouTube · nothing loads until you press play

By the end you can…

  • Read an I2C transaction: start, address, ack, data, stop.
?Predict▶Watch✓Practise⚙Build

Watch it all: no segment has been checked by hand for this video yet.

1.Predict before you press play

A datasheet says a sensor's I²C address is 0x48. A logic analyser shows the first byte after START is 0x90. What has gone wrong?

Pick one before you press play. A wrong guess is fine: it is what makes the video stick.

2.See the idea first

Play with this diagram for a minute. It gives you something to hang the video on.

Loading the interactive…

Can't use the diagram? Read a description instead

The I²C diagram lists a register read from address 0x48, register 0x00, with sample data 0x1A and 0xC3: byte 1 address+W 0x90 ACK by target; byte 2 register 0x00 ACK by target; byte 3 address+R 0x91 ACK by target; byte 4 data 0x1A ACK by controller; byte 5 data 0xC3 NACK by controller, then STOP. Each step shows the 8 SDA bits most significant first and the 9th acknowledge bit. The readout totals 45 clocks: 450 µs at 100 kHz and 112.5 µs at 400 kHz.

3.Watch, actively

An instrument maker's clear explanation of I2C addressing, acknowledges and timing.

10 min 57 s · captions on YouTube · source

Nothing loads from YouTube until you press play.

Watch for…

  • → Watch for the START and STOP conditions (SDA changing while SCL is high) and the acknowledge bit after every byte.

Pause whenever you like. Rewatching a hard minute is a good habit, not a failure.

Can't stream it? Read the idea instead

I²C connects many chips with two shared wires, clock and data. The controller sends a start condition and a 7-bit address; only the device with that address answers with an acknowledge bit, then bytes follow, each acknowledged. Pull-up resistors hold the lines high when no one drives them.

What the video covers (our own note, written when we verified it): An instrument maker's clear explanation of I2C addressing, acknowledges and timing.

Written by Tactiverge in our own words, not a transcript. The full lesson below explains the idea without the video.

Read it instead

Jot down one thing that surprised you and one question you still have.

Private: saved only on this device, never sent to Tactiverge.

4.Practise what you just saw

These come from the lesson that use this video and are checked on the server. Wrong answers get a hint and another try.

Practice 1

What is the address byte, in decimal, for writing to an I²C device at 7-bit address 0x68?

Practice 2

In a multi-byte read, the controller answers the final data byte with a NACK. Why?

Practice 3

A register read of 2 data bytes is 5 bytes on the bus at 9 clocks each. How long does it take at 400 kHz, in microseconds, ignoring START and STOP?

µs

Practice 4 · a fresh version every time

A controller reads 4 data bytes from a sensor register over I²C at 400 kHz: address byte (write), register index, repeated start, address byte (read), then the data. Count 9 clock cycles per byte (8 bits + ACK) and ignore the start, stop and repeated-start conditions. How long does the transaction take, in microseconds? (1 decimal place)

µs

5.Try it yourself

No simulation models this idea yet. The lesson below has an interactive diagram instead.

6.Where engineers use it

An IMU at 0x68 read 1000 times a second for 14 bytes needs (3 + 14) × 9 = 153 clocks per read: 382.5 µs at 400 kHz, so about 38% of the bus. At 100 kHz (1.53 ms per read) it would not fit at all.

From the applied view in the lesson I²C: decoding a bus conversation. Checked by automated tests only.

7.Build something with it

Follow-up project

Your robot reads a temperature sensor (2 data bytes) and an IMU (14 data bytes) on the same 400 kHz bus, each 200 times a second. Using 9 clocks per byte and the register-read pattern, what fraction of the bus time is used? Would 100 kHz still work?

Draw an I2C write of one byte to address 0x48.

Where this video lives

In the course catalogue: ECE-310 Embedded communication

The video is by Rohde & Schwarz, embedded from YouTube with privacy-enhanced mode and never autoplayed. The room around it (prompts, notes, practice, projects) is Tactiverge's, written with AI assistance and checked by automated tests only.