Comments (10)
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.
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.
It is likely X in self._idle * X
you want to change
from pyftdi.
Ok I think I got your point.
Are you looking for something like the following capture?
Could you give a try to the i2c_read_pacing
branch?
from pyftdi.
i2c_read_pacing works, that's what I want. Thanks a lot!
from pyftdi.
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.
I still need to clean up / deliver to master :-)
from pyftdi.
from pyftdi.
i2c_read_pacing delivered to master as v0.28.6
from pyftdi.
from pyftdi.
Related Issues (20)
- 0.55 Operation not supported or unimplemented on this platform (FT4232HA) Windows HOT 1
- 0.54.0 FT230x EEPROM API inaccuracies HOT 2
- 0.55.0 not on pypi.org HOT 3
- Low baudrates doesn't work with bit-banging.
- How to enable TXDEN on FT4232H?
- Intermittent errors when accessing FTDI HOT 5
- Specification issue in I2cController.exchange(self, out, readlen, relax, start)
- Timeout behaviour of read method not compatible with pyserial HOT 1
- clearing eeprom
- Unable to configure EEPROM: EEPROM does not support mirroring HOT 1
- UART lock up with FT4232H HOT 1
- GPIO state reset when opening device
- Error in class I2CBusScanner logic - if read success, skips write test HOT 1
- "Error: No backend available" during Mac OS instllation. HOT 1
- in_waiting and out_waiting in pyftdi/serialext/protocol_ftdi.py not implemented but return always 0 HOT 2
- Incorrect results when reading i2c with clock stretching
- No such device / 4 USB devices match URL 'ftdi:///2' HOT 2
- Default state for CBUS pins in GPIO mode?
- Trying to write `channel_a_type = 1` to EEPROM connected to FT232H causes `KeyError: '1'` exception HOT 1
- Bus C and D are used as serial ports and A and B are used as gpio, Will there be any conflict when the four are used together
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 pyftdi.