Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FT4222 - Cannot set I2C Clock frequency to 100Kbps #2373

Open
JVaughanPEL opened this issue Jan 6, 2025 · 1 comment
Open

FT4222 - Cannot set I2C Clock frequency to 100Kbps #2373

JVaughanPEL opened this issue Jan 6, 2025 · 1 comment
Assignees
Labels
Design Discussion Ongoing discussion about design without consensus Priority:3 Work that is nice to have

Comments

@JVaughanPEL
Copy link

Currently I2cMasterFrequencyKbps is set by default to 400Kbps in Ft4222I2cBus.cs. For my application I require this to be set to 100Kbps but there is no method to change this value.

I would expected there to be a public method to set this value.

@Ellerbach
Copy link
Member

We welcome PR and improvements. Feel free to propose something so that it can fit your needs.
Indeed speed from 60 to 3400 are supported. See: https://ftdichip.com/wp-content/uploads/2023/10/AN_329_User_Guide_for_LibFT4222-v1.7.pdf

Image

So far, it's using a constant:

private const uint I2cMasterFrequencyKbps = 400;

If you want, you want adjust to add a constructor with a default value with the constant. That should then work for your use case. Other ides welcome as well.

@Ellerbach Ellerbach added Design Discussion Ongoing discussion about design without consensus Priority:3 Work that is nice to have and removed untriaged labels Jan 6, 2025
@Ellerbach Ellerbach self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Discussion Ongoing discussion about design without consensus Priority:3 Work that is nice to have
Projects
None yet
Development

No branches or pull requests

2 participants