Why this delay ?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Why this delay ?

Post by ylanchec »

Hi,
In I2C lib, at the end of the STOP there is a big delay, why ?
stop.png
(92.81 KiB) Downloaded 1438 times
Thank you
Yannick

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Why this delay ?

Post by LeighM »

Some devices seem to need it.
But the delay can be enabled or disabled in the component ..
i2c_stop.jpg
i2c_stop.jpg (16.83 KiB) Viewed 3260 times

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Why this delay ?

Post by ylanchec »

Hi LeighM,
Sorry, I had not seen this possibility !
Thank you for your help.
Yannick

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Why this delay ?

Post by Benj »

Some early PIC and AVR devices can lock up if the delay is not present, i.e. if you try and start before the stop has finished being output by the peripheral.

On most newer devices you can remove the stop delay without any issues via the property Leigh mentioned.

Post Reply