]>
Commit | Line | Data |
---|---|---|
2c954388 UH |
1 | ------------------------------------------------------------------------------- |
2 | Dummy I2C writes | |
3 | ------------------------------------------------------------------------------- | |
5f09f8b6 | 4 | |
2c954388 UH |
5 | This an example capture of some dummy I2C traffic, where the master writes |
6 | to a slave at address 0x51 (or 0x2a, if the read/write bit is included) | |
7 | in an infinite loop. The slave does not respond. | |
8 | ||
9 | ||
10 | Logic analyzer setup | |
11 | -------------------- | |
12 | ||
13 | The logic analyzer used for capturing was a ChronoVu LA8 at a sample rate | |
14 | of 1MHz. The logic analyzer probes were connected to the I2C pins like this: | |
15 | ||
16 | Probe RTC chip pin | |
17 | ------------------------ | |
18 | 0 (green) SCL | |
19 | 1 (orange) SDA | |
20 | GND GND | |
21 | ||
22 | ||
23 | Data | |
24 | ---- | |
25 | ||
26 | This is what the decoded data should look like: | |
27 | ||
28 | - S Wr:0xa2 A 0x55 A 0x66 A P | |
29 | ||
30 | - The abbreviations used above: S = Start, Wr = Write, A = ACK, P = Stop | |
31 | ||
32 | The sigrok command line used was: | |
33 | ||
34 | sigrok-cli -d 0:samplerate=1mhz --samples 8388608 \ | |
35 | -p '1=SCL,2=SDA' -o a2_dummy_write.sr | |
095af1a5 | 36 |