Page 1 of 1

I2C software speed

Posted: Thu Oct 14, 2010 3:43 pm
by Mathy
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

Re: I2C software speed

Posted: Thu Oct 14, 2010 5:01 pm
by Dan81
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