Hi !
I use the I2C master component in software mode.
How much is the speed in the software mode and how to increase this speed ?
Thank you for your help,
Mathy
I2C software speed
Moderator: Benj
- Dan81
- Valued Contributor

- Posts: 268
- Joined: Sun Jan 15, 2006 4:07 pm
- Location: Albi France
- Been thanked: 60 times
- Contact:
Re: I2C software speed
Hello Mathy
In software , the frequency is 50kHz
If you want to modify this frequency :
- click the I2C component
- click on "Custom Code"
- select [Defines]
- click on "Edit Code"
then modify the value of the delay the line :
#define %i_MX_I2C_DELAY delay_us(10);
If you want to increase the frequency , R pull up must be decreased.
Daniel
In software , the frequency is 50kHz
If you want to modify this frequency :
- click the I2C component
- click on "Custom Code"
- select [Defines]
- click on "Edit Code"
then modify the value of the delay the line :
#define %i_MX_I2C_DELAY delay_us(10);
If you want to increase the frequency , R pull up must be decreased.
Daniel