Comments (8)
Check that your logic analyzer measures periods correctly. I had similar problems with another FX2-based LA that lied to me.
from libmpsse.
Thanks for the reply! The thing is I used a different library at some point (pyftdi) and the real frequency was recorded correctly by the analyser, so I don't think there's an issue with it.
from libmpsse.
Oh, interesting. By the way, on your screenshot i observe clock blanks being twice as long as the pulses; is it the same with pyftdi?
from libmpsse.
Nope, the blanks were the same size as the ones.
from libmpsse.
I seem to have found the problem:
To make I2C working, FTDI needs to enable what they call a "3 phase clock". PyFtdi implements this feature. The issue with this mode is that it requires 3 clock phase for each clock period, hence the 2:3 ratio. PyFtdi hides this setting from the user, and silently tweaks the specified clock to match what the users expects. libmpsse seems not to do it.
Is anyone aware of the inner working of the libmpsse library and how I could make this change to it? Thanks!
from libmpsse.
from libmpsse.
Also i see it being enabled in SetMode().
from libmpsse.
Can you please be more specific on where I can find this part of code? I searched for the definitions of the frequency constants and this led me to the compiled _pylibmpsse.so file.
from libmpsse.
Related Issues (20)
- Multiple Definition of fast_rw_buf
- FastTransfer failing on build_block_buffer
- compilation warnings
- random parallel compilation failures (-j4) HOT 4
- I2c HMC5883L connection issue to FT2232H
- Problems with libmpsse on OSX 10.11
- Input pins are set to output type, buggy and/or dangerous if using inputs HOT 1
- modified version HOT 4
- Is devttys0/libmpsse the de facto upstream for libmpsse? HOT 7
- dual MPSSE support? HOT 1
- including mpsse.h in projects can cause "duplicate symbol" linker errors HOT 1
- Problems with i2c Read()
- FT232 UART device gets disconnected when an SPI device is run HOT 4
- ImportError: No module named pylibmpsse HOT 9
- Error while running C examples HOT 2
- Integrating with OSS-Fuzz
- Python 3 support HOT 2
- error: missing fdtdi1 library HOT 2
- Is library up to date? Relationship to FTDI's LibMPSSE 1.0.3 release of August 16, 2022?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libmpsse.