About I2C handshake

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About I2C handshake

1,307 Views
dvdsosa
Contributor II

Hi all,

I am developing a library for a device that uses I2C. I am using a logic analyzer to obtain the frames while running an Arduino example (ZOE-M8Q GNSS). 

When sniffing the Arduino example, I see there is a low level of both SDA and SCL after a write command, with a stop signal after 530us low level (see attached image). Thus, the response of the GNSS board when running the Arduino example is different than mine due I poll that board but without the Write and low-level SDA and SCL (using KW41Z under FreeRTOS). 

I hope you get what I mean by the attached picture.

Is it possible to put both SDA and SCL lines at a low level for a determined time?

Regards,

David.

Tags (3)
0 Kudos
1 Reply

1,302 Views
ErichStyger
Senior Contributor V

Yes, you always can use the pins as GPIO pins and do whatever you want.

See for example the McuI2cLib_ReleaseBus() in  https://github.com/ErichStyger/McuOnEclipseLibrary/blob/master/lib/src/McuI2cLib.c which does this.

I hope this helps,

Erich