1 -------------------------------------------------------------------------------
3 -------------------------------------------------------------------------------
5 This an example capture of I2C traffic from/to an Epson 8564JE I2C RTC chip,
6 which has a slave address of 0x51 (or 0xa2, if the read/write bit is included).
12 The logic analyzer used was a ChronoVu LA8 (at 1MHz):
15 ------------------------
23 The device talking to the RTC was doing the following in an infinite loop:
25 - Set the RTC to a specific date/time (Nov 22, 2011 - 04:03:54, weekday = 2).
27 - Read back the current time from the RTC.
29 This is what the decoded data should look like:
31 - Setting the date/time:
32 S Wr:0xa2 A 0x02 A 0x54 A 0x03 A 0x04 A 0x22 A 0x02 A 0x11 A 0x11 A P
34 - Reading the current date/time:
35 S Wr:0xa2 A 0x02 A Sr Rd:0xa3 A 0x54 A 0x03 A 0x44 A 0x62 A 0x52 A
38 - The abbreviations used above: S = Start, Wr = Write, A = ACK, P = Stop,
39 Sr = Repeated start, Rd = Read, N = NACK
41 The sigrok command line used was:
43 sigrok-cli -d 0:samplerate=1mhz --samples 8388608 \
44 -p '1=SCL,2=SDA' -o rtc_epson_8564je.sr