Why this delay ?

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

Moderator: Benj

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

Why this delay ?

Postby ylanchec » Mon Jan 29, 2018 12:23 pm

Hi,
In I2C lib, at the end of the STOP there is a big delay, why ?
stop.png
stop.png (92.81 KiB) Viewed 756 times

Thank you
Yannick

User avatar
LeighM
Matrix Staff
Posts: 1797
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 423 times
Been thanked: 592 times
Contact:

Re: Why this delay ?

Postby LeighM » Mon Jan 29, 2018 1:27 pm

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 750 times

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

Re: Why this delay ?

Postby ylanchec » Mon Jan 29, 2018 2:14 pm

Hi LeighM,
Sorry, I had not seen this possibility !
Thank you for your help.
Yannick
These users thanked the author ylanchec for the post:
Benj (Wed Jan 31, 2018 1:33 pm)
Rating: 5.56%
 

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

Re: Why this delay ?

Postby Benj » Wed Jan 31, 2018 1:33 pm

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.