I2C software speed

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Mathy
Posts: 333
Joined: Mon Oct 05, 2009 2:39 pm
Has thanked: 30 times
Been thanked: 33 times

I2C software speed

Post 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

User avatar
Dan81
Valued Contributor
Valued Contributor
Posts: 268
Joined: Sun Jan 15, 2006 4:07 pm
Location: Albi France
Been thanked: 60 times
Contact:

Re: I2C software speed

Post 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

Post Reply