About I2C handshake

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About I2C handshake

1,539 次查看
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.

标记 (3)
0 项奖励
回复
1 回复

1,534 次查看
ErichStyger
Specialist I

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