GithubHelp home page GithubHelp logo

Comments (10)

eblot avatar eblot commented on August 24, 2024

This is something that needs to properly get fixed (as it depends on the I2C bus clock)

Meanwhile, try increasing the multiplier value (from 4 to 8 for example) in the following lines (i2c.py@269)

    self._start = data_low*4 + clock_low_data_low*4
    self._stop = clock_low_data_low*4 + data_low*4 + self._idle*4

Let me now if that helps.

from pyftdi.

alec178 avatar alec178 commented on August 24, 2024

OK I will try.

But.... the "time interval between each read byte" is not related to timing of START/STOP bits.
The read protocol is: "S-SlaveAddr-R-a"-"D0-a"-"D1-a"-"D2-a"-....-"D15-n-P"
And what I want is: "S-SlaveAddr-R-a"---"D0-a"---"D1-a"---"D2-a"---....---"D15-n-P"

Notation:
S=Start bit
P=Stop bit
R=Read bit
a=Ack bit
n=Nack bit

from pyftdi.

eblot avatar eblot commented on August 24, 2024

It is likely X in self._idle * X you want to change

from pyftdi.

eblot avatar eblot commented on August 24, 2024

Ok I think I got your point.

Are you looking for something like the following capture?

i2c_read_pacing

Could you give a try to the i2c_read_pacing branch?

from pyftdi.

alec178 avatar alec178 commented on August 24, 2024

i2c_read_pacing works, that's what I want. Thanks a lot!

from pyftdi.

eblot avatar eblot commented on August 24, 2024

Great news, I'll clean up thinks and deliver this fix to the master branch as soon as I have some spare time :-)

from pyftdi.

eblot avatar eblot commented on August 24, 2024

I still need to clean up / deliver to master :-)

from pyftdi.

eblot avatar eblot commented on August 24, 2024

from pyftdi.

eblot avatar eblot commented on August 24, 2024

i2c_read_pacing delivered to master as v0.28.6

from pyftdi.

eblot avatar eblot commented on August 24, 2024

screen shot 2018-02-26 at 11 05 21

from pyftdi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.