Strange I2C readings

Post any questions you may have about our current range of oscilloscopes
Post Reply
martynwheeler
Newbie
Posts: 0
Joined: Tue May 05, 2020 8:26 am

Strange I2C readings

Post by martynwheeler »

Hello,

I am using a picoscope to understand some i2c signals from a raspberry pi. The readings that I am getting from the scope do not seem to match what the pi is sending out.

I sent out a packet to a device with address 0x20 but the picoscope is reporting it as 0x16. The data is 0x01 but the scope is reporting it as 0x00. It is as if the serial decoder is reading slightly too early and misinterpreting the data. The pi is able to communicate with the device, so I assume the signal is okay it is just the picoscope misreading things. I have it setup as standard mode and using two logic channels to pull in the data.
i2c.png
Any help would be gladly appreciated, thanks
Martyn
Attachments
i2c.png

bennog
Advanced User
Advanced User
Posts: 208
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Strange I2C readings

Post by bennog »

can you post the .psdata file ?

martynwheeler
Newbie
Posts: 0
Joined: Tue May 05, 2020 8:26 am

Re: Strange I2C readings

Post by martynwheeler »

I think that I have fixed it. I adjusted the digital threshold to about 1V (default was 1.5V) - it was picking up some noise on the data line and converting it into a 0 (look closely at the beginning of the data). I looked at the signal using a probe and you could see a small dip (I assume the lower bandwidth of the digital channels couldn't cope with this). This was shifting the timings for the decoding.

Thanks

Martyn

Post Reply