kongr45gpen / i2c-sniffer

Debugging tool for I2C networks, built for STM32 microcontrollers
Apache License 2.0
39 stars 27 forks source link

The max speed of i2c support? #4

Open icepng opened 1 year ago

icepng commented 1 year ago

Hello, if setting the clock to 72 MHz, what the max speed support for i2c sniffer?

icepng commented 1 year ago

Another question, if we use the hardware i2c interface in stm32 as the i2c slave. Any problem if we use this slave as the sniffer? (we can set the slave don't send the ack)

kongr45gpen commented 1 year ago

Hello, if setting the clock to 72 MHz, what the max speed support for i2c sniffer?

I don't really remember the max speed this can work with - probably the 100 kbit/s of the standard mode should be achievable. In any case errors should be shown if the speed is too fast, and I would recommend going down to 10 kbps if nothing is working.

Another question, if we use the hardware i2c interface in stm32 as the i2c slave. Any problem if we use this slave as the sniffer? (we can set the slave don't send the ack)

To make sure I understand the question, you want to use the same STM32 device to work as a slave and as a sniffer?

This should be possible, but note that:

icepng commented 1 year ago

If we use the software I2C as the sniffer, it may be slow for sniffing. So I want to use the hardware I2C(B8, B9) as the sniffer(maybe it can be used to 200kbit/s or 400kbit/s?)