]>
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 | |
2c954388 UH |
20 | |
21 | ||
22 | Data | |
23 | ---- | |
24 | ||
25 | This is what the decoded data should look like: | |
26 | ||
27 | - S Wr:0xa2 A 0x55 A 0x66 A P | |
28 | ||
29 | - The abbreviations used above: S = Start, Wr = Write, A = ACK, P = Stop | |
30 | ||
31 | The sigrok command line used was: | |
32 | ||
33 | sigrok-cli -d 0:samplerate=1mhz --samples 8388608 \ | |
34 | -p '1=SCL,2=SDA' -o a2_dummy_write.sr | |
095af1a5 | 35 |