i2c decoding problem

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
doekle
Newbie
Posts: 0
Joined: Fri Feb 19, 2010 8:59 am

i2c decoding problem

Post by doekle »

I tried to use the I2C serial decoding tool, but without any success. The decoder does not seem to recognize a start condition the way it should. What am I doing wrong? Attached a screenshot: clearly the SDA drops before the SCL, and no start condition is decoded, neither is the data properly decoded. I have tried numerous things, even tried to exchange SCL and SDA.

Hope you can help me out.
Attachments
untitled.JPG

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: i2c decoding problem

Post by ziko »

You need more packets really, try using a longer timebase. The software needs to see at lease one start and one stop bit.
Ziko

Technical Specialist

doekle
Newbie
Posts: 0
Joined: Fri Feb 19, 2010 8:59 am

Re: i2c decoding problem

Post by doekle »

ziko wrote:You need more packets really, try using a longer timebase. The software needs to see at lease one start and one stop bit.
So I will always miss the packet I am interested in? My Picoscope 2205 buffer is only 16kB, not long enough to store data for seconds. I will try whether this is indeed the case, because I cannot believe it...

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: i2c decoding problem

Post by ziko »

Hi,

The CAN bus decoding is not limited in the software, it is the hardware that will dictate how long you wish to look at a signal for.

Have you tried increasing the timebase to see if it has an effect?

Kind regards
Ziko

Technical Specialist

doekle
Newbie
Posts: 0
Joined: Fri Feb 19, 2010 8:59 am

Re: i2c decoding problem

Post by doekle »

I have tried with different time base settings and so on, even tried the inverse of he wave forms. The software seems not to recognize the start and stop conditions properly. What I have noticed is that it recognizes a rising clk while data is low as a stop condition, it should be a rising data while clk is high. Similar story with the start sequence. I have attached a measurement file, please tell me what I am doing wrong.
Attachments
i2c.psdata
(15.41 KiB) Downloaded 426 times

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: i2c decoding problem

Post by ziko »

Hi have you tried the latest bet software?

http://labs.picotech.com/#psw6

Let me know how you get on.

Kind regards
Ziko

Technical Specialist

doekle
Newbie
Posts: 0
Joined: Fri Feb 19, 2010 8:59 am

Re: i2c decoding problem

Post by doekle »

I have loaded the file as posted in my previous post into the new version (6.5.54) and it immediately recognizes the start codes! great! I will try with some live data later and keep you updated. Thanks.

Post Reply