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

I2C: allow configuring pin filters #2608

Open
Tracked by #2493
bugadani opened this issue Nov 25, 2024 · 1 comment
Open
Tracked by #2493

I2C: allow configuring pin filters #2608

bugadani opened this issue Nov 25, 2024 · 1 comment
Labels
1.0-blocker investigation Not needed for 1.0, but don't know if we can support without breaking the driver. peripheral:i2c I2C peripheral

Comments

@bugadani
Copy link
Contributor

bugadani commented Nov 25, 2024

cc #2493

@tom-borcin tom-borcin added the investigation Not needed for 1.0, but don't know if we can support without breaking the driver. label Dec 18, 2024
@bjoernQ
Copy link
Contributor

bjoernQ commented Dec 19, 2024

I guess the issue refers to this from the TRM

28.4.2 SCL and SDA Noise Filtering

SCL_Filter and SDA_Filter modules are identical and are used to filter signal noise on SCL and SDA,
respectively. These filters can be enabled or disabled by configuring I2C_SCL_FILTER_EN and
I2C_SDA_FILTER_EN.

Take SCL_Filter as an example. When enabled, SCL_Filter samples input signals on the SCL line continuously.
These input signals are valid only if they remain unchanged for consecutive I2C_SCL_FILTER_THRES
I2C_SCLK clock cycles. Given that only valid input signals can pass through the filter, SCL_Filter can remove
glitches whose pulse width is shorter than I2C_SCL_FILTER_THRES I2C_SCLK clock cycles, while SDA_Filter
can remove glitches whose pulse width is shorter than I2C_SDA_FILTER_THRES I2C_SCLK clock
cycles.

Sounds like it's just something we can add to Config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0-blocker investigation Not needed for 1.0, but don't know if we can support without breaking the driver. peripheral:i2c I2C peripheral
Projects
Status: Todo
Development

No branches or pull requests

3 participants